This article describes how to collect lcmd.log , which is useful to troubleshoot hardware-related issues on QFX5e platform.
lcmd.log
Note: The article is applicable to the QFX5e platform such as QFX5110 and QFX5210 that are running Junos OS 18.1R1 or later releases.
On QFX Series switch, lcmd.log is located in the /var/log directory of the host OS. However, on a QFX5e platform running Junos OS release 18.1R1 or later, the location of lcmd.log has changed.
/var/log
On QFX5e, the LXC (Linux container) design has been modified starting from Junos OS 18.1R1 release. Before this modification, the lcmd daemon was running on the host OS, but lcmd is spawned on LXC after the modification.
To collect lcmd.log on QFX5e devices, which are running Junos OS 18.1R1 or later releases, use the following method:
Log in to the host shell. (Remember to log in to Junos OS as root user in advance.)
root@qfx5110> request app-engine host-shell
Check the dcpfe that is running, whether dcpfe0 or dcpfe1.
root@qfx5110:~# lxc-ls --active dcpfe0
Copy lcmd.log from dcpfe and put it in the /var/log/ directory on the host OS.
/var/log/
In case of dcpfe0: root@qfx5110-node:~# scp 192.168.1.16:/var/log/lcmd.log /var/log/lcmd-dcpfe.log
In case of dcpfe0:
root@qfx5110-node:~# scp 192.168.1.16:/var/log/lcmd.log /var/log/lcmd-dcpfe.log
In case of dcpfe1: root@qfx5110-node:~# scp 192.168.1.17:/var/log/lcmd.log /var/log/lcmd-dcpfe.log
In case of dcpfe1:
root@qfx5110-node:~# scp 192.168.1.17:/var/log/lcmd.log /var/log/lcmd-dcpfe.log
On Junos OS, copy lcmd-dcpfe.log from the host OS to the /var/tmp directory.
lcmd-dcpfe.log
/var/tmp
root@qfx5110> request app-engine file-copy from-jhost lcmd-dcpfe.log to-vjunos /var/tmp log
Collect /var/tmp/lcmd-dcpfe.log on Junos OS and provide it to Support .
/var/tmp/lcmd-dcpfe.log
Note
For QFX5100/EX4600 or QFX5e that is running Junos OS releases prior to 18.1R1, refer to KB30772- [QFX5100] How to collect logs from the host shell [juniper.net] .
The */var/log/ directory on the host OS contains lcmd.log .
*/var/log/