Escolar Documentos
Profissional Documentos
Cultura Documentos
tcpdump
tcpdump
tcpdump
tcpdump
tcpdump
tcpdump
tcpdump
tcpdump
tcpdump
-i
-i
-i
-i
-i
-i
-i
-i
-i
-i
lo
lo
lo
lo
lo
lo
lo
lo
lo
lo
//L4 to DB UMTS
//L4 to DB CDMA
//L4 to DB GSM
//L4 to DB LTE
//DB to L5 UMTS
//DB to L5 CDMA
//DB to L5 GSM
//DB tx side to L5 LTE
//L5 rx side from DB LTE
//PTT Alert output to the brain
//To access another machine use this command (as user not root)
ssh user@192.168.25.148
Once logged onto the other machine as user you can sudo su
//To
find
//To
find
//To
find
//Save make output to a file so you can grep for errors also displays it to std
out
make clean all install 2>&1 | tee output.log
//To reset the dhcpd leases remove the following file. This allows you to change
tuners connected to a backend
rm /var/lib/dhcp/dhcpd.leases
Then issue this command to restart the dhcp service
//back end dhcp server restart
/etc/init.d/isc-dhcp-server restart
//To run the reset script
mysql -uroot -ppassword < tableCreationText.sql
mysql -uroot -ppassword mrtDB
mysql> SHOW COLUMNS FROM mytable FROM mydb;
//restart udev rules variation 1 which didnt work for the gps
sudo service udev restart
//dmesg human readable timestamps
dmesg -T
//Use this to reload the udev rules
udevadm control --reload
//To watch what happens when devices
udevadm monitor
//or try
unbuffer udevadm monitor --environment
//To increase the logging of udev rules use this command
//The default log level for udev rules is "err" see file /etc/udev/udev.conf
//Then you will see all logs in your system log via syslog
udevadm control --log-priority=info
//display info about the port
stty -a -F /dev/gps
ella
//vi command to delete blank lines in the file being edited
:g/^$/d
//Find 10 largest
du -hsx * | sort -rh | head -10
//This command removes duplicates from an existing command history file
//note that there are 2 history files one is in /root and the other in /home/use
r
cat .bash_history | awk '!x[$0]++' > ttt
//To calc just the avg task times in dblog over entire test
grep "LTE Processing time for taskType=0" dblog.log | awk '{ sum += $NF; n++; pr
int $NF } END { if (n > 0) print sum / n; }'
//Does max and avg
grep "LTE Processing time for taskType=2" dblog.log | awk 'BEGIN {max = 0} { if
($NF>max) max=$NF; sum += $NF; n++; } END { if (n > 0) print "AVG="sum / n; pri
nt "MAX=" max }'
//To
grep
//To
grep
g3lte -l 1
//Then run udp_send --portnum and hit return
//Then in the udp_send terminal paste the following command
"id=2408 type=decode f=1935.0000 name=/public/mrt/logs/mikedbag4 out=/public/mrt
/logs/mikedout pci=291"
//The g3lte logging goes to file mikedout
//To grep whole words use the -w option
//To pretty print shell output pipe the output through
command bla bla bla | column -t
//Counts the number of commas in each sendTask line which is used to count the n
umber of brain sendTasks that
//are multiple scans or decodes
grep sendTask CdmaBrain.log | awk -F, '/,/{sum+=(NF-1); print NR,NF-1,sum $0}'
//just the sum
grep sendTask CdmaBrain.log | awk -F, '/,/{sum+=(NF-1);} END {print sum} '
//Start ndr308 server. This is in usr/local/bin and doesnt require the ./
ndr308_Server -host 192.168.1.20 -snapwait 3000 &> /public/mrt/logs/ndr308_Serve
r.log &
//Start tsControl for EVDO
tsControl --evdo --num_proc 2 --q1-depth 30 --q2-depth 20 --grab-depth 4 &> /pub
lic/mrt/logs/tsControl-evdo.log &
//Start db
mrtdbProxy -d DEBUG4 &
//Switch to vim, and use :set hlsearch
//You can then use :highlight Search ctermfg=yellow to customize; where:
cterm is for formating
ctermfg is for foreground color
ctermbg is for background color
//see :help highlight link
//You can then use :noh to temporarily hide the last search highlight.
//to close the quickfix list
:ccl
//This is a line from the tsControl log for CDMA. This is how you determine if P
N 0 is a problem. The value in parenthesis (0.018s) is what you need to focus on
.
//If its bigger than 10 seconds than PN0 will be unreliable because searches are
not occurring often enough to keep it updated.
***WARNING***: G3NJ_ERR: cdma_cell_search: samp_num= 1309991452 pn0_samp_num= 13
09969948 diff= 21504 (0.018s) PN= 244 peakIndex= 6582 Ec/Io= -5.06 PN0= 16082 PN
0_avg= 16084.73 stream_id= 6
//Use this command to awk out that PN0 related time value. This command will sor
t the values from smallest to largest.
//NOTE THAT THE FIRST VALUE in the beginning of the log should be ignored. It wi
ll be a very large value.
grep -i pn0 tsControl-cdma.log | awk -F'[()]' '{ print $2 }' | sort -n
//to see how many channelizers are being used use this command (CDMA example)
grep CDMA- ndr308_Server.log
//to use non promiscuous mode
tcpdump -p -i eth2
If you want the app to always run as root