5. Using the CLI Shell
ROS® v3.11User Guide
99
RMC30
5.3.1. Listing Files
Enter “dir<CR>” to obtain a complete list of files and a description of each.
Each file has associated attributes, as described under the Attr column in “dir”
command. Files marked “R” are readable, i.e. may be uploaded by the user. Files
marked “W” are writable, i.e. may be modified (downloaded) by the user. Files
marked “B” are binary files, i.e. may be upgraded by the user.
The most useful files include config.csv, crashlog.txt and syslog.txt. These files may be viewed
by using the “type” command, specifying the desired filename.
>dir
Directory of RuggedSwitch
--------------------------------------------------------------------------------
Free files: 21 of 32
Free handles: 31 of 32
Free blocks: 1024 of 1024
Block size: 4096
--------------------------------------------------------------------------------
Filename Size Hdls Blks Attr Description
--------------------------------------------------------------------------------
dir.txt 0 1 1 R Listing of files and attributes.
boot.bin 342930 0 0 RWB Boot firmware
main.bin 1424310 0 0 RWB Operating system firmware
fpga.xsvf 55921 0 0 RWB FPGA programming file binary file
factory.txt 161 0 0 RW Factory data parameters
config.csv 8555 0 0 RW System settings
config.bak 8555 0 0 RW System settings backup
crashlog.txt 0 0 0 RW Log of debilitating system events
syslog.txt 3105 0 0 RW Log of system events
sdram.bin 16777216 0 0 R B Image of entire SDRAM memory
flash.bin 4194304 0 0 R B Image of entire Flash memory
--------------------------------------------------------------------------------
Figure 5.2. Displaying The Directory Of A ROS®Device
5.3.2. Viewing and Clearing Log Files
The crashlog.txt and syslog.txt files contain historical information about events that have
occurred.
The crashlog.txt file will contain debugging information related to problems that might have
resulted in unplanned restarts of the device or which may effect the device operation. A file
size of 0 bytes indicates that no untoward events have occurred.
The syslog.txt file contains a record of significant events including startups, configuration
modifications, firmware upgrades and database re-initializations due to feature additions.
Syslog.txt file will accumulate information until it fills, holding approximately 3 megabytes of
characters.
The “clearlogs” command resets these logs. It is recommended to run “clearlogs” command
after every firmware upgrade.