2010年5月31日

使用https 存取Gmail常發生ssl_error_access_denied_alert 的錯誤

使用https 存取Gmail常發生ssl_error_access_denied_alert 的錯誤,發現並不是系統的問題,又是Fortigate再搞鬼,檢查Firewall Protection Profile設定,設定以下Command即可已解決...
config firewall profile
Fortigate (profile) $ edit scan
Fortigate (scan) $ set https allow-ssl-unknown-sess-id
Fortigate (scan) $ end

2010年5月28日

yum 安裝發生"Header is not complete"

使用YUM install 或Yum update 每一個下載的RPM都發生同樣的Error  "Header is not complete",從系統或網路上始終找不出問題,後來想到可能是對外Firewall在搞鬼,拿掉Fortigate的Protection Profile後就可以正常使用Yum...

2010年5月20日

/tmp 中的檔案不見

Review 新公司的備份機制,發現備份的samba server中的檔案都會不見,而且是剛備份完是完整的,隔天檔案就不見了大半,後來檢查crontab job,發現dailly中有一個可疑的script "tmpwatch",原來這個script會定期刪掉720小時未存取的tmp檔案,前任網管又把備份的目錄設在/tmp,難怪會不見檔案,經一事長一智…..感謝前人的錯誤。

2010年5月18日

Router 1841 恢復預設值

 

新版的Router居然改了預設登入模式,預設帳號Cisco登入過後就失效了,我又臭屁3分鐘完成設定完後習慣就Reloadcisco帳號就無法登入,就變成都無法登入Console了,只能想辦法重設

重設方法如下:

Start a terminal session with the router via the Console port (telnet will not work for this). Physically reload the router, and from the console repeatedly hit the "Break" key, normally on the upper right hand side of the keyboard.

-You should now be in ROMMON mode. Type "confreg 0x2142" without quotes and hit Enter. Now type "reset" without quotes and hit Enter.

-Allow the router to restart, and hit "n" followed by Enter to stop the startup wizard.

-Type the following command sequence:

enable
conf t
config-register 0x2102
exit
write erase
<Enter key>
reload

The router will now boot normally, with a factory default configuration, even if you did not know any of the password(s) securing the router.

2010年5月17日

從待機或休眠中恢復時PCMCIA卡無法被識別,需重新插拔

從待機或休眠中恢復時PCMCIA卡無法被識別
Problem:


機器從待機或休眠中恢復時PCMCIA卡無法被識別,系統為Windows XP


Solution:


不需要更換硬件。請下載並安裝一個Hotfix補丁即可解決問題。鏈接如下:





如果系統已經安裝了Hotfix補丁但問題仍未修復,請將下述內容存為一個.reg註冊表文件,運行並導入即可:


Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usb]


"USBBIOSx"=dword:00000001


"EnSoftRetry"=dword:00000001


"EnIdleEndPointSupportEX"=dword:00000001


"EnIdleEndPointSupport"=dword:00000001


"EnableIdleTimer"=dword:00000001

IBM X3650 M2 的網卡異常

轉換到新工作後,公司目前採購的主機幾乎都是IBM的,跟之前的HP或Dell不太一樣,還要慢慢瞭解IBM主機…

前幾天發生了一個狀況,主機有二片網路卡,都是內建的Broadcom NetXtreme II,其中一片網路卡會發生FTP 或遠端桌面有時會短暫無回應,但Ping都正常沒有miss,我抓取封包發現有時主機會idle,我懷疑是Layer 1或2 出了問題,嘗試換線換port都無效,更換新版的Driver後就恢復正常。
也許是這張網卡的功能太多了,有增加了許多功能IPMI,Checksum offload..等,基本的功能反而出錯了…

我處理的方式是更新新版的網路卡Driver (Broadcom NetXtreme II Driver v5.0.12 到 v5.2.14.0)
http://www-947.ibm.com/systems/support/supportsite.wss/docdisplay?lndocid=MIGR-5083635&brandind=5000008

mysql 的ROOT密碼忘記

先將mysql停止
#service mysqld stop
mysqld啟動並設為無登入控制模式
#mysqld_safe --skip-grant-tables&
登入mysql,注意喔,我沒輸入帳號密碼
#mysql
重新將mysql上的root密碼設定為1234
mysql> update mysql.user set password=PASSWORD('1234') where user='root';
讓剛剛的命令生效(修改或刪除帳號必須手動生效)
mysql> flush privileges;
離開mysql指令列
mysql> quit
重新啟動mysqld
#service mysqld restart