From 2b97cffabecb3269abc09bc7f4fa20de3bee5387 Mon Sep 17 00:00:00 2001 From: agtuser Date: Fri, 18 Oct 2024 19:07:40 +0800 Subject: [PATCH] iii --- .gitignore | 98 ++--- plat/iptrans/mkiptrans.sh | 6 +- plat/mkplat.sh | 36 +- src/accountMgr/c_program/sftpSend/initKeys | 64 +-- src/accountMgr/c_program/sftpSend/parseResult | 62 +-- src/accountMgr/c_program/sftpSend/sendfile | 68 ++-- src/mkall.sh | 376 +++++++++--------- src/mkbin.sh | 376 +++++++++--------- src/smeg/make.sh | 22 +- 9 files changed, 554 insertions(+), 554 deletions(-) mode change 100644 => 100755 .gitignore diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 index 80606a2..835fc01 --- a/.gitignore +++ b/.gitignore @@ -1,49 +1,49 @@ -# ---> VisualStudioCode -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -!.vscode/*.code-snippets - -# Local History for Visual Studio Code -.history/ -.idea/ - -# Run temp file and dir -bin - -# Built Visual Studio Code Extensions -*.o -*.a -*.vsix -*.log -*.log-* -*.bak -*.bak* -*.exe -__debug_bin*.exe - -# bin file -plat/iptrans/iptrans -src/accountMgr/c_program/cdrCollector/cdrCollector -src/accountMgr/c_program/ftpsend/ftpSend -src/accountMgr/c_program/nrtrde/nrtrde -src/accountMgr/c_program/sftpSend/sftpSend -src/accountMgr/c_program/smcli/smcli -src/accountMgr/c_program/subsComm/subsComm -src/accountMgr/c_program/subsDataBackup/subsDataBackup -src/accountMgr/c_program/wsms/wsms -src/configMgr/c_program/paraComm/paraComm -src/faultMgr/c_program/alarmAgent/alarmAgent -src/faultMgr/c_program/alarmGenerator/alarmGenerator -src/faultMgr/c_program/beatProc/beatProc -src/faultMgr/c_program/beatSend/beatSend -src/faultMgr/c_program/raidAgent/raidAgent -src/faultMgr/c_program/sysStat/statTest -src/omcLib/c_program/ftp/ftpclient -src/omcLib/c_program/omcLib/omcLibTest -src/omcMain/c_program/omcMain/omcMain -src/performanceMgr/c_program/cstaCollector/cstaCollector -src/performanceMgr/c_program/logCollector/logCollector -src/securityMgr/c_program/omcCleaner/omcCleaner +# ---> VisualStudioCode +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ +.idea/ + +# Run temp file and dir +bin + +# Built Visual Studio Code Extensions +*.o +*.a +*.vsix +*.log +*.log-* +*.bak +*.bak* +*.exe +__debug_bin*.exe + +# bin file +plat/iptrans/iptrans +src/accountMgr/c_program/cdrCollector/cdrCollector +src/accountMgr/c_program/ftpsend/ftpSend +src/accountMgr/c_program/nrtrde/nrtrde +src/accountMgr/c_program/sftpSend/sftpSend +src/accountMgr/c_program/smcli/smcli +src/accountMgr/c_program/subsComm/subsComm +src/accountMgr/c_program/subsDataBackup/subsDataBackup +src/accountMgr/c_program/wsms/wsms +src/configMgr/c_program/paraComm/paraComm +src/faultMgr/c_program/alarmAgent/alarmAgent +src/faultMgr/c_program/alarmGenerator/alarmGenerator +src/faultMgr/c_program/beatProc/beatProc +src/faultMgr/c_program/beatSend/beatSend +src/faultMgr/c_program/raidAgent/raidAgent +src/faultMgr/c_program/sysStat/statTest +src/omcLib/c_program/ftp/ftpclient +src/omcLib/c_program/omcLib/omcLibTest +src/omcMain/c_program/omcMain/omcMain +src/performanceMgr/c_program/cstaCollector/cstaCollector +src/performanceMgr/c_program/logCollector/logCollector +src/securityMgr/c_program/omcCleaner/omcCleaner diff --git a/plat/iptrans/mkiptrans.sh b/plat/iptrans/mkiptrans.sh index 6ae9508..fe71305 100755 --- a/plat/iptrans/mkiptrans.sh +++ b/plat/iptrans/mkiptrans.sh @@ -1,3 +1,3 @@ -#!/bin/bash -#gcc -o iptrans ./src/iptrmain.c -Llib/ -liptrans -L../debug/lib -ldebug -lcurses -L../snmp/lib -lsnmp -L../public/lib -lpublic -lm -gcc -o iptrans ./src/iptrmain.c -Llib/ -liptrans -L../debug/lib -ldebug -L../snmp/lib -lsnmp -L../public/lib -lpublic -lm +#!/bin/bash +#gcc -o iptrans ./src/iptrmain.c -Llib/ -liptrans -L../debug/lib -ldebug -lcurses -L../snmp/lib -lsnmp -L../public/lib -lpublic -lm +gcc -o iptrans ./src/iptrmain.c -Llib/ -liptrans -L../debug/lib -ldebug -L../snmp/lib -lsnmp -L../public/lib -lpublic -lm diff --git a/plat/mkplat.sh b/plat/mkplat.sh index c235809..524f357 100755 --- a/plat/mkplat.sh +++ b/plat/mkplat.sh @@ -1,18 +1,18 @@ -#!/bin/bash - -platDir=../plat -platModuleList="8ecp aif bicc debug haepub iptrans isdn isup m2ua mgc mgcp mgc_v2 mtp3 pal public rtp sccp scf sip smpp snmp tcap xapp" -for mod in $platModuleList; do - echo "====================== make $mod =======================" - cd $platDir/$mod - #make clean - make - - if [ $mod == "iptrans" ]; then - ./mkiptrans.sh - cp -f ./iptrans ../../bin/ - fi - - cd - - echo "" -done +#!/bin/bash + +platDir=../plat +platModuleList="8ecp aif bicc debug haepub iptrans isdn isup m2ua mgc mgcp mgc_v2 mtp3 pal public rtp sccp scf sip smpp snmp tcap xapp" +for mod in $platModuleList; do + echo "====================== make $mod =======================" + cd $platDir/$mod + #make clean + make + + if [ $mod == "iptrans" ]; then + ./mkiptrans.sh + cp -f ./iptrans ../../bin/ + fi + + cd - + echo "" +done diff --git a/src/accountMgr/c_program/sftpSend/initKeys b/src/accountMgr/c_program/sftpSend/initKeys index 70055b9..e660d84 100755 --- a/src/accountMgr/c_program/sftpSend/initKeys +++ b/src/accountMgr/c_program/sftpSend/initKeys @@ -1,32 +1,32 @@ -#!/usr/bin/expect - -#This script use to init the server keys, it rewrite the known_hosts config file - -#This script have 3 parameters -#remoteip: the ip of the remote server -#username: the name for logging in -#userpass: the password for logging in - -set remoteip [lindex $argv 0] -set username [lindex $argv 1] -set userpass [lindex $argv 2] - -set timeout 5 - -spawn sftp $username@$remoteip - -expect "*(yes/no)?*" - -send "yes\n" - -expect "*password*" - -send "$userpass\n" - -expect "*sftp>*" - -send "quit\n" - -expect eof -exit - +#!/usr/bin/expect + +#This script use to init the server keys, it rewrite the known_hosts config file + +#This script have 3 parameters +#remoteip: the ip of the remote server +#username: the name for logging in +#userpass: the password for logging in + +set remoteip [lindex $argv 0] +set username [lindex $argv 1] +set userpass [lindex $argv 2] + +set timeout 5 + +spawn sftp $username@$remoteip + +expect "*(yes/no)?*" + +send "yes\n" + +expect "*password*" + +send "$userpass\n" + +expect "*sftp>*" + +send "quit\n" + +expect eof +exit + diff --git a/src/accountMgr/c_program/sftpSend/parseResult b/src/accountMgr/c_program/sftpSend/parseResult index 2650cf2..1c9fba0 100755 --- a/src/accountMgr/c_program/sftpSend/parseResult +++ b/src/accountMgr/c_program/sftpSend/parseResult @@ -1,31 +1,31 @@ -#!/bin/sh - -#This script parse the result.txt file -#to judge whether the operation of sending file is successful - -#The local do not have the Permission to access the remote directory -if [ `grep -c "handle" /tmp/result$1.txt` -gt 0 ] ; then - `echo 4 >/tmp/temp$1.txt` - #echo "The local do not have the Permission to access the remote directory" - exit -fi - -#The name or the password is not fit -if [ `grep -c "Permission denied" /tmp/result$1.txt` -gt 0 ] ; then - `echo 2 >/tmp/temp$1.txt` - #echo "The name or the password is not fit" - exit -fi - -#Successful -if [ `grep -c "100%" /tmp/result$1.txt` -gt 0 ] ; then - `echo 0 >/tmp/temp$1.txt` - #echo "Send the file successfully" - exit -fi - -#The remote server is unavailable - `echo 1 >/tmp/temp$1.txt` - #echo "The remote server is unavailable" - exit - +#!/bin/sh + +#This script parse the result.txt file +#to judge whether the operation of sending file is successful + +#The local do not have the Permission to access the remote directory +if [ `grep -c "handle" /tmp/result$1.txt` -gt 0 ] ; then + `echo 4 >/tmp/temp$1.txt` + #echo "The local do not have the Permission to access the remote directory" + exit +fi + +#The name or the password is not fit +if [ `grep -c "Permission denied" /tmp/result$1.txt` -gt 0 ] ; then + `echo 2 >/tmp/temp$1.txt` + #echo "The name or the password is not fit" + exit +fi + +#Successful +if [ `grep -c "100%" /tmp/result$1.txt` -gt 0 ] ; then + `echo 0 >/tmp/temp$1.txt` + #echo "Send the file successfully" + exit +fi + +#The remote server is unavailable + `echo 1 >/tmp/temp$1.txt` + #echo "The remote server is unavailable" + exit + diff --git a/src/accountMgr/c_program/sftpSend/sendfile b/src/accountMgr/c_program/sftpSend/sendfile index 39b6b97..d739ed1 100755 --- a/src/accountMgr/c_program/sftpSend/sendfile +++ b/src/accountMgr/c_program/sftpSend/sendfile @@ -1,34 +1,34 @@ -#!/usr/bin/expect - -#This script interative with the remote server, and send the file to it - -#This script have 6 parameters -#remoteip: the ip of the remote server -#username: the name for logining in -#userpass: the password for logining in -#resdir: the directory to store the files -#sendfile: the file to send to the remote server -#desdir: the directory to send the files - -set remoteip [lindex $argv 0] -set username [lindex $argv 1] -set userpass [lindex $argv 2] -set resdir [lindex $argv 3] -set sendfile [lindex $argv 4] -set desdir [lindex $argv 5] - -set timeout 120 - -spawn sftp $username@$remoteip - - - -expect "yes/no" {send "yes\n"; expect "*assword: "} "*assword: " -send "$userpass\n" -expect "*sftp>*" -send "cd $desdir\n" -send "lcd $resdir\n" -send "put $sendfile\n" - -expect "*100%*" -exit +#!/usr/bin/expect + +#This script interative with the remote server, and send the file to it + +#This script have 6 parameters +#remoteip: the ip of the remote server +#username: the name for logining in +#userpass: the password for logining in +#resdir: the directory to store the files +#sendfile: the file to send to the remote server +#desdir: the directory to send the files + +set remoteip [lindex $argv 0] +set username [lindex $argv 1] +set userpass [lindex $argv 2] +set resdir [lindex $argv 3] +set sendfile [lindex $argv 4] +set desdir [lindex $argv 5] + +set timeout 120 + +spawn sftp $username@$remoteip + + + +expect "yes/no" {send "yes\n"; expect "*assword: "} "*assword: " +send "$userpass\n" +expect "*sftp>*" +send "cd $desdir\n" +send "lcd $resdir\n" +send "put $sendfile\n" + +expect "*100%*" +exit diff --git a/src/mkall.sh b/src/mkall.sh index 448c76d..e9779fb 100755 --- a/src/mkall.sh +++ b/src/mkall.sh @@ -1,188 +1,188 @@ -#!/bin/bash - -src_dir=`pwd` - -#omcLib -cd ${src_dir}/omcLib/c_program/omcLib -echo "----------------------------------------------------" -echo "-------------------- omcLib ------------------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#omcLib ftp -cd ${src_dir}/omcLib/c_program/ftp -echo "----------------------------------------------------" -echo "----------------- omcLib ftp------------------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#smeg -cd ${src_dir}/smeg -echo "----------------------------------------------------" -echo "---------------------- smeg ------------------------" -echo "----------------------------------------------------" -make clean -make - -#accountMgr cdrCollector -cd ${src_dir}/accountMgr/c_program/cdrCollector -echo "----------------------------------------------------" -echo "---------- accountMgr cdrCollector -----------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#accountMgr ftpSend -cd ${src_dir}/accountMgr/c_program/ftpsend -echo "----------------------------------------------------" -echo "------------- accountMgr ftpSend ------------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#accountMgr nrtrde -cd ${src_dir}/accountMgr/c_program/nrtrde -echo "----------------------------------------------------" -echo "------------- accountMgr nrtrde ------------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#accountMgr sftpSend -cd ${src_dir}/accountMgr/c_program/sftpSend -echo "----------------------------------------------------" -echo "------------- accountMgr sftpSend ------------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#accountMgr smcli -cd ${src_dir}/accountMgr/c_program/smcli -echo "----------------------------------------------------" -echo "-------------- accountMgr smcli --------------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#accountMgr subsComm -cd ${src_dir}/accountMgr/c_program/subsComm -echo "----------------------------------------------------" -echo "------------- accountMgr subsComm ------------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#accountMgr subsDataBackup -cd ${src_dir}/accountMgr/c_program/subsDataBackup -echo "----------------------------------------------------" -echo "----------- accountMgr subsDataBackup --------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#accountMgr wsms -cd ${src_dir}/accountMgr/c_program/wsms -echo "----------------------------------------------------" -echo "---------------- accountMgr wsms -------------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#configMgr paraComm -cd ${src_dir}/configMgr/c_program/paraComm -echo "----------------------------------------------------" -echo "--------------- configMgr-->paraComm ---------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#faultMgr alarmAgent -cd ${src_dir}/faultMgr/c_program/alarmAgent -echo "----------------------------------------------------" -echo "-------------- faultMgr-->alarmAgent ---------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#faultMgr alarmGenerator -cd ${src_dir}/faultMgr/c_program/alarmGenerator -echo "----------------------------------------------------" -echo "------------ faultMgr-->alarmGenerator -------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#faultMgr sysStat -cd ${src_dir}/faultMgr/c_program/sysStat -echo "----------------------------------------------------" -echo "---------------- faultMgr-->sysStat ----------------" -echo "----------------------------------------------------" -make clean -make - -#faultMgr beatProc -cd ${src_dir}/faultMgr/c_program/beatProc -echo "----------------------------------------------------" -echo "--------------- faultMgr-->beatProc ----------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#faultMgr beatSend -cd ${src_dir}/faultMgr/c_program/beatSend -echo "----------------------------------------------------" -echo "--------------- faultMgr-->beatSend ----------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#faultMgr dualsrv -cd ${src_dir}/faultMgr/c_program/dualsrv -echo "----------------------------------------------------" -echo "--------------- faultMgr-->dualsrv -----------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#performanceMgr logCollector -cd ${src_dir}/performanceMgr/c_program/logCollector -echo "----------------------------------------------------" -echo "--------- performanceMgr-->logCollector ------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#performanceMgr cstaCollector -cd ${src_dir}/performanceMgr/c_program/cstaCollector -echo "----------------------------------------------------" -echo "--------- performanceMgr-->cstaCollector -----------" -echo "----------------------------------------------------" -make clean -make linuxES - -#securityMgr omcCleaner -cd ${src_dir}/securityMgr/c_program/omcCleaner -echo "----------------------------------------------------" -echo "----------- securityMgr-->omcCleaner ---------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#faultMgr raidAgent -cd ${src_dir}/faultMgr/c_program/raidAgent -echo "----------------------------------------------------" -echo "--------------- faultMgr-->raidAgent ------------------" -echo "----------------------------------------------------" -make clean -make linuxES - -#omcMain omcMain -cd ${src_dir}/omcMain/c_program/omcMain -echo "----------------------------------------------------" -echo "--------------- omcMain-->omcMain ------------------" -echo "----------------------------------------------------" -make clean -make linuxES - +#!/bin/bash + +src_dir=`pwd` + +#omcLib +cd ${src_dir}/omcLib/c_program/omcLib +echo "----------------------------------------------------" +echo "-------------------- omcLib ------------------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#omcLib ftp +cd ${src_dir}/omcLib/c_program/ftp +echo "----------------------------------------------------" +echo "----------------- omcLib ftp------------------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#smeg +cd ${src_dir}/smeg +echo "----------------------------------------------------" +echo "---------------------- smeg ------------------------" +echo "----------------------------------------------------" +make clean +make + +#accountMgr cdrCollector +cd ${src_dir}/accountMgr/c_program/cdrCollector +echo "----------------------------------------------------" +echo "---------- accountMgr cdrCollector -----------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#accountMgr ftpSend +cd ${src_dir}/accountMgr/c_program/ftpsend +echo "----------------------------------------------------" +echo "------------- accountMgr ftpSend ------------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#accountMgr nrtrde +cd ${src_dir}/accountMgr/c_program/nrtrde +echo "----------------------------------------------------" +echo "------------- accountMgr nrtrde ------------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#accountMgr sftpSend +cd ${src_dir}/accountMgr/c_program/sftpSend +echo "----------------------------------------------------" +echo "------------- accountMgr sftpSend ------------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#accountMgr smcli +cd ${src_dir}/accountMgr/c_program/smcli +echo "----------------------------------------------------" +echo "-------------- accountMgr smcli --------------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#accountMgr subsComm +cd ${src_dir}/accountMgr/c_program/subsComm +echo "----------------------------------------------------" +echo "------------- accountMgr subsComm ------------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#accountMgr subsDataBackup +cd ${src_dir}/accountMgr/c_program/subsDataBackup +echo "----------------------------------------------------" +echo "----------- accountMgr subsDataBackup --------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#accountMgr wsms +cd ${src_dir}/accountMgr/c_program/wsms +echo "----------------------------------------------------" +echo "---------------- accountMgr wsms -------------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#configMgr paraComm +cd ${src_dir}/configMgr/c_program/paraComm +echo "----------------------------------------------------" +echo "--------------- configMgr-->paraComm ---------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#faultMgr alarmAgent +cd ${src_dir}/faultMgr/c_program/alarmAgent +echo "----------------------------------------------------" +echo "-------------- faultMgr-->alarmAgent ---------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#faultMgr alarmGenerator +cd ${src_dir}/faultMgr/c_program/alarmGenerator +echo "----------------------------------------------------" +echo "------------ faultMgr-->alarmGenerator -------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#faultMgr sysStat +cd ${src_dir}/faultMgr/c_program/sysStat +echo "----------------------------------------------------" +echo "---------------- faultMgr-->sysStat ----------------" +echo "----------------------------------------------------" +make clean +make + +#faultMgr beatProc +cd ${src_dir}/faultMgr/c_program/beatProc +echo "----------------------------------------------------" +echo "--------------- faultMgr-->beatProc ----------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#faultMgr beatSend +cd ${src_dir}/faultMgr/c_program/beatSend +echo "----------------------------------------------------" +echo "--------------- faultMgr-->beatSend ----------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#faultMgr dualsrv +cd ${src_dir}/faultMgr/c_program/dualsrv +echo "----------------------------------------------------" +echo "--------------- faultMgr-->dualsrv -----------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#performanceMgr logCollector +cd ${src_dir}/performanceMgr/c_program/logCollector +echo "----------------------------------------------------" +echo "--------- performanceMgr-->logCollector ------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#performanceMgr cstaCollector +cd ${src_dir}/performanceMgr/c_program/cstaCollector +echo "----------------------------------------------------" +echo "--------- performanceMgr-->cstaCollector -----------" +echo "----------------------------------------------------" +make clean +make linuxES + +#securityMgr omcCleaner +cd ${src_dir}/securityMgr/c_program/omcCleaner +echo "----------------------------------------------------" +echo "----------- securityMgr-->omcCleaner ---------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#faultMgr raidAgent +cd ${src_dir}/faultMgr/c_program/raidAgent +echo "----------------------------------------------------" +echo "--------------- faultMgr-->raidAgent ------------------" +echo "----------------------------------------------------" +make clean +make linuxES + +#omcMain omcMain +cd ${src_dir}/omcMain/c_program/omcMain +echo "----------------------------------------------------" +echo "--------------- omcMain-->omcMain ------------------" +echo "----------------------------------------------------" +make clean +make linuxES + diff --git a/src/mkbin.sh b/src/mkbin.sh index 75c1e7d..54441c7 100755 --- a/src/mkbin.sh +++ b/src/mkbin.sh @@ -1,188 +1,188 @@ -#!/bin/bash - -src_dir=`pwd` - -#omcLib -cd ${src_dir}/omcLib/c_program/omcLib -echo "----------------------------------------------------" -echo "-------------------- omcLib ------------------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#omcLib ftp -cd ${src_dir}/omcLib/c_program/ftp -echo "----------------------------------------------------" -echo "----------------- omcLib ftp------------------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#smeg -cd ${src_dir}/smeg -echo "----------------------------------------------------" -echo "---------------------- smeg ------------------------" -echo "----------------------------------------------------" -#make clean -make - -#accountMgr cdrCollector -cd ${src_dir}/accountMgr/c_program/cdrCollector -echo "----------------------------------------------------" -echo "---------- accountMgr cdrCollector -----------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#accountMgr ftpSend -cd ${src_dir}/accountMgr/c_program/ftpsend -echo "----------------------------------------------------" -echo "------------- accountMgr ftpSend ------------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#accountMgr nrtrde -cd ${src_dir}/accountMgr/c_program/nrtrde -echo "----------------------------------------------------" -echo "------------- accountMgr nrtrde ------------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#accountMgr sftpSend -cd ${src_dir}/accountMgr/c_program/sftpSend -echo "----------------------------------------------------" -echo "------------- accountMgr sftpSend ------------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#accountMgr smcli -cd ${src_dir}/accountMgr/c_program/smcli -echo "----------------------------------------------------" -echo "-------------- accountMgr smcli --------------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#accountMgr subsComm -cd ${src_dir}/accountMgr/c_program/subsComm -echo "----------------------------------------------------" -echo "------------- accountMgr subsComm ------------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#accountMgr subsDataBackup -cd ${src_dir}/accountMgr/c_program/subsDataBackup -echo "----------------------------------------------------" -echo "----------- accountMgr subsDataBackup --------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#accountMgr wsms -cd ${src_dir}/accountMgr/c_program/wsms -echo "----------------------------------------------------" -echo "---------------- accountMgr wsms -------------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#configMgr paraComm -cd ${src_dir}/configMgr/c_program/paraComm -echo "----------------------------------------------------" -echo "--------------- configMgr-->paraComm ---------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#faultMgr alarmAgent -cd ${src_dir}/faultMgr/c_program/alarmAgent -echo "----------------------------------------------------" -echo "-------------- faultMgr-->alarmAgent ---------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#faultMgr alarmGenerator -cd ${src_dir}/faultMgr/c_program/alarmGenerator -echo "----------------------------------------------------" -echo "------------ faultMgr-->alarmGenerator -------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#faultMgr sysStat -cd ${src_dir}/faultMgr/c_program/sysStat -echo "----------------------------------------------------" -echo "---------------- faultMgr-->sysStat ----------------" -echo "----------------------------------------------------" -#make clean -make - -#faultMgr beatProc -cd ${src_dir}/faultMgr/c_program/beatProc -echo "----------------------------------------------------" -echo "--------------- faultMgr-->beatProc ----------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#faultMgr beatSend -cd ${src_dir}/faultMgr/c_program/beatSend -echo "----------------------------------------------------" -echo "--------------- faultMgr-->beatSend ----------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#faultMgr dualsrv -cd ${src_dir}/faultMgr/c_program/dualsrv -echo "----------------------------------------------------" -echo "--------------- faultMgr-->dualsrv -----------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#performanceMgr logCollector -cd ${src_dir}/performanceMgr/c_program/logCollector -echo "----------------------------------------------------" -echo "--------- performanceMgr-->logCollector ------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#performanceMgr cstaCollector -cd ${src_dir}/performanceMgr/c_program/cstaCollector -echo "----------------------------------------------------" -echo "--------- performanceMgr-->cstaCollector -----------" -echo "----------------------------------------------------" -#make clean -make installbin - -#securityMgr omcCleaner -cd ${src_dir}/securityMgr/c_program/omcCleaner -echo "----------------------------------------------------" -echo "----------- securityMgr-->omcCleaner ---------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#faultMgr raidAgent -cd ${src_dir}/faultMgr/c_program/raidAgent -echo "----------------------------------------------------" -echo "--------------- faultMgr-->raidAgent ------------------" -echo "----------------------------------------------------" -#make clean -make installbin - -#omcMain omcMain -cd ${src_dir}/omcMain/c_program/omcMain -echo "----------------------------------------------------" -echo "--------------- omcMain-->omcMain ------------------" -echo "----------------------------------------------------" -#make clean -make installbin - +#!/bin/bash + +src_dir=`pwd` + +#omcLib +cd ${src_dir}/omcLib/c_program/omcLib +echo "----------------------------------------------------" +echo "-------------------- omcLib ------------------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#omcLib ftp +cd ${src_dir}/omcLib/c_program/ftp +echo "----------------------------------------------------" +echo "----------------- omcLib ftp------------------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#smeg +cd ${src_dir}/smeg +echo "----------------------------------------------------" +echo "---------------------- smeg ------------------------" +echo "----------------------------------------------------" +#make clean +make + +#accountMgr cdrCollector +cd ${src_dir}/accountMgr/c_program/cdrCollector +echo "----------------------------------------------------" +echo "---------- accountMgr cdrCollector -----------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#accountMgr ftpSend +cd ${src_dir}/accountMgr/c_program/ftpsend +echo "----------------------------------------------------" +echo "------------- accountMgr ftpSend ------------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#accountMgr nrtrde +cd ${src_dir}/accountMgr/c_program/nrtrde +echo "----------------------------------------------------" +echo "------------- accountMgr nrtrde ------------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#accountMgr sftpSend +cd ${src_dir}/accountMgr/c_program/sftpSend +echo "----------------------------------------------------" +echo "------------- accountMgr sftpSend ------------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#accountMgr smcli +cd ${src_dir}/accountMgr/c_program/smcli +echo "----------------------------------------------------" +echo "-------------- accountMgr smcli --------------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#accountMgr subsComm +cd ${src_dir}/accountMgr/c_program/subsComm +echo "----------------------------------------------------" +echo "------------- accountMgr subsComm ------------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#accountMgr subsDataBackup +cd ${src_dir}/accountMgr/c_program/subsDataBackup +echo "----------------------------------------------------" +echo "----------- accountMgr subsDataBackup --------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#accountMgr wsms +cd ${src_dir}/accountMgr/c_program/wsms +echo "----------------------------------------------------" +echo "---------------- accountMgr wsms -------------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#configMgr paraComm +cd ${src_dir}/configMgr/c_program/paraComm +echo "----------------------------------------------------" +echo "--------------- configMgr-->paraComm ---------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#faultMgr alarmAgent +cd ${src_dir}/faultMgr/c_program/alarmAgent +echo "----------------------------------------------------" +echo "-------------- faultMgr-->alarmAgent ---------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#faultMgr alarmGenerator +cd ${src_dir}/faultMgr/c_program/alarmGenerator +echo "----------------------------------------------------" +echo "------------ faultMgr-->alarmGenerator -------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#faultMgr sysStat +cd ${src_dir}/faultMgr/c_program/sysStat +echo "----------------------------------------------------" +echo "---------------- faultMgr-->sysStat ----------------" +echo "----------------------------------------------------" +#make clean +make + +#faultMgr beatProc +cd ${src_dir}/faultMgr/c_program/beatProc +echo "----------------------------------------------------" +echo "--------------- faultMgr-->beatProc ----------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#faultMgr beatSend +cd ${src_dir}/faultMgr/c_program/beatSend +echo "----------------------------------------------------" +echo "--------------- faultMgr-->beatSend ----------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#faultMgr dualsrv +cd ${src_dir}/faultMgr/c_program/dualsrv +echo "----------------------------------------------------" +echo "--------------- faultMgr-->dualsrv -----------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#performanceMgr logCollector +cd ${src_dir}/performanceMgr/c_program/logCollector +echo "----------------------------------------------------" +echo "--------- performanceMgr-->logCollector ------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#performanceMgr cstaCollector +cd ${src_dir}/performanceMgr/c_program/cstaCollector +echo "----------------------------------------------------" +echo "--------- performanceMgr-->cstaCollector -----------" +echo "----------------------------------------------------" +#make clean +make installbin + +#securityMgr omcCleaner +cd ${src_dir}/securityMgr/c_program/omcCleaner +echo "----------------------------------------------------" +echo "----------- securityMgr-->omcCleaner ---------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#faultMgr raidAgent +cd ${src_dir}/faultMgr/c_program/raidAgent +echo "----------------------------------------------------" +echo "--------------- faultMgr-->raidAgent ------------------" +echo "----------------------------------------------------" +#make clean +make installbin + +#omcMain omcMain +cd ${src_dir}/omcMain/c_program/omcMain +echo "----------------------------------------------------" +echo "--------------- omcMain-->omcMain ------------------" +echo "----------------------------------------------------" +#make clean +make installbin + diff --git a/src/smeg/make.sh b/src/smeg/make.sh index 032be15..3e43ded 100755 --- a/src/smeg/make.sh +++ b/src/smeg/make.sh @@ -1,11 +1,11 @@ -#!/bin/bash - -cd /usr/local/omc/src/smeg -make clean -make - -cd /usr/local/omc/src/omcMain/c_program/omcMain -make clean -make linuxES - - +#!/bin/bash + +cd /usr/local/omc/src/smeg +make clean +make + +cd /usr/local/omc/src/omcMain/c_program/omcMain +make clean +make linuxES + +