â» ãã®ã¨ã³ããªã¯ãã¯ã¦ãªã°ã«ã¼ãçµäºã«ä¼´ãããµãããã°ããã®å¼è¶ã¨ã³ããª(2010/12)ã§ãã
â» æ
å ±ãå¤ãå¯è½æ§ãããã¾ãã®ã§ããçæãã ããã
CLI ãã¤ã³ã¹ãã¼ã«ãããªã¢ã¼ãã®ãµã¼ãããã³ãã³ããçºè¡ãã¦ãvCenter Server ã®ä»®æ³ãã·ã³ (VM) ãå¶å¾¡ããã
"--server" 㯠vCenter ã®IPã¢ãã¬ã¹ã"--vihost" ã¯ãã¹ã(ãã¼ã)ã®IPã¢ãã¬ã¹ãã£ã¦æããã¡ãªã¿ã« "--password" ã§ãã¹ã¯ã¼ããæå®ã§ããã
# ã¡ãªã¿ã«ãvmware-cmdã¯ãä¸è¨ä»¥å¤ã«ãããã£ã¨è²ã
ãªæä½ãå¯è½ãããããæ¸ãã¦ããã¾ãã
Config(.vmx, .vmtx)ã®ãã¹ã確èªãã
# vmware-cmd --server 10.255.xxx.xxx --username Administrator --vihost 10.255.yyy.yyy -l Enter password: /vmfs/volumes/4cfcxxxx-ba2cxxxx-64xx-00xxxx06xxxx/template_xxxx/template_n.vmtx /vmfs/volumes/4cfcxxxx-ba2cxxxx-64xx-00xxxx06xxxx/test01/test01.vmx
ä»®æ³ãã·ã³ãèµ·åãã
# vmware-cmd '/vmfs/volumes/4cfcxxxx-ba2cxxxx-64xx-00xxxx06xxxx/test01/test01.vmx' start --server 10.255.xxx.xxx --username Administrator --vihost 10.255.yyy.yyy Enter password: start() = 1
ä»®æ³ãã·ã³ã®uptimeã確èªãã
# vmware-cmd '/vmfs/volumes/4cfcxxxx-ba2cxxxx-64xx-00xxxx06xxxx/test01/test01.vmx' getuptime --server 10.255.xxx.xxx --username Administrator --vihost 10.255.yyy.yyy Enter password: getuptime() = 2340
ä»®æ³ãã·ã³ãåæ¢ãã(ã²ã¹ãã®ã·ã£ãããã¦ã³)
# vmware-cmd '/vmfs/volumes/4cfcxxxx-ba2cxxxx-64xx-00xxxx06xxxx/test01/test01.vmx' stop soft --server 10.255.xxx.xxx --username Administrator --vihost 10.255.yyy.yyy Enter password: stop() = 1