How to monitor snapshot deletion using the vim-cmd command
book
Article ID: 316632
calendar_today
Updated On:
Products
VMware vSphere ESXi
Issue/Introduction
This article provides information to monitor the snapshot deletion/consolation process using the vim-cmd command.
Environment
VMware vSphere ESXi 6.7
VMware vSphere ESXi 5.5
VMware vSphere ESXi 6.0
VMware vSphere ESXi 5.1
VMware vSphere ESXi 5.0
VMware ESXi 4.1.x Installable
VMware vSphere ESXi 6.5
VMware ESX 4.1.x
VMware ESXi 4.1.x Embedded
Resolution
To monitor snapshot deletion/consolidation using the vim-cmd command:
- Open an SSH shell session to the host that is performing the consolidation and snapshot deletion task by running this command:
vim-cmd vimsvc/task_list
You see a task similar to:
(ManagedObjectReference) [
'vim.Task:haTask-9-vim.VirtualMachine.removeAllSnapshots-304060994'
]
- Run this command in the SSH shell:
vim-cmd vimsvc/task_info haTask-9-vim.VirtualMachine.removeAllSnapshots-304060994
You see output similar to:
(vim.TaskInfo) {
dynamicType = ,
key = "haTask-9-vim.VirtualMachine.removeAllSnapshots-304060994",
task = 'vim.Task:haTask-9-vim.VirtualMachine.removeAllSnapshots-304060994',
description = (vmodl.LocalizableMessage) null,
name = "vim.VirtualMachine.removeAllSnapshots",
descriptionId = "VirtualMachine.removeAllSnapshots",--running process>
entity = 'vim.VirtualMachine:9',
entityName = "SvC5sql01",---Virtual Machine name>
state = "running",---make sure the status is running & is not in a error state>
cancelled = false,
cancelable = false,
error = (vmodl.MethodFault) null,
result = ,
progress = 33,---progress of task>
reason = (vim.TaskReasonUser) {
dynamicType = ,
userName = "root",
},
queueTime = "2013-10-02T07:22:02.224526Z",
startTime = "2013-10-02T07:22:02.225526Z",
completeTime = ,
eventChainId = 304060994,
changeTag = ,
parentTaskKey = ,
rootTaskKey = ,
}
Note: A complete and successful consolidation of the snapshot will show state = "success" when you run the above command.
Feedback
thumb_up
Yes
thumb_down
No