A.5 SNMP Trap Utility

The NetIQ Corporation SNMP trap program, NetIQSNMPTrap.exe, is a command-line program used to generate and send enterprise-specific SNMP traps. This program provides backend support for AppManager actions that send SNMP traps in response to events.

The basic syntax for the NetIQSNMPTrap.exe program is:

NetIQSNMPTrap [-a agent] [-c community_name] 
[-d destination] [-f filename] [-i] [-m message]
[-o trap_oid] [-p trap_port] [-s specific_number] 
[-v agent_varbind_oid]

The program supports the following options:

Option

Description

-a agent

Specifies the name of the computer originating the trap.

-c community_name

Specifies the community name to use.

-d destination

Specifies the SNMP destination or trap sink manager computer.

-f filename

Specifies the full path to the file containing a custom trap message.

-i

Installs or reset the registry entries under HKEY_LOCAL_MACHINE\Software\NetIQ\AppManager \4.0\NetIQmc\SNMPTRAP\Config to their default values.

-m message

Specifies the message associated with the trap.

-o trap_oid

Specifies the enterprise-specific Object Identifier.

-p trap_port

Specifies the port that receives SNMP traps.

-s specific_number

Specifies the enterprise-specific trap number.

-v agent_varbind_oid

Specifies one varbind object identifier for all SNMP traps containing the default AppManager event information or your custom message.