Eventcmd Command In Windows Server 2008

This article describes Eventcmd command in windows server 2008 operating system and also explains its syntax.
  • 1650

Introduction

Eventcmd command is Windows Server 2008 command line tool. Based on information in configuration file, event command configures the translation of events to traps, trap destinations or both based on information in a configuration file. Basic syntax for using eventcmd command is given below.

Eventcmd command syntax

eventcmd [/s <ComputerName>] [/v <VerbosityLevel>] [/n] <FileName>

Parameters

Parameter Description
/s <ComputerName> Defines the computer name on which you want to use eventcmd command. If you do not specify a computer, the configuration occurs on the local computer.
/v <VerbosityLevel> Defines types of status messages appears as trap and configures the trap destinations. Parameter must be  an integer between 0 and 10. If you assign 10 then all types of messages appear, including tracing messages and warnings and if you assign 0 then message is not displayed.
/n Specifies that the SNMP service should not be restarted if this computer receives trap configuration changes.
<FileName> Defines configuration file name that contains information about the translation of events to traps.

Examples

To send a trap message if the event log service is restarted.

#pragma ADD System "Eventlog" 2147489653

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.