logmgr fetch

Fetches logs from remote units if there is sufficient memory to store them locally.
Syntax
logmgr fetch module sub-module severity unit-id
logmgr fetch management restconf all
Command Default

Fetching of logs is not enabled by default.

Parameters
module
Specifies a module or list of modules (separated by commas) from which logs are collected. Enter all to include all modules.
sub-module
Specifies a sub-module or list of sub-modules (separated by commas) from which logs are collected. Enter all if multiple modules are specified. If only a single module is specified, then specify a single sub-module or list of sub-modules (separated by commas) belonging to the module.
severity
Specifies the severity level or list of severity levels (separated by commas) by which logs are collected. Enter "all" to include all severity levels.
unit-id
Specifies the unit or list of units (separated by commas) from which logs are collected. Enter all to fetch the logs from all units.
managementrestconfall
Specifies all RESTCONF management logs.
Modes

Privileged EXEC mode

Usage Guidelines

Use the logmgr fetch command in conjunction with the show log debug command to view the logs.

Examples

The following example fetches the logs from remote unit 2.

device# logmgr fetch all all all 2                           
Batch Fetch Starting...units 2 in progress
        Bytes Module/Submodule/Category (high=emerg,alert,crit,err low=warning,notice,info,debug)
UNIT 2
       321560 infra/log_clf/high
       331560 infra/log_clf/low
       313560 infra/logmgr/high
       323560 infra/logmgr/low
       289560 infra/qos/high 
       299560 infra/qos/low
       329631 infra/stacking/high
       339633 infra/stacking/low
       289560 l2/l2_sub/high
       299560 l2/l2_sub/low
       289560 l3/l3_sub/high
       299560 l3/l3_sub/low
       337560 mcast/mcast_sub/high
       347560 mcast/mcast_sub/low
       281560 nms/lldp/high
       291560 nms/lldp/low
       305560 nms/nms_sub/high
       315560 nms/nms_sub/low
       345560 platform/chassis/high
       355560 platform/chassis/low
       385560 security/security_sub/high
       395560 security/security_sub/low
       353570 system/system_sub/high
       363560 system/system_sub/low
Fetch is complete

The following example fetches the management RESTCONF logs.

device# logmgr fetch management restconf all

Batch Fetch Starting...units 1 in progress
ICX7650-48P Router#
         Bytes Module/Submodule/Category (high=emerg,alert,crit,err low=warning,notice,info,debug)
UNIT 1
         2556B management/restconf/high
Fetch is complete

History
Release version Command history
08.0.95 This command was introduced.
09.0.00 This command was modified so that the managementrestconfall keywords were added.