ورود

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : stop exsi in ssh



hajahmad
August 25th, 2011, 09:19
چطور مي تونم يوزرهاي روي وي ام exsi رو از stop - ssh كنم؟

دستورش چيه؟

kevin_n
August 25th, 2011, 09:47
vim-cmd vmsvc/getallvms
Lists all vm's running on hypervisor and provides vmid

vim-cmd vmsvc/power.off vmid
Powers off vmid referenced from getallvms command

vim-cmd vmsvc/power.on vmid
Powers off vmid referenced from getallvms command

vim-cmd vmsvc/power.reboot vmid
Reboots vmid referenced from getallvms command

vim-cmd vmsvc/destroy vmid
Deletes the vmdk and vmx files from disk

vim-cmd hostsvc/maintenance_mode_enter
Puts hypervisor into maintenance mode

vim-cmd hostsvc/maintenance_mode_exit
Takes hypervisor out of maintenance mode

vim-cmd solo/registervm /vmfs/vol/datastore/dir/vm.vmx
Registers vm in hypervisor inventory

vim-cmd vmsvc/unregister vmid
Unregisters vm with hypervisor

vim-cmd vmsvc/tools.install vmid
Starts vmware tools installation for VM

vim-cmd hostsvc/net/info
Provides information about hypervisor networking

chkconfig -l
Shows daemons running on hypervisor. Can also be used for configuration.

esxtop
Same as linux top for vmware

vmkerrcode -l
List of vmkernel errors

esxcfg-info
Lists a LOT of information about the esx host

esxcfg-nics -l
Lists information about NIC's. Can also be used for configuration.

esxcfg-vswitch -l
Lists information about virtual switching. Can also be used for configuration.

dcui
Provides console screen to ssh session

vsish
Vmware interactive shell
-------------------------------------
IP info command:
esxcfg-vmknic -l
esxcfg-route -l (for defaultgateway)
esxcfg-vswitch -l (for switch)

You can find all the commands in /sbin

hajahmad
August 25th, 2011, 10:07
براي اينكه stop كنم ميشه توضيح بيشتر بديد.

kevin_n
August 25th, 2011, 10:11
شما اگر دقیقا توضیح میدادید که میخواید چکار کنید من کل کامند هارو نمیذاشتم دوست عزیز.
منظورتون از استاپ‌ یوزر چیه؟
دقیقا میخواید چکار کنید؟

hajahmad
August 25th, 2011, 10:28
من مي خوام تمامي VPS هايي رو كه روي يك سرور esxi هست رو خاموش كنم كه ديگه خودشون كه كنسول دارن نتونن روشن كنن.

kevin_n
August 25th, 2011, 10:35
اول با این دستور لیست VMs رو ببینید

vim-cmd vmsvc/getallvms

بعد با این آف کنید

vim-cmd vmsvc/power.off vmid

hajahmad
August 25th, 2011, 10:41
نميشه يكجا همه رو آف كرد؟

kevin_n
August 25th, 2011, 12:13
۲راه دارید.
۱-اسکریپت بنویسید و ران کنید
۲-سرور اصلیو کلا ریست کنی‌(که این راه پیشنهاد نمی‌شه)