Setting the snmpv1 and snmpv2c trap – FUJITSU SPARC M4000 User Manual

Page 136

Advertising
background image

2-80

SPARC Enterprise Mx000 Servers XSCF User’s Guide • April 2008

Enabling/Disabling the SNMPv1 and SNMPv2c Communication

Command operation

1. Use the showsnmp (8) command to display SNMP settings.

XSCF> showsnmp

2. Use the setsnmp (8) command to enable the SNMPv2c agent.

<Example 1> Enable SNMPv1 and SNMPv2c

XSCF> setsnmp enablev1v2c public

<Example 2> Disable SNMPv1 and SNMPv2c

XSCF> setsnmp disablev1v2c

3. Use the setsnmp (8) command to enable the SNMP agent.

XSCF> setsnmp enable

4. Use the setsnmp (8) command to confirm enabling/disabling of the SNMP.

XSCF> showsnmp

Setting the SNMPv1 and SNMPv2c Trap

Command operation

1. Use the showsnmp (8) command to display the SNMP settings.

XSCF> showsnmp

2. Use the setsnmp (8) command to set the SNMPv1 or SNMPv2c trap.

<Example> Specifying the type for SNMPv2c.

XSCF> setsnmp addtraphost -t v2 -s public host2

3. Confirm the SNMPv1 and SNMPv2c trap settings.

XSCF> showsnmp

Advertising