
proj
jakung
这个作者很懒,什么都没留下…
展开
-
load average
load average指标项含义:Load:简单的说是进程队列的长度(WikiPedia:the system Load is a measure of the amount of work that a compute system is doing)。Load Average:一段时间(1分钟、5分钟、15分钟)内平均Load。即一段时间内正在使用和等待使用CPU的统计信息(原创 2012-07-26 18:53:13 · 360 阅读 · 0 评论 -
cpu
#!/usr/bin/kshPROCESS=nginxif [ "-$1" = "-" ]then sleepTime=60else sleepTime=$1fiprintf " DATE\t\tuser system idle\n" >> cpu.txtprintf " DATE\t\tMEMORY DESCRIPTOR\n"原创 2012-07-25 16:56:02 · 444 阅读 · 1 评论 -
ping与awk
getIp(){(sleep 1;echo root;sleep 1;echo $1;echo ifconfig;sleep 1)|telnet $2|grep $3|awk '{print $2}'|awk -F: '{print $2}'}echo spVlanIp:`getIp huawei $spip $spvlan` grepPing(){grep min/a原创 2012-07-20 18:22:52 · 846 阅读 · 0 评论 -
ping结果
交换机[WISG3.2SW]interface Vlanif 3006[WISG3.2SW-Vlanif3006]ping 10.137.55.242 PING 10.137.55.242: 56 data bytes, press CTRL_C to break Request time out Request time out Request ti原创 2012-07-20 09:44:23 · 928 阅读 · 0 评论 -
ping脚本
#!/bin/bash#exec 1>yjk.logexec 2>errorPing.log#usually, there is only 1 switch, no need to type it every timedeclare swIp=129.50.0.20declare swUser=admindeclare swPasswd=wisg3.2grepPin原创 2012-07-20 10:57:18 · 472 阅读 · 0 评论 -
ror and redmine
http://blog.youkuaiyun.com/cheungmine/article/details/6618139 http://blog.youkuaiyun.com/qq7342272/article/details/6653696 ror 使用InstantRails快速搭建Ruby On Rails开发环境 http://blog.youkuaiyun.com/hebji/article/de原创 2012-06-04 11:21:37 · 571 阅读 · 7 评论