2008年5月19日 星期一

SSH idle timeout

依照sshd_config man 說明, 在設定Client 閒置逾時參數應該是由ClientAliveCountMax X ClientAliveInterval. 但在實際使用下發現ClientAliveInterval 要設為0 (zero) 才會有作用, 目前還不曉得為什麼和man 的說明有差.

Ex. 設定ssh Client 一小時內沒動作就disconnect
ClientAliveInterval 1800
ClientAliveCountMax 0

sshd_config man page
ClientAliveCountMax
Sets the number of client alive messages (see below) which may be
sent without sshd receiving any messages back from the client. If
this threshold is reached while client alive messages are being
sent, sshd will disconnect the client, terminating the session. It
is important to note that the use of client alive messages is very
different from TCPKeepAlive (below). The client alive messages are
sent through the encrypted channel and therefore will not be
spoofable. The TCP keepalive option enabled by TCPKeepAlive is
spoofable. The client alive mechanism is valuable when the client
or server depend on knowing when a connection has become inactive.

The default value is 3. If ClientAliveInterval (see below) is set
to 15, and ClientAliveCountMax is left at the default, unresponsive
ssh clients will be disconnected after approximately 45 seconds.

ClientAliveInterval
Sets a timeout interval in seconds after which if no data has been
received from the client, sshd will send a message through the
encrypted channel to request a response from the client. The
default is 0, indicating that these messages will not be sent to
the client. This option applies to protocol version 2 only.

2008年5月15日 星期四

Erlang install in ubuntu

pre-install

sudo apt-get install libncurses5-dev
sudo apt-get install sun-java5-jdk

untar opt_src_R12B-2.tar.gz
./configure --prefix=[your path]
make && make install

2008年5月6日 星期二

CentOS 5 snmpd failure

root@www ~]# /etc/init.d/snmpd start
Starting snmpd: [ OK ]

[root@www ~]# /etc/init.d/snmpd status
snmpd dead but pid file exists

snmpd dead but pid file exists

[root@www ~]# tail /var/log/messages
Mar 29 18:23:43 www snmpd[4466]: could not open /proc/net/if_inet6
Mar 29 18:23:43 www snmpd[4466]: mibII/mta_sendmail.c:open_sendmailst: could not guess version of statistics file “/var/log/mail/statistics”

Reference
http://www.centos.org/modules/newbb/viewtopic.php?topic_id=8777

Disable IPV6 support

vi /etc/modprobe.conf
=============
alias net-pf-10 off
alias ipv6 off
============

vi /etc/sysconfig/network
=============
NETWORKING_IPV6=no
=============

vi /etc/sysconfig/network-scripts/ifcfg-eth0
add
=============
IPV6INIT=no
=============

yum install net-snmp net-snmp-devel net-snmp-utils net-snm-libs

reboot

2008年4月21日 星期一

IPMI採用業者清單

http://developer.intel.com/design/servers/ipmi/adopterlist.htm

目前查到台灣有賣的BMC 卡

宏正 IP1101
http://www.aten.com.tw/products/productList.php?pcid=2006110617512003&psid=20061106175156002&layerid=subClass4

IPMI採用業者清單

http://developer.intel.com/design/servers/ipmi/adopterlist.htm