10 Replies Latest reply on Aug 26, 2020 7:07 AM by Nishanth Kumar Gajulapalli

    VM Snapshot through BLCLI

    Nishanth Kumar Gajulapalli
      Share This:

      Hi,

       

      We have requirement to create VM snapshots for multiple servers through TSSA, So I have created Type 2 NSH script as below,

       

      blcli_connect

      SNAPSHOT_NAME="snap1"

      VIRTUAL_GUEST1_NAME="VM1"

      VIRT_ENTITY_KEY=`blcli Virtualization getVirtualGuestKeyByServerName $VIRTUAL_GUEST1_NAME`

      blcli Virtualization snapshotVirtualGuest "$VIRT_ENTITY_KEY" "$SNAPSHOT_NAME"

       

      I have executed the Job without any targets.I am getting the error message as VM1 is not enrolled but the VM1 is actually available in vCenter.

       

      We are using Shared TSSA instance and there are many vCenters are added to TSSA. Looks like script is not checking in right vCenter.

       

      So how to make the script to check for VM's in the right vCenter.

       

      Regards,

      Nishanth