A user asked if it was possible to run Nutanix CLI commands from the ControlUp console, and if it was possible through the PowerShell module or REST API. It was suggested that if the CLI tools and firewall are open, this might be possible. One member shared that they have a similar solution which involves SSH’ing into the Nutanix host, plus the OpenSSH Powershell module installed. The member agreed to share their solution.
Read the entire ‘Running Nutanix CLI Commands From the ControlUp Console’ thread below:
is it possible to run Nutanix CLI commands from the CU console? specifically we are looking to increase the disk size on several VM’s and I am able to do it individually by running the acli command from a node then going back to CU and run my disk extend script but trying to see if i can consolidate
If you install the CLI tools needed for Nutanix on there, and the firewall is open, don’t see why not?
indeed, should also be doable using their ps module or REST api but it’s been a while since I looked at either.
yes, I have something similar for internal purposes
although my SBA is creating a VM from scratch
I can see if I can chop it down, but I embedded the credentials so it doesn’t prompt (would not be considered best practice)
awesome! do you mind sharing how you do it? like do i just install the cli tools on the machine i run the console from and setup a PS script to do everything?
thatd be awesome! thank you
yaya, give me a bit of time, just on a couple of calls over the next 2 hours
ya i just couldnt wrap my head around how to run the cli commands and then also some local vm commands (ie. extend the disk)
all good! no rush here! appreciate the help
I ssh’ed into the Nutanix host to run acli as not all commands are exposed in the powershell modules
so my SBA needs the OpenSSH powershell module installed too
cool ya whatever you have i’d be interested in checking out……i’m sure i can adjust to match our environment then
Continue reading and comment on the thread ‘Running Nutanix CLI Commands From the ControlUp Console’. Not a member? Join Here!
Categories: All Archives, ControlUp Scripts & Triggers