2011年9月27日 星期二

變壓器該如何選取呢?

http://battery.give168.com/news_product_info.php/newsid/9


一.核對輸出電壓:在每一款變壓器的背面均會詳實記載著輸出電壓. 例 :15V,18V,19V, 20V等等數據即是了.

二 .核對接頭孔徑:變壓器為了配合筆電的接孔,設計出各種不同孔徑的接頭,此時只有選擇合適的接頭孔徑即可.須特別注意有些接頭的內部會有針腳(Pin inside),特別是在IBM,DELL,SONY等筆電上面.一定要選擇能合筆電接在一起的孔徑變壓器,否則就白搭的了,這部份,也是較困擾的地方,一般變壓器上並未詳載此部份的資訊,必須用工具測量,若無工具,可參考系統中己經幫您歸類好的變壓器來尋找即可.或冾客服人員幫您代勞也可以.

三.挑選輸出電流:這數據也會寫在變壓器或設備的背面,例5A.6A,3A(安培)等等即可.當上述二項都等符合後,您只要找出輸出電流大於或等於您手中那顆變壓器即可. 或許有人會問輸出電流大於原來的那顆變壓器,會把筆電燒掉嗎?這您大可放心,輸出電流愈大,代表所能提供的功率也就愈高,即電流乘以電壓.俗稱的瓦特數(W).也就愈能提供的筆電設備更穩定的電力來源,就如同PC電源供應器一樣,350W,400W,500W...等一樣,瓦特數愈高,電力也就愈穩定.就是這個意思.但一般瓦特數愈高,變壓器的體積也會愈大,使用上也是必須考量的一點,那相反得,輸出電流小於您的手中變壓器時,則可能導致充電功能異常或無法充的困擾,且變壓器會變得很燙,因此不建議使用.

四.若您現在所用的變壓器會有過熱的情形,或是外接的設備較多,或機子已老舊,原本變壓器已經故障等等,在輸出電壓一樣的情形下,則建議儘量買瓦數大一些的變壓器.以便能提供足夠的電力輸出供筆電來使用.例原先是65W則儘量買90W的來用,對筆電及變壓器本身都是好的,更不用擔心會傷到筆電本身.

2011年9月21日 星期三

netstat monitor connections

http://blog.yam.com/ddy1280/article/2364428


#!/bin/sh
LOGDIR=/home/passant/log
SUBNET=172.16.68.34
while(true)
do
#echo "TOTAL: `netstat -tan | grep tcp | wc -l` connections"
#echo "FROM newsusers: `netstat -tan | grep $SUBNET | cut -f20 -d " " | cut -f1 -d ":" | sort | uniq -c | wc -l` IPs"
#echo "FROM newsusers: `netstat -tan | grep $SUBNET | awk '{print $5}' | cut -f1 -d ":" | sort | uniq -c | wc -l` IPs"
netstat -tan | grep $SUBNET | awk '{print $5}' | cut -f1 -d ":" | sort | uniq -c | wc -l | awk '{print $1}' >> $LOGDIR/$SUBNET-`date +%Y-%m-%d_%H`.log
#netstat -tan | grep  $SUBNET | cut -f20 -d " " | cut -f1 -d ":" | sort |uniq -c
#netstat -tan | grep  $SUBNET | awk '{print $5}' | cut -f1 -d ":" | sort |uniq -c
sleep 10s
done

2011年9月20日 星期二

nmap host discovery

http://nmap.org/book/man-host-discovery.html


nmap -v -n -sP my.network.0/24  | grep -A 1 up > scannow.txt
diff scannow.txt scanbase.txt

open ESX non-standard ports

http://www.esxguide.com/esx/component/option,com_alphacontent/section,1/cat,3/task,view/id,24/Itemid,80/

Not all nostandard ports can be opened in the GUI.  Open Port
(IBM Directore Sample)
esxcfg-firewall --openPort 14247,tcp,out,IBMDirector
esxcfg-firewall --openPort 14247,tcp,in,IBMDirector
esxcfg-firewall --openPort 14247,udp,in,IBMDirector
esxcfg-firewall --openPort 14247,udp,out,IBMDirector
esxcfg-firewall --openPort 14248,tcp,out,IBMDirector
esxcfg-firewall --openPort 14248,tcp,in,IBMDirecto

2011年9月3日 星期六

ssh port forwarding instead of SOCKS for bypassing firewall


http://serverfault.com/questions/214816/remote-desktop-over-ssh-socks-proxy-to-bypass-firewall
You don't need a SOCKS proxy for this; simple SSH port forwarding will work. For example, there's a server at my office I frequently need to access, which we'll call server.example.com. I can't connect to it directly, but I can ssh to myofficemachine.example.com. So I do this:
ssh -L 3389:server.example.com:3389 myofficemachine.example.com
And then I point my local Remote Desktop client to localhost. This works great, and my setup is almost identical to yours -- a Mac at home, a Linux box at my office, and a Windows server on another work network.