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 :(
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 :(
Please follow the below DOC and use the correct Syntax:
https://documentation.commvault.com/11.24/essential/117985_backup_cvvirtualmachine.html
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
Hello
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
Hello
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
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
Hello
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
Hello
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
Hello
I understand. I would suggest opening a case with us further to check on this.
Best,
Rajiv Singal
Hello
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
Hi was there a solution found for this? I am also attempting to automate some backup/restore jobs using backup-cvvirtualmachine and restore-cvvirtualmachine however I get the same error message.
Seems that the command has a problem finding the client.
PS U:\> Backup-CVVirtualMachine -Name vmname -ClientName clientname
INFO: Get-CVVirtualMachine: no virtual machines found for client lclientname]
INFO: Backup-CVVirtualMachine: virtual machine not found having name vmname]
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.