Basic command-line: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
|  (Uus lehekülg: '*Log in as super user <pre>su</pre> *Display current software and hardware version <pre>cat /VERSION</pre> *Show system time <pre>date</pre> *Show time from hardware clock (UTC) ...') | No edit summary | ||
| Line 17: | Line 17: | ||
| *Save a TCP capture log from eth2, TCP port 2404, to file tcplog1.pcap (Wireshark compatible) | *Save a TCP capture log from eth2, TCP port 2404, to file tcplog1.pcap (Wireshark compatible) | ||
| <pre>tcpdump -i eth2 -n  tcp port 2404 -w tcplog1.pcap</pre> | <pre>tcpdump -i eth2 -n  tcp port 2404 -w tcplog1.pcap</pre> | ||
| *List old GWS configs available | |||
| <pre>/etc/init.d/S11telem-config list-old</pre> | |||
| *Load old GWS configs number 3 | |||
| <pre>/etc/init.d/S11telem-config old 3 </pre> | |||
| *Monitor data received from GPS connected to C1 (or Com1 for GWM). More details: [[GPS in port C1]] | |||
| <pre>cat /dev/gps0</pre> | |||
Revision as of 08:35, 3 March 2015
- Log in as super user
su
- Display current software and hardware version
cat /VERSION
- Show system time
date
- Show time from hardware clock (UTC)
hwclock -r
- Display content of console.log
cat /var/log/telem/console.log
- Follow the content of console.log
tail -f /var/log/telem/console.log
- Follow the content of console.log, only show lines containing phrase "DI23"
tail -f /var/log/telem/console.log |grep DI23
- Edit the file named log-conf.xml (changes will be lost after reboot)
nano /usr/local/etc/telem/log-conf.xml
- Save a TCP capture log from eth2, TCP port 2404, to file tcplog1.pcap (Wireshark compatible)
tcpdump -i eth2 -n tcp port 2404 -w tcplog1.pcap
- List old GWS configs available
/etc/init.d/S11telem-config list-old
- Load old GWS configs number 3
/etc/init.d/S11telem-config old 3
- Monitor data received from GPS connected to C1 (or Com1 for GWM). More details: GPS in port C1
cat /dev/gps0