noSuchName when run snmpget - SNMP
This is a discussion on noSuchName when run snmpget - SNMP ; Hi,
As a newcomer, I cannot get snmpget work:
snmpget -v 1 -c public localhost 1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: ccitt.1
While snmpwalk seems work:
snmpwalk -v 1 ...
-
noSuchName when run snmpget
Hi,
As a newcomer, I cannot get snmpget work:
snmpget -v 1 -c public localhost 1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: ccitt.1
While snmpwalk seems work:
snmpwalk -v 1 -c public localhost 1
SNMPv2-MIB::sysDescr.0 = STRING: Epilogue Technology SNMP agent for
Sun SVR4
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.42.2.1.1
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1871655358) 216
days, 15:02:33.58
SNMPv2-MIB::sysContact.0 = STRING: lwu@jabber.com
SNMPv2-MIB::sysName.0 = STRING: sdb1.qa.jabber.com
SNMPv2-MIB::sysLocation.0 = STRING: "Denver, CO"
SNMPv2-MIB::sysServices.0 = INTEGER: 72
SNMPv2-SMI::enterprises.42.3.1.1.0 = STRING: "Sun Microsystems SNMP
Agent"
SNMPv2-SMI::enterprises.42.3.1.2.0 = Hex-STRING: 80 C3 7E 4F
SNMPv2-SMI::enterprises.42.3.1.3.0 = STRING: "Sun Microsystems
Inc..SunOS 5.7.Generic.October 1998."
SNMPv2-SMI::enterprises.42.3.1.4.0 = Counter32: 1068511185
End of MIB
I am using
snmpwalk -V
NET-SNMP version: 5.0.8
OS:
uname -a
SunOS sdb1.qa.jabber.com 5.7 Generic_106541-04 sun4u sparc
SUNW,Ultra-60
Can someone kindly tell me what I did wrong?
Thanks!
-
Re: noSuchName when run snmpget
HI,
With a GET, you MUST specify the identification of an
instance of management information. You specified "1".
There is no such instance of management information
with that indentification.
An SNMP WALK program does SNMP GETNEXT operations, where
you specify an identification, and it returns the value
if available of the object instance with the lexi-next
greater identification.
On 10 Nov 2003, lwu@jabber.com wrote:
> Hi,
>
> As a newcomer, I cannot get snmpget work:
> snmpget -v 1 -c public localhost 1
> Error in packet
> Reason: (noSuchName) There is no such variable name in this MIB.
> Failed object: ccitt.1
>
> While snmpwalk seems work:
> snmpwalk -v 1 -c public localhost 1
> SNMPv2-MIB::sysDescr.0 = STRING: Epilogue Technology SNMP agent for
> Sun SVR4
> SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.42.2.1.1
> DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1871655358) 216
> days, 15:02:33.58
> SNMPv2-MIB::sysContact.0 = STRING: lwu@jabber.com
> SNMPv2-MIB::sysName.0 = STRING: sdb1.qa.jabber.com
> SNMPv2-MIB::sysLocation.0 = STRING: "Denver, CO"
> SNMPv2-MIB::sysServices.0 = INTEGER: 72
> SNMPv2-SMI::enterprises.42.3.1.1.0 = STRING: "Sun Microsystems SNMP
> Agent"
> SNMPv2-SMI::enterprises.42.3.1.2.0 = Hex-STRING: 80 C3 7E 4F
> SNMPv2-SMI::enterprises.42.3.1.3.0 = STRING: "Sun Microsystems
> Inc..SunOS 5.7.Generic.October 1998."
> SNMPv2-SMI::enterprises.42.3.1.4.0 = Counter32: 1068511185
> End of MIB
>
>
> I am using
>
> snmpwalk -V
> NET-SNMP version: 5.0.8
>
> OS:
> uname -a
> SunOS sdb1.qa.jabber.com 5.7 Generic_106541-04 sun4u sparc
> SUNW,Ultra-60
>
> Can someone kindly tell me what I did wrong?
>
> Thanks!
Regards,
/david t. perkins