Support Support Downloads Knowledge Base Apex Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[QFX5e] How to collect lcmd.log on devices running Junos OS 18.1R1 or later

0

0

Article ID: KB36343 KB Last Updated: 10 Dec 2020Version: 1.0
Summary:

This article describes how to collect lcmd.log, which is useful to troubleshoot hardware-related issues on QFX5e platform.

Note: The article is applicable to the QFX5e platform such as QFX5110 and QFX5210 that are running Junos OS 18.1R1 or later releases.

 

Cause:

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.

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.

 

Solution:

To collect lcmd.log on QFX5e devices, which are running Junos OS 18.1R1 or later releases, use the following method:

  1. 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
  1. Check the dcpfe that is running, whether dcpfe0 or dcpfe1.

root@qfx5110:~# lxc-ls --active
dcpfe0
  1. Copy lcmd.log from dcpfe and put it in the /var/log/ directory on the host OS.

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
  1. On Junos OS, copy lcmd-dcpfe.log from the host OS to the /var/tmp directory.

root@qfx5110> request app-engine file-copy from-jhost lcmd-dcpfe.log to-vjunos /var/tmp log
  1. Collect /var/tmp/lcmd-dcpfe.log on Junos OS and provide it to Support.

Note

 

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search