Net::SNMP OID doubt
Hi All, I am trying to create a script to get the logical disk status using Net::SNMP. My snmpget query is snmpget -v2c -t 1 -r 9 -m ALL -v 1 -c public localhost:161 SNMPv2-SMI::enterprises.1714.1.1.2.1.6.1 In this , OID part is SNMPv2-SMI::enterprises.1714.1.1.2.1.6.1 In the Net::SNMP get_request function, I am not able to use the OID as above. Can anyone please advise on this?. Also, how can i specify the MIB files to be used while creating a snmp session. Regards, Shameem -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: Net::SNMP OID doubt
On checking the SNMPv2-SMI MIB, i found out that, corresponding to SNMPv2-SMI::enterprise i can use the 1.3.6.1.4.1 Is it correct ?. Can i replace the string with this decimal values ?. Shammi - Original Message From: Shameem Ahamed shameem.aha...@yahoo.com To: beginners@perl.org Sent: Wed, November 18, 2009 6:36:42 PM Subject: Net::SNMP OID doubt Hi All, I am trying to create a script to get the logical disk status using Net::SNMP. My snmpget query is snmpget -v2c -t 1 -r 9 -m ALL -v 1 -c public localhost:161 SNMPv2-SMI::enterprises.1714.1.1.2.1.6.1 In this , OID part is SNMPv2-SMI::enterprises.1714.1.1.2.1.6.1 In the Net::SNMP get_request function, I am not able to use the OID as above. Can anyone please advise on this?. Also, how can i specify the MIB files to be used while creating a snmp session. Regards, Shameem -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
RE: Net::SNMP OID doubt
From: Shameem Ahamed [mailto:shameem.aha...@yahoo.com] SNMPv2-SMI::enterprise i can use the 1.3.6.1.4.1 Is it correct ?. Can i replace the string with this decimal values ?. It's the wrong list for your question, but yes, you can substitute all names with the corresponding OIDs (e.g. if the MIB isn't available on the system). And yes again, it's the correct OID for SNMPv2-SMI::enterprise PRIVATE ENTERPRISE NUMBERS (last updated 2009-11-18) SMI Network Management Private Enterprise Codes: Prefix: iso.org.dod.internet.private.enterprise (1.3.6.1.4.1) This file is http://www.iana.org/assignments/enterprise-numbers My snmpget query is snmpget -v2c -t 1 -r 9 -m ALL -v 1 -c public localhost:161 SNMPv2-SMI::enterprises.1714.1.1.2.1.6.1 To find out the OID, use the output modifier -O n. e.g.: snmpget -v2c -t 1 -r 9 -m ALL -v 1 -c public localhost:161 SNMPv2-SMI::enterprises.1714.1.1.2.1.6.1 -O n gabi -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: Net::SNMP OID doubt
Hi, Thanks for the replies. I asked in this list, because initially i thought it was a problem with the Net::SNMP module. Sorry for the same. I have one more doubt. Is there any tool, which i can use for automatically converting this strings to OIDs. Regards, Shammi - Original Message From: Hack, Gabi (ext) gabi.hack@siemens.com To: Shameem Ahamed shameem.aha...@yahoo.com; beginners@perl.org beginners@perl.org Sent: Wed, November 18, 2009 7:22:52 PM Subject: RE: Net::SNMP OID doubt From: Shameem Ahamed [mailto:shameem.aha...@yahoo.com] SNMPv2-SMI::enterprise i can use the 1.3.6.1.4.1 Is it correct ?. Can i replace the string with this decimal values ?. It's the wrong list for your question, but yes, you can substitute all names with the corresponding OIDs (e.g. if the MIB isn't available on the system). And yes again, it's the correct OID for SNMPv2-SMI::enterprise PRIVATE ENTERPRISE NUMBERS (last updated 2009-11-18) SMI Network Management Private Enterprise Codes: Prefix: iso.org.dod.internet.private.enterprise (1.3.6.1.4.1) This file is http://www.iana.org/assignments/enterprise-numbers My snmpget query is snmpget -v2c -t 1 -r 9 -m ALL -v 1 -c public localhost:161 SNMPv2-SMI::enterprises.1714.1.1.2.1.6.1 To find out the OID, use the output modifier -O n. e.g.: snmpget -v2c -t 1 -r 9 -m ALL -v 1 -c public localhost:161 SNMPv2-SMI::enterprises.1714.1.1.2.1.6.1 -O n gabi -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: Net::SNMP OID doubt
Yes, you can use the OID octets instead. with warm regards, Venkat Saranathan Gulf Breeze Software. On Wed, Nov 18, 2009 at 8:19 AM, Shameem Ahamed shameem.aha...@yahoo.comwrote: On checking the SNMPv2-SMI MIB, i found out that, corresponding to SNMPv2-SMI::enterprise i can use the 1.3.6.1.4.1 Is it correct ?. Can i replace the string with this decimal values ?. Shammi - Original Message From: Shameem Ahamed shameem.aha...@yahoo.com To: beginners@perl.org Sent: Wed, November 18, 2009 6:36:42 PM Subject: Net::SNMP OID doubt Hi All, I am trying to create a script to get the logical disk status using Net::SNMP. My snmpget query is snmpget -v2c -t 1 -r 9 -m ALL -v 1 -c public localhost:161 SNMPv2-SMI::enterprises.1714.1.1.2.1.6.1 In this , OID part is SNMPv2-SMI::enterprises.1714.1.1.2.1.6.1 In the Net::SNMP get_request function, I am not able to use the OID as above. Can anyone please advise on this?. Also, how can i specify the MIB files to be used while creating a snmp session. Regards, Shameem -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/