Automate a Manual Telnet Process using HP Operations Orchestration

 Automate a Manual Telnet Process using HP Operations Orchestration

Introduction

This is a very brief tutorial to illustrate how a manual telnet process can be captured and translated into an automated process flow for use in HP Operations Orchestration (OO). I will use one of the available OO wizards that record the manual actions and generate re-useable OO flows. Please remember that although there are a few extra steps to generate this content than the manual process – you only need to generate the content (flows) once and can consume (run) them many times. The manual process of configuring port triggering on a router is used here.

Manual Process Instructions

Connecting to a Router via telnet and configuring port triggering

  • Open a telnet connection to your router.
  • When prompted enter the same admin user name and password as you use to connect to the web interface
  • First we need to confirm port triggering isn’t configured. The commands provided in this post assume this is the case. to confirm this type:

srv nat trigger -v

  • The output returned should show all available trigger spots as disabled and no labels/comments should be present. The output should look like:

%%      Port Trigger Rule status:

Index  Status  Comment  TProto  TPort  IProto  IPort

—————————————————–

1 Disable

2 Disable

3 Disable

4 Disable

5 Disable

6 Disable

……

  • Once we have confirmed there are no configured port triggers, we can add the needed entries using the commands below. Enter each line once at a time followed by enter/return.

srv nat trigger 1 -c XBLA1 -e 1 -p 3 -t 53 -P 3 -i 53

  • Once these have been entered, run the trigger query command again:

srv nat trigger –v

  • The output should now look like the following:

Index  Status  Comment  TProto  TPort    IProto      IPort

—————————————————–

1   Enable   XBLA1     TCP/UDP  53       TCP/UDP  53

2 Disable

3 Disable

4 Disable

5 Disable

6 Disable

……

  • If your output looks like the above the trigger ports have been configured.

Converting the manual steps to an automated flow

  • Launch the shell wizard and enter the repository you wish to use

oo1

  • Give the new process flow a name

 oo2

  • Enter the details of the device you will be connecting to

 oo3

  • Enter telnet prompts

 oo4

  • Follow the Manual Process Instructions (outlined above) selecting “Add Step” after each command

 oo5

oo10

oo7

oo8

oo9

oo6

0011

  • Select “Next >” when finished.

oo12

The Automation Flow

That’s pretty much it! When you log in to Operation Orchestration’s flow authoring tool, Studio, the recorded flow will be under the Wizards folder.

oo13

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s