2012年10月16日 星期二

Cisco command

telnet
1.exit
2.logout
3.disconnect  清除本使用者連線;後面可加連線號碼
4.clear 清除目前連進本設備的連線

#<ctrl +shift+6>x   暫停目前連線
#resume 1              回復telnet 連線 (連線編號)

show sessions
show users

*************************************************
測試 cable 長度
6504-1#test cable-diagnostics tdr int gi 4/1

6504-1#sh cable-diagnostics tdr int gi 4/1


TDR test last run on: April 28 15:13:26
Interface    Speed Pair Cable length        Distance to fault   Channel Pair status
------------ ----- ---- ------------------- ------------------- ------- ------------
Gi4/1        1000  1-2  1    +/- 20 m       N/A                 Pair B  Terminated
                   3-6  3    +/- 20 m       N/A                 Pair A  Terminated
                   4-5  4    +/- 20 m       N/A                 Pair D  Terminated
                   7-8  0    +/- 20 m       N/A                 Pair C  Terminated


目前比較新的switch都提供Time-Domain-Reflectometry(tdr)的功能
以方便管理人員可以初步由switch端回測到outlet
方便layer 1的查修
指令如下

cisco

#test cable tdr interface <interface of your choice>
Wait 5-7 seconds
#show cable tdr interface <interface of your choice>

brocade

#phy cable-diag tdr 1/1/1
Wait 5-7 seconds
#show cable-diag tdr 1/1/1

以下列出 brocade在有接client及未接client顯示出的結果

未接client
Port    Speed   Local pair      Pair Length     Remote pair     Pair status
----    -----   ----------      -----------     -----------     -----------
0/1/2   UNKWN   Pair A          0000081M                        Open
                Pair B          0000084M                        Open
                Pair C          0000084M                        Open
                Pair D          0000080M                        Open

有接client
Port    Speed   Local pair      Pair Length     Remote pair     Pair status
----    -----   ----------      -----------     -----------     -----------
0/1/1   100M    Pair A          N/A    M        Pair B          Terminated
                Pair B          N/A    M        Pair A          Terminated
                Pair C          0000076M                        Shorted
                Pair D          0000072M                        Shorted

***************************************************************
show tech

show platform tcam utilization

show sdm prefer

***************************************************************
可以改一下sdm template看看,方式為:
(config)#sdm prefer advanced
(config)#reload

Boy_Dorm8F#show sdm prefer
Showing SDM Template Info

This is the Advanced (low scale) template.
  Number of VLANs:                                 4094
  Unicast MAC addresses:                           32768
  Overflow Unicast MAC addresses:                  512
  IGMP and Multicast groups:                       4096
  Overflow IGMP and Multicast groups:              512
  Directly connected routes:                       32768
  Indirect routes:                                 7680
  Security Access Control Entries:                 1536
  QoS Access Control Entries:                      3072
  Policy Based Routing ACEs:                       1024
  Netflow ACEs:                                    1024
  Input Microflow policer ACEs:                    256
  Output Microflow policer ACEs:                   256
  Flow SPAN ACEs:                                  256
  Tunnels:                                         256
  Control Plane Entries:                           512
  Input Netflow flows:                             8192
  Output Netflow flows:                            16384
  SGT/DGT entries:                                 4096
  SGT/DGT Overflow entries:                        512
On next reload, template will be advanced template
These numbers are typical for L2 and IPv4 features.
Some features such as IPv6, use up double the entry size;
so only half as many entries can be created.


Boy_Dorm8F#sh run | in sdm
Boy_Dorm8F#show sdm prefer ad
Boy_Dorm8F#show sdm prefer advanced
Showing SDM Template Info

This is the Advanced (high scale) template.
  Number of VLANs:                                 4094
  Unicast MAC addresses:                           32768
  Overflow Unicast MAC addresses:                  512
  IGMP and Multicast groups:                       8192
  Overflow IGMP and Multicast groups:              512
  Directly connected routes:                       32768
  Indirect routes:                                 7680
  Security Access Control Entries:                 3072
  QoS Access Control Entries:                      3072
  Policy Based Routing ACEs:                       1024
  Netflow ACEs:                                    1024
  Input Microflow policer ACEs:                    256
  Output Microflow policer ACEs:                   256
  Flow SPAN ACEs:                                  256
  Tunnels:                                         256
  Control Plane Entries:                           512
  Input Netflow flows:                             8192
  Output Netflow flows:                            16384
  SGT/DGT entries:                                 4096
  SGT/DGT Overflow entries:                        512
These numbers are typical for L2 and IPv4 features.
Some features such as IPv6, use up double the entry size;

so only half as many entries can be created.



沒有留言:

張貼留言