SNMP::walk

(PHP 5 >= 5.4.0, PHP 7) Fetch SNMP object subtree public array SNMP::walk ( string $object_id [, bool $suffix_as_key = FALSE [, int $max_repetitions [, int $non_repeaters ]]] ) SNMP::walk() is used to read SNMP subtree rooted at specified object_id. Parameters: object_id Root of subtree to be fetched suffix_as_key By default full OI

SNMP::setSecurity

(PHP 5 >= 5.4.0, PHP 7) Configures security-related SNMPv3 session parameters public bool SNMP::setSecurity ( string $sec_level [, string $auth_protocol = [, string $auth_passphrase = [, string $priv_protocol = [, string $priv_passphrase = [, string $contextName = [, string $contextEngineID = ]]]]]] ) setSecurity configures security-related session parameters used in SNMP protocol version 3 Paramete

SNMP::set

(PHP 5 >= 5.4.0, PHP 7) Set the value of an SNMP object public bool SNMP::set ( mixed $object_id, mixed $type, mixed $value ) Requests remote SNMP agent setting the value of one or more SNMP objects specified by the object_id. Parameters: object_id The SNMP object id When count of OIDs in object_id array is greater than max_oids object property set method will have t

SNMP::getnext

(PHP 5 >= 5.4.0, PHP 7) Fetch an SNMP object which follows the given object id public mixed SNMP::getnext ( mixed $object_id ) Fetch an SNMP object that follows specified object_id. Parameters: object_id The SNMP object (OID) or objects Returns: Returns SNMP objects requested as string or array depending on object_id type or FALSE on error.

SNMP::getError

(PHP 5 >= 5.4.0, PHP 7) Get last error message public string SNMP::getError ( void ) Returns string with error from last SNMP request. Returns: String describing error from last SNMP request. Examples: SNMP::getError() example <?php $session = new SNMP(SNMP::VERSION_2c, '127.0.0.1', 'boguscommunity'); var_dump(@$ses

SNMP::getErrno

(PHP 5 >= 5.4.0, PHP 7) Get last error code public int SNMP::getErrno ( void ) Returns error code from last SNMP request. Returns: Returns one of SNMP error code values described in constants chapter. Examples: SNMP::getErrno() example <?php $session = new SNMP(SNMP::VERSION_2c, '127.0.0.1', 'boguscommunity'); var_d

SNMP::get

(PHP 5 >= 5.4.0, PHP 7) Fetch an SNMP object public mixed SNMP::get ( mixed $object_id [, bool $preserve_keys = false ] ) Fetch an SNMP object specified in object_id using GET query. Parameters: object_id The SNMP object (OID) or objects preserve_keys When object_id is a array and preserve_keys set to TRUE keys in results will be ta

SNMP::__construct

(PHP 5 >= 5.4.0, PHP 7) Creates SNMP instance representing session to remote SNMP agent public SNMP::__construct ( int $version , string $hostname , string $community [, int $timeout = 1000000 [, int $retries = 5 ]] ) The function description goes here. Parameters: version SNMP protocol version: SNMP::VERSION_1, SNMP::VERSION_2C, SNMP::VERSION_3. hostname

SNMP::close

(PHP 5 >= 5.4.0, PHP 7) Close SNMP session public bool SNMP::close ( void ) Frees previously allocated SNMP session object. Returns: Returns TRUE on success or FALSE on failure. Examples: SNMP::close() example <?php   $session = new SNMP(SNMP::VERSION_1, "127.0.0.1", "public");   # ...   # get, walk, etc goes here  

snmpwalkoid

(PHP 4, PHP 5, PHP 7) Query for a tree of information about a network entity array snmpwalkoid ( string $hostname, string $community, string $object_id [, int $timeout = 1000000 [, int $retries = 5 ]] ) snmpwalkoid() function is used to read all object ids and their respective values from an SNMP agent specified by hostname. The existence of snmpwalkoid() and snmpwalk() has historical reasons. Both functions are provide