Modifying a tdef – HP Systems Insight Manager User Manual

Page 89

Advertising
background image

Modifying a TDEF

Modifying a TDEF allows users to customize the XML to align with their business. Each TDEF included
can be modified to fit with each customers business needs.

To modify a TDEF to execute as a different user, perform the following steps:

Procedure 16 Modifying a TDEF

1.

Modify the Windows HP SIM tools to use the new user account as follows:
a.

Navigate to the tools directory.

Example: C:\Program Files\HP\HP SIM\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.xml 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 command line:

Example: In the SSA command tool sample code in the previous example, change
revision="1.0" to revision="1.1".

e.

Run mxtool to update the tool definition:

Example: mxtool -m -f netstat.xml -x force.

2.

Configure each managed system that is to run tools with the user account. If the current user
account was used to install OpenSSH, then the managed node should be correctly configured.
If a different account is used, then the administrator should either run the Configure or Repair
Agents tool on the systems (specifying the administrator or other account to be used by the
SSH), or perform the following steps:
a.

Add the administrator user to the passwd file using the "sshuser" utility on the managed
system. Example: sshuser -u MyUser -d MyDomain -f "C:\Program Files\
OpenSSH\etc\passwd"

b.

Run mxagentconfig on the CMS to configure public key authentication for the
administrator user. Example: mxagentconfig -a -n <managed system> -u
MyDomain\MyUser

NOTE:

For more information about mxtool command parameters, see

“mxtool command

parameters” (page 203)

.

To view changes to TDEFs, refresh the HP SIM GUI by selecting the system list. A software restart
is not necessary.

Creating custom tools through the HP SIM CLI

89

Advertising