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

はじめに

Crosswork Network Controller (以下 CNC) は、Verison 2.0 以降において、Crosswork Network AutomationのInfrastructure (又は、Crosswork Cluster) 上のアプリケーションとして動作します。動作するアプリケーションには、以下のようなものが例としてあります。

Optimization Engine
Active Topology
Change Automation
Health Insights
Platform Infrastructure

 


前提事項

ここでは全てのログを生成するshow tech allをCLIで取得する方法について説明しています。CNCでは show tech allログはGUIで取得することができます。そのため通常はGUIから取得することを推奨致します。ただし、何らかの理由でGUIで取得できない状況となった場合はここでご紹介するCLIでの取得を試みてください。GUIでのshow tech Allのログ取得方法については下記のページをご参照ください。

https://community.cisco.com/t5/-/-/ta-p/4762559
Crosswork:show tech Allのログ取得方法について

 


手順

1) ログイン
いずれかのHybridノードに管理者アカウントでログインします。ログイン後、kubectl get コマンドで robot-orchから始まる名前のorchestrator podを確認します。

kubectl get pod -n kube-system |grep robot-orch

 

出力された内容を元にorchestrator podにログインします。

 

kubectl exec -it robot-orch-xxxxxxx -n kube-system -- bash

 

実行例

root@1-2-200-101-hybrid:~# kubectl get pod -n kube-system |grep robot-orch
robot-orch-665bf59bbb-dbbnh                            1/1     Running   0          21d
root@1-2-200-101-hybrid:~#
root@1-2-200-101-hybrid:~# kubectl exec -it robot-orch-665bf59bbb-dbbnh -n kube-system -- bash
bash-5.1#

 

2) show tech Allのログ取得
robotctl collect-logs コマンドを実行してログを取得します。

robotctl collect

 

コマンドを実行すると、処理の実施を再度確認されますので"y"を入力して処理を進めます。

bash-5.1# robotctl collect
Note: Cli circumvents API operations and is meant for development activities only
Are you sure? [y/n]: y
Job started successfully.
Job id: 20230724023936.
- Use "robotctl collect-status 20230724023936"

bash-5.1#

 ログの収集には時間がかかります。収集中のJobのステータスは robotctl collect-status job番号で確認することができます。

bash-5.1# robotctl collect-status 20230724023936
Note: Cli circumvents API operations and is meant for development activities only

Status of jobid: 20230724023936
Progress completed: 65.6%

Total Pods: 96
Running: 33
Completed: 63
Timedout: 0
bash-5.1#

 収集処理が完了すると、scp に関する情報が表示されますので、情報に基づきログファイルをコピーしてください。

bash-5.1# robotctl collect-status 20230724023936
Note: Cli circumvents API operations and is meant for development activities only

Status of jobid: 20230724023936
Jobid completed successfully.

Tar file: /mnt/showtech/showtech_all_20230724023936.tar.gz

To copy:
export USER="your_user"
export DEST="your_destination_ip:/path"
scp /mnt/showtech/showtech_all_20230724023936.tar.gz ${USER}@${DEST}

bash-5.1#

 

 

関連情報

https://community.cisco.com/t5/-/-/ta-p/4762559
Crosswork:show tech Allのログ取得方法について 

 

Getting Started

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

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