当前位置: 首页 > 工具软件 > vim-mode > 使用案例 >

vmware vim-cmd命令总结

元景天
2023-12-01

vmware-vim-cmd vmsvc/getallvms

vmware-vim-cmd vmsvc/power.getstate  vmid#

vmware-vim-cmd vmsvc/power.on vmid#

vmware-vim-cmd vmsvc/power.off vmid#

vmware-vim-cmd vmsvc/power.suspend vmid#

vmware-vim-cmd vmsvc/power.reset vmid#
vmware-vim-cmd vmsvc/power.shutdown vmid#
vmware-vim-cmd vmsvc/power.reboot vmid#
vmware-vim-cmd vmsvc/power.hibernate vmid#
vmware-vim-cmd vmsvc/snapshot.create vmid# snapshot1 snapshot_description
vmware-vim-cmd vmsvc/snapshot.create xxxx first_snapshot first_snapshot_1
vmware-vim-cmd vmsvc/snapshot.revert vmid# snapshotLevel snapshotIndex
vmware-vim-cmd vmsvc/snapshot.revert xxxx 1
vmware-vim-cmd vmsvc/snapshot.removeall vmid#
vmware-vim-cmd vmsvc/snapshot.remove vmid# removeChildren snapshotLevel snapshotIndex
vmware-vim-cmd vmsvc/snapshot.get vmid#

vmware-vim-cmd hostsvc/maintenance_mode_enter
vmware-vim-cmd hostsvc/maintenance_mode_exit
vmware-vim-cmd hostsvc/vmotion/vnic_set vnic#
vmware-vim-cmd hostsvc/vmotion/vnic_set esxcfg-vmknic -l | grep "vmkernel_portgroup_name" | awk 'print $1'
vmware-vim-cmd hostsvc/net/vswitch_add vswitch#
vmware-vim-cmd hostsvc/net/vswitch_move vswitch#
vmware-vim-cmd hostsvc/net/portgroup_add --nicteaming-policy=loadbalance_ip vSwitch0 Portgroup 27
vmware-vim-cmd hostsvc/net/portgroup_remove vswitch# portgroup#
vmware-vim-cmd hostsvc/summary/scsilun
vmware-vim-cmd hostsvc/summary/hba
vmware-vim-cmd hostsvc/summary/fsvolume

 类似资料: