cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1436
Views
35
Helpful
7
Replies

Dynamically creating Runtime users

apriydar
Cisco Employee
Cisco Employee

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

7 Replies 7

mimahon
Level 1
Level 1

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.

Shaun Roberts
Cisco Employee
Cisco Employee

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 ".*" and then doing a substring on that result.

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

shaurobe@cisco.com

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

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

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

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

apriydar
Cisco Employee
Cisco Employee

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 ?

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.

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

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