http://youtu.be/QGIwg6ye1gE
滿有趣的
slinbody 發表在 痞客邦 留言(0) 人氣(130)
參考
在Ubuntu上
php的mail()這個函數是用ubuntu上的sendmail去送信
在/etc/php5/apache2/php.ini中加入
sendmail_path = /usr/sbin/sendmail -t -i
(只有這個在ubuntu有影響,其他如SMTP等都是Win32才有用)
#service apache2 restart
slinbody 發表在 痞客邦 留言(0) 人氣(1,083)

用再生龍備份系統
網路上已經很多教學
這篇主要是分享將備份的資料隱藏起來
本來是用spfdisk去做
後來發現再生龍裡面就有fdisk了
slinbody 發表在 痞客邦 留言(0) 人氣(484)
如果你的系統已經是UTF-8了
為了client連過來也是用UTF-8編碼
請修改http.conf中的紅色部分
<Directory />
AllowOverride None
IndexOptions Charset=UTF-8
Allow from all
</Directory>
slinbody 發表在 痞客邦 留言(0) 人氣(307)
參考1
參考2
DHCP Snooping介紹
( 在收到DHCP Server合法回應時,並可記錄已完成的 DHCP 資訊庫,內有 MAC位置 / IP位置 / 租用時間 等等資訊。 )
DHCP Snooping2
slinbody 發表在 痞客邦 留言(0) 人氣(290)
我用FreeBSD架設Samba
/var/log/messages常跳出下列訊息
Mar 7 12:05:01 chababa2 smbd[2604]: [2012/03/07 12:05:01.912040, 0] lib/access.c:338(allow_access)
Mar 7 12:05:01 chababa2 smbd[2604]: Denied connection from 50.113.134.42 (50.113.134.42)
Mar 7 12:06:16 chababa2 smbd[2605]: [2012/03/07 12:06:16.986313, 0] printing/print_cups.c:110(cups_connect)
Mar 7 12:06:16 chababa2 smbd[2605]: Unable to connect to CUPS server localhost:631 - No such file or directory
Mar 7 12:06:16 chababa2 smbd[1823]: [2012/03/07 12:06:16.987228, 0] printing/print_cups.c:487(cups_async_callback)
Mar 7 12:06:16 chababa2 smbd[1823]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
Mar 7 12:07:32 chababa2 smbd[2655]: [2012/03/07 12:07:32.133499, 0] printing/print_cups.c:110(cups_connect)
Mar 7 12:07:32 chababa2 smbd[2655]: Unable to connect to CUPS server localhost:631 - No such file or directory
Mar 7 12:07:32 chababa2 smbd[2653]: [2012/03/07 12:07:32.134778, 0] printing/print_cups.c:487(cups_async_callback)
slinbody 發表在 痞客邦 留言(0) 人氣(148)
Juniper EX2200的MRTG之cfg檔
網孔流量的OID用
snmpwalk -c public -v1 [Switch IP]
去找
接下來說的是CPU、Memory、Temperature of CPU
官網
#snmpwalk -c public -v2c [Switch IP] 1.3.6.1.4.1.2636.3.1.13.1.5
會出現類似下面的結果:
iso.3.6.1.4.1.2636.3.1.13.1.5.9.1.0.0 = STRING: "Routing Engine 0"
Routing Engine應該是他CPU的命名(我猜的)
把藍租部分代入以下OID的字尾
1.3.6.1.4.1.2636.3.1.13.1.7.9.1.0.0 //CPU 溫度
1.3.6.1.4.1.2636.3.1.13.1.8.9.1.0.0 //CPU 使用率
1.3.6.1.4.1.2636.3.1.13.1.9.9.1.0.0 //MEMORY使用率
slinbody 發表在 痞客邦 留言(0) 人氣(1,009)
How to Collect CPU Utilization on Cisco IOS Devices Using SNMP
1.3.6.1.4.1.9.2.1.56
每五秒CPU使用率的OID
slinbody 發表在 痞客邦 留言(0) 人氣(327)
參考
MRTG上撈取的到資料
可以有兩種形式表現:Counter 和 Gauge
slinbody 發表在 痞客邦 留言(0) 人氣(366)
slinbody 發表在 痞客邦 留言(0) 人氣(3,326)