One of the great advantages of OpsMgr 2007 against MOM 2005 is that you can easily test OpsMgr 2007 scripts from the command prompt.
Just go to the C:\Program Files\System Center Operations Manager 2007\Health Service State and open a command prompt.
Type DIR /B /S *.vbs and you find all the scripts that are used on that specific agent. And if you have found your script to debug you can easily run it with cscript and see what happens.
But what if a scripts needs some parameters? Most of the time these are GUIDS and how do you find the right parameters?
A colleague of mine Dirk van Coeverden found an easy way to find these parameters.
Let’s Look at the Operational Database Space Free (%) Monitor.
This Monitor uses a vbscript GetOpsMgrDBPercentageFreeSpace.vbs which needs two parameters to work
So if we want to debug this script we need two parameters; DatabaseServerName and DatabaseName.
How do we find those parameters?
First we need to go to the Authoring Pane in the Opsmgr Console and find the monitor which runs this script.
Then we change the default timeout of the script to something smaller then the default with an override. Say 1 second.
Now we have to wait for this monitor to run again and hopefully see that the script timeouts because of the lower timeout settings. And if the script runs longer than the timeout period an event 21402 – Script ran longer than the timeout period will be created.
Now you can debug the script from the commandprompt with the correct parameters. Don’t forget to remove the overrides.
Courtesy of Stefan Stranger - http://blogs.technet.com/stefan_stranger/archive/2008/12/07/debugging-opsmgr-scripts.asp
keep in mind that most script have a few characters that are HTMLEncoded, therefore if you copy&past the script from within the XML you will have to do some modifications to let them run on the OS... for example
"&" becomes "&"
"$gt;" becomes ">"
"$lt;" becomes "<"
Thanks for the info. Forgot to mention that.
Source: System Center Forum Today I was watching the latest recording of the January 2009 SCUG Meeting
Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?
For more info on showbox please refer below sites:
Latest version of Showbox App download for all android smart phones and tablets.
http://movieboxappdownloads.com/ - It’s just 2 MB file you can easily get it on your android device without much trouble. Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.
For showbox on iOS (iPhone/iPad), please read below articles:
Showbox for PC articles:
There are countless for PC clients as it is essentially easy to understand, simple to introduce, gives continuous administration, effectively reasonable. it is accessible at completely free of expense i.e., there will be no establishment charges and after establishment
it doesn't charge cash for watching films and recordings. Not simply watching, it likewise offers alternative to download recordings and motion pictures. The accompanying are the strides that are to be taken after to introduce Showbox application on Android.
The above all else thing to be done is, go to the Security Settings on your Android telephone, Scroll down and tap on 'Obscure sources'.