NOTE! This site uses cookies and similar technologies.

If you not change browser settings, you agree to it.

I understand

Welcome, Guest
Username: Password: Remember me

TOPIC: SSH log commands

SSH log commands 6 years 2 months ago #1

  • therio
  • therio's Avatar
  • Offline
  • Staff
  • Posts: 2161
  • Thank you received: 185
  • Karma: 78
If ever asked for a log, here's the way to give the correct command in SSH:

cat /var/log/Xorg.0.0.log | paste
cat /storage/.xbmc/temp/xbmc.log | paste
cat /var/log/messages | paste
lsmod | paste
lsusb | paste
lspci | paste
ifconfig | paste

Please reply only to add more commands like these!
A thank you is nice, but a donation is more needed ;)
Thanks in advance!!
Last Edit: 6 years 2 months ago by therio.
The administrator has disabled public write access.

Re: SSH log commands 6 years 2 months ago #2

  • chewitt
  • chewitt's Avatar
useful for debugging wireless configurations:

cat /var/lib/connman/default.profile > dp.txt
cat /storage/.xbmc/userdata/addon_data/os.openelec.settings/settings.xml > settings.txt

CAUTION: If you're using WIFI with WEP/WPA security these files will contain your network passphrase in cleartext; please edit the file and mask or remove the passphrase before doing "cat <filename> | paste" to share them.
The administrator has disabled public write access.

Re: SSH log commands 6 years 2 months ago #3

  • xe
  • xe's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 1073
  • Thank you received: 78
  • Karma: 84
Two points to expand on these:

cat /var/lib/connman/default.profile > dp.txt
cat /storage/.xbmc/userdata/addon_data/os.openelec.settings/settings.xml > settings.txt

should probably be

cat /var/lib/connman/default.profile > /tmp/dp.txt
cat /storage/.xbmc/userdata/addon_data/os.openelec.settings/settings.xml > /tmp/settings.txt

also

cat /.xbmc/temp/xbmc.log | paste

if you have debug logging on this log can leak some very personal data i.e. a complete top level folder listing of SMB shares and I often see peoples real names leaked here as well
#################################################
I collect Karma points feel free to contribute :)
#################################################
The administrator has disabled public write access.

Re: SSH log commands 5 years 4 months ago #4

  • Angi321
  • Angi321's Avatar
  • Offline
  • Junior Boarder
  • Posts: 44
  • Thank you received: 2
  • Karma: 2
Could you please update the command above for the current build?
When trying to use most of the commands listed here you get:
"THIS API HAS BEEN DISABLED. Please use Pastebin's API. http://...."
Ang
The administrator has disabled public write access.