
shell
文章平均质量分 54
Allen_Zhong
这个作者很懒,什么都没留下…
展开
-
auto deft involve data with shell
#!/bin/bashautodef R29.13.50 R29.13.55 dbload_13.50 135.1.68.98#!/bin/bash #####################################define the param####################################data=$3host=$4username="l原创 2014-03-11 10:11:09 · 605 阅读 · 0 评论 -
sulogsaver with shell and expect
1. comand:#!/bin/bashlogsaver tat07 1 applycommit-test-abc R2618.01.222. main script:#!/bin/bashtat07=(tat07 135.2.85.98 135.2.85.99 4)tat04=(tat04 135.1.68.238 135.1.68.239 4)qtat1=(qtat1 135原创 2014-03-12 10:09:23 · 768 阅读 · 0 评论 -
generate hss profile via shell
#!/bin/kshprintf "data generation is beginning ...\n"#rm -rf pstn2ue_dataorig_num=6002042001printf "SEQUENTIAL# USER; AUTHENTICATION; local Port; Media Port\n">reg_datafor ((i=0;ido原创 2015-06-30 09:34:36 · 404 阅读 · 0 评论 -
compute the su procedure time with python
#!/usr/bin/python2.6import re,datetimefile_name='sim.log'file=open(file_name,'r')acnum=[];time_res=[];lnum=0def trans_time(time): t1=datetime.datetime.strptime(time,'%y/%m/%d %H:%M:%S')原创 2015-06-30 09:39:26 · 687 阅读 · 0 评论 -
verify who reload the lab with shell
#!/bin/kshif [[ "${1}" = "" ]]then print "\nEnter labname: \c" read LABelse LAB="${1}"fiif [[ ! -f /home/fsbu/logs/reloadlog-${LAB} ]]then print "\nInvalid labname原创 2015-06-30 09:41:03 · 412 阅读 · 0 评论 -
generate the call load file
#!/usr/bin/perl -w$e911_call_percent = 0.0;$ims_node_number = 12;$local_ip = "10.86.52.2";$local_port_base = 18000;$media_port_base = 19000;$SIPP_BIN="/home/lss/QCBCb/bin/sipp";$原创 2015-06-30 09:27:08 · 682 阅读 · 0 评论 -
tools save the logs during su procedure
"ts" 5 lines, 235 characters #!/bin/bash#logsaver tat07 2 apply-comit-backout-bld1 R2711.01.38#logsaver tat04 2 apply-reapply-commit-so-bld3 R2860.01.26logsaver qisc2 2 apply-commit-backout-b原创 2015-06-30 09:37:16 · 718 阅读 · 0 评论