Saving system logs to SD card

What type of SD card can be used?

For units VT325, VT335, VT336, VT604/608, and VT805/825 family, the following cards must be used: SDHC (Secure Digital High Capacity) memory cards up to and inclusive 32Gb. All cards which are more than 32Gb will not work. Cards that are not HC will not work. We strongly recommend using SD cards above or equal to "Speed class 10".

 

For modern units VT335i, VT825i, VT855i, and VT960i family, the following cards must be used: SDHC (Secure Digital High Capacity) or SDXC (Secure Digital eXtended Capacity) memory cards up to and inclusive 512Gb.

Saving system logs to SD card

The monitoring unit uses SDHC and SDXC (on modern families) cards to record changes in logs, sensor data, and configuration elements. 4/8/16/32 Gb SDHC and 64 Gb SDXC (on modern families) cards can be used in a system. 

Formatting the SD card in FAT32 can be done from the web interface of the unit. Do not forget that when formatting, all data on the SD card will be deleted. Formatting uses the entire available capacity of the SD card.

For VT960i units, after formatting, reboot the system so that the card is correctly connected. In other cases, use the "Refresh" button to make sure that the card is correctly formatted and connected.

To manage the SD card go to the tab: Preferences >> Logging >> SD Card.

log_sd_card.png

 

Through this tab, the user can set the logging parameters, and view and manage the status of the SD card:

  • Current state - reflects the current status of the SD Card (normal/ejected/not connected);

  • Mount point - the mount point of the device, technical information;

  • Full size - the full memory SD card in megabytes;

  • Free size - the free memory SD card in megabytes;

  • Enable logging to SD Card - enables and disables the logging function on the SD card;

  • Save video files - enables and disables the function of saving video records;

  • Enable detailed logging - enables and disables the function of recording per-second values of the selected sensors on the SD card;

  • Enable supervisor logging - enables and disables tracking user actions like time of opening and closing a user session, changing system settings by the user;

  • Lifetime of files - the lifetime of the files, all older files are deleted from the SD card memory;

  • Contents of the SD Card - specifies a link to the contents of the SD card.

The buttons at the bottom of the panel provide:

  • Save - preservation and application of logging parameters;

  • Refresh - is used to update the page;

  • Eject - is used to remove SD card safely;

  • Format - formatting SD card to FAT32 filesystem.

 

If you remove the SD card without unmounting, data loss is possible!

The files are written to a directory with the name formed from the name of the device type (for example, VT325) and the value of the Network→Hostname field, and has the form VT325-DeviceName. If the name is not specified by the user (by default, hostname), then the IP address of the device is used to form the directory name, and the name has the form VT325-192.168.0.193. Inside this directory, create a directory for the log files (log), video files (video), sensors dump files (sensors), and log archive files (archive). The files are named based on their creation time, and 2016.11.17_16-37-43.log. At the beginning of the log file, upon creation, service information like the device type, software version, IP address, etc is stored. Log files are written in text form.  Sensors dump files are recorded in a text table format CSV. The CSV format is supported by many office and engineering programs, including Microsoft Excel, OpenOffice, LabVIEW, etc.

Log files are recorded during the day and are closed at 00:00 by device time. If the device reboots, then new files are created.

 

The log file is filled in as events occur, and looks like this:

#
# Device type: "VT325", Firmware version: "2.7.1".
# Hostname: "hostname", IP: "192.168.0.199", MAC: "d8:80:39:9e:97:a7"
#
Thu Nov 17 14:23:20 2016    message: USB Flash was inserted
Thu Nov 17 14:23:25 2016    state: Element Onboard Temperature (id=201001) changed state from "unknown" to "normal"
Thu Nov 17 14:23:25 2016    state: Element Onboard Voltage DC (id=203001) changed state from "unknown" to "normal"
Thu Nov 17 14:23:26 2016    state: Element Dry-1 (id=101001) changed state from "unknown" to "normal"
Thu Nov 17 14:23:26 2016    state: Element Dry-2 (id=101002) changed state from "unknown" to "normal"
Thu Nov 17 14:23:30 2016    message: System started up and ready
Thu Nov 17 14:23:41 2016    state: Element GSM Modem (id=404001) changed state from "unknown" to "normal"

Read more about Sensors dump files.

Often asked questions

Troubleshooting

The following table describes potential problems and their possible causes. It also describes checks you can perform or possible solutions for each. After referring to this table, if you cannot resolve the problem, contact your local Vutlan sales representative for assistance.

Problem

Reason

Solution

Problem

Reason

Solution

SD card can not be accessed. Error 403 nginx (system → logging → SD card)

SD card is not formatted.

Try to format SD card: Saving system logs to SD card