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

7
8.
Following the include
-
filter element is a block element that is the heart of the tool and includes the
command(s) to be executed. Enter the ssa block element as shown below. It will copy
the file to
the specified destination and execute it there. In the example below, the HP Security Patch v.1
executable is given the filename
hpsecurity_patch.exe
.
<
ssa
-
block>
<command command
-
type="stdout" log="false">C:
\
\
Program
Files
\
\
hpsecurity_patch.
exe</command>
<copy
-
block>
<source>C:
\
\
temp
\
\
hpsecurity_patch.exe</source>
<destination>C:
\
\
Program
Files
\
\
hpsecurity_patch.exe</destination>
</copy
-
block>
</ssa
-
block>
NOTE:
The <destination> must be a directory that exists on the
Managed
system
. The default file permission value used by
DTF for a file copy operation is 755. If another permission is
to be used, an explicit file permission command such as
chmod
should be included in the copy block element for
security reasons. Refer to the
H
P SIM Technical Reference
Guide
for more information.
9.
Type the following attribute element code, which states where the tool will be located in the
HP
SIM menu.
<
attribute name="menu
-
path">Deploy|Software Distributor</attribute>
10.
To finish the TDEF, ente
r the final tool list tag as shown below.
<
/tool
-
list>
The fully composed TDEF for a SSA copy tool to deploy the HP Security Patch to a managed
system
and
then execute, should display as follows:
<
?xml version="1.0" encoding="UTF
-
8" ?>
<tool
-
list>
<ss
a
-
command
-
tool name="Deploy HP Security Patch"
revision=”1.0”>
<category>Software Management</category>
<description>Deploy HP Security Patch v.1 to the target
node</description>
<comment>This tool will deploy hpsecurity_patch.exe to
the target Nod
e. Please verify that hpsecurity_patch.exe is located
in C:/temp before deploying.</comment>
<execute
-
as
-
user>Administrator</execute
-
as
-
user>
<include
-
filter type="os">
<node
-
filter name="OSName" operator="eq"
value="WINNT" />
</include
-
filter>
<ssa
-
block>
<command command
-
type="stdout" log="false">
C:
\
\
Program Files
\
\
hpsecurity_patch.exe</command>
<copy
-
block>
<source>C:
\
\
temp
\
\
hpsecurity_patch.exe
</source>