Symantec IGA

 View Only

 Calling Powershell from VAPP Linux

Sai Kumar Valluri's profile image
Sai Kumar Valluri posted Nov 10, 2020 01:52 PM
I am looking for some sample to call powershell on remote windows machine through VAPP (linux) 

Explaining PX Policies (Invoking Of External Code)

Above article works for deployments on windows and I have setup these in my past experience. Could any one provide sample similar to above for VAPP?

Thanks
Kenneth Verrastro's profile image
Broadcom Employee Kenneth Verrastro
Since vApp is on CentOS you would need to do it over ssh. I do not have an example but there have been others who have done that before.
Rashi Parham's profile image
Rashi Parham
Sai,

As Kenny mentioned, you can do it by using the Command Wrapper java code. The java will call your PS script that you have on VApp. However, the issue comes in with sshpass as VApp does not allow you install it. I get it to work with the password hardcoded in the ssh script but of course we do not want that when in PROD. So with that being said, I am still looking for a way to use something like sshpass on VApp.
Vincent Parziale's profile image
Broadcom Employee Vincent Parziale
Hello Sai,
Please review the following KB article as a good starting point. I would suggest you start off with a simple command to make sure that SSH is functioning and then introduce the advanced PowerShell script.

https://knowledge.broadcom.com/external/article/196345/issue-with-wildfly-ssh-key.html