device
To specify the device to be used for logging syslogs, use the device command in logging archive configuration
mode. To return to the default, use the no form of this command.
device {disk0| disk1| harddisk}
no device
Syntax Description
Uses disk0 as the archive device.disk0
Uses disk1 as the archive device.disk1
Uses the harddisk as the archive device.harddisk
Command Default
None
Command Modes
Logging archive configuration
Command History
ModificationRelease
This command was introduced.Release 3.2
Usage Guidelines
Use the device command to specify where syslogs are logged. The logs are created under the directory
<device>/var/log. If the device is not configured, then all other logging archive configurations are rejected.
Similarly, the configured device cannot be removed until the other logging archive configurations are removed.
It is recommended that the syslogs be archived to the harddisk because it has more capacity.
Task ID
OperationsTask ID
read, writelogging
Examples
This example shows how to specify disk1 as the device for logging syslog messages:
RP/0/0/CPU0:router(config)# logging archive
RP/0/0/CPU0:router(config-logging-arch)# device disk1
Cisco IOS XR System Monitoring Command Reference for the Cisco XR 12000 Series Router, Release 4.1
OL-24735-01 305
Logging Services Commands
device