How to Debug SCOM agent

Sometimes it happens that agent starts crashing. If I cannot get exact cause from logs then it is time for some debugging. This is how I do it:

1. Open CMD in elevated mode (run as administrator)
2. type in: cd “C:\Program Files\Microsoft Monitoring Agent\Agent\Tools”
3. Run stoptracing.cmd
4. Delete or move all files in: c:\windows\logs\opsmgrtrace
5. Then Run: starttracing.cmd VER
6. Wait for the problem to occur or if possible trigger it
7. Once problem is observed run: stoptracing.cmd
8. Then run: formattracing.cmd
9. Copy log files to your computer

To analyze logs I usualy use SCCM tool: SMS Trace

Tool can be downloaded from here

Select:

InstallSMStrace

Provide folder where you want it to be installed and open desired log files and start diggning 🙂

This how SMS Trace looks like:

SMStrace

Happy SCOMing
Jure

Advertisements
This entry was posted in Operations Manager, Troubleshooting and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s