note 35870 added to function.snmpwalk
| From: | bobby at rn2 dot php dot net | Date: | Wed, 17 Sep 2003 18:29:02 +0000 |
| Subject: | note 35870 added to function.snmpwalk | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-56648@lists.php.net to get a copy of this message | ||
I had to use an object_id like these.
'SNMPv2-MIB::system.sysDescr.0'
'IF-MIB::interfaces.ifTable.ifEntry.ifAdminStatus'
<?php
$host = '192.168.1.1';
$community = 'public';
$object_id = 'IF-MIB::interfaces.ifTables.ifEntry.ifAdminStatus';
$sysdesc = snmpwalk($host, $community', $object_id);
print_r($sysdesc);
?>
----
Manual Page -- http://www.php.net/manual/en/function.snmpwalk.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35870
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35870&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35870&report=yes