How to use CA SystemEDGE utilites to test if a machine can send traps using edgetrapmon and sendtrap.

Document ID : KB000023376
Last Modified Date : 14/02/2018
Show Technical Document Details

Question: 

How do I use CA SystemEDGE utilites to test if a machine can send traps using edgetrapmon and sendtrap?

Environment:  

ANY

Answer: 

In the bin directory of a CA SystemEDGE installation there are two commands that can be very useful when checking for connectivity between two servers. 

NOTE: This check would only be for trap activity on port 162.

The commands are titled sendtrap and xtrapmon. They can be found in:

Windows:

     C:\Program Files\CA\SystemEDGE\bin

UNIX:

     /opt/CA/SystemEDGE/bin

 

How to check connectivity: 

 

1)  Move the edgetrapmon command from the SystemEDGE server to a temp (/tmp) directory on the destination server

 

2)  On the destination server stop all other trap receiving applications using port 162

 

3)  From a command prompt on the destination server, launch the edgetrapmon command:

EXAMPLE
Windows:
     C:\temp> edgetrapmon

UNIX:
     /tmp/edgetrapmon

NOTE: UNIX users need to execute the command as root user.

The command will not return to a command prompt as it is waiting for traps to arrive. Once a trap arrives, it will be displayed in the same command prompt.

 

4)  From the SystemEDGE server execute the following sendtrap command:

EXAMPLE
Windows:

C:\Program Files\CA\SystemEDGE\bin>sendtrap -v 1 -h <hostname>  -c admin  1.3.6.1.4.1.546 6 1023 1.3.6.1.4.1.546.11.1.1 -i 42 1.3.6.1.4.1.546.11.1.2 -s "str"

OR

UNIX:

/opt/CA/SystemEDGE/bin/sendtrap -v 1 -h <hostname>  -c admin  1.3.6.1.4.1.546 6 1023 1.3.6.1.4.1.546.11.1.1 -i 42 1.3.6.1.4.1.546.11.1.2 -s "str"

This command will also not return to a command prompt you must send a SIGABRT.

     Ctrl+c

If connectivity is present between the two servers, a trap like the following will be seen in the command prompt of the destination server:

C:\Program Files\CA\SystemEDGE\bin>edgetrapmon

edgetrapmon: Copyright (C) 2015 CA

edgetrapmon: SNMPv3 configuration file 'C:\Users\Public\CA\SystemEDGE\\port1691\

sysedgeV3.cf' succesfully loaded.

edgetrapmon: Listening for SNMP traps on port 162 ...

 

Trap Number: 1

        Time:           Fri Feb 05 13:39:42 2016

        Community:      admin

        Agent Address:  0000:0000:0000:0000:0000:0000:0000:0001

        Enterprise:     1.3.6.1.4.1.546

        Trap Type:      Vendor Specific

        Specific Trap:  1023

        Object:1.3.6.1.4.1.546.11.1.1 Value:42

        Object:1.3.6.1.4.1.546.11.1.2 Value:str

 

Additional Information:

More information on the sendtrap command can be found in the SystemEDGE User Guide.