cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
821
Views
5
Helpful
3
Replies
Highlighted
Beginner

How can I view contents of log file on APIC/Fabric nodes ?

How can i see contents of logfiles as below?

 

On the APIC:
/var/log/dme/log/nginx.bin.log
On fabric nodes:
/var/log/dme/log/nginx.log

 

when i try access file through CLI of APIC , it says permission denied to file.

 

APIC# more /var/log/dme/log/nginx.bin.log
/var/log/dme/log/nginx.bin.log: Permission denied
APIC# more /var/log/dme/log/nginx.bin.log
/var/log/dme/log/nginx.bin.log: Permission denied

3 REPLIES 3
Highlighted
Cisco Employee

Re: How can I view contents of log file on APIC/Fabric nodes ?

I would verify permissions for the user you are logged in as. Definitely looks like a permission issue as you should be able to access those normally. Try using admin rights to verify.

Highlighted
Beginner

Re: How can I view contents of log file on APIC/Fabric nodes ?

Thank you for your reply! I changed the authentication to local and logged as local admin user and now see the logs locally on APIC.

Do you know how can I send this debug logging (

/var/log/dme/log/nginx.bin.log)

out of ACI and view it on syslog or ftp server ? 

 

Highlighted
Cisco Employee

Re: How can I view contents of log file on APIC/Fabric nodes ?

One solution would be to write a cronjob on an external server to scp the file at your configured time interval.

CreatePlease to create content
Content for Community-Ad

Cisco COVID-19 Survey