Server Management - Systems Insight Manager
1833779 Members
2538 Online
110063 Solutions
New Discussion

Re: tools on hpsim

 
Fausto_2
Occasional Contributor

tools on hpsim

the windows tools only run when i use the account administrator, gives complete without showing anything in sdtOut or stderr.

also when i create a cstum tool it only runs redirected to the hpsim server, nevertheless i select other target machines.

are there solutions: - to see the result like on a netstat tool ; - run as another user???
1 REPLY 1
David Claypool
Honored Contributor

Re: tools on hpsim

There are 2 different models for the command line tools:

"ping" model: This is where the command runs on the hpSIM server and addresses the targets, iterating for each of the targets. In other words, selecting SERVER1, SERVER2 and SERVER3 as targets will have the hpSIM server run the command lines PING SERVER1, PING SERVER2 and PING SERVER3 in succession. This is similar to the "Application Launch Task" functionality in IM7.

"cat" or "type" model: hpSIM distributes a task to each of the targets and the command runs there. Targets SERVER1, SERVER2 and SERVER3 will each receive a command such as "TYPE AUTOEXEC.BAT" and the results will be gathered back to hpSIM. This is new functionality in hpSIM.

What isn't the clearest is that the "New Custom Command" functionality only allows you to create a command in the "PING" model. In order to use the distributed task model, you must create a tool definition and add it with the MXTOOL command (PING model commands can also be created this way).

The documentation on this subject is very terse and Unix-like, but there are 2 great resources for education:

- there are a number of samples that can be found in C:\Program Files\HP\Systems Insight Manager\tools that you can examine for syntax
- all of the menu items in hpSIM can also be exported to their XML definitions by using C:\Program Files\HP\Systems Insight Manager\bin\mxtool -lf -t "TOOLNAME"

By examining these files, you'll quickly find the tag in use that can be added into XML definitions for both types of commands.

An XML tool definition wizard is under development that will ease this whole process in the future.