02-03-2005 09:19 AM
1) is there a command line tool to pause monitoring for a specific hostname for SIM 4.2?
2) is there a document file that can help me find answers to questions about the HP SIM command line tools in the future? Hunting on the HP web site and locally on the SIM server proved fruitless for me. :(
02-03-2005 06:32 PM
Yes, but unfortunately not directly. Using the 'mxnode' command with an .XML input file should do the trick. But since you want to make it independant of a node you need to generate the .XML on the moment you need it with the node specific info in it.
Sorry, i do not have an working example for you. Maybe somebody else already tweaked a nifty .BAT or .VBS script.
On the web (www.hp.com/go/hpsim in the information library area) or on the Management CD itself there is a PDF (hpsim_userguide). Check chapter 11 'HP Systems Insight Manager commands.
Or when you started the SIM GUI go to: Help - For HP Systems Insight Manager - select 'table of contenst' - on that page search for 'command line interface'. There are all the commands and pointers to the specific help of that command.
02-04-2005 03:53 AM
(thanks to a google search believe it or not)
That web page provides a detailed manual for the mxnode tool. Given that, I was able to write a quick little perl script that will write an xml file that mxnode can use to control monitoring on a specific host.
Thanks for the pointer to the mxnode command.
06-24-2005 08:30 AM
"Suspend/Resume Monitoring" can be done with the mxnode command to modify using an XML file. It would look like this:
mxnode -m -f FILENAME
...with the XML file formatted like:
Where PARAMETER can be suspend, suspend.5m, suspend.15m, suspend.1h, suspend.1d or resume.
07-19-2005 01:22 AM
And can you select multiple systems to apply it to? I think this maybe exactly what one of my customers is looking for.
07-19-2005 01:59 AM
I'm not sure what you are asking for in regards to "incorporating" the script. Scripting the HP tool mxnode has nothing to do with the insight manager environment or menus. It's just a convenient method for using the mxnode tool. I don't think you can create custom menus in the insight manager interface, but I'm not the expert in that realm.
You can use the same HP tool (mxnode) in a simple batch script to achieve the same thing and then use another file that contains a list of host names which is read in by the executing script, but you have to be familiar the proper cscript commands to do that. One help I can offer is type in the command "for /?" to begin to understand how to create a scripting loop that runs the mxnode command against a list of host names.
Something like this below would be a good example, but I'd recommend you tinker with it to understand it better before implementing it for a client:
for /F "tokens=1" %%i in (%hostfile%) do call :settrigger %%i
if '%1'=='' goto :end
ping -n 1 %hostname%
Hope that helps,
06-19-2007 06:19 PM
There are two scripts:
The small one (in this response) is mentioned to put in the netlogon share of the domain: SrvSuspendMonitoring.vbs
I created a domain policy onto the OU where our servers are located in, where this script is executed while shutting down and starting up the servers with the corresponding parameters
- startup: SrvSuspendMonitoring.vbs /Mode:"resume"
- shutdown: SrvSuspendMonitoring.vbs /Mode:"suspend.15m"
You have to modify this file in the following way:
Between line 25 and 29, you have to provide the corresponding informations.
Please remeber to create an encrypted vbe- File out of this vbs, because everyone has read access to the netlogon share!!
We are using a domain user without any resources graned except local administrator on the HP SIM machine....
the bigger one (in the next response) has to be located on the HP SIM computer and runs the mxnode utility twice:
The first time it does a mxndoe -lf servername
The second time it does the mxnode -m -f xmlfile.xml
If a node is in on of the following modes suspend, supsend.1h or suspend.1d; there will no action taken, becaus we assume that the node is in maintenance.
Hope this helps someone..
06-19-2007 06:21 PM
10-17-2007 04:18 AM
If there is no simple way to do this via the CLI without the GUID value, is there an easy way to extract the GUID using the host name and dynamically include that in the .XML that MXNODE calls?
12-12-2008 07:51 AM
I have been trying to work with the mxnode and i'm having issues with the "resume" function.
When i use the xml file i can set any of the suspend levels and then all work, howver wehn i try to "resume" it doesn't do anything.
Does anyone have any ideas ?
Thanks in advance.
07-08-2012 10:46 PM - edited 08-15-2012 06:20 PM
I have a tool that you can use, i use it to suspend and resume, suspend for 1h 15min etc...without logging into HPSIM .....click here to download the tool
first you need this below:
HP SIM 6.3.1 fix you have to
Hotfix can be downloaded here:
I made a spread that help me suspend muliple servers from excel
Here are my
video how to use the tool
My code TXT, How to docs and xlsm App attached which is ZIP
let me know if need help email email@example.com
how to doc
other forum links
09-15-2013 12:25 PM - edited 09-15-2013 12:48 PM