Question

Not able to execute Backup-CVVirtualMachine

  • 22 September 2023
  • 8 replies
  • 44 views

Badge +2

Hi All,

I am trying to run Backup-CVVirtualMachine -Name $vm -ClientName $vcenter

but receive this

I tried to reinstall CVPowershellSDK but it did not help me much, the error stills the same :( 


8 replies

Userlevel 3
Badge +10

@Alexey Tesov 

Please follow the below DOC and use the correct Syntax:

https://documentation.commvault.com/11.24/essential/117985_backup_cvvirtualmachine.html

Badge +2

@Alexey Tesov

Please follow the below DOC and use the correct Syntax:

https://documentation.commvault.com/11.24/essential/117985_backup_cvvirtualmachine.html

Thank you for your answer, but syntax is not an issue in my case

 

Userlevel 4
Badge +11

Hello @Alexey Tesov 

Before running the command, are you able to login to your commcell environment using Connect-CVServer cmdlet? 

Also, is your proxy/access able to connect with vCenter? Are you able to ping, nslookup, telnet (443) from access node to vCenter?

Best,

Rajiv Singal

Badge +2

Hello @Alexey Tesov 

Before running the command, are you able to login to your commcell environment using Connect-CVServer cmdlet? 

Also, is your proxy/access able to connect with vCenter? Are you able to ping, nslookup, telnet (443) from access node to vCenter?

Best,

Rajiv Singal

Dear @Rajiv,

Yes, my mistake -- I had to provide with more context, sorry

All other aspects are fine, I did Connect-CVServer -- no issues, other commands (like Add-CVVirtualMachine / Get-CVVirtualMachine) run perfectly

 

If I try to start backup by ID (Backup-CVVirtualMachine -Id $vm_id)  I got the error as well

Userlevel 4
Badge +11

Hello @Alexey Tesov 

What is the string value are you providing while using -Id or -name switch?

Also, while running the command, can you mention -clientname first and then the other switch -name or -Id?

Best,

Rajiv Singal 

Badge +2

Hello @Alexey Tesov 

What is the string value are you providing while using -Id or -name switch?

Also, while running the command, can you mention -clientname first and then the other switch -name or -Id?

Best,

Rajiv Singal 

Oh Rajiv, I already tried everything possible...

for -Id it is just an int number as a string (“1000”)

 

I tried direct [string] values as parameters, I tried to pull data from CV for parameters:

$VmDetails = Get-CVVirtualMachine -Name $target

$VmName = (Get-CVclient -id $VmDetails.pseudoClient.clientId).get_Item("clientName")
$VCenter = $VmDetails.client.clientName

Backup-CVVirtualMachine -Name $VmName -ClientName $VCenter

I tried to swap parameters:

Backup-CVVirtualMachine -Name <String> -ClientName <String>
Backup-CVVirtualMachine -ClientName <String> -Name <String>

and nothing works for me

Userlevel 4
Badge +11

Hello @Alexey Tesov 

I understand. I would suggest opening a  case with us further to check on this.

Best,

Rajiv Singal

Badge +2

Hello @Alexey Tesov 

I understand. I would suggest opening a  case with us further to check on this.

Best,

Rajiv Singal

Yes, I will try to do few more attempts tomorrow (with a fresh mind), maybe I missed something; before case opening..

Thank you

Reply