Set trap destination, To add a trap destination entry (-a), To modify a trap destination entry (-m) – 3Com CommWorks 5210 User Manual

Page 110: To delete a trap destination entry (-d)

Advertising
background image

110 A

PPENDIX

: C

OMMAND

L

INE

I

NTERFACE

[-p seconds]

Sets amount of time, in seconds, between polls.

Target

Follows general syntax. Note that if you omit a channel range, the command is
assumed to be targeted at the slot level. This applies as well to timeslot
designations for commands sent to T1 cards-if the timeslot is omitted, the
command will issued at the channel (span) level.

Set Trap Destination

The following commands are used to define where the traps are to send there
output.

Except for the general syntax, the following trap destination-specific syntax
must appear after the target designation in the command string.

To List Current Trap Destination Entries (-q)

Use the following command:

tcmtrap

target -q

To Add a Trap

Destination Entry (-a)

Use the following command, notice that the target must be supplied.

tcmtrap

target [-a ipaddr trapcomm comment]

Where:

ipaddr—IP address of destination device to be added.

trapcomm—Community string to supply with trap.

comment—Insert a descriptive comment—use shell quoting if necessary.

To Modify a Trap

Destination Entry (-m)

Use the following command to change a current entry, where ipaddr is the IP
address of the entry to change, and the other parameters are the information
that will replace the old information.

tcmtrap

target [-m ipaddr trapcomm comment]

To Delete a Trap

Destination Entry (-d)

To delete a trap destination entry, use the following command, where ipaddr is
the IP address of the entry to be deleted:

tcmtrap

target [-d ipaddr]

Advertising