unable to script acli commands? | Nutanix Community
Skip to main content
Solved

unable to script acli commands?

  • September 14, 2020
  • 2 replies
  • 1574 views

Forum|alt.badge.img

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”

Best answer by Dominix_pf

try to give putty the fullpath to your command:

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

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

Dominix_pf
Forum|alt.badge.img+2
  • Trailblazer
  • 23 replies
  • Answer
  • September 15, 2020

try to give putty the fullpath to your command:

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


Forum|alt.badge.img
  • Author
  • Adventurer
  • 4 replies
  • September 15, 2020

Nailed it. Thank you!