Can't find what you need?


• Ask the Community
• Create a Case
Reset Search
 

 

Article

Enable/Disable SNMP access and verify the current status

« Go Back

Information

 
TitleEnable/Disable SNMP access and verify the current status
Objective
  • To enable or disable SNMP for snmp-v1v2c and snmpv3
  • To verify the status of SNMP to confirm whether it is enabled or disabled for snmp-v1v2c and snmpv3
Environment
EXOS
Procedure
To enable SNMP access for either SNMPv1/v2 or SNMPv3:
enable snmp access {snmp-v1v2c | snmpv3}

To disable SNMP access for either SNMPv1/v2 or SNMPv3:
disable snmp access {snmp-v1v2c | snmpv3}

To verify whether SNMPv1/v2 or SNMPv3 is enabled:
show management
switch # show management
CLI idle timeout                 : Disabled
CLI max number of login attempts : 3
CLI max number of sessions       : 8
CLI paging                       : Enabled (this session only)
CLI space-completion             : Disabled (this session only)
CLI configuration logging        : Enabled
CLI password prompting only      : Disabled
CLI RADIUS cmd authorize tokens  : 2
CLI scripting                    : Disabled (this session only)
CLI scripting error mode         : Ignore-Error (this session only)
CLI persistent mode              : Persistent (this session only)
CLI prompting                    : Enabled (this session only)
CLI screen size                  : 24 Lines 80 Columns (this session only)
CLI refresh                      : Enabled
Telnet access                    : Enabled (tcp port 23 vr all)
                                 : Access Profile : not set
SSH Access                       : ssh module not loaded.
SSH2 idle time                   : none
Web access                       : Disabled (tcp port 80)
                                 : Access Profile : not set
Total Read Only Communities      : 1
Total Read Write Communities     : 1
RMON                             : Disabled
SNMP access                      : v1,v2c Disabled, v3 Enabled
                                 : Access Profile : not set
SNMP Compatibility Options       :
    GETBULK Reply Too Big Action : Too Big Error
    IP Fragmentation             : Disallow
SNMP Notifications               : Enabled
SNMP Notification Receivers  :
    Destination Address      : 192.168.10.252:162
    Source Address           : 192.168.10.1
    Virtual Routers          : VR-Default, VR-Mgmt
    Version                  : Not Configured    Type      : Trap
    Timeout                  : -                 Retries   : -

SNMP stats:     InPkts 12487   OutPkts   12487   Errors 0       AuthErrors 0
                Gets   1551    GetNexts  5162    Sets   0       Drops      0
SNMP traps:     Sent   20      AuthTraps Enabled
SNMP inform:    Sent   5       Retries   0       Failed 0

If both SNMPv1/v2 and SNMPv3 are enabled then 'Enabled' will be displayed. The above demonstrates that SNMPv1/v2 is disabled and SNMPv3 is enabled.

SNMP access can also be Enabled or Disabled for individual Virtual Routers using the commands:
enable snmp access vr [vr_name | all]
disable snmp access vr [vr_name | all]

Note: SNMPv1/v2 and SNMPv3 can not be enabled or disabled individually for Virtual Routers. This would be controlled by SNMP access.

The status of whether SNMP is enable for the Virtual Router can be done using the command:
show snmp {vr} vr_name
 
* Switch # show snmp vr "VR-Mgmt"
SNMP access                      : Disabled
SNMP ifMib ifAlias size          : Default
SNMP Notifications               : Enabled
SNMP Notification Receivers  :
    Destination Address      : 192.168.10.252:162
    Source Address           : 63.103.60.229
    Version                  : Not Configured    Type      : Trap
    Timeout                  : -                 Retries   : -

Both the SNMP access and SNMP VR current states can also be verified in the show configuration detail output for the snmpMaster module:
* switch # show configuration detail snmp
#
# Module snmpMaster configuration.
#
...
enable snmp access
disable snmp access snmp-v1v2c
enable snmp access snmpv3
enable snmpv3 default-group
enable snmpv3 default-user
enable snmp traps
enable snmp access vr "VR-Default"
disable snmp access vr "VR-Mgmt"

The above example shows that SNMPv1/v2 access is disable and SNMP access is disabled for VR-Mgmt.



 
Additional notes
snmp-v1v2c Specifies SNMPv1/v2c access only.
snmpv3 Specifies SNMPv3 access only.

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255