100% found this document useful (3 votes)
3K views

home/ahguy/clusters - TXT: Mobatch Procedure

The mobatch procedure runs commands on all sites listed in a file. It creates a results folder and runs the specified commands for each site, storing the output in separate files for each site. The grep command can then be used to search through these log files and output summaries to new files, such as extracting VSWR values, temperatures, and alarms into single files.

Uploaded by

Sara Lara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
3K views

home/ahguy/clusters - TXT: Mobatch Procedure

The mobatch procedure runs commands on all sites listed in a file. It creates a results folder and runs the specified commands for each site, storing the output in separate files for each site. The grep command can then be used to search through these log files and output summaries to new files, such as extracting VSWR values, temperatures, and alarms into single files.

Uploaded by

Sara Lara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

MOBATCH PROCEDURE

To run the commands in a batch (all commands on all sites) use the MOBATCH procedure below
1. Create file in home folder on OSS with list of all Node Bs eg. sitesonair.txt
2. Create folder for results in home folder on OSS eg. mobatch
3. From Terminal window in OSS at OSS prompt, run command:
mobatch -o /home/ahguy/Clusters.txt 'lt all; alt; lh ru fui get vswr; lh ru fui get temp; rbs; lgaevs 12h'
/home/ahguy/Mobatch_c
BLUE part is list of RBSs
RED part is command list separated by semicolon. Should always start with lt all
GREEN part is output folder

The results will be stored in the results folder with a single file for every Node B
To create a single file with a summary of the VSWRs & ALARMS use the UNIX command grep command from the
OSS prompt (ahguy@mosseloss>)
grep 'vswr:' /home/ahguy/Mobatch_c/*.log > /home/ahguy/vswrvalue.txt
grep 'temp' /home/ahguy/Mobatch_10/*.log > /home/ahguy/tempnw.txt
grep ' M ' /home/ahguy/mobatch/*.log > /home/ahguy/Major_Alarms.txt
grep ' C ' /home/ahguy/mobatch/*.log > /home/ahguy/Critical_Alarms.txt
grep ' m ' /home/ahguy/mobatch/*.log > /home/ahguy/ Minor_Alarms.txt
BLUE part is the common expression in the line to search for
RED part is the location of the input files
GREEN part is output folder and file

mobatch -o /home/ahguy/277sites.txt 'lt all; get . ^localCellId' /home/ahguy/Mobatch_8


grep 'localCellId' /home/ahguy/Mobatch_8/*.log > /home/ahguy/CellID.txt

You might also like