2-86 SPARC Enterprise Mx000 Servers XSCF User’s Guide • August 2009
Enabling/Disabling the SNMPv1 and SNMPv2c Communication
â– Command operation
1. Use the showsnmp(8) command to display SNMP settings.
2. Use the setsnmp(8) command to enable the SNMPv2c agent.
3. Use the setsnmp(8) command to enable the SNMP agent.
4. Use the setsnmp(8) command to confirm enabling/disabling of the SNMP.
Setting the SNMPv1 and SNMPv2c Trap
â– Command operation
1. Use the showsnmp(8) command to display the SNMP settings.
2. Use the setsnmp(8) command to set the SNMPv1 or SNMPv2c trap.
3. Confirm the SNMPv1 and SNMPv2c trap settings.
XSCF> showsnmp
<Example 1> Enable SNMPv1 and SNMPv2c
XSCF> setsnmp enablev1v2c public
<Example 2> Disable SNMPv1 and SNMPv2c
XSCF> setsnmp disablev1v2c
XSCF> setsnmp enable
XSCF> showsnmp
XSCF> showsnmp
<Example 1> Specifying the type for SNMPv2c.
XSCF> setsnmp addtraphost -t v2 -s public host2
<Example 2> Specifying the type for SNMPv1.
XSCF> setsnmp addtraphost -t v1 -s public host1
XSCF> showsnmp