Technical data

38 ServerIron ADX Administration Guide
53-1002434-01
Configuring SNMP
1
ServerIronADX(config)# snmp-server trap-source ethernet 4
Syntax: [no] snmp-server trap-source ethernet <portnum> | ve <num>
The ethernet <portnum> parameter specifies a physical port on the device. Alternatively, you can
specify a virtual interface using the ve <num> parameter, where <num> is the number of a virtual
interface configured on the device. It uses the lowest-numbered address on the interface.
NOTE
The command snmp-server trap-source will change the source IP address used for syslog messages
to a syslog server.
Configuring an SNMP view
You can use an SNMP view as an argument with other commands.
SNMP views are named groups of MIB objects that can be associated with user accounts to allow
limited access for viewing and modification of SNMP statistics and system configuration. SNMP
views can also be used with other commands that take SNMP views as an argument. SNMP views
reference MIB objects using object names, numbers, wildcards, or a combination of the three. The
numbers represent the hierarchical location of the object in the MIB tree. You can reference
individual objects in the MIB tree or a subset of objects from the MIB tree.
To configure an SNMP view, enter commands such as the following.
ServerIronADX(config)# snmp-server view Maynes system included
ServerIronADX(config)# snmp-server view Maynes system.2 excluded
ServerIronADX(config)# snmp-server view Maynes 2.3.*.6
ServerIronADX(config)# write mem
Syntax: [no] snmp-server view <name> <mib_tree> included | excluded
The <name> parameter can be any alphanumeric name you choose to identify the view. The names
cannot contain spaces.
The <mib_tree> parameter is the name of the MIB object or family. MIB objects and MIB sub-trees
can be identified by name or by the numbers representing the position of the object or sub-tree in
the MIB hierarchy. You can use a wildcard (*) in the numbers to specify a sub-tree family.
The included | excluded parameter specifies whether the MIB objects identified by the
<mib_family> parameter are included in the view or excluded from the view.
NOTE
The snmp-server view command supports the MIB objects as defined in RFC 1445.
Clearing all statistics for SNMP server traffic
To clear all statistics for SNMP server traffic, enter the following command.
ServerIronADX# clear snmp-server traffic
Syntax: clear snmp-server traffic