...
This commit is contained in:
0
bin/changehostname
Executable file → Normal file
0
bin/changehostname
Executable file → Normal file
0
bin/chgDate
Executable file → Normal file
0
bin/chgDate
Executable file → Normal file
0
bin/clearDb
Executable file → Normal file
0
bin/clearDb
Executable file → Normal file
32
bin/initKeys
32
bin/initKeys
@@ -1,32 +0,0 @@
|
|||||||
#!/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
|
|
||||||
|
|
||||||
0
bin/myipcrm
Executable file → Normal file
0
bin/myipcrm
Executable file → Normal file
0
bin/mysql_OMCmain_Auditlog_filter
Executable file → Normal file
0
bin/mysql_OMCmain_Auditlog_filter
Executable file → Normal file
0
bin/omcMainWatcher
Executable file → Normal file
0
bin/omcMainWatcher
Executable file → Normal file
@@ -1,31 +0,0 @@
|
|||||||
#!/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
|
|
||||||
|
|
||||||
32
bin/sendfile
32
bin/sendfile
@@ -1,32 +0,0 @@
|
|||||||
#!/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
|
|
||||||
0
bin/setRunMode
Executable file → Normal file
0
bin/setRunMode
Executable file → Normal file
0
bin/wxc2_omcd
Executable file → Normal file
0
bin/wxc2_omcd
Executable file → Normal file
0
bin/wxc2_omcdm
Executable file → Normal file
0
bin/wxc2_omcdm
Executable file → Normal file
0
plat/iptrans/mkiptrans.sh
Executable file → Normal file
0
plat/iptrans/mkiptrans.sh
Executable file → Normal file
0
plat/mkplat.sh
Executable file → Normal file
0
plat/mkplat.sh
Executable file → Normal file
0
src/accountMgr/c_program/sftpSend/initKeys
Executable file → Normal file
0
src/accountMgr/c_program/sftpSend/initKeys
Executable file → Normal file
0
src/accountMgr/c_program/sftpSend/parseResult
Executable file → Normal file
0
src/accountMgr/c_program/sftpSend/parseResult
Executable file → Normal file
0
src/accountMgr/c_program/sftpSend/sendfile
Executable file → Normal file
0
src/accountMgr/c_program/sftpSend/sendfile
Executable file → Normal file
188
src/mkall.sh
188
src/mkall.sh
@@ -1,188 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
src_dir=`pwd`
|
|
||||||
|
|
||||||
#omcLib
|
|
||||||
cd ${src_dir}/omcLib/c_program/omcLib
|
|
||||||
echo "----------------------------------------------------"
|
|
||||||
echo "-------------------- omcLib ------------------------"
|
|
||||||
echo "----------------------------------------------------"
|
|
||||||
make clean
|
|
||||||
make
|
|
||||||
|
|
||||||
#smeg
|
|
||||||
cd ${src_dir}/smeg
|
|
||||||
echo "----------------------------------------------------"
|
|
||||||
echo "---------------------- smeg ------------------------"
|
|
||||||
echo "----------------------------------------------------"
|
|
||||||
make clean
|
|
||||||
make
|
|
||||||
|
|
||||||
#faultMgr sysStat
|
|
||||||
cd ${src_dir}/faultMgr/c_program/sysStat
|
|
||||||
echo "----------------------------------------------------"
|
|
||||||
echo "---------------- faultMgr-->sysStat ----------------"
|
|
||||||
echo "----------------------------------------------------"
|
|
||||||
make clean
|
|
||||||
make
|
|
||||||
|
|
||||||
#omcLib ftp
|
|
||||||
cd ${src_dir}/omcLib/c_program/ftp
|
|
||||||
echo "----------------------------------------------------"
|
|
||||||
echo "----------------- omcLib ftp------------------------"
|
|
||||||
echo "----------------------------------------------------"
|
|
||||||
make clean
|
|
||||||
make linuxES
|
|
||||||
|
|
||||||
#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 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
|
|
||||||
|
|
||||||
187
src/mkbin.sh
187
src/mkbin.sh
@@ -1,187 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
src_dir=`pwd`
|
|
||||||
|
|
||||||
#omcLib
|
|
||||||
cd ${src_dir}/omcLib/c_program/omcLib
|
|
||||||
echo "----------------------------------------------------"
|
|
||||||
echo "-------------------- omcLib ------------------------"
|
|
||||||
echo "----------------------------------------------------"
|
|
||||||
#make clean
|
|
||||||
make
|
|
||||||
|
|
||||||
#smeg
|
|
||||||
cd ${src_dir}/smeg
|
|
||||||
echo "----------------------------------------------------"
|
|
||||||
echo "---------------------- smeg ------------------------"
|
|
||||||
echo "----------------------------------------------------"
|
|
||||||
#make clean
|
|
||||||
make
|
|
||||||
|
|
||||||
#faultMgr sysStat
|
|
||||||
cd ${src_dir}/faultMgr/c_program/sysStat
|
|
||||||
echo "----------------------------------------------------"
|
|
||||||
echo "---------------- faultMgr-->sysStat ----------------"
|
|
||||||
echo "----------------------------------------------------"
|
|
||||||
#make clean
|
|
||||||
make
|
|
||||||
|
|
||||||
#omcLib ftp
|
|
||||||
cd ${src_dir}/omcLib/c_program/ftp
|
|
||||||
echo "----------------------------------------------------"
|
|
||||||
echo "----------------- omcLib ftp------------------------"
|
|
||||||
echo "----------------------------------------------------"
|
|
||||||
#make clean
|
|
||||||
make installbin
|
|
||||||
|
|
||||||
#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 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
|
|
||||||
0
src/smeg/make.sh
Executable file → Normal file
0
src/smeg/make.sh
Executable file → Normal file
Reference in New Issue
Block a user