The TRPCNTRL command lets you manipulate all or selected records in the TRAP and MIB translation tables.
Note: This command applies only to Windows.
Disable/Enable TRAP Records
To disable a single TRAP record, use the following syntax:
TRPCNTRL disable trap e=Eid g=Gen s=Spc
For example, the following command disables the automatic formatting of the Link Layer Operational trap:
TRPCNTRL disable trap e=1.3.6.1.2.1.10.16 g=6 s=1
To enable the TRAP record shown previously, enter the following command:
TRPCNTRL enable trap e=1.3.6.1.2.1.10.16 g=6 s=1
Enable or disable multiple TRAP records by using wildcards in the keywords. For example, the following command disables all TRAP records that have an Eid column beginning with 1.3.6.1.4.1.199.1:
TRPCNTRL disable trap e=1.3.6.1.4.1.199.1.*
Notify CATRAPD of Changes
After modifying TRAP or MIB records, issue the TRPCNTRL refresh command to notify CATRAPD of the changes.
List MIB or TRAP Records
To list MIB or TRAP records of a specific MIB or group of MIBs, use the following syntax:
TRPCNTRL list mib: m=<mib-name/mib-mask>
TRPCNTRL list trap m=<mib-name/mib-mask>
For example:
TRPCNTRL list mib: m=RFC1157
TRPCNTRL list trap m=RFC*
TRPCNTRL list trap enabled=N
For more information about TRPCNTRL, see the online CA Reference.
|
Copyright © 2010 CA.
All rights reserved.
|
|