Server Management - Systems Insight Manager
1833465 Members
2464 Online
110052 Solutions
New Discussion

Re: custom command example for SIM 7?

 
Roger Dotstry
New Member

custom command example for SIM 7?

are there any custom comand exambles using the command command tool for SIM 7?

the manual is not very clear.

8 REPLIES 8
David Claypool
Honored Contributor

Re: custom command example for SIM 7?

Do you mean Insight Manager 7 or HP Systems Insight Manager 4.x?
Roger Dotstry
New Member

Re: custom command example for SIM 7?

HP Systems Insight Manager 4.

the tools menu and New Custom Command
Description: Creates a new custom command that runs on the central management server

I can find any reference to use environment variables to pass in target system and other information to the command.

Are there any example of how to use this?

Command (Executable path and file name):?
Parameters: ?
Environment variables ?
Variable name:?
Value: ?







Mike Strako
Trusted Contributor

Re: custom command example for SIM 7?

When you use custom commands, it's normally for pre-created batch files. Those custom parameters are for DOS commands or CLI arguments that you would use normally under a command prompt. Hope this helps.
Roger Dotstry
New Member

Re: custom command example for SIM 7?

Thanks Mike

1. Are there any examples showing the use
of the a batch file?

2. How each field is entered?

3. do i need to use any special characters in the fields?

4. What is entered in the Value field?

Mike Strako
Trusted Contributor

Re: custom command example for SIM 7?

This is one example I have that I use to restart server(s) at certain times:
shutdown -r -f -m \\%DEVICENAME%
I call this shutdown.bat and have this file local to the CMS, example c:\bats . This is where I place all my batch files. Required name field I put in "restart server" then the only other field you need to worry about is command, which know you point it to "c:\bats\restart.bat" That's all to it.
David Claypool
Honored Contributor

Re: custom command example for SIM 7?

Page 166 of the Systems Insight Manager Help Guide (http://www.hp.com/go/hpsim --> Information Library) lists the unique variables that HP SIM passes. This is also available in your online help.
Roger Dotstry
New Member

Re: custom command example for SIM 7?

Awesome!!

Thank you very much!
Roger Dotstry
New Member

Re: custom command example for SIM 7?

it works great..thanks again