show logging debug

Displays the debug logs maintained in the log manager.
Syntax
show logging debug module sub-module severity unit-id date-time
Parameters
module
Displays the logs of a specified module or list of modules (separated by commas). Enter all to include all modules.
sub-module
Displays the logs of a specified sub-module or list of sub-modules (separated by commas). 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 displayed. Enter all to include all severity levels.
unit-id
Displays the logs of a unit or list of units (separated by commas). Enter "all" to aggregate the result from all units. If none of the units are specified, then logs of the local unit are displayed.
date-time
Displays the logs that are generated after the specified date and time. The format is month_date_hh:mm:ss:ms.
Modes

Privileged EXEC mode

Usage Guidelines

If the logs are generated using the debug commands, you must use the exact module names and sub-module names as listed in the log manager hierarchy.

If the logs are generated using distributed logger (dlogger), the modules and sub-modules must be specified based on the mapping of distributed logger modules to log manager displayed in the show dlogger module filter lm-map command output.

If a fetch operation is not run or the fetched logs have been cleared, local logs are displayed. That is, to display the local logs, you must run the logmgr clear-fetched-logs command first.

Examples

The following example displays all the logs in the fi_debug module from unit 1.

device# show logging debug fi_debug all all 1
Jun 02 23:47:31:105503:info:fi_debug:debug_logs:1:3428174176191232: CB hot-swap for unit-id 2, for ACL-INFRA channel is complete.
Jun 02 23:47:30:377761:info:fi_debug:debug_logs:1:3427486981423872: Write startup-config done.
Jun 02 23:47:29:826189:info:fi_debug:debug_logs:1:7683696493312: Stack unit 2 Power supply 2 is up
Jun 02 23:47:29:824325:info:fi_debug:debug_logs:1:7683696493312: Stack unit 2 Power supply 1 is not present
Jun 02 23:47:28:741959:info:fi_debug:debug_logs:1:3425794764309248: CB hot-swap for unit-id 2, for SECURITY-NEW channel is complete.
Jun 02 23:47:28:740548:info:fi_debug:debug_logs:1:3425794764309248: Start CB hot-swap for unit-id 2, for SECURITY-NEW channel, please do not enter any SECURITY-NEW configurations until complete.
Jun 02 23:47:28:718705:info:fi_debug:debug_logs:1:3425794764309248: Start CB hot-swap for unit-id 2, for ACL-INFRA channel, please do not enter any ACL-INFRA configurations until complete.
Jun 02 23:37:23:282385:info:fi_debug:debug_logs:1:2962122979934976: CB hot-swap for unit-id 2, for ACL-INFRA channel is complete.
Jun 02 23:37:21:920196:info:fi_debug:debug_logs:1:7700876362496: Stack unit 2 Power supply 2 is up
Jun 02 23:37:21:918586:info:fi_debug:debug_logs:1:7700876362496: Stack unit 2 Power supply 1 is not present
Jun 02 23:37:20:821480:info:fi_debug:debug_logs:1:2959451510276864: CB hot-swap for unit-id 2, for SECURITY-NEW channel is complete.
Jun 02 23:37:20:820061:info:fi_debug:debug_logs:1:2959451510276864: Start CB hot-swap for unit-id 2, for SECURITY-NEW channel, please do not enter any SECURITY-NEW configurations until complete.
Jun 02 23:37:20:811054:info:fi_debug:debug_logs:1:2959451510276864: Start CB hot-swap for unit-id 2, for ACL-INFRA channel, please do not enter any ACL-INFRA configurations until complete.
Jun 02 23:29:05:677611:info:fi_debug:debug_logs:1:2598352134865664: FI Init Done Tmr Entered.
Jun 02 22:36:13:612606:info:fi_debug:debug_logs:1:288011916935936: CB hot-swap for unit-id 2, for ACL-INFRA channel is complete.
Jun 02 22:36:12:028177:info:fi_debug:debug_logs:1:286585987793664: Write startup-config done.
Jun 02 22:36:11:106841:info:fi_debug:debug_logs:1:7786775708416: Stack unit 2 Power supply 2 is up
Jun 02 22:36:11:104190:info:fi_debug:debug_logs:1:7786775708416: Stack unit 2 Power supply 1 is not present
Jun 02 22:36:10:793337:info:fi_debug:debug_logs:1:285263137866496: CB hot-swap for unit-id 2, for SECURITY-NEW channel is complete.
Jun 02 22:36:10:790131:info:fi_debug:debug_logs:1:285263137866496: Start CB hot-swap for unit-id 2, for SECURITY-NEW channel, please do not enter any SECURITY-NEW configurations until complete.
Jun 02 22:36:10:772841:info:fi_debug:debug_logs:1:285263137866496: Start CB hot-swap for unit-id 2, for ACL-INFRA channel, please do not enter any ACL-INFRA configurations until complete.
Jun 02 22:29:16:471597:info:fi_debug:debug_logs:1:12884903169: Optics detected on 1/4/1
Jun 02 22:29:16:138768:info:fi_debug:debug_logs:1:12884903169: Optics detected on 1/3/1
Jun 02 22:29:15:854227:info:fi_debug:debug_logs:1:12884903169: Optics detected on 1/2/4
Jun 02 22:29:15:574264:info:fi_debug:debug_logs:1:12884903169: Optics detected on 1/2/3
Jun 02 22:29:15:292614:info:fi_debug:debug_logs:1:12884903169: Optics detected on 1/2/2

