2012-03-14

snmp: snmpget: No securityName specified

snmpget: No securityName specified

we use snmp v1 and running the command without specifying -v 1 results in this error. I.e. the default is to use Version 3 which requires you to specify a username and password.

snmpget -c public 1.1.1.1 .1.3.6.1.2.1.1.1.0
snmpget: No securityName specified


snmpget -v 1 -c public 1.1.1.1 .1.3.6.1.2.1.1.1.0
SNMPv2-MIB::sysDescr.0 = STRING: Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6K2L2Q4-M), Version 12.1(19)EA1c, RELEASE SOFTWARE (fc2)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Tue 03-Feb-04 09:38 by yenanh

No comments: