![]() |
VOOZH | about |
| Where allowed to run: All environments (*ALL) Threadsafe: Yes |
Parameters Examples Error messages |
The Add User for SNMP (ADDUSRSNMP) command defines a Simple Network Management Protocol (SNMP) user entry and adds it to the SNMP agent user list. An SNMP agent uses this list of users as part of the SNMPv3 User-based Security Model (USM). The USM is used to protect SNMPv3 packets from Modification of Information (Data Integrity), Masquerading (Data Origin Authentication), Disclosure (Data Confidentiality), and Message Stream Modification (Message Timeliness) threats by utilizing a concept of multiple users where each user provides secret keys for authentication and privacy. Each user entry consists of a user name, an authentication protocol, an authentication password with which the authentication keys will be generated, a privacy protocol, a privacy password with which the privacy keys will be generated, a key type indicating whether the generated keys include the IBM i agent engine ID, and finally the type of storage used for this user entry.
| Top |
| Keyword | Description | Choices | Notes |
|---|---|---|---|
| USRNAME | User name | Character value | Required, Positional 1 |
| AUTPCL | Authentication protocol | 👁 Start of change *HMACSHA, *HMACSHA256, *HMACSHA512, *HMACMD5, *NONE👁 End of change |
Optional |
| AUTPWD | Authentication password | Character value | Optional |
| PVYPCL | Privacy protocol | *CFBAES, *CBCDES, *NONE | Optional |
| PVYPWD | Privacy password | Character value | Optional |
| KEYTYPE | Key type | *LOCALIZED, *NONLOCALIZED | Optional |
| STGTYPE | Storage type | *NONVOLATILE, *PERMANENT, *READONLY | Optional |
| LOGSET | Log set requests | *SNMPATR, *YES, *NO | Optional |
| LOGGET | Log get requests | *SNMPATR, *YES, *NO | Optional |
| Top |
Specifies the name of the SNMP user being added for the User-based Security Model (USM). Each user name must be unique within the SNMP agent user list. The user name has no direct correlation to an IBM i user profile.
This is a required parameter.
| Top |
Specifies the authentication protocol to be used for authenticated messages on behalf of the specified user.👁 End of change
| Top |
Specifies the password used to generate the key to be used for authenticating messages on behalf of this user. This parameter must be specified if the Authentication protocol (AUTPCL) parameter is not *NONE.👁 End of change
| Top |
Specifies the privacy protocol to be used for encrypted messages on behalf of the specified user. This parameter is only valid if the Authentication protocol (AUTPCL) parameter is not *NONE.👁 End of change
| Top |
Specifies the password used to generate the key to be used for encrypting messages to and from this user. This parameter must be specified if the Privacy protocol (PVYPCL) parameter is not *NONE.👁 End of change
| Top |
Specifies whether the keys generated for this user are localized or not localized. A localized key is generated with the appropriate IBM i SNMP Engine Identifier (ID), and the key can only be used for get and set requests received by the local IBM i SNMP engine. A non-localized key can be used for all types of SNMP communication. This parameter affects keys generated for both the Authentication password (AUTPWD) parameter and the Privacy password (PVYPWD) when either or both are not *NONE.
| Top |
Specifies the type of storage in which this user definition is maintained. This parameter is an indicator of the level of dynamic configuration available for the user.
| Top |
Specifies whether set requests from SNMP managers are logged in journal QSNMP in library QUSRSYS.
| Top |
Specifies whether get, get-bulk, and get-next requests from SNMP managers are logged in journal QSNMP in library QUSRSYS.
| Top |
ADDUSRSNMP USRNAME(USER1) AUTPCL(*NONE) PVYPCL(*NONE)
This command adds an SNMP user named USER1. The user is not using an authentication or privacy protocol.
ADDUSRSNMP USRNAME(SECUSER)
AUTPCL(*HMACSHA2) AUTPWD('pwd4SecUser')
PVYPCL(*CFBAES) PVYPWD('pvypwd-4-SecUser')
KEYTYPE(*NONLOCALIZED)
This command adds an SNMP user named SECUSER. The authentication protocol used is HMAC-SHA-2 with an authentication password of 'pwd4SecUser'. The privacy protocol used is CFB-AES-128 with a privacy password of 'pvypwd-4-SecUser'. The key type is *NONLOCALIZED so that the keys generated can be used with different SNMP engines.
| Top |
*ESCAPE Messages
| Top |