Start a Conversation

Unsolved

This post is more than 5 years old

1 Rookie

 • 

20.4K Posts

7770

January 21st, 2016 18:00

Using proxycp.jar to retire VMs

Trying to figure out how to use proxycp.jar to retire VMs.  What format does --file filename should be ? I just put VM name in the file and get this:

COMMAND : java -jar proxycp.jar --retirevms --filename filename

VDP/Nemo Detected : false

------------------------------------------------------------------------------------

Jan 21, 2016 8:35:22 PM com.avamar.mc.security.registry.ProviderRegistryBasic register

INFO: Provider "JsafeJCE version 5.0" is registered at position 1

Current Backup Expiry date will be preserved

Error : McsFaultMsgException

Thanks

207 Posts

January 22nd, 2016 07:00

You need to provide complete path of the VM in the file.

Note : Make sure to use the latest version from the FTP

root@aegrid1:~/#: cat /tmp/retirevmlist.txt

/aevc1.asl.lab.emc.com/VirtualMachines/Backmeup3

/aevc1.asl.lab.emc.com/VirtualMachines/Backmeup5

/aevc1.asl.lab.emc.com/VirtualMachines/Backmeup7

/aevc1.asl.lab.emc.com/VirtualMachines/Backmeup4

root@aegrid1:~/#: java -jar /usr/local/avamar/bin/proxycp.jar --retirevms --filename /tmp/retirevmlist.txt

======================= Starting ProxyCP ==========================

Proxycp : v2.64

Date    : January 22, 2016 7:12:15 AM PST

COMMAND : java -jar proxycp.jar --retirevms --filename /tmp/retirevmlist.txt

VDP/Nemo Detected : false

------------------------------------------------------------------------------------

Jan 22, 2016 7:12:18 AM com.avamar.mc.security.registry.ProviderRegistryBasic register

INFO: Provider "JsafeJCE version 5.0" is registered at position 1

Current Backup Expiry date will be preserved

/aevc1.asl.lab.emc.com/VirtualMachines/Backmeup3                      Retired ? /MC_RETIRED/Backmeup32016.01.22.07.12.21

/aevc1.asl.lab.emc.com/VirtualMachines/BackMeUp5                      Retired ? /MC_RETIRED/BackMeUp52016.01.22.07.12.22

/aevc1.asl.lab.emc.com/VirtualMachines/BackmeUp7                      Retired ? /MC_RETIRED/BackmeUp72016.01.22.07.12.22

/aevc1.asl.lab.emc.com/VirtualMachines/Backmeup4                      Retired ? /MC_RETIRED/Backmeup42016.01.22.07.12.22

-------------------------------------------------------------------------------------------------------------------

Closing Connection Pool : January 22, 2016 7:12:23 AM PST

Regards

Amol Powar

1 Rookie

 • 

20.4K Posts

January 22nd, 2016 13:00

Amol,

My goal is to be able to get a list of deleted VMs

java -jar proxycp.jar --listdeletedvms --vc vcenter.mycompany.com

and then use that as an input file for

java -jar proxycp.jar --retirevms --filename filename



unfortunately when i list deleted VMs it does not provide the path, is it possible to add a flag to provide that information and not just the name of the VM ?


Thank you

1 Rookie

 • 

20.4K Posts

January 22nd, 2016 14:00

Amol,

thank for your help but for some reason retirevms does not actually retire the VM, it's still listed in vCenter.

root@avepoc:/home/admin/#: java -jar proxycp.jar --listdeletedvms --vc vcepocw.mycompany.com

======================= Starting ProxyCP ==========================

Proxycp : v2.65

Date    : January 22, 2016 5:31:28 PM EST

COMMAND : java -jar proxycp.jar --listdeletedvms --vc vcepocw.mycompany.com

VDP/Nemo Detected : false

------------------------------------------------------------------------------------

Jan 22, 2016 5:31:31 PM com.avamar.mc.security.registry.ProviderRegistryBasic register

INFO: Provider "JsafeJCE version 5.0" is registered at position 1

========================== vcepocw.mycompany.com ==========================

Please wait...creating cache for VM->UUID

---------------------------------------------------------------------------------

/vcepocw.mycompany.com/ContainerClients/sanback2_clone_Windows

-------------------------------------------------------------------------------------------------------------------

Closing Connection Pool : January 22, 2016 5:31:35 PM EST

root@avepoc:/home/admin/#: cat file.out

/vcepocw.mycompany.com/ContainerClients/sanback2_clone_Windows

root@avepoc:/home/admin/#: java -jar proxycp.jar --retirevms --filename file.out

======================= Starting ProxyCP ==========================

Proxycp : v2.65

Date    : January 22, 2016 5:32:44 PM EST

COMMAND : java -jar proxycp.jar --retirevms --filename file.out

VDP/Nemo Detected : false

------------------------------------------------------------------------------------

Jan 22, 2016 5:32:47 PM com.avamar.mc.security.registry.ProviderRegistryBasic register

INFO: Provider "JsafeJCE version 5.0" is registered at position 1

Current Backup Expiry date will be preserved

/vcepocw.mycompany.com/ContainerClients/sanback2_clone_Windows          Retired ? /vcepocw.mycompany.com/ContainerClients/sanback2_clone_Windows

-------------------------------------------------------------------------------------------------------------------

Closing Connection Pool : January 22, 2016 5:32:51 PM EST

207 Posts

