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
stringCFEngine list identifier, the list of hosts or addresses to contact (@[(][a-zA-Z0-9_$(){}\[\].:]+[)])stringPort number or service name. (.*)stringA query string (.*)stringA regular expression to match success (.*)intMaximum number of bytes to read from server (0,99999999999)stringName for array of results ([a-zA-Z0-9_$(){}\[\].:]+)
- Returns
int- Category
- communication