zx--LTE

来源:互联网 发布:淘宝宝贝综合排名 编辑:程序博客网 时间:2024/05/17 06:41

对应服务器:

信令面S1_MME服务器:10.221.245.3-9、23-24、27-30、35-47、10.11.27.51-52用户面S1_U服务器:10.221.245.48-50、10.222.2.1-51

LTEzx开关打开方法:

rm -rf /uardata/asgroup rm -rf /uardata/chuli rm -rf /uardata/asgroup_bak mkdir -p /uardata/asgroup/s1_mme mkdir -p /uardata/asgroup/s1_u #关闭程序ps -ef |grep UAR4Main|grep -v 'grep' |awk '{print $2}' |xargs -i kill -9 {} #打开开关sed -i 's/asgroup>off/asgroup>on/g' /home/uar4/app/UAR4PC/conf/global.xml cd /home/uar4/app/UAR4PC sh startProduce.sh start more > run_start.out tail -100f run_start.out 

LTEzx开关关闭方法:

#关闭开关  on --> offsed -i 's/asgroup>on/asgroup>off/g' /home/uar4/app/UAR4PC/conf/global.xml #关闭陈旭ps -ef |grep UAR4Main|grep -v 'grep' |awk '{print $2}' |xargs -i kill -9 {} #启动程序cd /home/uar4/app/UAR4PC sh startProduce.sh start more > run_start.out tail -100f run_start.out 

将zx开关控制放到crontab中:

20170103-04:(48小时)
注意:使用“>>”追加到定时任务中。

打开开关#  分钟:0-59#  小时:1-23#  日期:1-31#  月份:1-12#  星期:0-6(0表示周日)echo "00 00 3 1 * /home/care/asgroup/start_asgroup.sh" >> /var/spool/cron/root关闭开关echo "00 00 5 1 * /home/care/asgroup/stop_asgroup.sh" >> /var/spool/cron/root

原始数据:

/uardata/asgroup

处理好的数据:

/uardata/chuli/

处理的程序:

目录:/home/care/asgroup run.shstep1.sh   执行处理程序格式: sh step1.sh 20161201(时间)

上传:

注意: 10.11.27.51-52不能和集团ftp通, 传到10.221.245.43

cd  /uardata/chuli#10.11.27.51:scp -r  ./20161201/*   root@10.221.245.43:/home/chb/LTEMME51#10.11.27.52:scp -r  ./20161201/*   root@10.221.245.43:/home/chb/LTEMME51

其他可以直接上传:

程序目录:/home/care/asgroup
ftp_mme.sh :LTE信令面上传程序
用户面上传程序一样。

#!/bin/bashecho "ftp script begin at: `date`" >> /home/care/asgroup_scripts/s1mme.logHOST="集团ftpip"USER="用户"PASS="密码"day=$1  #zx时间 LCD_DIR="/uardata/chuli/"$1"/"RCD_DIR="/shanghai/LTE/shanghai/"$1"/"echo $LCD_DIRecho $RCD_DIRLCD_mme=$LCD_DIR"Mme"RCD_mme=$RCD_DIR"Mme"LCD_general=$LCD_DIR"General"RCD_general=$RCD_DIR"General"LCD_http=$LCD_DIR"Http"RCD_http=$RCD_DIR"Http"LCD_im=$LCD_DIR"IM"RCD_im=$RCD_DIR"IM"LCD_mme=$LCD_DIR"Mme"RCD_mme=$RCD_DIR"Mme"LCD_voip=$LCD_DIR"Voip"RCD_voip=$RCD_DIR"Voip"/usr/bin/lftp << EOFopen ftp://$USER:$PASS@$HOSTmirror -R --only-newer --only-missing --verbose $LCD_general $RCD_generalmirror -R --only-newer --only-missing --verbose $LCD_http $RCD_httpmirror -R --only-newer --only-missing --verbose $LCD_im $RCD_immirror -R --only-newer --only-missing --verbose $LCD_mme $RCD_mmemirror -R --only-newer --only-missing --verbose $LCD_voip $RCD_voipEOFecho "ftp script begin at: `date`" >> /home/care/asgroup_scripts/s1mme.log
0 0
原创粉丝点击