function

selectservers

A built-in CFEngine function in the communication category that returns an integer. selectservers is not called from the policy on your hosts.

Signature
selectservers(string, string, string, string, int, string)
Parameters
  1. string CFEngine list identifier, the list of hosts or addresses to contact (@[(][a-zA-Z0-9_$(){}\[\].:]+[)])
  2. string Port number or service name. (.*)
  3. string A query string (.*)
  4. string A regular expression to match success (.*)
  5. int Maximum number of bytes to read from server (0,99999999999)
  6. string Name for array of results ([a-zA-Z0-9_$(){}\[\].:]+)
Returns
int
Category
communication