Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
///////////////////////////////////////////////////////////////////////////
[/cygdrive/d/llog_batch_2]$
[/cygdrive/d/llog_batch_2]$ q
bash: q: command not found
[/cygdrive/d/llog_batch_2]$ cd
[~]$ cd d:
[/cygdrive/d]$ cd llog_batch_2
[/cygdrive/d/llog_batch_2]$ cd llog_batch_5
bash: cd: llog_batch_5: No such file or directory
[/cygdrive/d/llog_batch_2]$ cd
[~]$ cd d:
[/cygdrive/d]$ cd llog_batch_5
[/cygdrive/d/llog_batch_5]$
[/cygdrive/d/llog_batch_5]$ cat * | awk '/>/ {a=$1} /'code'/ {b=$4} /Restart ord|
due|limit/ {c=$0; print a,b,c}'
[/cygdrive/d/llog_batch_5]$ cat * | awk '/llog/ {a=$1} /date/ {b=$1} {print a,b}'
///////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
2. After download complete, open windows command and go to your desired folder
e.g. , Command : cd D:\Integration\AL\Temp\errorlog
3. Concatenate all file become 1 file on your desired folder. You can name it
whatever you like.
e.g. , Command : D:\Integration\AL\Temp\errorlog> copy *.* errorlog.log
4. After concatenate finish, open the new file "errorlog.log" using UltraEdit and
convert the file from UNIX to DOS
e.g. , File -> Conversions -> UNIX/MAC to DOS
5. Save the file, and use Kadal.xls to compile the report ... ;)
.
.
.
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
cat *.log | awk '/>/ {a=$1} /!!!/ {b=$0;print a,b}' > errorENB.txt ----> check
error proses data eNB status
cat * | awk '/>/ {a=$1} /rollbackOn/ {b=$0;print a,b}' > result01.txt
cat * | awk '/>/ {a=$1} /cvls/ {b=$0;print a,b}' > result01.txt -----> collect
data cvls
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
olah data enodeb
cat *.log | awk '/>/ {a=$1} /failure/ {b=$0;print a,b}'
cat *.log | awk '/lt all/ {a=$1} /FroNotAccessibleException/ {b=$0;print a,b}'
cat *.log | awk '/lt all/ {a=$1} / 0 MOs/ {b=$0;print a,b}'
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
cat *.log | awk '/>/ {a=$1} /11-11-??/ {b=$0;print a,b}' llog,cabr
cat * | awk '/lt all/ {a=$1} />/ {b=$4} /Yes/ {c=$0; print a,b,c}' > lmclist.txt
--> lmclist
cat *.log | awk '/>/ {a=$1} /hget/ {b=$0;print a,b}' > pci_result.txt
cat *.log | awk '/lh ru/ {a=$1} /Yes/{b=$0;print a,b}' > lmclist2.txt (on
20/12/2011)
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
/var/opt/ericsson/amos/moshell_logfiles/enodeb
/var/opt/ericsson/amos/moshell_logfiles/cvls
/var/opt/ericsson/amos/moshell_logfiles/kget
/var/opt/ericsson/amos/moshell_logfiles/autorestart
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
Collect_Cell_01_PA4.sh
amosbatch -v secure_shell=1 -p 20 -t 20 /home/enbenzin/ipdatabase_031111_01 'run
get_data_12.mos'
///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
Collect_Cell_02_PA4.sh
amosbatch -v secure_shell=1 -p 20 -t 20 /home/enbenzin/ipdatabase_031111_02 'run
get_data_12.mos'
///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
Collect_Cell_03_PA4.sh
amosbatch -v secure_shell=1 -p 20 -t 20 /home/enbenzin/ipdatabase_031111_03 'run
get_data_12.mos'
///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
Collect_Data_No_Kget.mos
///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
/home/enbenzin/cr_Ex_274
///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
cp * /home/enbenzin/LOG
///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
Hi Team,
enbenzin@uas02> cd /var/opt/ericsson/amos/moshell_logfiles/dataenb/
enbenzin@uas02> pwd
/var/opt/ericsson/amos/moshell_logfiles/dataenb
enbenzin@uas02> cp * /home/enbenzin/LOG/
4. Access the folder /LOG/
enbenzin@uas02> cd /home/enbenzin/LOG/
enbenzin@uas02> pwd
/home/enbenzin/LOG
enbenzin@uas02> ./convert.sh
6. Copying files at folder DOS to your PC and moving it to PC which can compile the
data.
enbenzin@uas02> cd /home/enbenzin/DOS
enbenzin@uas02> ls
ELB71830_KangdongsungnaeA01.log ELB72879_Youngjongdo2A01.log
ELB71831_KangdongsungnaeA02.log ELB72880_Youngjongdo2A03.log
....
///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
NOTE:
Before you compile the data, please removing files which have Time-out or failure
data.
An example:
Integration Team
Freddy Silaban
Daniel R. Simarmata
///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
cat * | awk '/>/ {a=$1} /Recovery action/ {b=$0;print a,b}' > result01.txt
///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
command prompt type
C:\Users\OSS eNB\cd d:\Integration\freddyS\llog_daily\
C:\Users\OSS eNB\d:
D:\Integration\freddyS\daily_errorlog\
enbenzin@uas03> cd /home/enbenzin/moshell
enbenzin@uas03>
enbenzin@uas03> pwd
/home/enbenzin/moshell
enbenzin@uas03> ./mobatch -v secure_shell=1 -p 20 -t 30
ipdatabase_updateBaseline_20112011 'run 01_L12A_Pre3_UM4_default_parameter_PA2.MOS'
cat * | awk '/lt all/ {a=$1} />/ {b=$4} /systConstants/ {c=$0; print a,b,c}' >
lmclist.txt
cat *.log | awk '/lh ru/ {a=$1} /Yes/{b=$0;print a,b}' > lmclist2.txt
=====
cat *.log | awk '/alarmslogan/ {a=$1} /AuxPlugInUnit/{b=$0;print a,b}' > alarm1.txt
=====
grep -i 'port=2' *.log > port2
Ex:
enbenzin@uas01> pwd
/var/opt/ericsson/amos/moshell_logfiles/alarmslogan
enbenzin@uas01> grep -i 'port=2' *.log > port2
=====
amosbatch -v secure_shell=1 -p 50 -t 120 /home/enbenzin/activealarm1 'lt all ; lgac
-s 20120103.0800 -e 20120103.1000'
amosbatch -v secure_shell=1 -p 20 -t 20 /home/enbenzin/ipdatabase_collect_data_04
'lt all ; lga -s 20120103.0000 -e 20120103.1200 | grep FanAlarm /home/enbenzin/Zul'