SCOM Trick 28 – Creating test events

When working on new management pack with monitors or rules that watch the event log for a certain event you might want the possibility to test if it actually works without wrecking your server first to create the event. So in the MOM resource kit there was a tool Event Creator to generate events for testing purposes. Now we also have different methods to do this.
One of the default methods is to use the eventcreate command from a command line. Just type eventcreate /? In an elevated command prompt and you get all the options. One drawback is that it creates events up to ID number 1000. If you want higher you need another method.
Stefan Stranger wrote a PowerShell script to create events:
http://blogs.technet.com/b/stefan_stranger/archive/2008/05/08/new-powershell-event-creator-for-operations-manager-2007.aspx
Also Marnix Wolf wrote about a free tool called pgevent:
http://thoughtsonopsmgr.blogspot.com/2009/08/event-creation-for-testing.html

Back to the SCOM Tricks general list