C613-50631-01 Rev A Command Reference for IE340 Series 442
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
LOGGING COMMANDS
LOG
EXTERNAL
log external
Overview Use this command to enable external logging. External logging sends syslog
messages to a file on a USB storage device.
If the file does not already exist on the storage device, it (and any specified
subdirectory) will be automatically created. If the file already exists, messages are
appended to it.
Use the no variant of this command to disable external logging.
Syntax
log external <filename>
no log external
Default External logging is disabled by default.
Mode Global Configuration
Usage notes We strongly recommend using ext3 or ext4 as the file system on the external
storage device. These file systems have a lower risk of file corruption occurring if
the switch or firewall loses power.
You should also unmount the storage device before removing it from the switch
or firewall, to avoid corrupting the log file. To unmount the device, use the
unmount command.
Example To save messages to a file called “messages.log” in a directory called “log” on a USB
storage device, use the command:
awplus# configure terminal
awplus(config)# log external usb:/log/messages.log
Related
commands
clear log external
default log external
log external (filter)
log external exclude
log external rotate
log external size
show log config
show log external
unmount
Parameter Description
<filename> The file and optionally directory path to store the log messages in.
See Introduction on page 137 for valid syntax.