Skip to main content

10.3.11 Configuring SNMPv1 and SNMPv2c Traps

10.3.11 Configuring SNMPv1 and SNMPv2c Traps
Select a trap type from the following three:
  1. - v1
  2. - v2
  3. - inform
If inform is specified, InformRequest is transmitted using the SNMPv2c agent.

The default port number for the trap destination is 162.
  1. Execute the showsnmp command to display the SNMP settings.
XSCF> showsnmp
  1. Execute the setsnmp command to configure SNMPv1 or SNMPv2c traps.
    The following example specifies, along with the addtraphost operand, the SNMPv2c type.
XSCF> setsnmp addtraphost -t v2 -s public host2
  1. The following example specifies the SNMPv1 type.
XSCF> setsnmp addtraphost -t v1 -s public host1
  1. Execute the showsnmp command, and confirm the SNMPv1 and SNMPv2c trap settings.
XSCF> showsnmp