Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

2015年2月26日 dsthHUB LT資料 『DataSpider vSphere アダプタ(風)』

909 views

Published on

vSphere上の仮想マシンの制御をDataSpiderで行ってみた、という発表です。

DataSpiderにはvSphereアダプタはありませんが、PowerShell経由でvSphereの様々な操作やモニタリングを実現することができ、会場ではDataSpiderから仮想マシンの起動と終了ができることもデモされました。

Published in: Software
  • Be the first to comment

  • Be the first to like this

2015年2月26日 dsthHUB LT資料 『DataSpider vSphere アダプタ(風)』

  1. 1. Dat aSpi der vSphere アダプタ ( 風 ) 開発部 QAチーム 谷平 純一
  2. 2. …たとえば • vSpher e ESXi Hyper vi sor 上の – 仮想マシンを自動で起動したい – 仮想マシンを自動で停止したい – そのほかにもいろいろ • でも – なるべくお金をかけたくない
  3. 3. そうだ Dat aSpi der でやろ う! • でも – Dat aSpi der   Ser vi st a   SDK や vSpher e Management SDK などは敷居 が高い – SOAP を直接叩いて実行することもできそ うだが今さら SOAP というのも – vCent er Or chest r at or であれば REST API を持つが、使用するためのラ イセンスが高くつく • vCent er St andar d 以上のライセンスが必要
  4. 4. Java は書けぬが Power Shel l は書け る ! ! !
  5. 5. そんな人って 少数派では
  6. 6. 忘れよう
  7. 7. vSpher e Power CLI • Power Shel l を使って vSpher e を操作できる – Power Shel l に、 vSpher e を操作 するコマンドレットを追加したもの
  8. 8. vSpher e Power CLI • インストール – 手順の紹介は省略
  9. 9. Power shel l のスクリプトを書 く 1 行目 : Power CLI のスナップインを追加 2 行目 : vSpher e ESXi に接続する 3 行目 : 仮想マシンを起動 / 停止する 4 行目 : vSpher e ESXi の接続を切断する 5 行目 : スクリプト終了
  10. 10. 外部アプリケーション起動処理で呼び 出す
  11. 11. 動くかな ?
  12. 12. なんと簡単 !
  13. 13. 豊富なコマンドレット ht t p: / / pubs. vmwar e. com/ vspher e- 55/ i ndex. j sp#com. vmware. power cl i . cmdl et r ef . doc/ Over vi ew. ht ml •Add- Passt hr oughDevi ce •Add- VMHost •Add- VmHost Nt pSer ver •Appl y- Dr sRecommendat i on •Appl y- VMHost Pr of i l e •Connect - VI Ser ver •Copy-Dat ast or eI t em •Copy-Har dDi sk •Copy-VMGuest Fi l e •Di sconnect - VI Ser ver •Di smount -Tool s •Export - VApp •Export - VMHost Prof i l e •For mat - VMHost Di skPart i t i on •Get - AdvancedSet t i ng •Get - Al ar mAct i on •Get - Al ar mAct i onTr i gger •Get - Al ar mDef i ni t i on •Get - Annot at i on •Get - CDDr i ve •Get - Cl ust er •Get - Cust omAt t r i but e •Get - Dat acent er •Get - Dat ast or e •Get - Dr sRecommendat i on •Get - Dr sRul e •Get - Er r orRepor t •Get - EsxCl i •Get - EsxTop •Get - Fl oppyDr i ve •Get - Fol der •Get - HAPr i mar yVMHost •Get - Har dDi sk •Get - I nvent or y •Get - I Scsi HbaTarget •Get - Log •Get - LogType •Get - Net wor kAdapt er •Get - Ni cTeami ngPol i cy •Get - OSCust omi zat i onNi cMappi ng •Get - OSCust omi zat i onSpec •Get - Passt hr oughDevi ce •Get - PowerCLI Conf i gurat i on •Get - PowerCLI Versi on •Get - Resour cePool •Get - Scsi Cont r ol l er •Get - Scsi Lun •Get - Scsi LunPat h •Get - Snapshot •Get - St at •Get - St at I nt er val •Get - St at Type •Get - Task •Get - Templ at e •Get - UsbDevi ce •Get - VApp •Get - VI Cr edent i al St oreI t em •Get - VI Event •Get - Vi ew •Get - VI Obj ect ByVI Vi ew •Get - VI Permi ssi on •Get - VI Pr i vi l ege •Get - VI Rol e •Get - Vi r t ual Por t Gr oup •Get - Vi r t ual Swi t ch •Get - VM •Get - VMGuest •Get - VMGuest Net wor kI nt er f ace •Get - VMGuest Rout e •Get - VMHost •Get - VMHost Account •Get - VMHost AdvancedConf i gur at i on •Get - VMHost Avai l abl eTi meZone •Get - VMHost Di agnost i cPar t i t i on •Get - VMHost Di sk •Get - VMHost Di skPar t i t i on •Get - VMHost Fi r ewal l Def aul t Pol i cy •Get - VMHost Fi r ewal l Except i on •Get - VMHost Fi r mwar e •Get - VMHost Hba •Get - VMHost Modul e •Get - VMHost Net wor k •Get - VMHost Net wor kAdapt er •Get - VMHost Nt pSer ver •Get - VMHost Pat ch •Get - VMHost Pr of i l e •Get - VMHost Rout e •Get - VMHost Ser vi ce •Get - VMHost Snmp •Get - VMHost St ar t Pol i cy •Get - VMHost St or age •Get - VMHost SysLogSer ver •Get - VMQuest i on •Get - VMResour ceConf i gur at i on •Get - VMSt ar t Pol i cy •I mport - VApp •I mport - VMHost Prof i l e •I nst al l - VMHost Pat ch •I nvoke- VMScr i pt •Mount - Tool s •Move-Cl ust er •Move-Dat acent er •Move-Fol der •Move-I nvent or y •Move-Resour cePool •Move-Templ at e •Move-VM •Move-VMHost •New- AdvancedSet t i ng •New- Al ar mAct i on •New- Al ar mAct i onTr i gger •New- CDDr i ve •New- Cl ust er •New- Cust omAt t r i but e •New- Cust omFi el d •New- Dat acent er •New- Dat ast or e •New- Dr sRul e •New- Fl oppyDr i ve •New- Fol der •New- Har dDi sk •New- I Scsi HbaTarget •New- Net wor kAdapt er •New- OSCust omi zat i onNi cMappi ng •New- OSCust omi zat i onSpec •New- Resour cePool •New- Scsi Cont r ol l er •New- Snapshot •New- St at I nt er val •New- Templ at e •New- VApp •New- VI Cr edent i al St oreI t em •New- VI Permi ssi on •New- VI Pr oper t y •New- VI Rol e •New- Vi r t ual Por t Gr oup •New- Vi r t ual Swi t ch •New- VM •New- VMGuest Rout e •New- VMHost Account •New- VMHost Net wor kAdapt er •New- VMHost Pr of i l e •New- VMHost Rout e •Remove- AdvancedSet t i ng •Remove- Al ar mAct i on •Remove- Al ar mAct i onTri gger •Remove- CDDr i ve •Remove- Cl ust er •Remove- Cust omAt t r i but e •Remove- Cust omFi el d •Remove- Dat acent er •Remove- Dat ast ore •Remove- DrsRul e •Remove- Fl oppyDri ve •Remove- Fol der •Remove- Har dDi sk •Remove- I nvent ory •Remove- I Scsi HbaTar get •Remove- Net wor kAdapt er •Remove- OSCust omi zat i onNi cMappi ng •Remove- OSCust omi zat i onSpec •Remove- Passt hr oughDevi ce •Remove- Resour cePool •Remove- Snapshot •Remove- St at I nt er val •Remove- Templ at e •Remove- UsbDevi ce •Remove- VApp •Remove- VI Cr edent i al St or eI t em •Remove- VI Per mi ssi on •Remove- VI Pr opert y •Remove- VI Rol e •Remove- Vi r t ual Por t Group •Remove- Vi r t ual Swi t ch •Remove- VM •Remove- VMGuest Rout e •Remove- VMHost •Remove- VMHost Account •Remove- VMHost Net wor kAdapt er •Remove- VMHost Nt pSer ver •Remove- VMHost Prof i l e •Remove- VMHost Rout e •Rest ar t - VM •Rest ar t - VMGuest •Rest ar t - VMHost •Rest ar t - VMHost Ser vi ce •Set - AdvancedSet t i ng •Set - Al ar mDef i ni t i on •Set - Annot at i on •Set - CDDr i ve •Set - Cl ust er •Set - Cust omAt t r i but e •Set - Cust omFi el d •Set - Dat acent er •Set - Dat ast or e •Set - Dr sRul e •Set - Fl oppyDr i ve •Set - Fol der •Set - Har dDi sk •Set - I Scsi HbaTarget •Set - Net wor kAdapt er •Set - Ni cTeami ngPol i cy •Set - OSCust omi zat i onNi cMappi ng •Set - OSCust omi zat i onSpec •Set - PowerCLI Conf i gurat i on •Set - Resour cePool •Set - Scsi Cont r ol l er •Set - Scsi Lun •Set - Scsi LunPat h •Set - Snapshot •Set - St at I nt er val •Set - Templ at e •Set - VApp •Set - VI Permi ssi on •Set - VI Rol e •Set - Vi r t ual Por t Gr oup •Set - Vi r t ual Swi t ch •Set - VM •Set - VMGuest Net wor kI nt er f ace •Set - VMHost •Set - VMHost Account •Set - VMHost AdvancedConf i gur at i on •Set - VMHost Di agnost i cPar t i t i on •Set - VMHost Fi r ewal l Def aul t Pol i cy •Set - VMHost Fi r ewal l Except i on •Set - VMHost Fi r mwar e •Set - VMHost Hba •Set - VMHost Modul e •Set - VMHost Net wor k •Set - VMHost Net wor kAdapt er •Set - VMHost Pr of i l e •Set - VMHost Rout e •Set - VMHost Ser vi ce •Set - VMHost Snmp •Set - VMHost St ar t Pol i cy •Set - VMHost St or age •Set - VMHost SysLogSer ver •Set - VMQuest i on •Set - VMResour ceConf i gur at i on •Set - VMSt ar t Pol i cy •Shut down-VMGuest •St ar t - VApp •St ar t - VM •St ar t - VMHost •St ar t - VMHost Servi ce •St op-Task •St op-VApp •St op-VM •St op-VMHost •St op-VMHost Ser vi ce •Suspend- VM •Suspend- VMGuest •Suspend- VMHost •Test -VMHost Pr of i l eCompl i ance •Test -VMHost Snmp •Updat e- Tool s •Wai t -Task •Wai t -Tool s
  14. 14. なんでもできる !
  15. 15. 残念ながら ESXi 無償ライセンスで は 使用不可最低でも VMwar e vSpher e Essent i al s Ki t が必要なようだ
  16. 16. スクリプトがあれば なんでもできる

×