Getting Logs on SmartLabs Linux-based STBs

In order to enable the debug mode of the SmartTUBE app for STB running on Linux STB, please follow the steps below.

  1. Login to an STB over SSH with username user. Turn off autostart of the app. Reboot the STB.
    1. Turn off autostart of the app:
      sudo /usr/bin/set_start_app.sh false
    2. Check the current values of NVRAM variables:
      sudo /usr/sbin/fw_printenv
    3. Reboot the STB:
      sudo /sbin/reboot
  1. After rebooting the application shouldn’t start. Login to the STB over SSH and start the app.

    Configure the environment variables in order to get the debug output of the app, start the app:

Bash (Unix Shell)

export QTV_DEBUG_LEVEL=5

export QTV_DEBUG_MODULES=ALL

while sleep 1 ; do echo -ne “===================== `date +%s` `date` ===================== n” ; done & sudo /usr/bin/start.sh

Make sure the log is recording into the file and full log will be saved.

  1. Reproduce the steps preceded the issue(s).

    Remember the actions which (probably) led to the incorrect behaviour.

    Note the time the problem occurred (or started to occur).

  2. Turn off debug mode.

    Turn on autostart of the app, restart the STB.

Bash (Unix Shell)

sudo /usr/bin/set_start_app.sh

sudo /sbin/reboot

  1. In certain cases it may be useful to gather some extra information from STB (before rebooting).

    System Messages Log at the moment:

Bash (Unix Shell)

cat /var/log/messages

Follow the system messages log as it grows:

Bash (Unix Shell)

tail -F -c +1 /var/log/messages

DHCP options received by the STB:

Bash (Unix Shell)

cat /tmp/dhcp_*.info

Some general info and stats to be saved:

Bash (Unix Shell)

ps

top -n 1

netstat -an

cat /proc/cpuinfo
cat /proc/meminfo
free
ls /mnt/persistent
cat /mnt/persistent/smartsdk.cfg
sudo /usr/sbin/fw_printenv

CONTENTS
Sign-in
Sign-in with your SmartLabs Support Portal account credentials to see non-public articles.