![](/images/new-backgrounds/1268455/268455491x1.webp)
Chapter 12 Complete Command List
set snmp manager <INDEX> <IPADDRESS> <TRAP-COMMUNITY>
The NIC continuously generates traps. To set the NIC to send traps to a particular SNMP manager, use this command to add an SNMP manager to the trap table.
<index> is the index number of the trap table. <ipaddress is the IP address of the SNMP manager receiving traps. <trap- community> is the community string sent along with the trap information.
set snmp trapport <INDEX> <UDP_PORT>
Set the UDP port number in the SNMP trap manager table. This value should correspond to the port number monitored by the SNMP manager application running on the host at the IP address specified in the ‘set snmp manager’ command.
<index> is the index number of the SNMP trap manager table. <udp_port> is the desired UDP port number. Acceptable values are 162, and 49152 through 65535.
set snmp trap <INDEX>
Enable or disable an SNMP trap manager table entry.
The index is the index number of the SNMP trap manager table. “active” enables the table entry,
set snmp emailaddr <INDEX> <EMAILADDRESS>
The NIC can also send SNMP alert messages to a desired
<index> is the index number of the SNMP trap manager table. The emailaddress is the desired
242