Re: snmpusm problems
Simon Chamlian <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAJTs9VmhBj0ZB_LUV3D7ssvW_vSqqX-DcFYBwUJOgU7WP3P=+g@mail.gmail.com> |
Hi Dave, 1) in snmpd.conf, I have ------------------------ createUser initial rwuser initial noauth 2) I start the agent --------------------- [root@M54418TWR snmp]# snmpd -a -c snmpd.conf -d -Lf log1.txt [root@M54418TWR snmp]# cat log1.txt NET-SNMP version 5.7.1 3) I try to add a user wes ----------------------------------- [root@M54418TWR snmp]# snmpusm -v3 -u initial -l noAuthNoPriv 172.27.42.191 cloneFrom wes initial Error in packet. Reason: inconsistentValue (The set value is illegal or unsupported in some way) Failed object: SNMP-USER-BASED-SM-MIB::usmUserStatus.".....LB......"."wes" 4) Tried some snmget -------------------------- # snmpgetnext -v 3 -n "" -u MD5User -a MD5 -A "The Net-SNMP Demo Password" -l authNoPriv test.net-snmp.org sysUpTime SNMPv2-MIB::sysUpTime.0 = Timeticks: (600600930) 69 days, 12:20:09.30 Thanks, Simon On Tue, Nov 8, 2011 at 10:54 AM, Dave Shield <[email protected]>wrote: > On 8 November 2011 14:38, Simon Chamlian <[email protected]> wrote: > > I tried the following: > > > # snmpusm -v3 172.27.42.191 create initial wes > > snmpset: No securityName specified > > > > # snmpusm -v3 -l authNoPriv -a MD5 172.27.42.191 create enzo1 simon1 > > snmpset: No securityName specified > > If you are going to use SNMPv3, then you *must* specify the SNMPv3 user > that is authenticating the request. Not just the new user that you > wish to create, > or the existing user that you are copying from - the user that is > making the request. > > > > > # snmpusm -v3 -u simon -n "" -l authNoPriv -a MD5 -A "hello_world" > 172.27.42.191 create enzo simon > > snmpset: Unknown user name > > That should work if you have already set up a user "simon" (with > suitable access rights). > But not if the user "simon" doesn't yet exist. > > > > The agent (snmpd) should be running during these commands > > Yes - the agent needs to be running. > "snmpusm" is sending SNMP requests, so there needs to be something to > receive and act on them. > > > But you still haven't answered my initial question. > Did you put a line of the form > > "createUser initial ....." > > in one of the snmpd.conf files? > The only configuration setting you've mentioned so far is the "rwuser" > entry. > You *also* need to create this user (using "createUser") > > It's not possible to start using SNMPv3 without having an initial user, > and this needs to be set up via the config file. > Try that , and make sure you can run simple "snmpget" requests. > There's no point in trying to use "snmpusm" until you've got this working > first. > > > Dave > ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ 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