征服自己
百度空间 | 百度首页 
 
文章列表
 
2009年11月10日 11:06
mutt设置return-path
set envelope_from="yes"

发送html邮件,一定要mutt 1.5.x版本,1.4不支持content_type变量
用my_hdr加的gmail不支持
set content_type=text/html
 
2009年10月28日 00:03
watch周期性执行指定命令, 使用sh -c运行,需要自己加引号

观察超时连接,-d  高亮显示差异
watch -d " netstat -ant|grep TIME_WAIT"
 
2009年10月25日 22:19
列举打开的unix socket文件
lsof -U

列举ipv4
lsof -i4 @192.168.1.108

lsof -p pid

For a more extensive set of examples, documented more  fully,  see  the
00QUICKSTART file of the lsof distribution.

To list all open files, use:

lsof

To list all open Internet, x.25 (HP-UX), and UNIX domain files, use:

lsof -i -U

To  list all open IPv4 network files in use by the process whose PID is
1234, use
 
2009年10月25日 22:14
ulimit  -a  显示所有限制参数

NAME
bash,  :,  ., [, alias, bg, bind, break, builtin, cd, command, compgen,
complete, continue, declare, dirs, disown, echo,     enable,  eval,     exec,
exit,  export,  fc,  fg, getopts, hash, help, history, jobs, kill, let,
local, logout, popd, printf, pushd, pwd, read, readonly,     return,  set,
shift,  shopt,  source,
 
2009年10月23日 13:27
NAME
netperf - a network performance benchmark
SYNOPSIS
netperf [global options] -- [test specific options]
DESCRIPTION
Netperf    is  a  benchmark  that can be used to measure various aspects of networking performance.  Currently, its focus is on bulk data transfer and request/response
performance using either TCP or UDP, and the Berkeley Sockets interface. In addition, tests for DLPI, and Unix Domain Sockets, tests for IPv6  may
 
2009年10月23日 13:26
NAME
iperf - perform network throughput tests

SYNOPSIS
iperf -s [ options ]

iperf -c server [ options ]

iperf -u -s [ options ]

iperf -u -c server [ options ]

DESCRIPTION
iperf  is  a tool for performing network throughput measurements.  It can test either TCP or UDP throughput.  To perform an iperf test the user must establish both a
server (to discard traffic) and a client (to generate traffic).

GENERAL
 
2009年10月22日 15:40
http://jiebaiyou.blog.163.com/blog/static/116249018200972215016516/
chariot
http://down.chinaz.com/soft/10705.htm

8.0 Network 监控介绍

在所有的子系统监控中,网络是最困难的.这主要是由于网络概念很抽象.当监控系统上的网络性能,这有太多因素.这些因素包括了延迟,冲突,拥挤和数据包丢失.

这个章节讨论怎么样检查Ethernet(译注:网卡),IP,TCP的性能.

8.1 Ethernet Configuration Settings(译注:网卡配置的设置)

除非很明确的指定,几乎所有的网卡都是自适应网络速度.当一个网络中

 
2009年10月22日 15:30
http://blog.163.com/jiebaiyou/blog/static/11624901820096884858883/
ubuntu 9.0.4

apt-get install snmp snmpd

sed -i 's/127.0.0.1//' /etc/default/snmpd

apt-get install chkconfig && chkconfig snmpd on

/etc/init.d/snmpd start

snmpwalk -v 1 -c public 10.0.0.140

http://jiebaiyou.blog.163.com/blog/static/11624901820096704125504/
 
2009年10月22日 12:08

其他常用的命令选项有:


-c file 使用配置文件file,而不使用默认的$HOME/.screenrc
-d|-D [pid.tty.host] 不开启新的screen会话,而是断开其他正在运行的screen会话
 
2009年10月22日 11:47
http://jiebaiyou.blog.163.com/blog/static/116249018200941413125126/
除了netperf以外,还有很多其它的网络性能测试工具,如dbs, iperf, pathrate, nettest, netlogger, tcptrace, ntop等。这些工具有其各自的特色和不同的侧重点,我们可以根据具体的应用环境,有选择的使用它们,这样就可以使这些工具发挥出最大的功效。虽然都是开 放源代码的软件,但是这些工具的功能与商业的网络测试工具同样强大,而且也得到了广泛的应用,熟悉这些工具对我们的实际工作一定会有很大的帮助。

sar 系统性能统计
pstree 进程树
 
     
 
 
文章分类
 
 
 
Php(45)
 
Mysql(40)
 
 
Css(10)
 
 
 
 
 
 
 
Vim(19)
 
Sed(4)
 
Awk(6)
 
 
 
Svn(5)
 
 
 
 
 
Ooad(1)
 
 
 
Java(1)
 
 
 
 
 
 
 
Lua(1)
 
 
 
 
 
 
Linux(17)
 
 
 
     
 
编程语言
 
 
 
 
 
 
 
 
 
 
     
 
freebsd
 
     
 
sql
 
     
 
shell
 
     
 
收藏网址
 
     


©2009 Baidu