note 45272 added to function.snmp-set-valueretrieval
| From: | ThomasMatthews at osu1 dot php dot net | Date: | Tue, 31 Aug 2004 21:19:04 +0000 |
| Subject: | note 45272 added to function.snmp-set-valueretrieval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-75768@lists.php.net to get a copy of this message | ||
<?
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
)
*/
?>
----
Manual Page -- http://www.php.net/manual/en/function.snmp-set-valueretrieval.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45272
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45272&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45272&report=yes
Search -- http://master.php.net/manage/user-notes.php