Module Expr Str Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Break Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str While CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad NameLoad attr Num If CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body If BoolOpAnd CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad UnaryOpNot NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Print NameLoad orelse Assign NameStore BinOpMod Str NameLoad Print NameLoad orelse Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Raise AttributeLoad AttributeLoad NameLoad attr attr Print NameLoad Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args defaults body TryExcept body Assign NameStore NameLoad TryExcept body Print Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad name NameStore body Pass Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Print Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr Str body Print Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore AttributeLoad NameLoad attr body If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Print BinOpMod Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Break Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad Print Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Print Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Print Str Assign NameStore Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Print Str orelse Print Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print BinOpMod Str AttributeLoad NameLoad attr Return Num ExceptHandler type NameLoad name NameStore body Print BinOpMod Str Call NameLoad NameLoad Return Num decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
Copyright 2013-2014 Reubenur Rahman
All Rights Reserved
@author: reuben.13@gmail.com
 N/A atexit N/A argparse N/A sys N/A time pyVmomi vim vmodl pyVim connect pyVim.connect Disconnect N/A inputs N/A vcenter_ip vcenter_password vcenter_user vm_name target_host datacenter 15.14.10.11 Passw0rd Administrator ubuntu12 15.14.10.12 My_Datacenter get_obj N/A N/A content vimtype name N/A N/A N/A 
     Get the vsphere object associated with a given text name
     N/A obj None N/A container N/A N/A N/A content viewManager CreateContainerView N/A content rootFolder vimtype True N/A c N/A container view N/A N/A N/A N/A c name name N/A N/A obj c N/A N/A obj N/A wait_for_task N/A N/A task actionName hideResult N/A job False N/A N/A 
    Waits and provides updates on a vSphere task
     N/A N/A N/A N/A task info state N/A N/A N/A vim TaskInfo State running N/A N/A N/A N/A time sleep 2 N/A N/A N/A N/A task info state N/A N/A N/A vim TaskInfo State success N/A N/A N/A N/A N/A N/A task info result None N/A hideResult N/A N/A out N/A %s completed successfully, result: %s N/A actionName N/A N/A task info result N/A out N/A N/A out N/A %s completed successfully. actionName N/A out N/A N/A out N/A %s did not complete successfully: %s N/A actionName N/A N/A task info error N/A N/A N/A task info error N/A out N/A N/A N/A task info result N/A main N/A N/A N/A N/A N/A N/A N/A si None N/A N/A N/A Trying to connect to VCENTER SERVER . . . N/A si N/A N/A connect Connect N/A inputs N/A vcenter_ip 443 N/A inputs N/A vcenter_user N/A inputs N/A vcenter_password N/A N/A N/A IOError N/A e N/A N/A N/A N/A N/A atexit register Disconnect si N/A Connected to VCENTER SERVER ! N/A content N/A N/A si RetrieveContent N/A datacenter N/A get_obj content N/A N/A vim Datacenter N/A inputs N/A datacenter N/A vmFolder N/A datacenter vmFolder N/A vm_name N/A inputs N/A vm_name N/A vm N/A get_obj content N/A N/A vim VirtualMachine vm_name N/A N/A N/A N/A vm runtime powerState poweredOff N/A N/A WARNING:: Power off your VM before cold migration N/A N/A N/A sys exit N/A target_host N/A get_obj content N/A N/A vim HostSystem N/A inputs N/A target_host N/A relocate_spec N/A N/A N/A vim vm RelocateSpec N/A datastore N/A target_host datastore N/A N/A N/A N/A N/A datastore summary type VMFS N/A N/A N/A  Moving the VM in %s N/A datastore name N/A N/A relocate_spec datastore datastore N/A N/A N/A relocate_spec host target_host N/A N/A relocate_spec pool N/A vm resourcePool N/A cloneSpec N/A N/A N/A vim vm CloneSpec powerOn False template False location relocate_spec N/A Moving the VM  N/A task N/A N/A vm Clone name temp folder vmFolder spec cloneSpec N/A job_status N/A wait_for_task task si N/A job_status N/A N/A vmconf N/A N/A N/A vim vm ConfigSpec N/A N/A vmconf name N/A N/A vm config name N/A N/A vmconf uuid N/A N/A vm config uuid N/A Destroying the source VM N/A task N/A N/A vm Destroy N/A N/A wait_for_task task si N/A Configuring the VM with old name and uuid N/A new_vm N/A get_obj content N/A N/A vim VirtualMachine temp N/A task N/A N/A new_vm ReconfigVM_Task vmconf N/A N/A wait_for_task task si N/A Successfully cold migrated N/A N/A Error while cold migration N/A N/A N/A N/A vmodl MethodFault N/A e N/A N/A N/A Caught vmodl fault: %s N/A e msg N/A 1 N/A N/A Exception N/A e N/A N/A N/A Caught exception: %s N/A str e N/A 1 N/A N/A N/A __name__ __main__ N/A N/A N/A main