How to test a VMware Snapshot outside of NetBackup using the same API as NetBackup.

Article: 100037437
Last Published: 2014-07-14
Ratings: 1 0
Product(s): NetBackup & Alta Data Protection

Description

NetBackup using the vSphere/vCenter MOB to create a Snapshot for a VM.  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.
 
More information about this procedure can be found in the following VMware Documentation:
 

Was this content helpful?