Solved

Writing to the Event log

Posted on 2004-09-27
3
129 Views
Last Modified: 2010-05-18
Hi

I am sure there is a tool that will let you write to the event log (command line). Can anyone remind me what it is please?

Many thanks

Ste
0
Comment
Question by:stewatts
  • 2
3 Comments
 
LVL 1

Expert Comment

by:jrgn
ID: 12160238
You can use the resourcekit tool logevent.

Cheers,

Jurgen
0
 
LVL 23

Accepted Solution

by:
DanCh99 earned 20 total points
ID: 12160307
logevent.exe from the Server 2000 Resource Kit will do the job:

logevent -m \\<servername> -s W -t 50 -r "UPS triggering shutdown" -e 1 "MainBodyText"

-m = name of machine where you want the event log written
s = severity
  S: Success
  I: Information (This is the default setting. If you do not specify a severity level, Logevent.exe uses I.)
  W: Warning
  E: Error
  F: Failure
-t = timeout, default is 60,000 seconds
-r = event heading
-e= event type, 1 is default (not mandatory)

I use it when my UPS triggers remote shutdowns, and it works pretty well.  
0
 
LVL 23

Expert Comment

by:DanCh99
ID: 12174077
cheers!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now