Thanks for the Help guys,
My background in automation is more on a web based engine so I'm struggling with the simplest of things.
I was able to make it work by using the same method automic action packages uses to decrypt password fields.
When I said I want to use a login object, I meant in a intuitive way, again with no script involved.
I have a promptset with fields User and password
like a vara that I can do {VARA.NAME.CONSTANT}
I'd like to do something like:
{LOGIN.VCENTER.USER}
{LOGIN.VCENTER.PASSWORD}
------------------------------
Services Consultant
HCL
------------------------------
Original Message:
Sent: 07-05-2019 08:32 AM
From: Martineschen
Subject: Promptset password value inside interpreter
Yes Carsten! You're absolutely right. I forget to mention that. It'll only work this way (with a "*" on the agent field), since there's no agent to that external Login type.
------------------------------
Automic Services Delivery Manager
MVR Informática
Original Message:
Sent: 07-05-2019 08:25 AM
From: Carsten Schmitz
Subject: Promptset password value inside interpreter
Word of advice. If you create a custom UC_LOGIN_TYPES entry and can't seem to select that type in your LOGIN object, because you can't get a TYPE drop-down menu to show up:
You need to enter an asterisk (*) into the agent field and press "enter" to get the dropdown to show.
Took me a while to figure that out.
(edit: this applies to AWI. With the fat client in 11.2 and below, the asterisk was there by default IIRC)
Original Message:
Sent: 07-05-2019 07:59 AM
From: Martineschen
Subject: Promptset password value inside interpreter
Hi Marcel,
Yes, you can create a LOGIN object to store passwords for any kind of ext app you like. You have to edit client 0's variable UC_LOGIN_TYPES adding a new key (for example VCENTER). After that, you can insert passwords for this VCENTER option (this option will appear on the column Platform of your login objects).
You can get the user and password from the login with the function GET_LOGIN(..).
Keep in mind that this password can only be interpreted by Automic using the job messenger, i.e., running the commands inside the structure:
&UC_JOBMD CMD="define command"
Hope this helps.
------------------------------
Automic Services Delivery Manager
MVR Informática
Original Message:
Sent: 07-04-2019 09:21 AM
From: Marcel de Assis
Subject: Promptset password value inside interpreter
Hi guys,
I tried following this and this
But I was not able to get it to work in my environment
I just want to log in a vcenter, getting the credentials from a promptset (Side note, why can't I use a Login object for that?!)
This is my latest attempt, from the posts I believe that I need to get the promptset variable, as a script variable, but it still not working.
:set &VC_PWD=&VSPHERE_PWD#:BEGIN_EXT_INT POWERSHELLconnect-VIServer -Server &VCENTER# -Username &VSPHERE_USR# -Password &VC_PWD:END_EXT_INT POWERSHELL
What am I doing wrong?