Re: request problem with cisco hsrp

Alex Burger <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Achim Stumpf wrote:
> SNMP Version  : 1
> VirtualIPaddr : noSuchInstance
> Error         :

> Always I get noSuchInstance, but if i am doing the same with snmpwalk:
> 
> [root@clusty4 logs]# snmpwalk 192.168.222.72 -c test -v1 
> 1.3.6.1.4.1.9.9.106.1.2.1.1.11
> SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.11.1.1 = IpAddress: 192.168.222.70
> 
> With snmpwalk everything works fine. But why it does not work with the 
> net::snmp module. Do you guys have any ideas for me????

You are using the Net::SNMP Perl module, which has nothing to do with 
the 'Net-SNMP' Perl module so this is not the correct list to ask for 
help.  Yes, it's confusing.  See: 
http://www.net-snmp.org/wiki/index.php/FAQ:Perl_09

Your script is doing an SNMP GET for 1.3.6.1.4.1.9.9.106.1.2.1.1.11, but 
as you can see from the output of the snmpwalk, the actual OID that you 
want is 1.3.6.1.4.1.9.9.106.1.2.1.1.11.1.1.  This should fail:

snmpget 192.168.222.72 -c test -v1 1.3.6.1.4.1.9.9.106.1.2.1.1.11

This should work:

snmpget 192.168.222.72 -c test -v1 1.3.6.1.4.1.9.9.106.1.2.1.1.11.1.1

Alex



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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
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.