Description

CLI show log messages and file list /var/log commands are not working and popped up the error message.

Symptoms

{master}

user@router-RE0> show log messages

error: could not resolve file: messages

 

{master}

user@router-RE0> file list /var/log

error: Stat failed: /var/log/.

error: Stat failed: /var/log/..

error: Stat failed: /var/log/pfe_flow_stats.txt

error: Stat failed: /var/log/dfcd_enc

error: Stat failed: /var/log/dcd

error: Stat failed: /var/log/messages.9.gz

error: Stat failed: /var/log/utx.log

error: Stat failed: /var/log/shmlog

error: Stat failed: /var/log/jam_dfwd

error: Stat failed: /var/log/jam_dcd

error: Stat failed: /var/log/dfwc

error: Stat failed: /var/log/aprobed

error: Stat failed: /var/log/cosd

error: Stat failed: /var/log/jam_cosd

error: Stat failed: /var/log/jam_clksyncd

error: Stat failed: /var/log/jam_chassisd

error: Stat failed: /var/log/pm_longterm.txt

error: Stat failed: /var/log/lmpd

error: Stat failed: /var/log/messages

error: Stat failed: /var/log/interactive-commands

error: Stat failed: /var/log/gres-test-point

error: Stat failed: /var/log/chassisd

error: Stat failed: /var/log/wtmp

error: Stat failed: /var/log/mastership

error: Stat failed: /var/log/inventory

Solution

One of the customer engineers might change the direct /var/log permission which caused the issue.


JTAC had worked with the customer to use the chmod shell command to change the permission back to standard mode. It resolved the problem.

Modification History

2025-02-24 : Article Created