show clock (可縮為sho clo)
*02:28:44.916 UTC Mon Mar 1 1993 時:分:秒 UTC標準 日 月 年
--------------------------------------------------------------------------------------------------------------------------
terminal length 0 ~ 512 (可縮為 ter le 0~512)
每次下指令後,顯示在畫面中的訊息行數(more),若設為0,則為取消more,指令下完會直接把所有結果丟到畫面上,若是訊息量大(幾十幾百行那種),你會看到畫面飛快的閃過一堆字。
--------------------------------------------------------------------------------------------------------------------------
show version (可縮成sho ver)
顯示版本,可以檢視到許多資訊,以下拿我練習的LAB機show出來的資訊來說明
Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(55)SE10, RELEASE SOFTWARE (fc2) 設備型號 IOS版本
Technical Support: http://www.cisco.com/techsupport 技術支援網站
Copyright (c) 1986-2015 by Cisco Systems, Inc. 版權宣告
Compiled Wed 11-Feb-15 11:46 by prod_rel_team
Image text-base: 0x00003000, data-base: 0x01900000
ROM: Bootstrap program is C2960 boot loader
BOOTLDR: C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(44)SE5, RELEASE SOFTWARE (fc1) 儲存在ROM中的Bootstrap 版本
Switch uptime is 39 minutes 系統持續執行時間(從最後一次開機至今的時間)
System returned to ROM by power-on 系統上一次重新載入時是甚麼原因(通常為power-on)
System image file is "flash:/c2960-lanbasek9-mz.122-55.SE10.bin" 儲存在flash中的IOS檔名
中間有一段美國法律聲明及網址,跳過
cisco WS-C2960-24TT-L (PowerPC405) processor (revision B0) with 65536K bytes of memory.
Processor board ID FOC1104Z1RR 記憶體元件及其容量
Last reset from power-on 最後一次重新開機的原因
1 Virtual Ethernet interface 此機體的介面及數量
24 FastEthernet interfaces
2 Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.
64K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address : 00:1B:0C:6D:78:80 Switch的Base MAC
Motherboard assembly number : 73-10390-03 交換機序號
Power supply part number : 341-0097-02 電源模組part number
Motherboard serial number : FOC11036N7Q 主機板serial number
Power supply serial number : AZS110304LA 電源模組serial number
Model revision number : B0 模組版本序號
Motherboard revision number : C0 主機板版本序號
Model number : WS-C2960-24TT-L 模組型號
System serial number : FOC1104Z1RR 系統serial number
Top Assembly Part Number : 800-27221-02 產品配件Part number
Top Assembly Revision Number : C0 產品配件序號
Version ID : V02 版本ID
CLEI Code Number : COM3L00BRA 語言辨識碼
(Common Language Equipment Identification)
Hardware Board Revision Number : 0x01 硬體版號
Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
* 1 26 WS-C2960-24TT-L 12.2(55)SE10 C2960-LANBASEK9-M 型號、IOS版本等
Configuration register is 0xF
--------------------------------------------------------------------------------------------------------------------------
show running-config (可縮為sho run) 顯示當前儲存在記憶體中使用中的Config資訊
Building configuration...
Current configuration : 1214 bytes
!
version 12.2
no service pad
service timestamps debug datetime msec 啟用debug時間紀錄
service timestamps log datetime msec 啟用log時間紀錄
no service password-encryption 取消加密,
!
hostname Switch 主機名稱
!
boot-start-marker 有設定boot system的話,會放在這(start及end中間)
boot-end-marker
!
!
!
!
no aaa new-model 不使用cisco aaa認證系統
system mtu routing 1500 設置MTU
!
!
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id 啟用spanning-tree附加功能添加system-id
!
vlan internal allocation policy ascending 自動建立內部VLAN,
! ascending,表示以升羃方式建立(1006到4096)
! 與ascending相對的項目為desending,表示以降冪方式建立(4096到1006)
!
所有介面及其狀態,因LAB目前為空,跳過
!
interface Vlan1 Cisco預設會啟用VLAN 1
no ip address 預設無IP位址
!
ip http server
ip http secure-server
!
line con 0
line vty 5 15 設定外部可連入的terminal數
!
end
--------------------------------------------------------------------------------------------------------------------------
show cdp neighbors
顯示目前與本機連接的線路上有甚麼設備存在,但僅能顯示使用cisco專屬協定CDP的設備
--------------------------------------------------------------------------------------------------------------------------
show cdp neighbors detail
顯示目前與本機連接的其他Cisco設備的詳細資料
--------------------------------------------------------------------------------------------------------------------------
show ip interface brief
簡要顯示本機所有介面的狀態,類似以下資訊,但不同型號,編號數量會有差異
Interface IP-Address OK? Method Status Protocol
Vlan1 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset up up
FastEthernet0/2 unassigned YES unset down down
FastEthernet0/3 unassigned YES unset down down
FastEthernet0/4 unassigned YES unset down down
FastEthernet0/5 unassigned YES unset down down
FastEthernet0/6 unassigned YES unset down down
FastEthernet0/7 unassigned YES unset down down
FastEthernet0/8 unassigned YES unset down down
FastEthernet0/9 unassigned YES unset down down
FastEthernet0/10 unassigned YES unset down down
FastEthernet0/11 unassigned YES unset down down
FastEthernet0/12 unassigned YES unset down down
FastEthernet0/13 unassigned YES unset down down
FastEthernet0/14 unassigned YES unset down down
FastEthernet0/15 unassigned YES unset down down
FastEthernet0/16 unassigned YES unset down down
FastEthernet0/17 unassigned YES unset down down
FastEthernet0/18 unassigned YES unset down down
FastEthernet0/19 unassigned YES unset down down
FastEthernet0/20 unassigned YES unset down down
FastEthernet0/21 unassigned YES unset up up
FastEthernet0/22 unassigned YES unset down down
FastEthernet0/23 unassigned YES unset down down
FastEthernet0/24 unassigned YES unset down down
GigabitEthernet0/1 unassigned YES unset down down
GigabitEthernet0/2 unassigned YES unset down down
--------------------------------------------------------------------------------------------------------------------------
簡要顯示本機所有VLAN的狀態 ( 若省略brief,得到的會是較繁雜的資訊,類似linux的-v作用)
--------------------------------------------------------------------------------------------------------------------------
顯示本機所有介面的狀態資訊(包含Port號、狀態、VLAN、Duplex、速路) 範例如下:
Port Name Status Vlan Duplex Speed Type
Fa0/1 connected 1 a-full a-100 10/100BaseTX
Fa0/2 notconnect 1 auto auto 10/100BaseTX
Fa0/3 notconnect 1 auto auto 10/100BaseTX
Fa0/4 notconnect 1 auto auto 10/100BaseTX
Fa0/5 notconnect 1 auto auto 10/100BaseTX
Fa0/6 notconnect 1 auto auto 10/100BaseTX
Fa0/7 notconnect 1 auto auto 10/100BaseTX
Fa0/8 notconnect 1 auto auto 10/100BaseTX
Fa0/9 notconnect 1 auto auto 10/100BaseTX
Fa0/10 notconnect 1 auto auto 10/100BaseTX
Fa0/11 notconnect 1 auto auto 10/100BaseTX
Fa0/12 notconnect 1 auto auto 10/100BaseTX
Fa0/13 notconnect 1 auto auto 10/100BaseTX
Fa0/14 notconnect 1 auto auto 10/100BaseTX
Fa0/15 notconnect 1 auto auto 10/100BaseTX
Fa0/16 notconnect 1 auto auto 10/100BaseTX
Fa0/17 notconnect 1 auto auto 10/100BaseTX
Fa0/18 notconnect 1 auto auto 10/100BaseTX
Fa0/19 notconnect 1 auto auto 10/100BaseTX
Fa0/20 notconnect 1 auto auto 10/100BaseTX
Fa0/21 connected 1 a-full a-100 10/100BaseTX
Fa0/22 notconnect 1 auto auto 10/100BaseTX
Fa0/23 notconnect 1 auto auto 10/100BaseTX
Fa0/24 notconnect 1 auto auto 10/100BaseTX
Gi0/1 notconnect 1 auto auto 10/100/1000BaseTX
Gi0/2 notconnect 1 auto auto 10/100/1000BaseTX
--------------------------------------------------------------------------------------------------------------------------
show interface description
顯示本機所有介面的狀態、協定及描述(描述需自行到對應的介面輸入,預設為空值)
--------------------------------------------------------------------------------------------------------------------------
show interfaces counter error
列出所有介面的錯誤計數表
--------------------------------------------------------------------------------------------------------------------------
clear counter
清除本機所有的錯誤紀錄,有時在複雜環境下或是機器用很久的情況,會有舊的error,此時可使用此指令先清除所有錯誤紀錄,放置幾秒後,再次檢視error count,可以簡化工作難度,也避免誤判
清除本機所有的錯誤紀錄,有時在複雜環境下或是機器用很久的情況,會有舊的error,此時可使用此指令先清除所有錯誤紀錄,放置幾秒後,再次檢視error count,可以簡化工作難度,也避免誤判
--------------------------------------------------------------------------------------------------------------------------
show vtp status
顯示目前vtp相關資訊 (VTP=Vlan Trunking Protocol)
--------------------------------------------------------------------------------------------------------------------------
show logging
顯示系統事件,舉凡ERROR、UP、DOWN、FLAPPING等紀錄
--------------------------------------------------------------------------------------------------------------------------
show processes cpu
--------------------------------------------------------------------------------------------------------------------------
顯示主機過去的CPU使用率狀態,會同時顯示三種時間區段,60秒、60分鐘以及72小時
--------------------------------------------------------------------------------------------------------------------------
顯示主機上各個程序使用的記憶體大小
--------------------------------------------------------------------------------------------------------------------------
show env all(部分型號只需輸入show env)
顯示主機上所有模組的狀態
沒有留言:
張貼留言