note 45272 deleted from function.snmp-set-valueretrieval by tomsommer

From: Date: Tue, 31 Aug 2004 23:42:55 +0000
Subject: note 45272 deleted from function.snmp-set-valueretrieval by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75784@lists.php.net to get a copy of this message
Note Submitter: Thomas Matthews ---- <? snmp_set_valueretrieval(SNMP_VALUE_LIBRARY); echo snmpget("localhost", "public", "host.hrSystem.hrSystemUptime.0") . "\n"; /* Default setting; returns in this format: Timeticks: (198806475) 23 days, 0:14:24.75 */ snmp_set_valueretrieval(SNMP_VALUE_PLAIN); echo snmpget("localhost", "public", "host.hrSystem.hrSystemUptime.0") . "\n"; /* Returns in this format: 198806475 */ snmp_set_valueretrieval(SNMP_VALUE_OBJECT); print_r(snmpget("localhost", "public", "host.hrSystem.hrSystemUptime.0")); /* Returns an object: stdClass Object ( [type] => 67 [value] => 198806475 ) */ ?>

« previous php.notes (#75784) next »