2012年7月5日 星期四

PSTOOLS

今天有台Server卡死了,無法遠端重開機。正打算直接讓這台后伊系時,同事使用pstools這套工具,清除卡死的程序,不用重開機,就讓這台Server重見天日。

PSTOOLS被微軟吃下來,已是微軟官方的標準工具,可到以下路徑下載:
http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx

這裡有詳細使用說明:
http://technet.microsoft.com/zh-tw/magazine/2007.03.desktopfiles.aspx

PSTOOLS提供12種實用工具,讓你可以使用指令方式,操作遠端機器。各項工具簡介如下:

  • PsExec 可讓您在任何使用者內容中執行處理序。
  • PsFile 顯示系統上以遠端方式開啟的檔案。
  • PsGetSid 顯示電腦或使用者的 Windows 安全性識別碼 (SID)。
  • PsInfo 列出有關 Windows 系統的資訊。
  • PsKill 根據名稱或處理序識別碼刪除處理序。
  • PsList 列出有關執行中處理序的詳細資訊。
  • PsLoggedOn 顯示所有本機登入使用者,以及遠端資源共用使用者。
  • PsLogList 傾印 Windows 事件記錄檔記錄。
  • PsPasswd 變更使用者帳戶密碼。
  • PsService 檢視和控制 Windows 服務。
  • PsShutdown 讓電腦關閉、重新啟動、休眠或暫止。
  • PsSuspend 暫止執行中的處理序。


以這次案例而言,先使用PsList這支程式,連線到這台Server看看哪支處理程序Hold,再用PsKill將該程序刪除。

2012年5月14日 星期一

如何將ESXi 5.0安裝到USB/SD卡

以下是VM官網原文出處:
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2004784



  1. Acquire and create an installation CD/DVD by downloading ESXi 5.0 from the VMware Download Center and burn the ISO file onto CD/DVD media.
  2. Insert the ESXi 5.0 Installable CD into the CD/DVD-ROM drive.
  3. Press the key required to activate your machine's BIOS setup. This key is often a function key or the Delete key. For more information, consult your hardware vendor documentation.
  4. Ensure that you have set the BIOS to boot from a CD/DVD-ROM device. This varies based on manufacturer.
  5. Boot off the ESXi 5.0 Installation CD/DVD media.
  6. Let the Automatic boot countdown and boot as normal. The ESXi 5.0 installation process begins and you see that the kernel modules and drivers are loaded. The installation continues to load at a yellow screen.
  7. Wait for the installation to load completely.
  8. After you see the Welcome screen, press Enter to continue with the installation.
  9. Read the End-User License Agreement (EULA) and press F11 if you accept.

    The installer detects the disks available for installation. If it sees the flash drive, it is be presented as USB under type, and the model as flash reader.
  10. Select this device to install ESXi 5.x and press Enter. If the device is not listed, ensure that your machine sees the device and that the device is compatible. For more information, see the vSphere Compatibility Matrix.
  11. Select the keyboard layout. This is usually Default.
  12. Enter the root password you want. VMware recommends that you do not leave this blank.

    The installation begins and may take up to 15 minutes.
  13. When the installation completes, remove the installation CD/DVD-ROM.
  14. Press Enter to reboot the host.
  15. Set the first boot device to be the drive on which you installed ESXi on to the USB flash drive or SD flash card.