01-23-2012 04:42 PM
Hi,
I am trying to create a workflow that would connect to a remote Unix Box with credentials & host details provided by user from New Scale as input parameters.
The problem that I am facing is how to dynamically create runtime users as well as Targets & associate the user with that Target.
Following inputs I will expect from New Scale - Host Name, user+pwd to connect to that Host.
Regards,
Abhi
01-24-2012 04:33 AM
There are two wsdl’s that you need to be aware of to create runtime users and targets. Namely http://yourservername.somedomain.com:61527/WS/Target?wsdl and http://yourservername.somedomain.com:61527/WS/RuntimeUser?wsdl. In those wsdl’s you will find the methods you need to create targets and runtime users. Hope this helps you out. Use SoapUI in Eclipse to determine what parameters you need to create the users and targets. As far as NewScale is concerned, create a service item to retain the input parameters, create a dictionary defined by the service item, bind a form to the dictionary, set up an agent, map the form to the agent and call the http://yourservername.somedomain.com:65127/WS/Process?wsdl NB webservice off of TEO to call your process.
01-24-2012 05:29 AM
As per Michael's reponse you need to access the WSDL for both Target and Runtime User.
Make sure you have enabled the TEO NBWS first(under file->server properties->web service in the master UI). Port 61527 for http, 61526 for HTTPS (both defaults)
For Unix connections I have done the exact thing you describe and I used the telnet target type as I find it easiest to work with.
I do a 3 step process... create runtime user, extract the GUID of that Runtime User from the output of the web services call, and then create the SSH connection and pass the GUID of the Runtime User into the SSH connection web service call.
Here is a screenshot of the create runtime user:
I extract the guid by using a match regular expression on "
Here is a screenshot fo the create SSH connection:
If you need further help, let me know or if you would like a copy of the work, I can extract to a tap.
-shaun roberts
CPO Support Team Lead
01-24-2012 10:13 AM
Michael, Shaun,
Thanks for your response, will reach out to you, incase I need further help.
Btw Shaun I am not able to see those screen shots, can you try to attach them again.
Thanks,
Abhi
01-24-2012 10:28 AM
runtime user above
ssh/telnet below:
if you still cannot see them, ping me @ shaurobe@cisco.com and I can send them to you.
-shaun
01-24-2012 02:17 PM
Now I am able to create a Runtime User & Target.
But I am not able to use that target to Open a Terminal Session & execute some commands/scripts.
Attcahed the process diagram & actual error that I am getting during Open Session. Do you have any idea what's wrong here ?
01-24-2012 03:21 PM
May be my actual problem is that I have a TargetId but don't know how to use it to Open Terminal Session.
Let me know if there is a way out.
01-24-2012 05:09 PM
i use a find target to grab the new target after it's made and then set the target as a target reference = found target. If you still need open please open a TAC case and myself or someone from my team can help with a quick webex.
you can email tidal-support@cisco.com with your cisco ID or open a case on cisco.com
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