Configuring SNMP User

You can configure the SNMP User string using the below command:

Reference

Command

[no] snmp-server user <user_name> priv_type [AuthNoPriv/Priv/noAuthNoPriv] access [RO/RW] auth [HMAC-SHA-2/MD5/SHA] auth-password <auth_password>

Description

SNMP user configuration

Parameters

user value, privilege type, access type, encryption type, password value

Mode

CONFIG

Example

pbnoscli# configure terminal 
pbnoscli(config)# snmp-server 
 community              contact                location               trap               user                  
pbnoscli(config)# snmp-server 
  community             Community string authentication
  contact               Configure SNMP contact
  location              Configure SNMP location
  trap                  Trap configuration
  user                  SNMP user
pbnoscli(config)# snmp-server user 
  <user_name>           Enter Username
pbnoscli(config)# snmp-server user aviz 
  priv_type             User Privilage
pbnoscli(config)# snmp-server user aviz priv_type 
  AuthNoPriv            User Authentication and No Encryption
  Priv                  User Authentication and Encryption
  noAuthNoPriv          No user authentication and No Encryption
pbnoscli(config)# snmp-server user aviz priv_type au
pbnoscli(config)# snmp-server user aviz priv_type AuthNoPriv 
  access                User access permission
pbnoscli(config)# snmp-server user aviz priv_type AuthNoPriv access 
  RO                    Read only
  RW                    Read & Write
pbnoscli(config)# snmp-server user aviz priv_type AuthNoPriv access RO 
  auth                  Authentication
pbnoscli(config)# snmp-server user aviz priv_type AuthNoPriv access RO auth 
  HMAC-SHA-2            
  MD5                   
  SHA                   
pbnoscli(config)# snmp-server user aviz priv_type AuthNoPriv access RO auth md
pbnoscli(config)# snmp-server user aviz priv_type AuthNoPriv access RO auth MD5 
  auth-password         
pbnoscli(config)# snmp-server user aviz priv_type AuthNoPriv access RO auth MD5 auth-password 
  <auth_password>       Auth Password length 8 to 64       
pbnoscli(config)# snmp-server user aviz priv_type AuthNoPriv access RO auth MD5 auth-password password 
  <cr>
pbnoscli(config)# snmp-server user aviz priv_type AuthNoPriv access RO auth MD5 auth-password password 
pbnoscli(config)# 


pbnoscli(config)# no snmp-server user aviz
pbnoscli(config)# 

You can verify the configuration by using the command(s) below:

pbnoscli# show snmp-users     
======================================================================================================
Users                           Privilage           Access  Authentication      Encryption
======================================================================================================
aviz                            AuthNoPriv          RO      MD5                         
pbnoscli#