Hi,

Now, I am trying to use snmpset command instead of snmpusm to clone a user. I am trying to follow the steps given in RFC 2574
  1)  GET(usmUserSpinLock.0) and save in sValue.
  2)  SET(usmUserSpinLock.0=sValue ,
                           usmUserCloneFrom=templateUser,
                           usmUserStatus=createAndWait)
and so on.

My snmp-agent does not like snmpusm way of creating user - with usmUserStatus as createAndGo (4).

My aim is to clone a user and to set new localized keys (not password generated but provided by end-user) for privacy and authentication.

So I am trying to use snmpset directly to set values for usmUserCloneFrom, usmUserStatus (in usmUserTable).
I am NOT able figure out a way of setting both indices (usmUserEngineID,usmUserName).
In my case usmUserEngineID is a hex value.

So can any one please tell me how to use snmpset to set a vallue for usmUserCloneFrom.$usmUserEngineID.$usmUserName

where usmUserEngineID - hex value of engine id AND usmUserName - is a display string.

Can this be achieved using snmpset? I am using ( NET-SNMP version: 5.2.1.2 )

Any help is greatly appreciated

thanks
chinmaya




On 1/9/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:
Hi,

When I run
$ snmpusm -v3 -u <v3user> -a MD5 -3k 0x<localized auth key> -x DES -3K 0x<localized priv key> -l authNoPriv 192.168.1.45 create newuser <v3user>

Error in packet.
Reason: inconsistentValue (The set value is illegal or unsupported in some way)
Failed object: SNMP-USER-BASED-SM-MIB::usmUserStatus."...&..P..y.."."newuser"


>From the packet, the PDU has value of 04 for usmUserStatus - which means createAndGo ... can I use createAndWait instead ?
                      A3  81 92 02 04  68 24 A4 47  02 01 00 02    ........h$.G....
0128: 01 00 30 81  83 30 26 06  21 2B 06 01  06 03 0F 01    ..0..0&.!+......
0144: 02 02 01 0D  0C 00 00 01  26 03 00 50  81 71 12 79    ........&..P.q.y
0160: 01 01 07 6E  65 77 75 73  65 72 02 01  04

thanks
chinmaya

Reply via email to