Users Guide

218 Fabric OS Administrator’s Guide
53-1002920-02
Simple Network Management Protocol
7
Configuring SNMP using CLI
For information about Fabric OS commands for configuring SNMP, refer to the Fabric OS Command
Reference.
Configuring SNMP security level
The following example sets the SNMP security level to 1 (authentication only). This setting allows all
SNMPv1 users to perform GET and SET operations on MIBs, but creates an exception for SNMPv3
users that do not have authentication and privacy privileges (noAuthnoPriv).
switch:admin> snmpconfig --set seclevel
Select SNMP Security Level
(0 = No security, 1 = Authentication only, 2 = Authentication and Privacy, 3 =
sxNo Access): (0..3) [0]
Select SNMP SET Security Level
(0 = No security, 1 = Authentication only, 2 = Authentication and Privacy, 3 =
No Access): (0..3) [0]
Table 32 shows the security level options.
Configuring SNMPv3 user/traps
The following examples list how to configure SNMPv3 users/traps.
1. Create a user on the switch in non-VF Context using CLI userconfig, with the required role.
switch:admin> userconfig --add fa_adm -r fabricadmin -h0 -a 0-255
Setting initial password for fa_adm
Enter new password:********
Re-type new password:********
Account fa_adm has been successfully added.
switch:admin>
Create a user on the switch in VF Context using CLI userconfig, with the required role.
switch:admin> userconfig --add sa_user -r switchadmin -l 1-128 -h1 -c admin
Setting initial password for sa_user
Enter new password:********
Re-type new password:********
Account sa_user has been successfully added.
switch:admin>
TABLE 32 Security level options
Security level Protocol Query behavior Traps
No security [0]
(noAuthnoPriv)
SNMPv1
SNMPv3
Allowed.
Allowed.
Sent.
Sent.
Authentication only [1]
(authNoPriv)
SNMPv1
SNMPv3
Allowed.
All SNMPv3 users allowed except
noAuthNoPriv users.
Sent.
Sent for all SNMPv3 users
except noAuthNoPriv users.
Authentication and
Privacy [2]
(authPriv)
SNMPv1
SNMPv3
Not allowed.
Only SNMPv3 users with authPriv
privilege are allowed.
Not Sent.
Sent only for authPriv users.
No Access [3]SNMPv1
SNMPv3
Not allowed. Not Sent.