Solved

unable to script acli commands?

  • 15 September 2020
  • 2 replies
  • 79 views

Getting this error when I try to use putty/plink for any ACLI-related command:

bash: ACLI: command not found

Doesn't seem to matter what acli “command” i run, even just running “acli” by its self gives the same error. I am able to run commands like “hostname” etc using plink/putty on the CVM. Feel like im missing something very simple here.

Example command:

putty $cvmIP -l $username -pw $password “acli vm.disk_get $vmname disk_addr=scsi.0”

icon

Best answer by Dominix_pf 15 September 2020, 02:36

try to give putty the fullpath to your command:

putty $cvmIP -l $username -pw $password “/usr/local/nutanix/bin/acli host.list”

View original

This topic has been closed for comments

2 replies

try to give putty the fullpath to your command:

putty $cvmIP -l $username -pw $password “/usr/local/nutanix/bin/acli host.list”

Nailed it. Thank you!