View tool definition, Run now/schedule, Delete – HP Systems Insight Manager User Manual

Page 84: Creating custom tools through the hp sim cli, Creating a custom ssa tool, View tool definition run now/schedule delete

Advertising
background image

View tool definition

Use to display the XML code for the tool. This tool is not enabled if you select more than one tool.

Run Now/Schedule

Use to run the tool immediately or to schedule the tool to run (if the tool can be scheduled). If the
tool can be run, the schedule a task page appears. You can schedule when and how often the
tool runs.

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

“Custom tool definition files” (page 219)

.

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

“Custom tool

definition files” (page 219)

.

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 13 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:

84

HP SIM custom tools

Advertising