?
Solved

Writing to the Event log

Posted on 2004-09-27
3
Medium Priority
?
136 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:
Danny Child earned 80 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:Danny Child
ID: 12174077
cheers!
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
The Summer 2017 Scholarship Winners have been announced!
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

800 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