Creating custom tool definition files for HP Systems Insight Manager 5.1 or greater (481365-002, January 2009)

11
NOTE:
For more information about mxtool command parameters,
refer to
Appendix B: mxtool command parameters
.
2.
To use the web launch
to
ol previously created, type:
mxtool
a
f /tools/webjetadmin.xml
A successful TDEF addition results in a dialog box displaying the
following:
Successfully parsed tool file
Successfully added tool named “WebJetAdmin”
Successfully added 1 tool
Removing a TD
EF from HP SIM
Removing a TDEF from HP SIM requires using the option
r when running the command
mxtools
.
Removing a tool is not operating system specific and can be run from any terminal or command
prompt.
To remove a TDEF from HP SIM, use the
mxtool
-
r
c
ommand as in the following example:
mxtool
r
f /tools/webjetadmin.xml
A successful TDEF removal will result in the dialog box displaying the following:
Successfully parsed tool file
Successfully removed tool named “WebJetAdmin”
Successfully removed 1 to
ol
N
ote
:
If a task or task results are tied to a tool, by default the tool cannot
be removed. The
x force
option is used in this case.
Modifying a TDEF
Modifying a TDEF allows users to customize the XML to align with their business. Each TDEF included
c
an be modified to fit with each customers business needs.
To modify a TDEF to execute as a different user, perform the following steps:
1.
Modify the Windows HP SIM tools to use the new user account as follows:
a.
Navigate to the tools directory.
Example:
C:
\
Pro
gram Files
\
HP
\
Systems Insight Manager
\
tools
b.
Search the tools directory for the tool to modify. Alternatively, you may create a tool definition
file from an existing tool using the
mxtool
command.
Example:
mxtool
lf
t netstat > netstat.xml
c.
Edit
netstat.xm
l
using a text editor. Find each execute
-
as
-
user line in the XML file.
Example:
<execute
-
as
-
user>Administrator</execute
-
as
-
user>
d.
(Optional) Change the revision attribute value for the tool type and name element or use the
x force
option on the mxtool com
mand line:
Example: In the SSA command tool sample code on the previous page, change
revision=”1.0
to
revision=”1.1
.