キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 
cancel
5120
閲覧回数
0
いいね!
0
コメント
DCNhowtoAdmin
Level 2
Level 2

本記事では、APIC とスイッチの初期化の手順についてご紹介します。

 

APIC の初期化

APIC を初期化する際には、APIC の CLI で以下のコマンドを実行します。

 

apic1# acidiag touch clean

This command will wipe out this device, Proceed? [y/N] y

apic1# acidiag touch setup

This command will reset the device configuration, Proceed? [y/N] y

apic1# acidiag reboot

This command will restart this device, Proceed? [y/N] y

 

acidiag touch clean コマンドは APIC のネットワーク構成(ファブリック名、IPアドレス、ログインなど)を保持したまま、すべてのポリシーデータを acidiag reboot コマンド実施後に削除します。

acidiag touch setup コマンドはポリシーデータと APIC のネットワーク設定の両方を acidiag reboot コマンド実施後に削除します。

acidiag reboot コマンドは APIC を再起動します。

 

スイッチの初期化

Leaf, Spine スイッチを初期化する方法は下記の3つの方法があります。スイッチをどこまで初期化するのかによって、初期化方法が異なります。

  1. acidiag touch clean コマンドで設定ファイルを再ダウンロードする方法
  2. setup-clean-config.sh で設定ファイルとハードウェアの状態を削除する方法
  3. prepare-mfg.sh で工場出荷状態時に戻す方法

 

1. acidiag touch clean コマンドで設定ファイルを再ダウンロードする方法

Leaf, Spine スイッチの CLI で以下のコマンドを実行します。

 

Leaf1# acidiag touch clean

This command will wipe out this device, Proceed? [y/N] y

Leaf1# reload

This command will reload the chassis, Proceed (y/n)? [n]: y

 

acidiag touch clean コマンドを実施し、再起動を行うと、次回の機器起動時に設定ファイルが削除され、APIC から設定ファイルを再び読み込みます。

 

2. setup-clean-config.sh で設定ファイルとハードウェアの状態を削除する方法

Leaf, Spine スイッチの CLI で setup-clean-config.sh というスクリプトを実行します。

 

Leaf1# setup-clean-config.sh

In progress

In progress

In progress

In progress

In progress

Done

Leaf1# reload

This command will reload the chassis, Proceed (y/n)? [n]: y

 

setup-clean-config.sh を使用し、再起動を行うと、次回起動時に設定ファイルだけでなく、Port Profile や Forwarding Scale Profile といったハードウェアの状態も削除されます。

 

3. prepare-mfg.sh で工場出荷状態に戻す方法

Leaf, Spine スイッチの CLI で prepare-mfg.sh というスクリプトを使用します。


Leaf1# prepare-mfg.sh <image file 名>

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

In progress

Done

Leaf1# reload

This command will reload the chassis, Proceed (y/n)? [n]: y

※ <image file 名> には bootflash にある image file 名 (例: aci-n9000-dk9.15.2.8e.bin) を入力してください。

 

prepare-mfg.sh を使用後に再起動を行うと、次回の起動時に該当機器を工場出荷時の状態に戻すことができます。

 

参考資料

Getting Started

検索バーにキーワード、フレーズ、または質問を入力し、お探しのものを見つけましょう

シスコ コミュニティをいち早く使いこなしていただけるよう役立つリンクをまとめました。みなさんのジャーニーがより良いものとなるようお手伝いします