 |
Create new task
- Click on New -> Task Editor.
|

Screenshot 1

Screenshot 2

Screenshot 3

Screenshot 4

Screenshot 5 |
 |
Connect to Terminal
- Using the Terminal Emulator command, select the ‘Connect’ action.
- Specify a Session name.
- Specify the Host name and Terminal prompt of the remote machine to connect.
|
 |
Wait till text ‘login’ appears on terminal screen
- Select the ‘Terminal Emulator->Wait’ action.
- Specify the Session name.
- Select ‘Wait till text appears’ option in Terminal Event.
- Specify ‘login’ as Text.
|
 |
Send username to Terminal
- Select the ‘Terminal Emulator->Send Text’ action.
- Specify the Session name.
- Specify the <username> for the remote machine as Text.
- In ‘Wait for terminal prompt to appear’, select “Don’t Wait”.
|
 |
Wait till text ‘password’ appears on terminal screen
- Select the ‘Terminal Emulator->Wait’ action.
- Specify the Session name.
- Select ‘Wait till text appears’ option in Terminal Event.
- Specify ‘password’ as Text.
|
 |
Send password to Terminal
- Select the ‘Terminal Emulator->Send Text’ action.
- Specify the Session name.
- Specify the <password> for the remote machine as Text.
- In ‘Wait for terminal prompt to appear’, select ‘After sending text’.
|
 |
Send netstat command to Terminal
- Select the ‘Terminal Emulator->Send Text’ action.
- Specify the Session name.
- Specify the command ‘netstat –b’ as Text and redirect the output to a file in the shared folder of the local machine.
- In ‘Wait for terminal prompt to appear’, select ‘After sending text’.
|
 |
Disconnect from Terminal
- Select the ‘Terminal Emulator->Disconnect’ action.
- Specify the Session name.
|
 |
Save the task. |
 |
How to run the task:
- In case you do not have Automation Anywhere installed, please download and install it from, http://www.automationanywhere.com/download/freeTrial.htm
- Copy T97.atmn to location, My Documents\Automation Anywhere\Automation Anywhere\My Tasks
- Change remote machine name, username, password and folder name as per your computer.
- Launch Automation Anywhere and from Task List select T97.atmn and click on RUN button to run the task.
|
| |