Assign a unique requestID
integer
assignRequestID
()
execute a poll on hosts
string
build_packet
(mixed $varbind, [mixed $security = NULL], [string $type = 'get'], mixed $target, string $community, string $value, string $value_type)
-
mixed
$target
-
string
$community: string
-
string
$type: is either get, getnext, or set
-
string
$value: to use for set
-
string
$value_type: to use for set
build a variable binding
array
build_varbind
(string $oid, mixed $value, [string $type = 'n'])
-
string
$oid: (oids must be numeric)
-
mixed
$value: to set
-
string
$type: 'i' = integer; 't' = time ticks; 'x' = hex string; 's' = string; 'a' = IP address; 'o' = object ID; 'n' = null value
bulk get oids from a single host
array
bulk_get
(string $host, array $oids, [array $security = NULL])
-
string
$host: hostname or ip address
-
array
$oids: (oids must be numeric)
-
array
$security: parameters
execute a poll on hosts
array
exec
(array $hosts, string $type, mixed $varbind, [array $security = NULL], [string $stop = ''], string $packet)
-
array
$hosts: hostnames or ip addresses
-
string
$type: is either get, getnext, or set
-
string
$packet: to send
-
array
$security: parameters
-
string
$stop
get an oid from a single host
array
get
(string $host, mixed $target, [array $security = NULL])
-
string
$host: hostnames or ip addresses
-
mixed
$target: varbind array or oid (oids must be numeric)
-
array
$security: parameters
Get microtime as a float
float
microtime
()
bulk get oids from a mulitple hosts
array
multi_bulk_get
(string $hosts, array $oids, [array $security = NULL])
-
string
$hosts: hostnames or ip addresses
-
array
$oids: (oids must be numeric)
-
array
$security: parameters
get an oid from multiple hosts
array
multi_get
(array $hosts, mixed $target, [array $security = NULL])
-
array
$hosts: hostnames or ip addresses
-
mixed
$target: varbind array or oid (oids must be numeric)
-
array
$security: parameters
set a variable
void
multi_set
(array $hosts, mixed $target, mixed $value, [string $type = 'i'], [array $security = NULL])
-
array
$hosts: hostnames or ip addresses
-
mixed
$target: varbind array or oid (oids must be numeric)
-
mixed
$value: to set
-
string
$type: 'i' = integer; 't' = time ticks; 'x' = hex string; 's' = string; 'a' = IP address; 'o' = object ID; 'n' = null value
-
array
$security: parameters
walk an oid on multiple hosts
array
multi_walk
(array $hosts, sring $oid, [array $security = NULL])
-
array
$hosts: hostnames or ip addresses
-
sring
$oid: (oids must be numeric)
-
array
$security: parameters
set a variable
void
set
(string $host, mixed $target, mixed $value, [string $type = 'i'], [array $security = NULL])
-
string
$host: hostname or ip address
-
mixed
$target: varbind array or oid (oids must be numeric)
-
mixed
$value: to set
-
string
$type: 'i' = integer; 't' = time ticks; 'x' = hex string; 's' = string; 'a' = IP address; 'o' = object ID; 'n' = null value
-
array
$security: parameters
send a trap
void
trap
(string $manager, array $security, mixed $varbind, [string $enterprise = ''], [string $agent = ''], integer $trap_type, integer $specific_trap_type, integer $timestamp, array $varbinds)
-
string
$manager: hostname or ip address of the manager
-
array
$security: parameters
-
array
$varbinds: created by build_varbind
-
string
$enterprise: oid (oids must be numeric) of the object generating the trap (this is only for version 1)
-
string
$agent: hostname or ip address of the agent generating the trap (this is only for version 1)
-
integer
$trap_type: from TRAP_COLDSTART, TRAP_WARMSTART, TRAP_LINKDOWN, TRAP_LINKUP, TRAP_AUTH_FAIL, TRAP_EGP_NEIGHBOR_LOSS, TRAP_ENTERPRISE_SPECIFIC (this is only for version 1)
-
integer
$specific_trap_type: (this is only for version 1)
-
integer
$timestamp: time since last restart (this is only for version 1)
walk an oid
array
walk
(string $host, string $oid, [array $security = NULL])
-
string
$host: hostnames or ip addresses
-
string
$oid: (oids must be numeric)
-
array
$security: parameters