The following example displays the logs from the stacking sub-module.

device# show logging debug infra stacking all all
Jun 02 22:37:11:627414:info:infra:stacking:1:331356726887168: T=8m43.0: Assigned unit 2 to be standby
Jun 02 22:37:11:003027:info:infra:stacking:2:331472691004160: T=1m52.0: Unit 2 is assigned standby by active u1.
Jun 02 22:36:11:937383:debug:infra:stacking:1:286401304199936: T=7m43.3: Synchronize startup config to u2
Jun 02 22:36:11:598616:info:infra:stacking:2:8864812499712: Done.
Jun 02 22:36:11:558420:debug:infra:stacking:2:8864812499712: T=52.4: U2 received startup config flash sync. 
Jun 02 22:36:11:455567:info:infra:stacking:2:286684772041472: Downloading - startup-config.txt
Jun 02 22:36:11:454802:info:infra:stacking:2:286684772041472: Download request from active unit 1 mac = cc4e.248b.a8a8
Jun 02 22:36:10:906739:info:infra:stacking:1:285465001329408: T=7m42.3: Election, I cc4e.248b.a8a8 was active, no change, ID=1, pri=128, 2U(1-2), A=u1, nbr#=1 1,reason: u1: stk-po-chg, 
Jun 02 22:36:10:269633:info:infra:stacking:2:7696581395200: T=51.2: Election, I cc4e.248b.ac90 was member, no change, ID=2, pri=0, 2U(1-2), A=u1, nbr#=1 1,
Jun 02 22:36:09:860017:info:infra:stacking:2:284979670024960: Unit 2 becomes ready
Jun 02 22:36:08:921496:debug:infra:stacking:1:283871568462592: T=7m40.3: Synchronize webauth files to u2
Jun 02 22:36:08:921219:debug:infra:stacking:1:283871568462592: Detect stack unit 2 has different startup config flash, will synchronize it
Jun 02 22:36:08:026672:info:infra:stacking:1:283283157943040: T=7m39.4: Election, I cc4e.248b.a8a8 was alone --> active, ID=1, pri=128, 2U(1-2), A=u1, nbr#=1 1,reason: u2: port-up, 
Jun 02 22:36:07:577570:info:infra:stacking:2:5557687681792: T=48.1: Election, I cc4e.248b.ac90 was member, no change, ID=2, pri=0, 2U(1-2), A=u1, nbr#=1 1,reason: u1: port-up, 
Jun 02 22:35:56:980889:info:infra:stacking:2:0: Enable stacking. This unit actively participates in stacking
Jun 02 22:33:35:256497:debug:infra:stacking:1:348850128683776: T=9m9.7: stk_dnld_slave_timer_boot(cnt=4) mode=0, boot ty=0 pa=1 spe_relo(0), boot=1, 
Jun 02 22:33:30:257189:debug:infra:stacking:1:345504349160192: T=9m4.7: recv_my_role_callback(0): stack interactive-setup option 3 ID=2, role=3, reason=stack interactive-setup option 3, flash exists, boot=0->1 
Jun 02 22:33:30:257050:debug:infra:stacking:1:345504349160192: T=9m4.7: set reload_timer, sec=0, chg sec=5 setup T, 
Jun 02 22:33:10:366484:debug:infra:stacking:1:331876417929984: T=8m44.8: stacking_flash_timer: finish writing flash, close file, rc=0
Jun 02 22:33:10:259091:info:infra:stacking:1:22458383992321: T=8m44.7: Unit 1 (mac=cc4e.248b.ac90) receives stack interactive-setup option 3 from U1, mac=cc4e.248b.a8a8
ID=2 D0=2/1 to 2/2, D1=2/3 to 2/4, , will reload from Primary in 20 sec
Jun 02 22:33:10:258960:debug:infra:stacking:1:22458383992321: T=8m44.7: write_to_flash(m=0, rm=1) stacking.boot: sys_flash_fremove rv= -1, sys_flash_fcreat res=3d0002, sys_flash_fwrite(size=661) ret=661, b_IEEE=1, 
Jun 02 22:33:10:258862:debug:infra:stacking:1:22458383992321: T=8m44.7: write stacking.boot t=9 ms: 1:9 , setup timer to close
Jun 02 22:33:10:258650:debug:infra:stacking:1:22458383992321: T=8m44.7: Write stack flash stacking.boot 661 B:
History
Release version Command history
08.0.95 This command was introduced.