Quick Reference Guide
334 SNMP Commands
• If a trap and inform are defined on the same target, and an inform was sent, the trap is not sent.
• The IPv6Z address format: <
ipv6-link-local-address
>%<
interface-name
>
–
interface-name
—
vlan
<
integer
> |
ch
<
integer
> |
isatap
<
integer
> | <
physical-port-name
> | 0
–
integer
— <
decimal-number
> | <
integer
><
decimal-number
>
–
decimal-number
— 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
–
physical-port-name
— Designated port number, for example g1.
If the egress interface is not specified, the default interface is selected. Specifying interface zone=0 is
the same as not defining an egress interface.
Example
The following example specifies the recipient of Simple Network Management Protocol notification
operation.
snmp-server set
The snmp-server set Global Configuration mode command sets SNMP MIB value by the CLI.
Syntax
•
snmp-server set
variable-name name1 value1 [name2 value2 …]
•
variable-name
— MIB variable name.
•
name value
— List of name and value pairs. In case of scalar MIBs there is only a single pair of
name values. In case of entry in a table the first pairs are the indexes, followed by one or more
fields.
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration mode.
User Guidelines
• Although the CLI can set any required configuration, there might be a situation where a SNMP user
sets a MIB variable that does not have an equivalent command. In order to generate configuration files
that support those situations, the
snmp-server set
command is used.
•
This
command is context sensitive.
Console (config)# snmp-server host 10.1.1.1 management 2
5400_CLI.book Page 334 Wednesday, December 17, 2008 4:33 PM