AMX NXA-ENET24 Switch User Manual


 
CLI (Command Line Interface)
227
NXA-ENET24 - Software Management Guide
SNMP Commands (Cont.)
Command Function
snmp-server engine-id
Use this command to
configure an identification
string for the SNMP v3
engine.
Use the no form to restore
the default.
Syntax:
snmp-server engine-id local engineid-string
no snmp-server engine-id local
engineid-string - String identifying the engine ID. (Range: 1-26 hexadecimal
characters)
Default Setting: A unique engine ID is automatically generated by the switch
based on its MAC address.
Command Mode: Global Configuration
Command Usage: An SNMP engine is an independent SNMP agent that
resides on this switch. This engine protects against message replay, delay, and
redirection. The engine ID is also used in combination with user passwords to
generate the security keys for authenticating and encrypting SNMPv3 packets.
Trailing zeroes need not be entered to uniquely specify a engine ID. In other
words, the value “1234” is equivalent to “1234” followed by 22 zeroes.
A local engine ID is automatically generated that is unique to the switch. This is
referred to as the default engine ID. If the local engineID is deleted or changed,
all SNMP users will be cleared. You will need to reconfigure all existing users
(page 112).
Example:
Console(config)#snmp-server engineID local 12345
Console(config)#
show snmp engine-id
Use this command to show
the SNMP engine ID.
Command Mode: Privileged Exec
Example: This example shows the default engine ID:
Console#show snmp engine-id
Local SNMP engineID: 8000002a8000000000e8666672
Local SNMP engineBoots: 1
Local SNMP engineID: String identifying the engine ID.
Local SNMP engineBoots: The number of times that the engine has (re-
)initialized since the snmpEngineID was last configured.
snmp-server view
Use this command to add an
SNMP view that controls
user access to the MIB.
Use the no form to remove
an SNMP view.
Syntax:
snmp-server view view-name oid-tree {included | excluded}
no snmp-server view view-name
view-name - Name of an SNMP view. (Range: 1-64 characters)
oid-tree - Object identifier of a branch within the MIB tree. Wildcards can be
used to mask a specific portion of the OID string. (Refer to the examples.)
included - Defines an included view.
excluded - Defines an excluded view.
Default Setting: defaultview (includes access to the entire MIB tree)
Command Mode: Global Configuration
Command Usage: Views are used in the snmp-server group command to
restrict user access to specified portions of the MIB tree.
The predefined view “defaultview” includes access to the entire MIB tree.
Example: This view includes MIB-2:
Console(config)#snmp-server view mib-2 1.3.6.1.2.1 included
Console(config)#
Example: This view includes the MIB-2 interfaces table, ifDescr. The wildcard is
used to select all the index values in this table:
Console(config)#snmp-server view ifEntry.2 1.3.6.1.2.1.2.2.1.*.2
included
Console(config)#
Example: This view includes the MIB-2 interfaces table, and the mask selects
all index entries:
Console(config)#snmp-server view ifEntry.a 1.3.6.1.2.1.2.2.1.1.*
included
Console(config)#