January 22nd, 2016 14:00

That's an easy fix, please download the new version from FTP

admin@aegrid1:~/>: sudo java -jar /usr/local/avamar/bin/proxycp.jar --listdeletedvms

======================= Starting ProxyCP ==========================

Proxycp : v2.65

Date    : January 22, 2016 2:01:12 PM PST

COMMAND : java -jar proxycp.jar --listdeletedvms

VDP/Nemo Detected : false

------------------------------------------------------------------------------------

Jan 22, 2016 2:01:15 PM com.avamar.mc.security.registry.ProviderRegistryBasic register

INFO: Provider "JsafeJCE version 5.0" is registered at position 1

========================== aevc1.asl.lab.emc.com ==========================

Please wait...creating cache for VM->UUID

---------------------------------------------------------------------------------

/aevc1.asl.lab.emc.com/VirtualMachines/VM With Spaces in the name

-------------------------------------------------------------------------------------------------------------------

Closing Connection Pool : January 22, 2016 2:01:20 PM PST

Regards

Amol Powar

1 Rookie

 • 

20.4K Posts

January 25th, 2016 10:00

Hi Amol,

any chance you could see why it's not deleting VMs, does it work in your environment ?

Thank you

207 Posts

January 26th, 2016 05:00

I think it is not working because the VM is dynamically added via Container client mechanism and the property is set as "dynamic".I am sure if you open the MC-GUI and right click on this VM from the "Administration" window all the options will be grayed out.Please edit the property of "parent" container (VMFolder/ResourcePool/ESX) of this VM from "policy->client" window and change it from "dynamic" to "static" and try to run proxycp again and it should retire the client properly. Once the client is retired change the property back to "dynamic".

I am tied up this week with other activity and wont be able to make any changes to proxycp, but next week I'll add intelligence to deal with this condition and automatically edit "parent" property if VM belongs to container client.

regards

Amol Powar

1 Rookie

 • 

20.4K Posts

January 26th, 2016 06:00

Amol,

Thank you for your continued assistance.

Amol Powar wrote:

I think it is not working because the VM is dynamically added via Container client mechanism and the property is set as "dynamic".I am sure if you open the MC-GUI and right click on this VM from the "Administration" window all the options will be grayed out.

I actually do these options:

1-26-2016 9-12-46 AM.bmp

Amol Powar wrote:

.Please edit the property of "parent" container (VMFolder/ResourcePool/ESX) of this VM from "policy->client" window and change it from "dynamic" to "static" and try to run proxycp again and it should retire the client properly. Once the client is retired change the property back to "dynamic".

This VM is located under multiple subfolders in vCenter so i disabled "Dynamic Mode" on every parent folder (VM is in the root of L2 subfolder) , still no luck.

1-26-2016 9-23-32 AM.bmp

Thank you very much for your time.

1 Rookie

 • 

20.4K Posts

February 23rd, 2016 10:00

Hi Amol,

have you had an opportunity to look into this ?

Thank you

207 Posts

February 23rd, 2016 10:00

Thanks for the reminder I almost forgot about this, let me work on it now. I'll update the thread in next few hours.

1 Rookie

 • 

20.4K Posts

February 23rd, 2016 10:00

i really appreciate it.

207 Posts

February 24th, 2016 06:00

It will take some more time than anticipated due to some new issues that were encountered for retiring ContainerClient VM, I'll keep you posted.

207 Posts

March 14th, 2016 10:00

Proxycp is using a very old endpoint for communication with MCS and it will be hard to implement this fix (It may break other options). I am going to retire proxycp.jar going forward and add all the new options into av2ool. I'll try to copy useful features from proxycp and add them into av2ool ( May take some time) .Please download a new tool av2ool.jar and use the following option and let me know it it works

root@aegrid1:~/amol/#: java -jar av2ool.jar client retire --filename /tmp/somefile --expires 2016-10-27

--------------------------------------------------

A V 2 O O L                                  v0.03

--------------------------------------------------

March 14, 2016 10:39:36 AM PDT

--------------------------------------------------

CMD : java -jar av2ool.jar client retire --filename /tmp/somefile --expires 2016-10-27

--------------------------------------------------

Expiry set to : 2016-10-27 00:00:00

/aevc1.asl.lab.emc.com/ContainerClients/VM With Spaces in the name    Retired ? /MC_RETIRED/VM With Spaces in the name2016.03.14.10.39.41

Note : --expires is an optional parameter, if you don't specify,it will use the default expiration for the backups

Regards

Amol Powar

March 14th, 2016 12:00

retire.lst:

/msvXXXX5.XXXXX.com/ContainerClients/xxx07

/msvXXXX5.XXXXX.com/ContainerClients/xxx02

/msvXXXX5.XXXXX.com/ContainerClients/xxx03

/msvXXXX5.XXXXX.com/ContainerClients/xxx04

--------------------------------------------------

A V 2 O O L                                  v0.03

--------------------------------------------------

March 14, 2016 3:28:28 PM EDT

--------------------------------------------------

CMD : java -jar av2ool.jar client retire --filename retire.lst

--------------------------------------------------

--expires option not specified, using default expiration

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

Error : The server did not recognise the action which it received:

admin@XXXXavamar1:~/>:

207 Posts

March 14th, 2016 14:00

What is the version of Avamar ?

March 15th, 2016 05:00

7.1.0-370_HF241893_25

No Events found!

Top