よく使うけどすぐに忘れてしまいがちなコマンドを備忘として記載していきます
何かの参考になったら幸いです
showコマンド
IOS | IOS-XR | Junos | 備考 |
---|---|---|---|
show ip route ospf | show route ospf | show ospf route | ルーティングテーブル情報(OSPF) |
show ipv6 neighbors | show ipv6 neighbors | show ipv6 neighbors | IPv6リンクアップ確認 |
show ipv6 route | show ipv6 route | show route table inet6.0 | ルーティングテーブル情報(IPv6) |
show bgp ipv6 summaryshow bgp ipv6 unicast summary | show bgp ipv6 summaryshow bgp ipv6 unicast summary | show bgp summary (| find 6.0) | BGP(IPv6)のPeerUPとネイバー数を確認 |
show logging | show logging | show log messages | ログ情報確認 |
show processes cpu | show processes cpu | show system process show chassis routing-engine | CPU使用率確認 |
show route-map | show route-map | show policy | 設定ポリシー確認 |
show route-map (map名) | show route-map (map名) | show policy (map名) | 設定ポリシー詳細確認(マップ名別) |
show running-config | show running-config | show configuration | 設定コンフィグ確認 |
show users | show users | show system users | ログイン中のユーザー確認 |
show tech-support | show tech-support | request support infomation | テクニカルサポートが必要とするハードウェア及びソフトウェア情報を表示 |
show version | show version | show version | OSバージョン情報 |
show arp | show arp | show arp | ARPテーブル確認 |
sh mac address-table | sh mac address-table | show ethernet-switching table | MAC テーブル確認 |
show clock | show clock | show system uptime | 機器の標準時間確認 |
show diags | show diags | show chassis hardware | ハードウェア情報(シャーシ、搭載パッケージ等) |
show enviroment all | show enviroment all | show chassis enviroment | 電源、ファン等の情報 |
show history | show history | show cli history | 設定コマンド履歴 |
show interface XXX | show interface XXX | show interface XXX (detail) | インターフェース情報 |
show interface description | show interface description | show interfaces description | 説明文をつけたインターフェースサマリ情報。※interfaceにdescription設定をしないと確認できない |
show interfaces transceiver | show controllers <interface-name> all | show interfaces diagnostics optics <interface-name> | 搭載SFPの光レベル情報 |
show inventory | admin show diag | 搭載PKG、SFPの種類、シリアル番号表示(SFPは一部、純正品のみ対応) | |
show ip bgp neighbor (peer address) advertised-routes | show bgp neighbor (peer address) advertised-routes | show route advertising-protocol bgp (peer address) | BGP広報経路確認 |
show ip bgp neighbor (peer address) received-routes | show bgp neighbor (peer address) received-routes | show route receive-protocol bgp (peer address) | BGP受信経路確認 |
show ip bgp peer-group | show bgp peer-group | show bgp group | BGP Peerグループ確認 |
show ip bgp regexp (regex) | show bgp regexp (regex) | show route aspath-regexp (regex) | ASパスをマッチングしBGProuteを確認 |
show ip bgp summary(仮想マネル) show bgp vpnv4 unicast all summary | show bgp summary | show bgp summary | BGP(IPv4)のPeerUPとネイバー数を確認 |
show ip interface brief | show interface brief | show interfacce terse | IPv4インターフェースステータス情報 |
show ip ospf database | show ospf database | show ospf database | OSPFデータベース情報 |
show ip ospf neighbor | show ospf neighbor | show ospf neighbor | OSPFネイバー情報 |
show ip ospf interface | show ospf interface | show ospf interface | インターフェースでのOSPF詳細情報 |
show ip route | show route | show route | ルーティングテーブル情報 |
show ip cef exact route xxx xxx | show cef exact route xxx xxx | show route forwarding-table destination xxx | FIBテーブル情報 |
terminalコマンド
IOS | Junos | 備考 |
---|---|---|
terminal length 0 | set cli screen-length 0 | 画面に表示される行数を指定。”0″だとmoreが出力されず、すべてを表示する |
terminal monitor | monitor start messages | ログメッセージをリアルタイムで表示する |
terminal no monitor | monitor stop messages | リアルタイムで表示されるログメッセージの表示を止める |
制御コマンド
IOS | Junos | 備考 |
---|---|---|
clear counters | clear interface statics | インターフェースカウントをクリア |
clear ip bgp | clear bgp neighbor | BGPセッションクリア |
clear ethernet-switching table | MACテーブルクリア ソースを展開 | |
reload | request system reboot | 再起動 |
write eraseerase startup-config | load factory-default | 設定初期化 |
write memorycopy running-config startup-config | commit | コンフィグ設定保存 |
関連記事