02-28-2014 11:14 AM
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...
Solved! Go to Solution.
02-28-2014 11:28 AM
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.
02-28-2014 11:21 AM
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
02-28-2014 11:28 AM
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.
02-28-2014 12:23 PM
Its a prewritten script hosted in a linux box(svc cat server), first we tried to invoke it as a soap request...
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
02-28-2014 12:29 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide