10:04:00 下午
By 洋蔥爸比 Tosian Yang
最近為了密碼發生了件糗事,以前總是嫌麻煩,就簡單的用個文字檔記錄,再用個加密軟件 (
WinCrypto v2.0) 去加密一下,誰知,就在急著要做網路轉帳時,將我的密碼檔解密時,才發現檔案壞了...OH...My GOD....真是有夠OOXX的...
只好去找了一下,發現 KeePass Password Safe 這一套密碼管理軟體來真的蠻好用的,介面簡單好用又漂亮,可自建一堆路徑,及自選圖案來分類,另外除一般安裝版本,還有綠色版本可供下載喔... (沒辦法,我現在手頭上大概過半數的軟體都改用綠色版的了,目前我用的是 KeePass v1.11 綠色版)
當我們第一次使用 KeePass,建立資料庫的時候,就必需輸入進入資料庫所需要的密碼,除了這個「第一層」的密碼之外,KeePass 還有一個特殊的雙重保護功能,那就是「鑰匙檔案」。當建立了這個鑰匙檔案,以後要打開資料庫除了得輸入密碼之外,還得要有鑰匙檔案才行,如果我們把鑰匙檔案帶走或放置在另外的地方,那麼別人就算知道資料庫密碼也沒辦法進入。
除了一般的密碼管理之外,KeePass 也提供了「執行自動輸入」以及「密碼產生器」的功能。這麼優質的密碼管理軟體完全是免費的,而且還有繁體中文的介面。
你可以到原創公司: Dominik Reichl 的下載頁面去下載 (頁面最下面有語系下載),當然你也可以到 KeePass Password Safe 下載網頁:http://keepass.info/download.html 去下載。 (語系下載網頁:http://keepass.info/translations.html )
(詳全文...)
6:54:00 下午
By 洋蔥爸比 Tosian Yang
今天抽出時間把上次沒弄完的 Sitemap 繼續下去,這一篇就從驗證通過後要上傳 Sitemap 開始吧...
首先一樣到
Google 網站管理員工具 的 Sitemaps 底下點選
新增 Sitemap
在這個頁面中選
新增一般網頁 Sitemap,然後在
下面的 Sitemaps URL的部分,直接填入這樣:http://yourblogname.blogspot.com/rss.xml
然後按下新增一般網頁 Sitemap 的按鈕,就會看到像下面這樣的成功訊息。
通常要過一段時間之後 Googlebot 才會再來存取一次,我是了一下,大概是2個小時之後,就有來 Update 新的資料了,果然比起沒有上傳 Sitemap 差很多啊。
最後應該會看到像下面這樣的情況:
到控制主頁應該要看到像下面這樣有驗證,有 Sitemap就 ok 囉:
這樣就可以提高部落格(Blog)在 Google 搜尋引擎的曝光率囉,好了,報告完畢,收工。
(詳全文...)
5:32:00 下午
By 洋蔥爸比 Tosian Yang
今天把裝好的 Rational Clear Quest 建好新的 User 跟 Group 之後,順便把查理已經開好的 DEMODB version2 的 flow 也修改一下,將目前的變更
Save work 之後,當然是
Test Work 囉...沒想到在進到 TestDB 要開新的 Defect 來測試時,出現了下面的錯誤訊息:
Failed condition: m_pPerl!=0Lcation: CleaseQuest Core:adperlhooks.cpp:237當場傻眼,這可是個很乾淨的 DB,什麼都沒有ㄋㄟ...
只好去跟 Google 大神求救一下,發現在 IBM 網站上果然有這個問題的解法:
http://www-1.ibm.com/support/docview.wss?uid=swg21246579
依據 IBM 網站所說的去檢查 控制台>系統>進階>環境變數> PERL5LIB 這個環境變數的路徑果然被改掉了,本來應該是 C:\Program Files\Rational\Common\lib\perl5\5.8.6; 現在卻變成了C:\oracle\10.2.0\perl\5.8.3\lib\MSWin32-x86;C:\oracle\10.2.0\perl\5.8.3\lib;C:\oracle\10.2.0\perl\5.8.3\lib\MSWin32-x86;C:\oracle\10.2.0\perl\site\5.8.3;C:\oracle\10.2.0\perl\site\5.8.3\lib;C:\oracle\10.2.0\sysman\admin\scripts; 這是因為在 ClearQuest 之後才裝 Oracle 10, 環境變數被 Oracle 改掉了...
只好乖乖的把 PERL5LIB 給多加上 C:\Program Files\Rational\Common\lib\perl5\5.8.6; 這一段,然後給他重開機,再重新測試,New Defect 果然就跑出來了。
(詳全文...)
6:59:00 下午
By 洋蔥爸比 Tosian Yang
LAB 的一台 CISCO 3750 居然沒人知道密碼,要用的時候才發現有多困擾;
只好把他給強制洗腦囉....
1. 第一步當然是接上 Console 線啦,COM1 or COM2 看你自己的機器囉...
Terminal 設定如下:
9600 baud rate, No parity, 8 data bits, 1 stop bit, No flow control
2. 拔掉電源線,並長按 "mode" button, 然後開機.
3. Type flash_init
4. Type load_helper
5. Type dir flash:
!--- 要確定 dir flash 後面有加 ":"
接下來應該會看到像下面的咚咚:
Directory of flash:
2 -rwx 843947 Mar 01 1993 00:02:18 C2900XL-h-mz-112.8-SA
4 drwx 3776 Mar 01 1993 01:23:24 html
66 -rwx 130 Jan 01 1970 00:01:19 env_vars
68 -rwx 1296 Mar 01 1993 06:55:51 config.text
1728000 bytes total (456704 bytes free)
6. Type rename flash:config.text flash:config.old 將原來的 configuration file改名,如果接下來要乾淨的重新設定這台 switch 的話,那就直接把檔案殺了就好。
7. Type boot to boot the system.
8. Enter N at the prompt to start the Setup program, Continue with the configuration dialog? [yes/no] : N
9. At the switch prompt type en to turn on enable mode.
10. Type rename flash:config.old flash:config.text 將 configuration file 改回原始檔名. (如果還需要保留舊的設定時才需這個動作)
11. Copy the configuration file into memory:
Switch# copy flash:config.text system:running-config
Source filename [config.text]? (press Return)
Destination filename [running-config]? (press Return)
The configuration file is now reloaded.
12. 接下來就是重頭戲了,改密碼:
switch#configure terminal
switch(config)#enable secret ooxx123 << 其中 ooxx123 就是密碼啦,改成你要的
!-- This step is necessary if the switch had an enable secret password
switch#(config)#^Z
!--Control/Z
13. Write the running configuration to the configuration file:
switch#write memory
好了,搞定收工...
(詳全文...)
10:43:00 下午
By 洋蔥爸比 Tosian Yang
這兩天在測試 Google 的
網站管理員工具 功能,已經將首頁的索引狀態變成"已驗證"如下所示:
不過關於 Sitemap 還沒搞定,所以 Googleboot 來巡視的時機似乎還是久久一次....
等研究好了再把完整過程貼出來好了。
(詳全文...)
10:56:00 下午
By 洋蔥爸比 Tosian Yang
這裡是在 HP DL-380 G4 上,安裝 RHEL ES/AS 3 的版本來做示範,一般的作法都是在 /etc/modules.conf 裡面針對網卡加上 option 來達成定速的目的,如下面所示:
RHAS3 # cat /etc/modules.conf
alias eth0 bcm5700alias eth1 bcm5700alias scsi_hostadapter ccissalias usb-controller usb-uhcialias usb-controller1 ehci-hcdoptions softdog nowayout=0options bcm5700 auto_speed=0 full_duplex=1 line_speed=100options bcm5700 auto_speed=0 full_duplex=1 line_speed=100
不過這裡我們改用 ethtool 來達到這個結果,作法為:
在想要定速的網卡,例如:eth1,就去修改 /etc/sysconfig/network-scripts/ifcfg-eth1
在最後加上 ETHTOOL_OPTS="speed 100 duplex full autoneg off" 如下所示:
RHAS3 # cat /etc/sysconfig/network-scripts/ifcfg-eth1
# Broadcom CorporationNetXtreme BCM5704 Gigabit Ethernet
DEVICE=eth1
BOOTPROTO=static
HWADDR=00:0E:7F:F2:2B:B0
BROADCAST=172.17.65.255
IPADDR=172.17.65.3
NETMASK=255.255.255.0
NETWORK=172.17.65.0
ONBOOT=yes
TYPE=Ethernet
ETHTOOL_OPTS="speed 100 duplex full autoneg off"
然後用 "service network restart" 把網路重起後,再用 ethtool ethx (x 為想看的網卡)
應該就會看到如下面的結果:
RHAS3 # ethtool eth1
Settings for eth1:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: Not reported
Advertised auto-negotiation: No
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: g
Wake-on: d
Current message level: 0x000000ff (255)
Link detected: no
(詳全文...)
10:54:00 下午
By 洋蔥爸比 Tosian Yang
這裡示範的是在 LAB 的一台 CISCO 3650 上做出 DHCP 的功能,假設我們的網段是 192.168.120.0,我希望把 15 個位於
192.168.120.224 ~ 192.168.120.238 之間 IP address 拿來指派用。
接下來是實際的設定了...
LAB3650#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
LAB3650(config)#ip dhcp excluded-address 192.168.120.1 192.168.120.223
LAB3650(config)#ip dhcp excluded-address 192.168.120.239 192.168.120.254
LAB3650(config)#ip dhcp pool v120
LAB3650((dhcp-config)#network 192.168.120.0 255.255.255.0
LAB3650((dhcp-config)#default-router 192.168.120.1
LAB3650((dhcp-config)#dns-server 168.95.1.1 192.72.22.54
LAB3650(config-if)#^Z
LAB3650#wr mem
接下來用 "sh run" 去看,應該會看到如下的部分:
ip dhcp excluded-address 192.168.120.1 192.168.120.223
ip dhcp excluded-address 192.168.120.239 192.168.120.254
!
ip dhcp pool v120
network 192.168.120.0 255.255.255.0
default-router 192.168.120.1
dns-server 168.95.1.1 192.72.22.54
(詳全文...)
6:53:00 下午
By 洋蔥爸比 Tosian Yang
這個工具在pc上很好用,但有時沒辦法在 Switch 上加 monitor port 時,就只好直接在 server 上抓囉....這裡介紹的是 server 上 Ethereal 的文字版 "
tethereal" 這個好用的咚咚...
通常我都是像下面這樣用,用 -w 把結果寫到 /tmp/mytest.cap 去,用 -i 指定我要 monitor 的 NIC,加上 -q 讓畫面安靜一點,反正我只是抓封包,抓完再把 /tmp/mytest.cap 下載回 PC 端用Ethereal 打開來分析。
# tethereal -w /tmp/mytest.cap -i eth0 -q
# tethereal -r /tmp/mytest.cap -x -V
(這一行是直接在 server 上把剛剛抓的結果秀出來看)
-q When capturing packets, don’t display the continuous count of pack-ets captured; instead, just display, at the end of the capture, a count of packets captured.
-w Write packet data to savefile .
-i Set the name of the network interface to use for live packet capture.
-r Read packet data from infile.
-V Cause Tethereal to print a view of the details of the packet.
-T Set the format of the output when viewing packet data. The options:
ps PostScript for a human-readable one-line summary.
-x Cause Tethereal to print a hex and ASCII dump
(詳全文...)
12:06:00 下午
By 洋蔥爸比 Tosian Yang
最近幫國外 Site 看網路的問題,才發現原來他們用的是 HP ProCurve 2524 switch,之前慣用的都是 CISCO 系列的 SW,發現一些 command 都不太適用,於是去查詢了一下...發現這台 SW 有個很好用的 command可以看到幾乎所有有用的訊息,就是 "show tech"
附上一個範例:
MYSW03# show tech
Status and Counters - General System Information
System Name : MYSW03
System Contact :
System Location :
MAC Age Time (sec) : 300
Time Zone : 480
Daylight Time Rule : None
Firmware revision : F.05.50 Base MAC Addr : 001871-1077c0
ROM Version : F.02.01 Serial Number : SG651NV2NT
Up Time : 13 days Memory - Total : 10,322,148
CPU Util (%) : 20 Free : 8,005,748
IP Mgmt - Pkts Rx : 21,300 Packet - Total : 512
Pkts Tx : 17,718 Buffers Free : 510
Lowest : 415
Missed : 0
Running configuration:
; J4813A Configuration Editor; Created on release #F.05.50
hostname "MYSW03"
time timezone 480
cdp run
interface 1
speed-duplex 100-full
exit
interface 2
speed-duplex 100-full
exit
interface 3
speed-duplex 100-full
exit
interface 4
speed-duplex 100-full
exit
interface 5
speed-duplex 100-full
exit
interface 6
speed-duplex 100-full
exit
interface 7
speed-duplex 100-full
exit
interface 8
speed-duplex 100-full
exit
interface 9
speed-duplex 100-full
exit
interface 10
speed-duplex 100-full
exit
interface 11
speed-duplex 100-full
exit
interface 12
speed-duplex 100-full
exit
interface 13
speed-duplex 100-full
exit
interface 15
speed-duplex 100-full
exit
interface 16
speed-duplex 100-full
exit
interface 17
speed-duplex 100-full
exit
interface 20
speed-duplex 100-full
exit
interface 21
speed-duplex 100-full
exit
interface 22
speed-duplex 100-full
exit
interface 23
speed-duplex 100-full
exit
interface 24
flow-control
exit
ip default-gateway 0.0.0.0
sntp server 10.1.110.11
timesync sntp
sntp unicast
snmp-server community "public" Unrestricted
vlan 1
name "DEFAULT_VLAN"
untagged 13-14,18-19,24-26
ip address dhcp-bootp
no untagged 1-12,15-17,20-23
exit
vlan 6
name "OM"
untagged 5-6,11-12,15-17,20-23
ip address 10.151.33.28 255.255.255.192
tagged 13,18-19,24
exit
vlan 5
name "Traffic"
untagged 1-4,7-10
tagged 11,13,18-19,24
exit
vlan 8
name "TestBed"
no ip address
tagged 11,14,18,24
exit
ip route 10.1.110.11 255.255.255.255 10.151.33.4
management-vlan 6
no aaa port-access authenticator active
spanning-tree
spanning-tree priority 7
spanning-tree 13-14,18-19,24 path-cost 19
password manager
Running configuration is same as the startup configuration.
Internet (IP) Service
Default Gateway :
Default TTL : 64
VLAN | IP Config IP Address Subnet Mask
------------ + ---------- --------------- ---------------
DEFAULT_VLAN | DHCP/Bootp
Traffic | Disabled
OM | Manual 10.151.33.28 255.255.255.192
TestBed | Disabled
Load Balancing
Port | Name Type | Group Type
---- + -------------------------------- --------- + ----- -----
Status and Counters - VLAN Information
Maximum VLANs to support : 8
Primary VLAN : DEFAULT_VLAN
Management VLAN : OM
802.1Q VLAN ID Name Status
-------------- ------------- -------------
1 DEFAULT_VLAN Static
5 Traffic Static
6 OM Static
8 TestBed Static
Saved Crash Information (most recent first):
SubSystem 0 went down: 01/01/90 08:04:50
Operator cold reboot from TELNET session.
SubSystem 0 went down: 03/10/08 17:33:12
Operator cold reboot from TELNET session.
SubSystem 0 went down: 03/10/08 16:11:24
Operator reboot from WEB session.
SubSystem 0 went down: 03/10/08 12:41:03
Operator reboot from WEB session.
Keys: W=Warning I=Information
M=Major D=Debug
---- Event Log listing: All Events Recorded ----
I 03/20/08 23:27:17 SNTP: updated time by 4 seconds
I 03/24/08 09:54:08 ports: port 20 is Blocked by LACP
I 03/24/08 09:54:11 ports: port 20 is Blocked by STP
I 03/24/08 09:54:11 ports: port 20 is now on-line
I 03/24/08 10:51:19 mgr: SME TELNET Session - OPERATOR Mode established
W 03/24/08 11:00:22 FFI: port 24-Excessive CRC/alignment errors. See help.
W 03/24/08 11:00:22 FFI: port 24-Excessive late collisions.
I 03/24/08 11:06:11 mgr: SME TELNET Session - MANAGER Mode established
I 03/24/08 11:09:43 mgr: SME TELNET Session - OPERATOR Mode established
W 03/24/08 11:11:03 auth: Invalid user name/password on TELNET session
I 03/24/08 11:11:08 mgr: SME TELNET Session - MANAGER Mode established
---- Bottom of Log : Events Listed = 1000 ----
Status and Counters - Port Status
| Intrusion Flow Bcast
Port Type | Alert Enabled Status Mode Ctrl Limit
---- --------- + --------- ------- ------ ---------- ----- ------
1 10/100TX | No Yes Up 100FDx off 0
2 10/100TX | No Yes Up 100FDx off 0
3 10/100TX | No Yes Down 100FDx off 0
4 10/100TX | No Yes Down 100FDx off 0
5 10/100TX | No Yes Down 100FDx off 0
6 10/100TX | No Yes Down 100FDx off 0
7 10/100TX | No Yes Up 100FDx off 0
8 10/100TX | No Yes Up 100FDx off 0
9 10/100TX | No Yes Up 100FDx off 0
10 10/100TX | No Yes Down 100FDx off 0
11 10/100TX | No Yes Down 100FDx off 0
12 10/100TX | No Yes Up 100FDx off 0
13 10/100TX | No Yes Up 100FDx off 0
14 10/100TX | No Yes Up 100FDx off 0
15 10/100TX | No Yes Up 100FDx off 0
16 10/100TX | No Yes Up 100FDx off 0
17 10/100TX | No Yes Up 100FDx off 0
18 10/100TX | No Yes Up 100FDx off 0
19 10/100TX | No Yes Up 100FDx off 0
20 10/100TX | No Yes Up 100FDx off 0
21 10/100TX | No Yes Up 100FDx off 0
22 10/100TX | No Yes Up 100FDx off 0
23 10/100TX | No Yes Up 100FDx off 0
24 10/100TX | No Yes Up 100HDx off 0
25 | No Yes Down off 0
26 | No Yes Down off 0
Port Settings
Port Type | Enabled Mode Flow Ctrl
---- --------- + ------- ------------ ---------
1 10/100TX | Yes 100FDx Disable
2 10/100TX | Yes 100FDx Disable
3 10/100TX | Yes 100FDx Disable
4 10/100TX | Yes 100FDx Disable
5 10/100TX | Yes 100FDx Disable
6 10/100TX | Yes 100FDx Disable
7 10/100TX | Yes 100FDx Disable
8 10/100TX | Yes 100FDx Disable
9 10/100TX | Yes 100FDx Disable
10 10/100TX | Yes 100FDx Disable
11 10/100TX | Yes 100FDx Disable
12 10/100TX | Yes 100FDx Disable
13 10/100TX | Yes 100FDx Disable
14 10/100TX | Yes Auto Disable
15 10/100TX | Yes 100FDx Disable
16 10/100TX | Yes 100FDx Disable
17 10/100TX | Yes 100FDx Disable
18 10/100TX | Yes Auto Disable
19 10/100TX | Yes Auto Disable
20 10/100TX | Yes 100FDx Disable
21 10/100TX | Yes 100FDx Disable
22 10/100TX | Yes 100FDx Disable
23 10/100TX | Yes 100FDx Disable
24 10/100TX | Yes Auto Enable
25 | Yes Disable
26 | Yes Disable
Status and Counters - Port Counters
Flow Bcast
Port Total Bytes Total Frames Errors Rx Drops Tx Ctrl Limit
---- ------------ ------------ ------------ ------------ ----- ------
1 131,872,622 1,510,499 0 0 off 0
2 104,727,133 1,427,754 0 0 off 0
3 0 0 0 0 off 0
4 7,394,959 44,295 0 0 off 0
5 600,388,859 1,391,318 18,686 0 off 0
6 30,256 329 0 0 off 0
7 591,575,588 4,508,935 767 0 off 0
8 114,017,370 1,555,044 0 0 off 0
9 199,403,348 1,924,729 0 0 off 0
10 138,843,737 281,762 0 0 off 0
11 172,173,291 484,237 28 0 off 0
12 980,811,650 5,510,679 440 0 off 0
13 4,229,384... 21,282,856 0 0 off 0
14 1,286,001... 67,919,001 0 0 off 0
15 284,912,911 1,934,387 0 0 off 0
16 171,451,797 2,043,654 0 0 off 0
17 278,992,310 2,257,874 0 0 off 0
18 2,490,471... 23,451,433 0 0 off 0
19 3,471,798... 22,365,564 0 0 off 0
20 631,923,720 1,609,392 10,492 0 off 0
21 135,476,263 1,658,664 0 0 off 0
22 137,493,806 1,678,445 1 0 off 0
23 137,493,393 1,678,440 0 0 off 0
24 2,689,437... 83,034,742 0 0 off 0
25 0 0 0 0 off 0
26 0 0 0 0 off 0
Status and Counters - Port Counters for port 1
Name :
Link Status : Up
Bytes Rx : 3,909,857 Bytes Tx : 127,963,089
Unicast Rx : 47,565 Unicast Tx : 41,296
Bcast/Mcast Rx : 106 Bcast/Mcast Tx : 1,421,537
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 2
Name :
Link Status : Up
Bytes Rx : 22,590 Bytes Tx : 104,704,675
Unicast Rx : 193 Unicast Tx : 5914
Bcast/Mcast Rx : 102 Bcast/Mcast Tx : 1,421,547
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 3
Name :
Link Status : Down
Bytes Rx : 0 Bytes Tx : 0
Unicast Rx : 0 Unicast Tx : 0
Bcast/Mcast Rx : 0 Bcast/Mcast Tx : 0
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 4
Name :
Link Status : Down
Bytes Rx : 3,739,195 Bytes Tx : 3,655,764
Unicast Rx : 7190 Unicast Tx : 8265
Bcast/Mcast Rx : 938 Bcast/Mcast Tx : 27,902
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 5
Name :
Link Status : Down
Bytes Rx : 418,183,203 Bytes Tx : 170,547,060
Unicast Rx : 647,828 Unicast Tx : 547,309
Bcast/Mcast Rx : 2320 Bcast/Mcast Tx : 193,861
FCS Rx : 18,673 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 13 Excessive Colln : 0
Total Rx Errors : 18,686 Deferred Tx : 0
Status and Counters - Port Counters for port 6
Name :
Link Status : Down
Bytes Rx : 6449 Bytes Tx : 23,807
Unicast Rx : 5 Unicast Tx : 1
Bcast/Mcast Rx : 41 Bcast/Mcast Tx : 282
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 7
Name :
Link Status : Up
Bytes Rx : 195,195,513 Bytes Tx : 396,266,621
Unicast Rx : 1,451,035 Unicast Tx : 1,636,279
Bcast/Mcast Rx : 18,491 Bcast/Mcast Tx : 1,403,150
FCS Rx : 767 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 767 Deferred Tx : 0
Status and Counters - Port Counters for port 8
Name :
Link Status : Up
Bytes Rx : 5,077,484 Bytes Tx : 108,940,150
Unicast Rx : 64,576 Unicast Tx : 68,868
Bcast/Mcast Rx : 87 Bcast/Mcast Tx : 1,421,517
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 9
Name :
Link Status : Up
Bytes Rx : 68,968,785 Bytes Tx : 130,434,827
Unicast Rx : 275,470 Unicast Tx : 227,589
Bcast/Mcast Rx : 8317 Bcast/Mcast Tx : 1,413,357
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 10
Name :
Link Status : Down
Bytes Rx : 124,279,625 Bytes Tx : 14,564,112
Unicast Rx : 188,747 Unicast Tx : 79,356
Bcast/Mcast Rx : 99 Bcast/Mcast Tx : 13,560
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 11
Name :
Link Status : Down
Bytes Rx : 15,456,759 Bytes Tx : 156,502,174
Unicast Rx : 159,591 Unicast Tx : 181,886
Bcast/Mcast Rx : 422 Bcast/Mcast Tx : 142,338
FCS Rx : 28 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 28 Deferred Tx : 0
Status and Counters - Port Counters for port 12
Name :
Link Status : Up
Bytes Rx : 177,790,694 Bytes Tx : 802,234,932
Unicast Rx : 1,899,274 Unicast Tx : 2,036,398
Bcast/Mcast Rx : 112,781 Bcast/Mcast Tx : 1,462,247
FCS Rx : 440 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 440 Deferred Tx : 0
Status and Counters - Port Counters for port 13
Name :
Link Status : Up
Bytes Rx : 2,647,824,759 Bytes Tx : 1,581,564,520
Unicast Rx : 9,292,481 Unicast Tx : 9,359,922
Bcast/Mcast Rx : 340,697 Bcast/Mcast Tx : 2,289,823
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 14
Name :
Link Status : Up
Bytes Rx : 2,293,736,866 Bytes Tx : 3,287,265,269
Unicast Rx : 13,069,482 Unicast Tx : 53,256,353
Bcast/Mcast Rx : 163,235 Bcast/Mcast Tx : 1,430,006
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 28
Runts Rx : 0 Late Colln Tx : 4
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 10
Status and Counters - Port Counters for port 15
Name :
Link Status : Up
Bytes Rx : 102,130,183 Bytes Tx : 182,783,188
Unicast Rx : 158,970 Unicast Tx : 120,557
Bcast/Mcast Rx : 1453 Bcast/Mcast Tx : 1,653,414
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 16
Name :
Link Status : Up
Bytes Rx : 6,812,313 Bytes Tx : 164,640,200
Unicast Rx : 64,022 Unicast Tx : 324,589
Bcast/Mcast Rx : 16,755 Bcast/Mcast Tx : 1,638,299
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 17
Name :
Link Status : Up
Bytes Rx : 65,128,172 Bytes Tx : 213,864,534
Unicast Rx : 299,814 Unicast Tx : 302,989
Bcast/Mcast Rx : 10,160 Bcast/Mcast Tx : 1,644,917
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 18
Name :
Link Status : Up
Bytes Rx : 982,897,189 Bytes Tx : 1,507,577,280
Unicast Rx : 9,757,297 Unicast Tx : 10,368,697
Bcast/Mcast Rx : 136,508 Bcast/Mcast Tx : 3,188,963
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 19
Name :
Link Status : Up
Bytes Rx : 1,185,134,880 Bytes Tx : 2,286,696,396
Unicast Rx : 9,891,100 Unicast Tx : 9,805,066
Bcast/Mcast Rx : 160,774 Bcast/Mcast Tx : 2,508,704
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 20
Name :
Link Status : Up
Bytes Rx : 471,829,313 Bytes Tx : 153,897,021
Unicast Rx : 835,604 Unicast Tx : 602,868
Bcast/Mcast Rx : 2272 Bcast/Mcast Tx : 168,708
FCS Rx : 10,485 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 7 Excessive Colln : 0
Total Rx Errors : 10,492 Deferred Tx : 0
Status and Counters - Port Counters for port 21
Name :
Link Status : Up
Bytes Rx : 0 Bytes Tx : 135,476,659
Unicast Rx : 0 Unicast Tx : 3593
Bcast/Mcast Rx : 0 Bcast/Mcast Tx : 1,655,077
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 22
Name :
Link Status : Up
Bytes Rx : 2,017,208 Bytes Tx : 135,476,893
Unicast Rx : 19,778 Unicast Tx : 3596
Bcast/Mcast Rx : 0 Bcast/Mcast Tx : 1,655,077
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 1 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 1 Deferred Tx : 0
Status and Counters - Port Counters for port 23
Name :
Link Status : Up
Bytes Rx : 2,017,050 Bytes Tx : 135,476,727
Unicast Rx : 19,775 Unicast Tx : 3593
Bcast/Mcast Rx : 0 Bcast/Mcast Tx : 1,655,078
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 24
Name :
Link Status : Up
Bytes Rx : 3,950,874,254 Bytes Tx : 3,033,621,370
Unicast Rx : 60,295,282 Unicast Tx : 19,433,806
Bcast/Mcast Rx : 1,833,751 Bcast/Mcast Tx : 1,472,126
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 86,699
Runts Rx : 0 Late Colln Tx : 63,095
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 57,375
Status and Counters - Port Counters for port 25
Name :
Link Status : Down
Bytes Rx : 0 Bytes Tx : 0
Unicast Rx : 0 Unicast Tx : 0
Bcast/Mcast Rx : 0 Bcast/Mcast Tx : 0
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Port Counters for port 26
Name :
Link Status : Down
Bytes Rx : 0 Bytes Tx : 0
Unicast Rx : 0 Unicast Tx : 0
Bcast/Mcast Rx : 0 Bcast/Mcast Tx : 0
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Status and Counters - Spanning Tree Information
Protocol Version : RSTP
STP Enabled : Yes
Force Version : RSTP-operation
Switch Priority : 28672 Hello Time : 2
Max Age : 20 Forward Delay : 15
Topology Change Count : 522
Time Since Last Change : 4 hours
Root MAC Address : 001871-1077c0
Root Path Cost : 0
Root Port : This switch is root
Root Priority : 28672
Port Type Cost Priority State | Designated Bridge
---- --------- --------- -------- ---------- + -----------------
1 10/100TX 200000 128 Forwarding | 001871-1077c0
2 10/100TX 200000 128 Forwarding | 001871-1077c0
3 10/100TX 200000 128 Disabled |
4 10/100TX 200000 128 Disabled |
5 10/100TX 200000 128 Disabled |
6 10/100TX 200000 128 Disabled |
7 10/100TX 200000 128 Forwarding | 001871-1077c0
8 10/100TX 200000 128 Forwarding | 001871-1077c0
9 10/100TX 200000 128 Forwarding | 001871-1077c0
10 10/100TX 200000 128 Disabled |
11 10/100TX 200000 128 Disabled |
12 10/100TX 200000 128 Forwarding | 001871-1077c0
13 10/100TX 19 128 Forwarding | 001871-1077c0
14 10/100TX 19 128 Forwarding | 001871-1077c0
15 10/100TX 200000 128 Forwarding | 001871-1077c0
16 10/100TX 200000 128 Forwarding | 001871-1077c0
17 10/100TX 200000 128 Forwarding | 001871-1077c0
18 10/100TX 19 128 Forwarding | 001871-1077c0
19 10/100TX 19 128 Forwarding | 001871-1077c0
20 10/100TX 200000 128 Forwarding | 001871-1077c0
21 10/100TX 200000 128 Forwarding | 001871-1077c0
22 10/100TX 200000 128 Forwarding | 001871-1077c0
23 10/100TX 200000 128 Forwarding | 001871-1077c0
24 10/100TX 19 128 Forwarding | 001871-1077c0
25 2000000 128 Disabled |
26 2000000 128 Disabled |
Spanning Tree Operation
Protocol Version : RSTP
STP Enabled [No] : Yes
Force Version [RSTP-operation] : RSTP-operation
Switch Priority [8] : 7 Hello Time [2] : 2
Max Age [20] : 20 Forward Delay [15] : 15
Port Type | Cost Priority Edge Point-to-Point MCheck
---- --------- + --------- -------- ---- -------------- ------
1 10/100TX | 200000 8 Yes Force-True Yes
2 10/100TX | 200000 8 Yes Force-True Yes
3 10/100TX | 200000 8 Yes Force-True Yes
4 10/100TX | 200000 8 Yes Force-True Yes
5 10/100TX | 200000 8 Yes Force-True Yes
6 10/100TX | 200000 8 Yes Force-True Yes
7 10/100TX | 200000 8 Yes Force-True Yes
8 10/100TX | 200000 8 Yes Force-True Yes
9 10/100TX | 200000 8 Yes Force-True Yes
10 10/100TX | 200000 8 Yes Force-True Yes
11 10/100TX | 200000 8 Yes Force-True Yes
12 10/100TX | 200000 8 Yes Force-True Yes
13 10/100TX | 19 8 Yes Force-True Yes
14 10/100TX | 19 8 Yes Force-True Yes
15 10/100TX | 200000 8 Yes Force-True Yes
16 10/100TX | 200000 8 Yes Force-True Yes
17 10/100TX | 200000 8 Yes Force-True Yes
18 10/100TX | 19 8 Yes Force-True Yes
19 10/100TX | 19 8 Yes Force-True Yes
20 10/100TX | 200000 8 Yes Force-True Yes
21 10/100TX | 200000 8 Yes Force-True Yes
22 10/100TX | 200000 8 Yes Force-True Yes
23 10/100TX | 200000 8 Yes Force-True Yes
24 10/100TX | 19 8 Yes Force-True Yes
25 | 2000000 8 Yes Force-True Yes
26 | 2000000 8 Yes Force-True Yes
Status and Counters - Management Address Information
Time Server Address : Disabled
Default Gateway : 10.151.33.4
VLAN Name MAC Address | IP Address
------------ ------------------- + -------------------
DEFAULT_VLAN 001871-1077c0 |
Traffic 001871-1077c2 | Disabled
OM 001871-1077c1 | 10.151.33.28
TestBed 001871-1077c3 | Disabled
Status and Counters - IP Multicast (IGMP) Status
VLAN ID : 1
VLAN Name : DEFAULT_VLAN
IGMP is not enabled
VLAN ID : 5
VLAN Name : Traffic
IGMP is not enabled
VLAN ID : 6
VLAN Name : OM
IGMP is not enabled
VLAN ID : 8
VLAN Name : TestBed
IGMP is not enabled
IGMP Service
VLAN ID VLAN NAME IGMP Enabled Forward with High Priority Querier Allowed
------- ------------ ------------ -------------------------- ---------------
1 DEFAULT_VLAN No No Yes
5 Traffic No No Yes
6 OM No No Yes
8 TestBed No No Yes
Stacking - Stacking Status (This Switch)
Stack State : Candidate
Transmission Interval : 60
Auto Join : Yes
Stacking - Stacking Status (All)
Stack Name MAC Address System Name Status
--------------- ------------- ------------------------- --------------------
Others: 001871-103cc0 MYSWTS Candidate
001871-104700 MYSW05 Candidate
001871-1077c0 MYSW03 Candidate
001871-107d80 MYSW04 Candidate
001871-10af00 MYSW06 Candidate
GVRP support
Maximum VLANs to support [8] : 8
Primary VLAN : DEFAULT_VLAN
GVRP Enabled [No] : No
LACP
PORT LACP TRUNK PORT LACP LACP
NUMB ENABLED GROUP STATUS PARTNER STATUS
---- ------- ------- ------- ------- -------
1 Passive 1 Up No Success
2 Passive 2 Up No Success
3 Passive 3 Down No Success
4 Passive 4 Down No Success
5 Passive 5 Down No Success
6 Passive 6 Down No Success
7 Passive 7 Up No Success
8 Passive 8 Up No Success
9 Passive 9 Up No Success
10 Passive 10 Down No Success
11 Passive 11 Down No Success
12 Passive 12 Up No Success
13 Passive 13 Up No Success
14 Passive 14 Up Yes Success
15 Passive 15 Up No Success
16 Passive 16 Up No Success
17 Passive 17 Up No Success
18 Passive 18 Up No Success
19 Passive 19 Up No Success
20 Passive 20 Up No Success
21 Passive 21 Up No Success
22 Passive 22 Up No Success
23 Passive 23 Up No Success
24 Disable 24 Up No Success
25 Passive 25 Down No Success
26 Passive 26 Down No Success
Status and Counters - Authentication Information
Login Attempts : 3
| Login Login Enable Enable
Access Task | Primary Secondary Primary Secondary
----------- + ---------- ---------- ---------- ----------
Console | Local None Local None
Telnet | Local None Local None
Port-Access | Local
SSH | Local None Local None
CDP neigbors information
Port Device ID | Platform Capability
---- ----------------------------- + ---------------------------- -----------
IP ARP table
IP Address MAC Address Type Port
--------------- ----------------- ------- ----
10.151.33.4 001a6c-52e9c4 dynamic 24
10.151.33.18 0019bb-cfe632 dynamic 19
10.151.33.19 0019bb-d021e0 dynamic 19
10.151.33.33 00188b-aa535e dynamic 20
Checking buffer pool structures... PASSED
total free allocated min-free missed corrupt
----- ----- --------- -------- ------ -------
MSG_BUF 250 211 39 147 0 0
PKT_BUF 512 510 2 415 0 0
MSG buffer pool:
Current system time: 03/24/08 11:11:40
Buffer addr OwnerName OwnerID When Allocated Lives Operation Alarm
----------- ---------- -------- ----------------- ----- --------- -----
0x00e24e60 (null) 00e29c38 01/01/90 08:00:01 1 00000000 T
0x00e26210 mSmeCore 00d8bbc4 01/01/90 08:00:15 0 80000020 F
0x00e24b90 (null) 00e29c38 01/01/90 08:00:01 1 00000000 T
0x00e24050 mSmeCore 00d8bbc4 03/14/08 11:45:56 0 80000020 F
0x00e23ab0 mSmeCore 00d8bbc4 03/10/08 18:34:08 1 08000023 T
0x00e23240 mSess3 00d7d07c 03/24/08 11:11:13 0 80000020 F
0x00e22ca0 (null) 00e29c38 01/01/90 08:00:01 1 00000000 T
0x00e22430 mSmeCore 00d8bbc4 03/24/08 11:07:30 0 80000020 F
0x00e22160 mSmeCore 00d8bbc4 03/24/08 11:11:40 1 08000024 T
0x00e229d0 mSess1 00d8918c 01/01/90 08:00:01 0 00000000 F
0x00e22700 mSesInp1 00d71be0 01/01/90 08:00:15 0 08000021 F
0x00e23510 mSess2 00d83104 01/01/90 08:00:01 0 00000000 F
0x00e23d80 mSmeCore 00d8bbc4 03/14/08 11:45:52 0 08000021 F
0x00e237e0 mSess3 00d7d07c 01/01/90 08:00:01 0 00000000 F
0x00e25c70 mSmeCore 00d8bbc4 03/24/08 11:11:13 0 08000021 F
0x00e24320 mSess4 00d76d34 01/01/90 08:00:10 0 00000000 F
0x00e245f0 mSmeCore 00d8bbc4 03/24/08 11:07:29 0 08000021 F
0x00e256d0 mAdMgrCtrl 00d66bdc 03/24/08 11:11:17 1 002a0002 T
0x00e25130 mLACPCtrl 00d64444 03/24/08 11:11:40 0 00170001 F
0x00e218f0 m8021xCtrl 00d62660 03/24/08 11:11:39 1 00360002 T
0x00e1ffa0 mPpmgrCtrl 00d5eab4 03/24/08 11:11:40 1 000003e6 T
0x00e1f190 mDiscCtrl 00d59e60 03/24/08 11:11:38 1 00000001 T
0x00e1fcd0 mStackCtrl 00d56df8 03/24/08 11:11:39 1 00000001 T
0x00e20db0 (null) 00e29c38 01/01/90 08:00:11 1 00000000 T
0x00e1f460 mIpCtrl 00d53a68 03/24/08 11:11:40 1 00060032 T
0x00e22f70 (null) 00e29c38 01/01/90 08:00:12 1 00000000 T
0x00e1fa00 mHttpCtUp 00d0761c 03/24/08 11:11:33 1 00390003 T
0x00e21620 mGarpCtrl 00d04f40 03/24/08 11:11:40 1 00000101 T
0x00e1e0b0 mRstpCtrl 00d0383c 03/24/08 11:11:39 1 00000101 T
0x00e1cfd0 (null) 00e29c38 01/01/90 08:00:12 1 00000000 T
0x00e1cd00 (null) 00e29c38 01/01/90 08:00:12 1 00000000 T
0x00e1b950 mAcctCtrl 00cf9c40 03/24/08 11:11:39 1 00350001 T
0x00e18110 mLinkTest 00cf17f4 03/24/08 11:00:45 1 082d0001 T
0x00e175d0 (null) 00e29c38 01/01/90 08:00:14 1 00000000 T
0x00e178a0 mSnmpEvt 00cf4c28 03/24/08 11:11:34 1 02000014 T
0x00e17b70 mLinkTest 00cf17f4 03/11/08 11:38:11 1 002d0004 T
0x00e17e40 (null) 00e29c38 01/01/90 08:00:14 1 00000000 T
0x00e19a60 mCdpCtrl 00c9da38 03/24/08 11:11:34 1 00380001 T
0x00e1a5a0 mlldpCtrl 00c9cc8c 03/24/08 11:11:19 1 00420002 T
Note: (null) indicates buffer allocated at init time (not used since).
Use bufShow(pkt_addr or msg_addr) for data on single pkt or msg
Checking buffer pool structures... PASSED
total free allocated min-free missed corrupt
----- ----- --------- -------- ------ -------
MSG_BUF 250 211 39 147 0 0
PKT_BUF 512 510 2 415 0 0
PKT buffer pool:
Current system time: 03/24/08 11:11:40
Buffer addr OwnerName OwnerID When Allocated Lives Operation Alarm
----------- ---------- -------- ----------------- ----- --------- -----
0x00fde200 mSnmpRcv 00cf3850 01/01/90 08:00:15 0 00000000 F
0x00fdd990 mSnmpFrwd 00ca7648 01/01/90 08:00:15 0 00000000 F
0x00fc0980 tTelnetOut3 00c89e5c 03/24/08 11:11:40 0 00000000 F
Note: (null) indicates buffer allocated at init time (not used since).
Use bufShow(pkt_addr or msg_addr) for data on single pkt or msg
Manufacturing Area is:
P T:060807142827
FCT:060807184611
MA:061215104758
S/N:CN63000771
(詳全文...)
2:02:00 下午
By 洋蔥爸比 Tosian Yang
突然需要在 Solaris 跟 Linux OS 間測試 FTP 的速度,
所以需要產生一個大的檔案來測試 FTP,於是就把這個 command 翻出來用囉...
Case1. 如何在 Linux OS 上產生一個空的大檔案:
To create a file of a specified size, like the Solaris mkfile command...
#
dd if=/dev/zero of=/tmp/bigfile bs=1M count=2048以上這個動作將會產生一個 (2048 * 1MB) blocks or (2GB) 的檔案 /tmp/bigfile .
Case2. 如何在 Solaris OS 上產生一個空的大檔案:
#
mkfile 10m filename則檔案大小為 10m = 10 MG byte 大小
#
mkfile 10g filename則檔案大小為 10g = 10 GB byte 大小
(詳全文...)