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

8
<destination>C:
\
\
Program Files
\
\
hpsecurity_patch.exe
</destinat
ion>
</copy
-
block>
</ssa
-
block>
<attribute name="menu
-
path">Deploy|Software
Distributor</attribute>
<attribute name="i18n
-
attrs">TOOL,mxtools</attribute>
</ssa
-
command
-
tool>
</tool
-
list>
11.
Save the file. HP recommends using a file name
that indicates its function, in this case,
DeployHPSecurityPatchv.1.xml
.
Verify
that the file name ends with the .XML extension.
Note that file names on Linux and HP
-
UX operating systems are case
-
sensitive. The directory used
by HP SIM to store tools is a
s follows:
for HP
-
UX and Linux systems:
/var/opt/mx/tools
for Windows systems:
C:
\
Program Files
\
HP
\
Systems Insight Manager
\
tools
NOTE:
When the XWindows tool is launched, the system running the
browser must be running an XWindows server for the too
l’s GUI to
be visible.
12.
To add the new tool to HP SIM, perform the procedure described in the section “
Adding a TDEF
to HP SIM
.”
For more information about specific SSA tool attributes, refer to the
SSA
-
specific attributes
section in
Appendix A: tool type
-
specific requirements
section
of this paper.
Sample web launch tool
A web launch tool launches an application requiring a URL. The example below la
unches the
application “WebJetAdmin” for a device selected within the HP SIM window as long as that device is
a printer. The
<web
-
block>
element (in bold below) provides the URL of the managed
system
where WebJetAdmin is installed. The parameter
%n
is use
d to substitute the managed
system
host
name. The <toolbox
-
enabled> element can have a value of true or false. If the <toolbox
-
enabled>
element is true, it will be associated with the Toolboxes under HP SIM User and Authorization. This
enables
a trusted
user to disable the tool in the Toolbox if the value is false. Refer to
Appendix B
for
additional parameters. This tool launches in a separate browser window using the “target
-
frame” of
WJAFrame.
<
?xml version="1.0
" encoding="UTF
-
8" ?>
<tool
-
list
>
<web
-
launch
-
tool name="WebJetAdmin" max
-
targets="1" revision=”1.0”>
<
category
>Local Tools</category>
<
description
>View properties of remote printer via
WebJetAdmin.</description>
<
execute
-
as
-
user
>root</execute
-
as
-
user>
<
toolbox
-
enabled
value="true" />
<include
-
filter type="hardware">
<node
-
filter name="DeviceType" operator="eq" value="Printer"/>
</include
-
filter>
<
web
-
block
accepts
-
targets="true">