specifying MIB::ObjectValue

Stuart Kendrick <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <62C3033D0D7F9F4D91C7A959E9D90D8EA1B7EE@AIMSX-1.corp.alleninstitute.org>
Can I specify MIB::ObjectValue using the Perl SNMP module?


I can use the CLI tool to specify MIB plus Object Value:

host> snmpget -c public test-switch POWER-ETHERNET-MIB::pethMainPsePower.1
POWER-ETHERNET-MIB::pethMainPsePower.1 = Gauge32: 370 Watts

But I run into a pothole when I try the same using the Perl module:

[...]
$val = $session->get('POWER-ETHERNET-MIB::pethMainPsePower.1');
say $session->{ErrorStr};
[...]]
Unknown Object Identifier



Capturing frames using dumpcap, I see that the CLI tool puts a query for the following on the wire:
.1.3.6.1.2.1.105.1.3.1.1.2.1

host> snmptranslate .1.3.6.1.2.1.105.1.3.1.1.2.1
POWER-ETHERNET-MIB::pethMainPsePower.1


While the SNMP tool puts a query for this on the wire:
.1.3.6.1.4.1.9.5.1.2.16.0
host> snmptranslate .1.3.6.1.4.1.9.5.1.2.16.0
CISCO-STACK-MIB::chassisModel.0

[I want both ALU-POWER-ETHERNET-MIB and POWER-ETHERNET-MIB to coexist in my MIB collection ... and both specify a pethMainPsePower.1 variable ... ergo my efforts in this regard.]

--sk



Stuart Kendrick
Sr. Network Engineer
T: 206.548.8465
[Description: C:\AllenInstitute_Email_signature_html_6e825420.png]
www.alleninstitute.org<http://www.alleninstitute.org/>

------------------------------------------------------------------------------

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
image001.png (image/png, 1.5 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.