'''ロールバックの操作///
1.パッチのロールバック
稼働中のコードは変更されない
ロールバックポイントにユーザタグまたはシステムタグを使用できる
2.ロールバックのアクティベート
ペンディングステータスとなっているパッチが同時に削除される
ロールバックされたパッチはdiskから削除される
以下は実行例となります。
<定義されているタグの確認>
Switch#show install tags running
Tags defined over software running on location s72033_rp - Slot 2 :
Tagname # of Files Date Committed
------------------------------- ---------- ------------------------
MyIOS_v1.0 1 11:26:26 PDT Apr 11 2006
MyIOS_v1.1 2 22:25:00 PDT Apr 11 2006
Tags defined over software running on location s72033 - Slot 2 :
Tagname # of Files Date Committed
------------------------------- ---------- ------------------------
MyIOS_v1.0 1 11:26:26 PDT Apr 11 2006
MyIOS_v1.1 1 22:25:00 PDT Apr 11 2006
<ロールバックポイントの指定>
Switch#install rollback disk0:/sys MyIOS_v1.0
Gathering information for location s72033_rp - Slot 2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! …
Activation will affect the following processes:
iprouting.iosproc
[OK]
<ペンディングとなっているパッチの確認>
Switch#show install running
Software running on card installed at location s72033_rp - Slot 2 :
B/P C State Filename
--- - -------- --------
B * Active disk0:/sys/s72033_rp/base/DRACO2_MP
MP Maintenance Pack
P * PendRoll disk0:/sys/s72033_rp/patch/patch-XAA2101-00-0-n.so
Software running on card installed at location s72033 - Slot 2 :
B/P C State Filename
--- - -------- --------
B * Active disk0:/sys/s72033/base/s72033-ipservices_wan-vm(12.2(18)SXF4)
<ロールバックのアクティベート>
Switch#install activate disk0:/sys
Determining processes to restart at location s72033_rp - Slot 2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! …
The following processes will be restarted:
iprouting.iosproc
Do you want to continue with activating this change set...? [yes/no]: yes
Proceeding with activation, writing installer meta-data ...
Updating more installer meta-data ...
Beginning process restarts ...
!!!!!!!!!!!!!!!!!!!!!!
Affected processes restarted.
[DONE]
<削除されたパッチの確認>
Switch#show install running
Software running on card installed at location s72033_rp - Slot 2 :
B/P C State Filename
--- - -------- --------
B * Active disk0:/sys/s72033_rp/base/DRACO2_MP
Software running on card installed at location s72033 - Slot 2 :
B/P C State Filename
--- - -------- --------
B * Active disk0:/sys/s72033/base/s72033-ipservices_wan-vm(12.2(18)SXF4)
<タグの確認>
Switch#show install tags running
Tags defined over software running on location s72033_rp - Slot 2 :
Tagname # of Files Date Committed
------------------------------- ---------- ------------------------
MyIOS_v1.0 1 11:26:26 PDT Apr 11 2006
Tags defined over software running on location s72033 - Slot 2 :
Tagname # of Files Date Committed
------------------------------- ---------- ------------------------
MyIOS_v1.0 1 11:26:26 PDT Apr 11 2006