CmdID

CmdID / Commands

evntcmd

Configures the translation of events to traps, trap destinations, or both based on information in a configuration file. Windows commands reference

On Windows File evntcmd.exe

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0
evntcmd [/s <computername>] [/v <verbositylevel>] [/n] <filename>
#pragma add <eventlogfile> <eventsource> <eventID> [<count> [<period>]]
#pragma delete <eventlogfile> <eventsource> <eventID>
#pragma add_TRAP_DEST <communityname> <hostID>
#pragma delete_TRAP_DEST <communityname> <hostID>
#pragma add System Eventlog 2147489653
#pragma add System Eventlog 2147489653 2 180
#pragma delete System Eventlog 2147489653
#pragma add_TRAP_DEST public 192.168.100.100
#pragma add_TRAP_DEST private Host1
#pragma delete_TRAP_DEST private localhost
/s <computername>Specifies, by name, the computer on which you want to configure the translation of events to traps, trap destinations, or both. If you do not specify a computer, the configuration occurs on the local computer.
/v <verbositylevel>Specifies which types of status messages appear as traps and trap destinations are configured. This parameter must be an integer between 0 and 10. If you specify 10, all types of messages appear, including tracing messages and warnings about whether trap configuration was successful. If you specify 0, no messages appear.
/nSpecifies that the SNMP service should not be restarted if this computer receives trap configuration changes.
<filename>Specifies, by name, the configuration file that contains information about the translation of events to traps and trap destinations you want to configure.
/?Displays help at the command prompt.