API 要求を使用してコントローラのアップグレードを実行する例を示します。次に、イメージをダウンロードし、ファームウェア ポリシーを設定し、アップグレード ステータスをモニタする方法の例を示します。
このトピックでは、ファームウェア コントローラのアップグレードを管理およびモニタリングするための API 要求の例を示します。
Cisco APIC イメージをリポジトリにダウンロードする
POST URL: http://trunk6-ifc1/api/node/mo/uni/fabric.xml
<firmwareRepoP>
<firmwareOSource name="APIC_Image_download" proto="http"
url="http://172.21.158.190/aci-apic-dk9.1.0.0.72.iso"/>
</firmwareRepoP>
スイッチ イメージをリポジトリにダウンロードする
POST URL: http://trunk6-ifc1/api/node/mo/uni/fabric.xml
<firmwareRepoP>
<firmwareOSource name="Switch_Image_download" proto="http"
url="http://172.21.158.190/aci-n9000-dk9.11.0.0.775.bin"/>
</firmwareRepoP>
コントローラ ファームウェア ポリシー:コントローラの目的のバージョン設定
POST URL: http://trunk6-ifc1/api/node/mo/uni/controller.xml
<firmwareCtrlrFwP
version="apic-1.0(0.72)"
ignoreCompat="true">
</firmwareCtrlrFwP>
コントローラのメンテナンス ポリシー:コントローラのアップグレードのトリガを今すぐ開始する
POST URL: http://trunk6-ifc1/api/node/mo/uni/controller.xml
<maintCtrlrMaintP
adminState="up" adminSt="triggered">
</maintCtrlrMaintP>
コントローラで現在実行中のバージョンを取得する
(all controllers) GET URL :
http://trunk6-ifc1.insieme.local/api/node/class/firmwareCtrlrRunning.xml
(a controller) GET URL :
http://trunk6-ifc1.insieme.local/api/node/mo/topology/pod-1/node-1/sys/
ctrlrfwstatuscont/ctrlrrunning.xml
コントローラのアップグレードのステータスを取得する
(all controllers) GET URL :
http://trunk6-ifc1.insieme.local/api/node/class/maintUpgJob.xml
(a controllers) GET URL :
http://trunk6-ifc1.insieme.local/api/node/mo/topology/pod-1/node-1/sys/
ctrlrfwstatuscont/upgjob.xml