Delete, Creating custom tools through the hp sim cli, Creating a custom ssa tool – HP Systems Insight Manager User Manual

Page 102

Advertising
background image

Delete

Use to delete a tool. Deleting a tool removes it from the Manage Custom Tools page and from
the system. If a tool is dependent on a task, an alert appears with the list of tasks associated with
the tool.

For information custom tool definition files details, see

Appendix H “Custom tool definition files”

.

Creating custom tools through the HP SIM CLI

HP SIM includes a CLI that allows manual control of HP SIM functions. This manual control enables
you to create your own customized tools. The CLI is accessible directly on the CMS or from any
network client using

SSH client

software. Creating custom tools manually offers a better

understanding of the XML file format and allows greater flexibility in exercising the options available
when creating TDEFs. For more information on custom tool definition file syntax, see

Appendix H “Custom tool definition files”

.

Creating a custom SSA tool

This procedure uses the CLI to create a custom SSA tool for copying any executable file to a
managed system (target system) and having it execute (install) there.

This example illustrates the creation of a custom tool that installs a security patch on every Windows
server managed by HP SIM. If done manually, the administrator would have to locate each Windows
server and perform the following commands in that server:

Log on as Administrator

Access a network drive or portable media containing a copy of the file to be used for the tool
(we will use hpsecurity_patch.exe in this example) and copy that file to the local drive.

Use Start/Run or a command line prompt to enter the command:

<install_path>\hpsecurity_patch.exe

Log off of the system

For this example, it is assumed that the administrator will want to execute this procedure again
and be able to quickly locate it in the HP SIM menus, so an entry in the Deploy menu is made and
called Software Distributor, which when invoked allows the administrator to execute this custom
tool.

Procedure 17-1 Creating the Software Distributor tool

1.

Log into the CMS using a valid user name and password. HP SIM grants authorization based
on the operating system login.

NOTE:

Only administrators have command line access to HP SIM on a Windows CMS.

Administrators on a HP-UX/Linux CMS must have root capability.

2.

Open a terminal window or a command prompt window to execute HP SIM commands.

3.

Open a text editor and create a new file by typing the XML version text and tool list tags as
follows:

NOTE:

Your text editor must be able create a text-only file with no embedded formatting.

4.

Following the leading XML version and tool-list tags, type the tool name tag of
<ssa-command-tool name=<Deploy HP Security Patch>

to define the type and

name of the tool. The revision string is used to keep track of different versions of the tool as
will be seen later. Enter the subsequent category, description, and comment elements to further

102 HP SIM custom tools

Advertising