Re: Is there any way we can create snmpv3 users using snmpset on usmUserTable
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 19/02/07, [email protected] <[email protected]> wrote: > I have a device which is not shipped with snmpusm tool. > My requirement is to create the snmpv3 user using snmpset. > Please let me know if it is possible ? Of course it's possible - all you need to do is reproduce the SET request that snmpusm generates. See the code in 'apps/snmpusm.c' for details. In particular, the block headed if (strcmp(argv[arg], CMD_CREATE_NAME) == 0) It's basically just two varbinds - one to set the cloneFrom user, and the rowStatus varbind to create the row. The complicated bit is determining the index value to use (which depends on the engineID and username) Dave ------------------------------------------------------------------------- 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