This section describes the configurations required to work with SNMP v1, v2, and v3 Managers and the configurations required for generating traps and inform messages.
Community parameters need to be configured in the SNMP Agent to allow SNMPv1/v2 Manager access.
There is no specific default setting available for Community Index and Community Name. The values (NETMAN or PUBLIC) are available only at the time of boot-up.
Feature | Default Setting |
---|---|
Community Index | NETMAN/PUBLIC |
Community Name | NETMAN/PUBLIC |
Security Name | None |
Storage type | Non-Volatile |
Refer to Figure SNMP -Topology 1 for Topology Setup. Execute the following commands in the SNMP Agent (Switch1) to allow SNMPv1/v2 access, with SNMP Manager (Host1).
Type the following:
iS5comm# configure terminal
iS5comm (config)# enable snmpagent
iS5comm(config)# snmp community index com1 name is5Com1 security user1
iS5comm(config)# snmp community index com2 name is5Com2 security user2
iS5comm(config)# snmp user user1
iS5comm(config)# snmp user user2
iS5comm(config)# snmp group group1 user user1 security-model v1
iS5comm(config)# snmp group group2 user user2 security-model v2c
iS5comm(config)# snmp access group1 v1 read iso write iso notify iso
iS5comm(config)# snmp access group2 v2c read iso write iso notify iso
iS5comm# exit
iS5comm# show snmp community
Community Index : NETMAN
Community Name : NETMAN
Security Name : none
Context Name :
Context EngineID: 80.00.08.1c.04.46.53
Transport Tag :
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Community Index : PUBLIC
Community Name : PUBLIC
Security Name : none
Context Name :
Context EngineID: 80.00.08.1c.04.46.53
Transport Tag :
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Community Index : com1
Community Name : is5Com1
Security Name : user1
Context Name :
Context EngineID: 80.00.08.1c.04.46.53
Transport Tag :
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Community Index : com2
Security Name : user2
Context Name :
Context EngineID: 80.00.08.1c.04.46.53
Transport Tag :
Storage Type : Nonvolatile
Row Status : Active------------------------------
The guidelines for configuration are as follows:
There is no specific default setting available for Community Index and Community Name. The values (NETMAN or PUBLIC) are available only at the time of boot-up.
Feature | Default Setting |
---|---|
SNMP engine ID | Generally, taken from the file issnvram.txt; otherwise, it is 80.00.08.1c.04.46.53. |
Group Name | iso/initial |
View Name (associated with the group name) | None |
Sub-tree OID | 1 |
Sub-tree Mask | 1 |
View-type | included |
User name | initial/templateSHA/templateMD5 |
Authentication Protocol (associated with the user name) |
|
Authentication Protocol (associated with the user name) |
|
Storage type | Non-volatile |
Refer to Figure SNMP -Topology 1 for Topology Setup. Execute the following commands in the SNMP Agent (Switch1) to allow SNMPv3 access, with SNMP Manager (Host1).
Type the following:
iS5comm# configure terminal
iS5comm (config)# enable snmpagent
iS5comm(config)# snmp engineid 80.00.08.1c.04.46.64
iS5comm(config)# snmp group group3 user user3 security-model v3
iS5comm(config)# snmp access group3 v3 priv read v3read write v3write notify none
iS5comm(config)# snmp view v3read 1 included
snmp view v3write 1 included
iS5comm# exit
iS5comm# show snmp engineid
Community Index : 80.00.08.1c.04.46.64
iS5comm# show snmp user
Community Index : Engine ID : 80.00.08.1c.04.46.64
User : user1
Authentication Protocol : None
Privacy Protocol : None
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Engine ID : 80.00.08.1c.04.46.64
User : user2
Authentication Protocol : None
Privacy Protocol : None
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Engine ID : 80.00.08.1c.04.46.64
User : user3
Authentication Protocol : SHA
Privacy Protocol : DES_CBC
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Engine ID : 80.00.08.1c.04.46.64
User : noAuthUser
Authentication Protocol : None
Privacy Protocol : None
Storage Type : Nonvolatile
Row Status : Active
-----------------------------
Engine ID : 80.00.08.1c.04.46.64
User : templateMD5
Authentication Protocol : MD5
Privacy Protocol : None
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Engine ID : 80.00.08.1c.04.46.64
User : templateSHA
Authentication Protocol : SHA
Privacy Protocol : AES_CFB128
Storage Type : Nonvolatile
Row Status : Active
------------------------------
iS5comm# show snmp group
Security Model : v1
Security Name : none
Group Name : iso
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Security Model : v1
Security Name : user1
Group Name : group1
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Security Model : v2c
Security Name : none
Group Name : iso
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Security Model : v2c
Security Name : user2
Group Name : group2
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Security Model : v3
Security Name : user3
Group Name : group3
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Security Model : v3
Security Name : noAuthUser
Group Name : noAuthUser
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Security Model : v3
Security Name : templateMD5
Group Name : noAuthUser
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Security Model : v3
Security Name : templateSHA
Group Name : noAuthUser
Storage Type : Nonvolatile
Row Status : Active
------------------------------
iS5comm# show snmp group access
Group Name : iso
Read View : iso
Write View : iso
Notify View : iso
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Group Name : iso
Read View : iso
Write View : iso
Notify View : iso
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Group Name : group2
Read View : iso
Write View : iso
Notify View : iso
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Group Name : group2
Read View : iso
Write View : iso
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Group Name : group3
Read View : v3read
Write View : v3write
Notify View :
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Group Name : group3
Read View : v3read
Write View : v3write
Notify View :
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Group Name : noAuthUser
Read View : restricted
Write View : restricted
Notify View : restricted
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Group Name : noAuthUser
Read View : iso
Write View : iso
Notify View : iso
Storage Type : Nonvolatile
Row Status : Active
------------------------------
Group Name : noAuthUser
Read View : iso
Write View : iso
Notify View : iso
Storage Type : Nonvolatile
Row Status : Active
------------------------------
iS5comm# show snmp viewtree
View Name : iso
Subtree OID : 1
Subtree Mask : 1
View Type : Included
Storage Type : Nonvolatile
Row Status : Active
------------------------------
View Name : v3read
Subtree OID : 1.3.6.1.2.1.17.7.1.4.5.1
Subtree Mask : 1.1.1.1.1.1.1.1.1.1.1.1
View Type : Included
Storage Type : Nonvolatile
Row Status : Active
------------------------------
View Name : v3write
Subtree OID : 1.3.6.1.2.1.17.7.1.4.5.1
Subtree Mask : 1.1.1.1.1.1.1.1.1.1.1.1
View Type : Included
Storage Type : Nonvolatile
Row Status : Active
------------------------------
View Name : restricted
Subtree OID : 1
Subtree Mask : 1
View Type : Included
Storage Type : Nonvolatile
Row Status : Active
------------------------------