ERROR: Required command 'vamicli' not found when trying to patch vIDM 3.3.7 with CSP-102092
search cancel

ERROR: Required command 'vamicli' not found when trying to patch vIDM 3.3.7 with CSP-102092

book

Article ID: 413565

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

  • When installing CSP-102092 on vIDM below messages are seen.

    # ./CSP-102092-patch-automation.sh -f CSP-102092-Appliance-3.3.7.zip -r
    yyyy-mm-dd hh:mm:ss  Checking Patch ZIP location, should not be at /db/data...
    yyyy-mm-dd hh:mm:ss- Patch ZIP location check passed: /db/vidm-upgrade/CSP-102092-Appliance-3.3.7-Patch/CSP-102092-Appliance-3.3.7.zip
    yyyy-mm-dd hh:mm:ss- Disk space at /db/vidm-upgrade/CSP-102092-Appliance-3.3.7-Patch: 20.81GB free
    yyyy-mm-dd hh:mm:ss- Disk space at /boot: 77MB free
    yyyy-mm-dd hh:mm:ss- All checks passed for ZIP '/db/vidm-upgrade/CSP-102092-Appliance-3.3.7-Patch/CSP-102092-Appliance-3.3.7.zip'.
    yyyy-mm-dd hh:mm:ss- Running on node: prelive-vidm.ml.ee
    yyyy-mm-dd hh:mm:ss- Checking grub2 presence
    yyyy-mm-dd hh:mm:ss- grub2 detected: /boot/grub2/grub.cfg exists
    yyyy-mm-dd hh:mm:ss- NOTE : Cluster size is displayed 0 , if prepare-vidm-patch.sh is run in a cluster
    yyyy-mm-dd hh:mm:ss- Cluster size detected: 1
    yyyy-mm-dd hh:mm:ss- Extracting patch bundle
    yyyy-mm-dd hh:mm:ss- Patch directory ready: CSP-102092-Appliance-3.3.7
    yyyy-mm-dd hh:mm:ss- Running patch script: CSP-102092-applyPatch.sh
    yyyy-mm-dd hh:mm:ss- Tail the log file /opt/vmware/var/log/update/vidm-CSP-102092-update.log for live logs ..
    yyyy-mm-dd hh:mm:ss- Running pre patch validations....
    yyyy-mm-dd hh:mm:ss- ERROR: Required command 'vamicli' not found.

  • Running the vamicli command on vIDM SSH session throws a message


    # vamicli

    bash: vamicli: command not found

    However the expect response is

    Usage: vamicli <system> [options]

  • Checking /opt/vmware/bin , vamicli package is available on vIDM node.
     
  • Running # which vamicli on vIDM SSH 

    which: no vamicli in (/sbin:/bin:/usr/sbin:/usr/bin)

    Expected response is: /opt/vmware/bin/vamicli

Environment

vIDM 3.3.7

Cause

Symlink in vIDM appliance for vamicli is absent/deleted.

Resolution

  • Recreate the Symlink for vamicli 

    # ln -s /opt/vamware/bin/vamicli /usr/sbin/

  • Apply the CSP-102092 patch again.