This commit is contained in:
agtuser
2024-10-18 19:07:40 +08:00
parent fc468725de
commit 2b97cffabe
9 changed files with 554 additions and 554 deletions

98
.gitignore vendored Normal file → Executable file
View File

@@ -1,49 +1,49 @@
# ---> VisualStudioCode # ---> VisualStudioCode
.vscode/* .vscode/*
!.vscode/settings.json !.vscode/settings.json
!.vscode/tasks.json !.vscode/tasks.json
!.vscode/launch.json !.vscode/launch.json
!.vscode/extensions.json !.vscode/extensions.json
!.vscode/*.code-snippets !.vscode/*.code-snippets
# Local History for Visual Studio Code # Local History for Visual Studio Code
.history/ .history/
.idea/ .idea/
# Run temp file and dir # Run temp file and dir
bin bin
# Built Visual Studio Code Extensions # Built Visual Studio Code Extensions
*.o *.o
*.a *.a
*.vsix *.vsix
*.log *.log
*.log-* *.log-*
*.bak *.bak
*.bak* *.bak*
*.exe *.exe
__debug_bin*.exe __debug_bin*.exe
# bin file # bin file
plat/iptrans/iptrans plat/iptrans/iptrans
src/accountMgr/c_program/cdrCollector/cdrCollector src/accountMgr/c_program/cdrCollector/cdrCollector
src/accountMgr/c_program/ftpsend/ftpSend src/accountMgr/c_program/ftpsend/ftpSend
src/accountMgr/c_program/nrtrde/nrtrde src/accountMgr/c_program/nrtrde/nrtrde
src/accountMgr/c_program/sftpSend/sftpSend src/accountMgr/c_program/sftpSend/sftpSend
src/accountMgr/c_program/smcli/smcli src/accountMgr/c_program/smcli/smcli
src/accountMgr/c_program/subsComm/subsComm src/accountMgr/c_program/subsComm/subsComm
src/accountMgr/c_program/subsDataBackup/subsDataBackup src/accountMgr/c_program/subsDataBackup/subsDataBackup
src/accountMgr/c_program/wsms/wsms src/accountMgr/c_program/wsms/wsms
src/configMgr/c_program/paraComm/paraComm src/configMgr/c_program/paraComm/paraComm
src/faultMgr/c_program/alarmAgent/alarmAgent src/faultMgr/c_program/alarmAgent/alarmAgent
src/faultMgr/c_program/alarmGenerator/alarmGenerator src/faultMgr/c_program/alarmGenerator/alarmGenerator
src/faultMgr/c_program/beatProc/beatProc src/faultMgr/c_program/beatProc/beatProc
src/faultMgr/c_program/beatSend/beatSend src/faultMgr/c_program/beatSend/beatSend
src/faultMgr/c_program/raidAgent/raidAgent src/faultMgr/c_program/raidAgent/raidAgent
src/faultMgr/c_program/sysStat/statTest src/faultMgr/c_program/sysStat/statTest
src/omcLib/c_program/ftp/ftpclient src/omcLib/c_program/ftp/ftpclient
src/omcLib/c_program/omcLib/omcLibTest src/omcLib/c_program/omcLib/omcLibTest
src/omcMain/c_program/omcMain/omcMain src/omcMain/c_program/omcMain/omcMain
src/performanceMgr/c_program/cstaCollector/cstaCollector src/performanceMgr/c_program/cstaCollector/cstaCollector
src/performanceMgr/c_program/logCollector/logCollector src/performanceMgr/c_program/logCollector/logCollector
src/securityMgr/c_program/omcCleaner/omcCleaner src/securityMgr/c_program/omcCleaner/omcCleaner

View File

@@ -1,3 +1,3 @@
#!/bin/bash #!/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 -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 gcc -o iptrans ./src/iptrmain.c -Llib/ -liptrans -L../debug/lib -ldebug -L../snmp/lib -lsnmp -L../public/lib -lpublic -lm

View File

@@ -1,18 +1,18 @@
#!/bin/bash #!/bin/bash
platDir=../plat 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" 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 for mod in $platModuleList; do
echo "====================== make $mod =======================" echo "====================== make $mod ======================="
cd $platDir/$mod cd $platDir/$mod
#make clean #make clean
make make
if [ $mod == "iptrans" ]; then if [ $mod == "iptrans" ]; then
./mkiptrans.sh ./mkiptrans.sh
cp -f ./iptrans ../../bin/ cp -f ./iptrans ../../bin/
fi fi
cd - cd -
echo "" echo ""
done done

View File

@@ -1,32 +1,32 @@
#!/usr/bin/expect #!/usr/bin/expect
#This script use to init the server keys, it rewrite the known_hosts config file #This script use to init the server keys, it rewrite the known_hosts config file
#This script have 3 parameters #This script have 3 parameters
#remoteip: the ip of the remote server #remoteip: the ip of the remote server
#username: the name for logging in #username: the name for logging in
#userpass: the password for logging in #userpass: the password for logging in
set remoteip [lindex $argv 0] set remoteip [lindex $argv 0]
set username [lindex $argv 1] set username [lindex $argv 1]
set userpass [lindex $argv 2] set userpass [lindex $argv 2]
set timeout 5 set timeout 5
spawn sftp $username@$remoteip spawn sftp $username@$remoteip
expect "*(yes/no)?*" expect "*(yes/no)?*"
send "yes\n" send "yes\n"
expect "*password*" expect "*password*"
send "$userpass\n" send "$userpass\n"
expect "*sftp>*" expect "*sftp>*"
send "quit\n" send "quit\n"
expect eof expect eof
exit exit

View File

@@ -1,31 +1,31 @@
#!/bin/sh #!/bin/sh
#This script parse the result.txt file #This script parse the result.txt file
#to judge whether the operation of sending file is successful #to judge whether the operation of sending file is successful
#The local do not have the Permission to access the remote directory #The local do not have the Permission to access the remote directory
if [ `grep -c "handle" /tmp/result$1.txt` -gt 0 ] ; then if [ `grep -c "handle" /tmp/result$1.txt` -gt 0 ] ; then
`echo 4 >/tmp/temp$1.txt` `echo 4 >/tmp/temp$1.txt`
#echo "The local do not have the Permission to access the remote directory" #echo "The local do not have the Permission to access the remote directory"
exit exit
fi fi
#The name or the password is not fit #The name or the password is not fit
if [ `grep -c "Permission denied" /tmp/result$1.txt` -gt 0 ] ; then if [ `grep -c "Permission denied" /tmp/result$1.txt` -gt 0 ] ; then
`echo 2 >/tmp/temp$1.txt` `echo 2 >/tmp/temp$1.txt`
#echo "The name or the password is not fit" #echo "The name or the password is not fit"
exit exit
fi fi
#Successful #Successful
if [ `grep -c "100%" /tmp/result$1.txt` -gt 0 ] ; then if [ `grep -c "100%" /tmp/result$1.txt` -gt 0 ] ; then
`echo 0 >/tmp/temp$1.txt` `echo 0 >/tmp/temp$1.txt`
#echo "Send the file successfully" #echo "Send the file successfully"
exit exit
fi fi
#The remote server is unavailable #The remote server is unavailable
`echo 1 >/tmp/temp$1.txt` `echo 1 >/tmp/temp$1.txt`
#echo "The remote server is unavailable" #echo "The remote server is unavailable"
exit exit

View File

@@ -1,34 +1,34 @@
#!/usr/bin/expect #!/usr/bin/expect
#This script interative with the remote server, and send the file to it #This script interative with the remote server, and send the file to it
#This script have 6 parameters #This script have 6 parameters
#remoteip: the ip of the remote server #remoteip: the ip of the remote server
#username: the name for logining in #username: the name for logining in
#userpass: the password for logining in #userpass: the password for logining in
#resdir: the directory to store the files #resdir: the directory to store the files
#sendfile: the file to send to the remote server #sendfile: the file to send to the remote server
#desdir: the directory to send the files #desdir: the directory to send the files
set remoteip [lindex $argv 0] set remoteip [lindex $argv 0]
set username [lindex $argv 1] set username [lindex $argv 1]
set userpass [lindex $argv 2] set userpass [lindex $argv 2]
set resdir [lindex $argv 3] set resdir [lindex $argv 3]
set sendfile [lindex $argv 4] set sendfile [lindex $argv 4]
set desdir [lindex $argv 5] set desdir [lindex $argv 5]
set timeout 120 set timeout 120
spawn sftp $username@$remoteip spawn sftp $username@$remoteip
expect "yes/no" {send "yes\n"; expect "*assword: "} "*assword: " expect "yes/no" {send "yes\n"; expect "*assword: "} "*assword: "
send "$userpass\n" send "$userpass\n"
expect "*sftp>*" expect "*sftp>*"
send "cd $desdir\n" send "cd $desdir\n"
send "lcd $resdir\n" send "lcd $resdir\n"
send "put $sendfile\n" send "put $sendfile\n"
expect "*100%*" expect "*100%*"
exit exit

View File

@@ -1,188 +1,188 @@
#!/bin/bash #!/bin/bash
src_dir=`pwd` src_dir=`pwd`
#omcLib #omcLib
cd ${src_dir}/omcLib/c_program/omcLib cd ${src_dir}/omcLib/c_program/omcLib
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "-------------------- omcLib ------------------------" echo "-------------------- omcLib ------------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#omcLib ftp #omcLib ftp
cd ${src_dir}/omcLib/c_program/ftp cd ${src_dir}/omcLib/c_program/ftp
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "----------------- omcLib ftp------------------------" echo "----------------- omcLib ftp------------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#smeg #smeg
cd ${src_dir}/smeg cd ${src_dir}/smeg
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "---------------------- smeg ------------------------" echo "---------------------- smeg ------------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make make
#accountMgr cdrCollector #accountMgr cdrCollector
cd ${src_dir}/accountMgr/c_program/cdrCollector cd ${src_dir}/accountMgr/c_program/cdrCollector
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "---------- accountMgr cdrCollector -----------------" echo "---------- accountMgr cdrCollector -----------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#accountMgr ftpSend #accountMgr ftpSend
cd ${src_dir}/accountMgr/c_program/ftpsend cd ${src_dir}/accountMgr/c_program/ftpsend
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "------------- accountMgr ftpSend ------------------" echo "------------- accountMgr ftpSend ------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#accountMgr nrtrde #accountMgr nrtrde
cd ${src_dir}/accountMgr/c_program/nrtrde cd ${src_dir}/accountMgr/c_program/nrtrde
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "------------- accountMgr nrtrde ------------------" echo "------------- accountMgr nrtrde ------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#accountMgr sftpSend #accountMgr sftpSend
cd ${src_dir}/accountMgr/c_program/sftpSend cd ${src_dir}/accountMgr/c_program/sftpSend
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "------------- accountMgr sftpSend ------------------" echo "------------- accountMgr sftpSend ------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#accountMgr smcli #accountMgr smcli
cd ${src_dir}/accountMgr/c_program/smcli cd ${src_dir}/accountMgr/c_program/smcli
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "-------------- accountMgr smcli --------------------" echo "-------------- accountMgr smcli --------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#accountMgr subsComm #accountMgr subsComm
cd ${src_dir}/accountMgr/c_program/subsComm cd ${src_dir}/accountMgr/c_program/subsComm
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "------------- accountMgr subsComm ------------------" echo "------------- accountMgr subsComm ------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#accountMgr subsDataBackup #accountMgr subsDataBackup
cd ${src_dir}/accountMgr/c_program/subsDataBackup cd ${src_dir}/accountMgr/c_program/subsDataBackup
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "----------- accountMgr subsDataBackup --------------" echo "----------- accountMgr subsDataBackup --------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#accountMgr wsms #accountMgr wsms
cd ${src_dir}/accountMgr/c_program/wsms cd ${src_dir}/accountMgr/c_program/wsms
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "---------------- accountMgr wsms -------------------" echo "---------------- accountMgr wsms -------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#configMgr paraComm #configMgr paraComm
cd ${src_dir}/configMgr/c_program/paraComm cd ${src_dir}/configMgr/c_program/paraComm
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "--------------- configMgr-->paraComm ---------------" echo "--------------- configMgr-->paraComm ---------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#faultMgr alarmAgent #faultMgr alarmAgent
cd ${src_dir}/faultMgr/c_program/alarmAgent cd ${src_dir}/faultMgr/c_program/alarmAgent
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "-------------- faultMgr-->alarmAgent ---------------" echo "-------------- faultMgr-->alarmAgent ---------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#faultMgr alarmGenerator #faultMgr alarmGenerator
cd ${src_dir}/faultMgr/c_program/alarmGenerator cd ${src_dir}/faultMgr/c_program/alarmGenerator
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "------------ faultMgr-->alarmGenerator -------------" echo "------------ faultMgr-->alarmGenerator -------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#faultMgr sysStat #faultMgr sysStat
cd ${src_dir}/faultMgr/c_program/sysStat cd ${src_dir}/faultMgr/c_program/sysStat
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "---------------- faultMgr-->sysStat ----------------" echo "---------------- faultMgr-->sysStat ----------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make make
#faultMgr beatProc #faultMgr beatProc
cd ${src_dir}/faultMgr/c_program/beatProc cd ${src_dir}/faultMgr/c_program/beatProc
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "--------------- faultMgr-->beatProc ----------------" echo "--------------- faultMgr-->beatProc ----------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#faultMgr beatSend #faultMgr beatSend
cd ${src_dir}/faultMgr/c_program/beatSend cd ${src_dir}/faultMgr/c_program/beatSend
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "--------------- faultMgr-->beatSend ----------------" echo "--------------- faultMgr-->beatSend ----------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#faultMgr dualsrv #faultMgr dualsrv
cd ${src_dir}/faultMgr/c_program/dualsrv cd ${src_dir}/faultMgr/c_program/dualsrv
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "--------------- faultMgr-->dualsrv -----------------" echo "--------------- faultMgr-->dualsrv -----------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#performanceMgr logCollector #performanceMgr logCollector
cd ${src_dir}/performanceMgr/c_program/logCollector cd ${src_dir}/performanceMgr/c_program/logCollector
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "--------- performanceMgr-->logCollector ------------" echo "--------- performanceMgr-->logCollector ------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#performanceMgr cstaCollector #performanceMgr cstaCollector
cd ${src_dir}/performanceMgr/c_program/cstaCollector cd ${src_dir}/performanceMgr/c_program/cstaCollector
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "--------- performanceMgr-->cstaCollector -----------" echo "--------- performanceMgr-->cstaCollector -----------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#securityMgr omcCleaner #securityMgr omcCleaner
cd ${src_dir}/securityMgr/c_program/omcCleaner cd ${src_dir}/securityMgr/c_program/omcCleaner
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "----------- securityMgr-->omcCleaner ---------------" echo "----------- securityMgr-->omcCleaner ---------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#faultMgr raidAgent #faultMgr raidAgent
cd ${src_dir}/faultMgr/c_program/raidAgent cd ${src_dir}/faultMgr/c_program/raidAgent
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "--------------- faultMgr-->raidAgent ------------------" echo "--------------- faultMgr-->raidAgent ------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES
#omcMain omcMain #omcMain omcMain
cd ${src_dir}/omcMain/c_program/omcMain cd ${src_dir}/omcMain/c_program/omcMain
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "--------------- omcMain-->omcMain ------------------" echo "--------------- omcMain-->omcMain ------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
make clean make clean
make linuxES make linuxES

View File

@@ -1,188 +1,188 @@
#!/bin/bash #!/bin/bash
src_dir=`pwd` src_dir=`pwd`
#omcLib #omcLib
cd ${src_dir}/omcLib/c_program/omcLib cd ${src_dir}/omcLib/c_program/omcLib
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "-------------------- omcLib ------------------------" echo "-------------------- omcLib ------------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#omcLib ftp #omcLib ftp
cd ${src_dir}/omcLib/c_program/ftp cd ${src_dir}/omcLib/c_program/ftp
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "----------------- omcLib ftp------------------------" echo "----------------- omcLib ftp------------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#smeg #smeg
cd ${src_dir}/smeg cd ${src_dir}/smeg
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "---------------------- smeg ------------------------" echo "---------------------- smeg ------------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make make
#accountMgr cdrCollector #accountMgr cdrCollector
cd ${src_dir}/accountMgr/c_program/cdrCollector cd ${src_dir}/accountMgr/c_program/cdrCollector
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "---------- accountMgr cdrCollector -----------------" echo "---------- accountMgr cdrCollector -----------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#accountMgr ftpSend #accountMgr ftpSend
cd ${src_dir}/accountMgr/c_program/ftpsend cd ${src_dir}/accountMgr/c_program/ftpsend
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "------------- accountMgr ftpSend ------------------" echo "------------- accountMgr ftpSend ------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#accountMgr nrtrde #accountMgr nrtrde
cd ${src_dir}/accountMgr/c_program/nrtrde cd ${src_dir}/accountMgr/c_program/nrtrde
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "------------- accountMgr nrtrde ------------------" echo "------------- accountMgr nrtrde ------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#accountMgr sftpSend #accountMgr sftpSend
cd ${src_dir}/accountMgr/c_program/sftpSend cd ${src_dir}/accountMgr/c_program/sftpSend
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "------------- accountMgr sftpSend ------------------" echo "------------- accountMgr sftpSend ------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#accountMgr smcli #accountMgr smcli
cd ${src_dir}/accountMgr/c_program/smcli cd ${src_dir}/accountMgr/c_program/smcli
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "-------------- accountMgr smcli --------------------" echo "-------------- accountMgr smcli --------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#accountMgr subsComm #accountMgr subsComm
cd ${src_dir}/accountMgr/c_program/subsComm cd ${src_dir}/accountMgr/c_program/subsComm
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "------------- accountMgr subsComm ------------------" echo "------------- accountMgr subsComm ------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#accountMgr subsDataBackup #accountMgr subsDataBackup
cd ${src_dir}/accountMgr/c_program/subsDataBackup cd ${src_dir}/accountMgr/c_program/subsDataBackup
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "----------- accountMgr subsDataBackup --------------" echo "----------- accountMgr subsDataBackup --------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#accountMgr wsms #accountMgr wsms
cd ${src_dir}/accountMgr/c_program/wsms cd ${src_dir}/accountMgr/c_program/wsms
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "---------------- accountMgr wsms -------------------" echo "---------------- accountMgr wsms -------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#configMgr paraComm #configMgr paraComm
cd ${src_dir}/configMgr/c_program/paraComm cd ${src_dir}/configMgr/c_program/paraComm
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "--------------- configMgr-->paraComm ---------------" echo "--------------- configMgr-->paraComm ---------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#faultMgr alarmAgent #faultMgr alarmAgent
cd ${src_dir}/faultMgr/c_program/alarmAgent cd ${src_dir}/faultMgr/c_program/alarmAgent
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "-------------- faultMgr-->alarmAgent ---------------" echo "-------------- faultMgr-->alarmAgent ---------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#faultMgr alarmGenerator #faultMgr alarmGenerator
cd ${src_dir}/faultMgr/c_program/alarmGenerator cd ${src_dir}/faultMgr/c_program/alarmGenerator
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "------------ faultMgr-->alarmGenerator -------------" echo "------------ faultMgr-->alarmGenerator -------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#faultMgr sysStat #faultMgr sysStat
cd ${src_dir}/faultMgr/c_program/sysStat cd ${src_dir}/faultMgr/c_program/sysStat
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "---------------- faultMgr-->sysStat ----------------" echo "---------------- faultMgr-->sysStat ----------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make make
#faultMgr beatProc #faultMgr beatProc
cd ${src_dir}/faultMgr/c_program/beatProc cd ${src_dir}/faultMgr/c_program/beatProc
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "--------------- faultMgr-->beatProc ----------------" echo "--------------- faultMgr-->beatProc ----------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#faultMgr beatSend #faultMgr beatSend
cd ${src_dir}/faultMgr/c_program/beatSend cd ${src_dir}/faultMgr/c_program/beatSend
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "--------------- faultMgr-->beatSend ----------------" echo "--------------- faultMgr-->beatSend ----------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#faultMgr dualsrv #faultMgr dualsrv
cd ${src_dir}/faultMgr/c_program/dualsrv cd ${src_dir}/faultMgr/c_program/dualsrv
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "--------------- faultMgr-->dualsrv -----------------" echo "--------------- faultMgr-->dualsrv -----------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#performanceMgr logCollector #performanceMgr logCollector
cd ${src_dir}/performanceMgr/c_program/logCollector cd ${src_dir}/performanceMgr/c_program/logCollector
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "--------- performanceMgr-->logCollector ------------" echo "--------- performanceMgr-->logCollector ------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#performanceMgr cstaCollector #performanceMgr cstaCollector
cd ${src_dir}/performanceMgr/c_program/cstaCollector cd ${src_dir}/performanceMgr/c_program/cstaCollector
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "--------- performanceMgr-->cstaCollector -----------" echo "--------- performanceMgr-->cstaCollector -----------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#securityMgr omcCleaner #securityMgr omcCleaner
cd ${src_dir}/securityMgr/c_program/omcCleaner cd ${src_dir}/securityMgr/c_program/omcCleaner
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "----------- securityMgr-->omcCleaner ---------------" echo "----------- securityMgr-->omcCleaner ---------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#faultMgr raidAgent #faultMgr raidAgent
cd ${src_dir}/faultMgr/c_program/raidAgent cd ${src_dir}/faultMgr/c_program/raidAgent
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "--------------- faultMgr-->raidAgent ------------------" echo "--------------- faultMgr-->raidAgent ------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin
#omcMain omcMain #omcMain omcMain
cd ${src_dir}/omcMain/c_program/omcMain cd ${src_dir}/omcMain/c_program/omcMain
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "--------------- omcMain-->omcMain ------------------" echo "--------------- omcMain-->omcMain ------------------"
echo "----------------------------------------------------" echo "----------------------------------------------------"
#make clean #make clean
make installbin make installbin

View File

@@ -1,11 +1,11 @@
#!/bin/bash #!/bin/bash
cd /usr/local/omc/src/smeg cd /usr/local/omc/src/smeg
make clean make clean
make make
cd /usr/local/omc/src/omcMain/c_program/omcMain cd /usr/local/omc/src/omcMain/c_program/omcMain
make clean make clean
make linuxES make linuxES