Technical data

Network OS Message Reference 7
53-1002489-01
Configuring the SNMP server hosts
1
Port logs
The Network OS maintains an internal log of all port activity. Each switch or logical switch maintain
a log file for each port. Port logs are circular buffers that can save up to 8,000 entries per logical
switch. When the log is full, the newest log entries overwrite the oldest log entries. Port logs capture
switch-to-device, device-to-switch, switch-to-switch, some device A-to-device B, and control
information. Port logs are not persistent and are lost over power cycles and reboots.
Port log functionality is completely separate from the system message log. Port logs are typically
used to troubleshoot device connections.
Configuring the SNMP server hosts
Network OS v2.1.1 supports SNMP version 1, version 2c, and version 3. Use the commands listed
in Table 3 to configure the SNMPv1, SNMPv2c, and SNMPv3 hosts and their configurations.
Configuring the SNMP (version 1 or version 2c) server host
To set the trap destination IP addresses, version (1 or 2c), community string for SNMP version 1
and version 2c, and the destination port for the SNMP traps, perform the following steps.
1. Execute the configure terminal command to access the global configuration level of the CLI.
switch# configure terminal
Entering configuration mode terminal
2. Execute the following command to set the trap recipient with IP address 172.26.1.93, which
receives all traps with the severity levels of Critical, Error, Info, and Warning.
switch(config)# snmp-server host 172.26.1.93 public severity-level Info
udp-port 162 version 1
NOTE
To receive the traps, the management station IP address must be configured on the switch.
3. Execute the do show running-config snmp-server command to verify the configuration.
switch(config)# do show running-config snmp-server
snmp-server contact "Field Support."
snmp-server location "End User Premise."
TABLE 3 Commands for configuring SNMP server hosts
Command Description
[no] snmp-server host ipv4 host
community-string [version [1 | 2c]]
[udp-port port] [severity-level [None |
Debug | Info | Warning | Error | Critical]]
This command sets the destination IP addresses, version, community
string (for version 1 and version 2c), and destination port for the
traps.
The severity-level option is added to filter the traps based on severity.
The no form of the command changes the SNMP server host
configurations to the default value.
[no] snmp-server v3host host-addr
username [notifytype {traps | informs}]
engineid engine-id udp-port port_number
severity-level [None |Debug | Info |
Warning | Error | Critical]
This command specifies the recipient of the SNMP version 3
notification option.
The severity-level option is added to filter the traps or informs based
on severity.
Use the no form of the command to remove the specified host.