cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
631
Views
0
Helpful
4
Replies

Execute perl script from CPO

jkanchar
Level 1
Level 1

                   Hi everyone,

Is it possible to execute a perl script directly from CPO without using a cgi or soap action, If yes, is there any documentation or model workflows that I can refer to...

1 Accepted Solution

Accepted Solutions

You can use the Terminal adapter to connect to a UNIX/Linux target, and can use the Execute UNIX/Linux SSH script.  The script itself is placed in the activity, and is pushed to the target UNIX/Linux system and fired off via the command line.  As with all UNIX/ linux scripting, the first line in a shell script identifies the interpreter, which could be perl, python, csh, or anything really.

Alternatively, if you know the script is at a certainl place on the system, you can just execute it via the CLI.

View solution in original post

4 Replies 4

Shaun Roberts
Cisco Employee
Cisco Employee

How do you execute the script manually?

Are you looking to just execute a pre-written script or write the script directly in CPO?

What OS is the script going to be run in?

--Shaun Roberts
shaurobe@cisco.com
CIAC Adoption Pilot Engineering Lead

--Shaun Roberts
Principal Engineer, CX
shaurobe@cisco.com

You can use the Terminal adapter to connect to a UNIX/Linux target, and can use the Execute UNIX/Linux SSH script.  The script itself is placed in the activity, and is pushed to the target UNIX/Linux system and fired off via the command line.  As with all UNIX/ linux scripting, the first line in a shell script identifies the interpreter, which could be perl, python, csh, or anything really.

Alternatively, if you know the script is at a certainl place on the system, you can just execute it via the CLI.

Its a prewritten script hosted in a linux box(svc cat server), first we tried to invoke it as a soap request...

http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">

>

#username#

this worked but we want to discontinue this approach,

so we tried to host the script as cgi and invoke the cgi directly...

but this is not working, so wanted to see if we can execute the script from CPO either directly by using CLI or by hosting the script in a server

Shaun Roberts
Cisco Employee
Cisco Employee

Yeah you can. Just use what Von mentions. Create a terminal or unix/linux connection to it and use the execute activities to simulate the same thing you'd do if you were sitting at the SSH terminal.

--Shaun Roberts
shaurobe@cisco.com
CIAC Adoption Pilot Engineering Lead

--Shaun Roberts
Principal Engineer, CX
shaurobe@cisco.com
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: