I am working on a project that involves SNMP, MIBS and OIDS.
ADDENDUM: I want to have the OIDs translated into names, rather than numeric format. I only have remote access to server.
I get 2 different OID formats when I use LINUX terminal and PHP functions
This is what I do:
In LINUX terminal I type:
snmpwalk -v 1 -c public ip | less
the output is similar to this (short version)
Using php
<?php $session = new SNMP(SNMP::VERSION_1, ipaddress, "public"); $session->oid_output_format = SNMP_OID_OUTPUT_FULL; $result = $session->walk(""); print_r($result); ?>
the output is below
The issue: How can i get the same format in php similar to linux terminal format?
MAYBE: Is there a command that we can run from LINUX terminal that will change the format php's snmpwalk() returns OIDs ???