Hey Team,
I’m trying to create an ssh script that uses the user and password that is stored in VMWare ESX for vSphere rule.
In my Integrate Nagios plugins rule I have the below as the command line with the user and password hard coded.
sshpass -p 'SECRET' ssh -o StrictHostKeyChecking=no root@$HOSTADDRESS$ /opt/lsi/storcli/check_raid.sh
And it works, but I want to change the ‘SECRET’ and user ‘root’ to be the actual variables that are stored in the below.
vSphere User name: root
vSphere secret: Explicit, ******
Is the vSphere User name and vSphere secret stored as a variable that I can access from other scripts or rules ?
Many thanks in advance