PowerCLI vis:¥> Connect-VIServer esxi02 -User 管理者ユーザ名 -Password '管理者パスワード' Name Port User ---- ---- ---- esxi02 443 管理者ユーザ名 PowerCLI vis:¥>
ESXCLIオブジェクトを取得する。
PowerCLI vis:¥> $esxcli = Get-EsxCli PowerCLI vis:¥>
ESXiの更新は、ESXCLIオブジェクトのsoftware.profile以下のメソッドを使う。
PowerCLI vis:¥> $esxcli.software.profile
======================
EsxCliElement: profile
Methods:
--------
ImageProfile get(boolean rebootingimage)
InstallationResult install(string[] depot, boolean dryrun, boolean force, boolean maintenancemode, boolean noliveinstall, bool
ean nosigcheck, boolean oktoremove, string profile, string proxy)
InstallationResult update(boolean allowdowngrades, string[] depot, boolean dryrun, boolean force, boolean maintenancemode, boo
lean noliveinstall, boolean nosigcheck, string profile, string proxy)
ProfileValidationResult validate(string[] depot, string profile, string proxy)
PowerCLI vis:¥> $esxcli.software.profile.update
TypeNameOfValue : VMware.VimAutomation.ViCore.Util10Ps.EsxCliExtensionMethod
OverloadDefinitions : {vim.EsxCLI.software.profile.update.InstallationResult update(boolean allowdowngrades, string[] depot, bool
ean dryrun, boolean force, boolean maintenancemode, boolean noliveinstall, boolean nosigcheck, string profi
le, string proxy)}
MemberType : CodeMethod
Value : vim.EsxCLI.software.profile.update.InstallationResult update(boolean allowdowngrades, string[] depot, boole
an dryrun, boolean force, boolean maintenancemode, boolean noliveinstall, boolean nosigcheck, string profil
e, string proxy)
Name : update
IsInstance : True
PowerCLI vis:¥>『その0・概要』
『その1・ダウンロード』
『その2・ESXCLIオブジェクト』
『その3・ゲスト機の停止』
『その4・メンテナンスモードへの移行』
『その5・更新』
『その6・再起動』
『その7・メンテナンスモードの解除』
0 件のコメント:
コメントを投稿