Cisco Cisco Process Orchestrator 3.1 User Guide

Page of 786
 
13-132
Cisco Process Orchestrator 3.1 User Guide
 
Appendix 13      Using Adapters 
  Terminal Adapter
  •
Command to execute on target—Enter the actual command to execute an activity on the SSH server. 
See 
.
  •
Local working directory on target—Enter the path to the local working directory on the SSH server 
where the command will be executed.
If the path is left blank, the default directory will be user login directory on the SSH server
  •
Command line arguments—Enter the collection of argument values for the command. See 
.
  •
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.
Command Line Examples
The following are Terminal adapter command line examples.
Example
If your local working directory is:
/home/myusername/myappdata
and the command is
/myAppPath/myShellScript.sh
the full path is:
/home/myusername/myappdata/myAppPath/myShellScript.sh.
Example
on Unix systems:
ls
/usr/bin/ls
If your command is located at the directory of:
/myCommandPath
and the command is
myCommand
the full path is:
/myCommandPath/myCommand