Cisco Cisco Process Orchestrator 3.1 User Guide

Page of 786
 
13-133
Cisco Process Orchestrator 3.1 User Guide
 
Appendix 13      Using Adapters
  Terminal Adapter
Defining an Execute Unix/Linux SSH Script Activity
Use the Execute Unix/Linux SSH Script activity to specify a SSH script argument to execute. 
When the Execute Unix/Linux SSH Script activity is launched, the results of the executed SSH script 
argument are displayed from the Operations Workspace activity instance view.
Before You Begin
To properly run this activity, SFTP must be configured on the SSH server.
Step 1
In the Process Editor Toolbox, choose Secure Shell (SSH) > Execute Unix/Linux SSH Script and drag 
and drop the activity onto the Workflow pane.
Step 2
Click the General tab and enter the appropriate information.
Step 3
Click the Script tab and specify a SSH script argument to execute:
  •
Local working directory on target—Enter the path to the local working directory on the SSH server 
where the script will be executed.
  •
Script arguments—Enter the collection of argument values for the script. See 
.
  •
Script to execute on target—Enter the actual script code to use to execute in the specified local 
working directory.
  •
Time out if not completed within—Enter a value or use the scroll buttons to specify the time frame 
to wait for the action to complete before timing out.
  •
Time out if no available session within—Enter a value or use the scroll buttons to specify the time 
frame to wait for the activity to complete if there is no available session.
The cause for no available session might be that the setting “max allowed concurrent sessions” on 
the target has been reached.
  •
Fail on non-zero return code—Selected check box indicates that the activity should fail when a 
return code having a non-zero value is received.
Step 4
Enter the information in the remaining tabs as necessary, then click Save to complete the activity 
definition.
Adding a Script Argument
Script arguments are a property for SSH activities. The Add button on these activities launches the Select 
Argument to Add dialog box for users to specify the script arguments to be added to the list on the 
specified SSH activity.
Step 1
On the appropriate SSH activity property page, click Add.
Step 2
Specify the script argument value for the script and click OK.
The script argument is added to the command line argument list on the activity property page.