how to get Object Identifier(OID) for MIB file using php

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
satishkumarp
Posts: 3
Joined: Thu May 21, 2009 3:17 am
Location: Chennai
Contact:

how to get Object Identifier(OID) for MIB file using php

Post by satishkumarp »

Hi every one,

i unable to get ObjectID(OID) for particular MIB file from PHP. snmptranslate command is there for linux to idetify the Oid based on option which they select form mib. but how would i idetify oid value from php.

Thanks for advance.



Regards,
Satish Kumar
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

"snmpwalk -On" will spit out the raw OID.
satishkumarp
Posts: 3
Joined: Thu May 21, 2009 3:17 am
Location: Chennai
Contact:

Post by satishkumarp »

Thanks for ur Reply. Whatever u r saying is absolutly correct , but what my requirement is i need to identify the Object ID numaric number based on what object they request from User interface part through Php (not through linux commands).

For Example, if user select "sysDescr" from user side i need to idetify the OID is .1.3.6.1.2.1.1.1 for that "sysDescr" using Php functions.

Thank you very much once again becz of spare time for me. can any one please reply early, i need urgent
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Then you should consult the php snmp manual. How is this related to cacti?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests