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

10
<
execution
-
node
>
CMS
</
execution
-
node
>
</
msa
-
block
>
<
attribute name
="
insert
-
separator
">
true
</
attribute
>
<!
--
Optional
--
>
<
attribute name
="
custom
-
page
-
1
"
>
/taskandjob/MpTools/MpInstallSSHKeyCPP1.jsp
</
attribute
>
<!
--
Optional
-
-
>
<
attribute name
="
menu
-
path
">
Configure
<
/
attribute
>
<
attribute name
="
menu
-
sort
-
key
">
800
</
attribute
>
<!
--
Optional
--
>
<
attribute name
="
i18n
-
attrs
">
TOOL,mxtools
</
attribute
>
<
attribute name
="
show
-
cmdline
">
false
</
attribute
>
</
msa
-
command
-
tool
>
</tool
-
list>
For more information about sp
ecific MSA tool requirements and attributes, refer to the
MSA
-
specific
attributes
section in
Appendix A
of this paper.
Sample Enabling Remote Desktop tool
Remote Desktop
is a Microsoft feature that allows you to remotely access any Windows 2003 server.
Unfortunately, Remote Desktop is disabled by default during installation, which can lead to problems
accessing the system without physically being present in front of the se
rver. HP SIM allows you to
create a custom TDEF to enable remote desktop on selected targets as long as the selection is running
Windows 2003 server operating system. The following example demonstrates the ability of the TDEF
to create a menu item called E
nable Remote Desktop.
<
?
xml version="1.0" encoding="UTF
-
8" ?>
<tool
-
list>
<ssa
-
command
-
tool name="Enable Remote Desktop" revision=”1.0”>
<category>Software Management</category>
<description>Change the registry value from 1 to 0 to enable
remote des
ktop</description>
<comment>The tool can be run on multiple Windows
systems</comment>
<execute
-
as
-
user>Administrator</execute
-
as
-
user>
<include
-
filter type="os">
<node
-
filter name="OSName" operator="eq" value="WINNT"
/></include
-
filter>
<ssa
-
blo
ck>
<command command
-
type="stdout" log="false">reg add
"hklm
\
system
\
currentcontrolset
\
control
\
terminal server" /f /v
fDenyTSConnections /t REG_DWORD /d 0</command>
</ssa
-
block>
<attribute name="menu
-
path">Configure</attribute>
<attribute name="i
18n
-
attrs">TOOL,mxtools</attribute>
</ssa
-
command
-
tool>
</tool
-
list>
Adding a TDEF to HP SIM
After you create a custom TDEF, to function you must add it into HPSIM. Add a TDEF to HP SIM using
the
mxtool
a
command, as described in the following pro
cedures:
1.
At a terminal or command line prompt, type
mxtool
a
f <
file pathname
>
.