HP

HP Systems Insight Manager Technical Reference Guide

English
  Tools that Extend Management  |  Creating New Command Line Tools  |  New Copy a File Tool   

New Copy a File Tool

»Table of Contents
»Index
»Notices
»Introduction
»Product Overview
»Getting Started
»Discovery and Identification
»Users and Authorizations
»Networking and Security
»Monitoring Systems, Clusters, and Events
»Storage Integration
»Managing with Tasks
»Tools that Extend Management
»Cluster Monitor
»Command Line Tools
»Creating New Command Line Tools
»New Command Line Tool
New Copy a File Tool
»New X Window Tool
»Command Line Tools Reference
»Examples of Using Parameter Strings in Command Line Tools
»Custom Commands
»Configuring DMI Access
»Configuring SNMP Access
»Device Ping
»Disk Thresholds
»License Manager
»Management Processor Tools
»Managing MIBs
»Installing OpenSSH
»PMP Tools
»Removing and Restoring Tools
»Replicate Agent Settings
»RPM Package Manager
»Server Migration Pack
»System Management Homepage
»System Page
»Version Control
»Virtual Machine Management Pack
»WBEM Based Tools
»Available MSA Tools
»Partner Applications
»Reporting
»Administering Systems and Events
»Troubleshooting
»Reference Information
»Printable version
»Glossary
»Using Help
» Additional Information
» Example of Creating a Copy a File Tool
» Related Procedures
» Related Topics

This tool creates a command line tool that copies a file to each single-system aware (SSA) system then runs a command (which could be that file if it is a script). Note that the source and target paths of the file to copy must to be different.

This tool creates a temporary XML tool definition file under /var/tmp, then loads it with the command mxtool -af file. You only need to enter data into the required fields.

If you define this tool to run as root, any user authorized to run this tool might be able to gain full access to the managed system, depending on how you define the command and what its capabilities are. Otherwise, the tool runs as the HP Systems Insight Manager (HP SIM) user and that user's SSH public key must be configured on the managed system using the mxagentconfig command.

To create a new copy file tool:

  1. Select ToolsCommand Line ToolsNew Command Line ToolsNew Copy a File Tool. The New Copy a File Tool page appears.

  2. Under Parameters, add information using the standard tool parameters. The following fields are required:

    • Enter tool name

    • Enter source path on central management server

    • Enter target path on managed system

    • Enter command

    Refer to Example of Creating a Copy a File Tool for an example of filing in the parameters.

  3. Click [Run Now] to run the task immediately or click [Schedule] to schedule when the task runs. Refer to Managing with Tasks - Scheduling a Task for more information on scheduling a task.

Additional Information

Additional information is available in the following sections:

Example of Creating a Copy a File Tool

The following is a simple example to copy a script file (name myScript) to a target system then execute the script.

  1. In the Enter tool name field, enter a name for the new tool, such as My Script.

  2. In the Enter source path on central management server field. For example, /home/user name/myScript.

  3. In the Enter target path on managed system, enter the path where you want to save the tool. For example, /tmp/myScript.

  4. In the Enter command field, enter the command to execute the tool on the managed system. For example, sh/rmp/myScript.

Related Procedures

» Creating New Command Line Tools - New Command Line Tool
» Tools that Extend Management - Removing and Restoring Tools
» Custom Commands - New Web Launch Tool
» Creating New Command Line Tools - New X Window Tool

Related Topics

» Tools that Extend Management - Command Line Tools
» Creating New Command Line Tools - Command Line Tools Reference
» Creating New Command Line Tools - Examples of Using Parameter Strings in Command Line Tools