Follow

How To - Test a VMware Snapshot outside of NetBackup using the same API as NetBackup

Problem: NetBackup using the vSphere/vCenter MOB to create a Snapshot for a VM

Process:

To create this process the following can be performed:

https:// <virtual_center>/mob/?moid= <VM mob identifier>&method=createSnapshot

Where:
<virtual_center> is the name or IP of the virtual center machine
<VM mob identifier> is the Manged Object reference for the VM in question. This can be obtained from the NetBackup cache (NetBackup\online_util\fi_cntl\vcbnames_<vcenter>_Any)

 

Here is an example of the vcbnames_ <vcenter>_Any:
GUEST
DN: 2003VM1
MO: vm-35
VC: vcenter1
VX: DATA
DS: DATA
DT: 1381265786
ID: 422bcc25-6ae1-8cd4-d8df-418d80a82d2c
VI: 502beda2-5666-b443-3c0d-9d6392cccd75

Fields are described below:

name – NetBackup uses the following name format "NBU_SNAPSHOT <proxy> <time>", where proxy should be the backup host and time is formatted local time. For example (NBU_SNAPSHOT nbproxy 1405363154). It is not necessary to use the same format as NetBackup unless you believe the name is causing a problem, you can just use "Test1" or something simple.

description – NetBackup uses the following decription format "Created by <proxy> on <time>", where proxy should be the backup host and time is formatted local time. For example (Created by nbproxy on Mon Jul 14 14:42:25 2014). It is not necessary to use the same format as NetBackup, you can create a simple description or leave it blank.

memory – false

quiesce – true if Virtual machine quiesce is enabled. Else false.

 

Virtual Center Snapshot Manager can be used to Remove the created snapshot, however if you are trying to test the snapshot removal using the API use the following web call:

https:// <vcenter>/mob/?moid= <snapshot_moref>&method=remove

 

Where:
<vcenter> is the virtual center hostname or IP.
<snapshot_moref> is the managed object reference for the snapshot.  
 
This can be obtain using the following web call:
https:// <vcenter>/mob/?moid= <VM mob identifier>&doPath=snapshot
 
Fields are described below:
removeChildren - false, Flag to specify removal of the entire snapshot subtree.
consolidate - true, If set to true, the virtual disk associated with this snapshot will be merged with other disk if possible. Defaults to true.
 
If you continue to experience difficulties removing the client please open a case with the DLT Opscenter using the following contact information:

1-888-358-7658
Opscenter@dlt.com
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk