Microsoft® Windows® 2000 Scripting Guide
« Previous | Next »
Tracking stop events and the details about those stop events can help you determine whether a particular problem is endemic to one computer or if it is occurring on other computers in your organization. Because stop events are recorded in the System Event log, you can create a script that periodically queries the System Event log on a computer or set of computers and checks to see whether any stop events have occurred.
Each time a stop event occurs, a record is saved with the following parameters:
The event description will look similar to the following:
The computer has rebooted from a bugcheck. The bugcheck was: 0x000000e2 (0x00000000, 0x00000000, 0x00000000, 0x00000000). Microsoft Windows 2000 [v15.2195]. A dump was saved in: C:\WINNT\MEMORY.DMP.
You can use the Win32_NTLogEvent class to periodically query the System Event Log and retrieve the details of each stop event.
Listing 8.23 contains a script that queries the System Event Log for all stop events. To carry out this task, the script must perform the following steps:
Include a WHERE clause to limit the records retrieved only to those events found in the System Event Log that have the source name Save Dump.
Listing 8.23 Querying the System Event Log for Stop Events
|
|
Before you configure recovery options on a production computer, it is helpful to know the actual impact of these options. In particular, you will want to know the size of the dump file that will be generated and how much time it takes the computer to create the dump file and restart. To see what happens to a particular computer if a stop event occurs, you can add an entry to the registry and manually generate a stop event.
Caution
To add an entry to the registry
After the computer has restarted, you can generate a stop event.
To manually generate a stop event
A stop event will occur, and a stop error will be displayed with the following message:
*** STOP: 0x000000E2 (0x00000000, 0x00000000, 0x00000000, 0x00000000) The end-user manually generated the crashdump.
After generating a stop event, the computer will be inoperable until it has been restarted. After the restart, complete functionality will be restored.
Send us your feedback | « Previous | Next » |