HP

HP Systems Insight Manager Technical Reference Guide

English
  Tools that Extend Management  |  Installing OpenSSH  |  Creating an OpenSSH Task Through the CLI   

Creating an OpenSSH Task Through the CLI

»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
»Custom Commands
»Configuring DMI Access
»Configuring SNMP Access
»Device Ping
»Disk Thresholds
»License Manager
»Management Processor Tools
»Managing MIBs
»Installing OpenSSH
»Deploying OpenSSH to Multiple Systems Using RDP
Creating an OpenSSH Task Through the CLI
»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
» Creating an OpenSSH Task
» Creating an OpenSSH Task from the Command Line With an XML File
» Creating an OpenSSH Task from the Command Line Without an XML File
» Related Procedures

Perform this procedure to create an OpenSSH task through the command line using the mxtask command in two ways:

  • Entering all parameters through the command line

  • Entering all parameters through an XML file

Tasks created from an XML file are disabled when viewed in the task list. Tasks created from the command line are not disabled when viewed from the task list.

Creating an OpenSSH Task

  1. To see how to enter the information correctly, export an existing OpenSSH task.

    1. Create an OpenSSH task. Refer to Tools that Extend Management - Installing OpenSSH for more information.

    2. Save the task as SSH Task.

  2. From the command line, execute the following command:

    						
    mxtask -lf "SSH Task" > ssh.xml
    					

The ssh.xml now contains the format required to create an OpenSSH task from the command line. The following is an example file.

				
<?xml version="1.0" encoding="windows-1252"?>
<task-list> 
  <task name="Install OpenSSH 1" type="manual" 
       owner="admin" state="enabled">  
     <toolname>Install OpenSSH</toolname>  
     <queryname></queryname>  
     <scheduleinfo />  
     <timefilter />  
     <toolparams>   
       <?xml version="1.0"?>   
       <XeObject 
className="com.hp.mx.portal.taskandjob.
  OpenSSHInstall.MxOpenSSHInstallCommandToolParameters" 
classVersion="1.0">    
  <Property name="driveLetter">     
    <Simple>C:</Simple>    
  </Property>    
  <Property name="path">     
    <Simple>C:\Program Files\HP\Systems Insight Manager\
       openssh\1118786323238</Simple>    
   </Property>    
   <Property name="component">     
     <Simple>CP005309.EXE</Simple>    
   </Property>    
   <Property name="username">     
     <Simple>administrator</Simple>    
   </Property>    
   <Property name="password">     
     <Simple></Simple>    
   </Property>    
   <Property name="domain">     
     <Simple></Simple>    
   </Property>   
  </XeObject>  
 </toolparams> 
 </task>
 </task-list>>
			

The OpenSSH task uses six parameters, even though the user is only asked for three during the task creation from the GUI. The first three parameters must follow the example provided. For example:

  • driveLetter. Must be the drive on which HP Systems Insight Manager (HP SIM) is installed.

  • path. Must be full path to openssh dir\dir name.

    where dir name is any name you select.

  • component. Must be CP005309.EXE.

  • username. Is a user account with administrative rights on the target systems.

  • password. Is the password to the administrative account specified by 'username.'

  • domain. Is the domain of the administrative user (leave this blank if the administrative user is a local account on the target systems).

Creating an OpenSSH Task from the Command Line With an XML File

Execute:

				
mxtask -cf ssh.xml
			

Creating an OpenSSH Task from the Command Line Without an XML File

Execute:

				
mxtask -c taskname -q queryname -w schedule -t 
   toolname -A toolparams
			

where taskname is the name you are giving the task, queryname is the name of an existing collection, schedule is Tmanual, toolname is the tool (installing OpenSSH), and toolparams are those listed previously.

For example:

				
mxtask -c “ssh1” -q “All Systems” -w Tmanual -t “Install OpenSSH” 
   -A “<?xml version="1.0"?> 
<XeObjectclassName="com.hp.mx.portal.taskandjob.
   OpenSSHInstall.MxOpenSSHInstallCommandToolParameters" 
   classVersion="1.0">
<Property name="driveLetter"> 
<Simple>C:</Simple> 
</Property>	
<Property name="path">
<Simple>C:\hpsim\target\windows\stage\sim\openssh\
   1079128853916</Simple>
</Property> 
<Property name="component"> 
<Simple>CP005309.EXE</Simple>
</Property> 
</Property name="username"> 
<Simple>user1</Simple>
</Property> 
</Property name="password"> 
<Simple>password</Simple>
</Property> 
<Property name="domain"> 	
<Simple>openview</Simple>
</Property> 
</XeObject>">
			

Related Procedures

» Tools that Extend Management - Installing OpenSSH
» Installing OpenSSH - Deploying OpenSSH to Multiple Systems Using RDP