cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2945
Views
0
Helpful
8
Replies

Syslog File in UCS

ashjosh11
Level 1
Level 1

Hi Folks ,

Today we enabled Syslog & configured local file destination in UCS manager.

Very curious to see whether entries are getting in this file or not ?

How can i view UCS local syslog file & check it.

Is there any way to transfer that file from Fabric interconnects to my laptop ?

8 Replies 8

padramas
Cisco Employee
Cisco Employee

Hello Ashish,

I assume you have configured syslog to save log messages to a file on the Fabric Interconnect.

If yes, it is current not possible to access the file or view it's contents as it is saved in a directory that is not accessible from local-mgmt CLI context.

I have submitted defect to track this issue.

http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&bugId=CSCuh26762

*NOTE* It will take a while to get published on cisco.com

We can verify whether the syslog service is logging the messages by observing the size of the file.

(nxos)#  show system internal dir /var/log/external

As an alternative option, you can configure a remote destination and view the log messages on the syslog server.

HTH

Padma

Hi padramas ,

Thank you very much for your clarification.

Would i be able to run this command on Fabric interconnect  & see size of syslog file ?

(nxos)#  show system internal dir /var/log/external

I tried running this but its showing command invalid.

Pls suggest.

Hello Ashish,

We need to execute the command from NX-OS context

connect nxos

show system internal dir /var/log/external

Padma

Hello Ashish,

I came to know that we can view the contents via NX-OS command

connect nxos

show logging logfile

The above command will print the contents of the current active file that is configured under UCSM syslog configuration.

Thanks

Padma

ashjosh11
Level 1
Level 1

HI Padramas ,

Both commands  show logging logfile &  show system internal dir /var/log/external are not working.

Pls suggest.

Hello Ashish,

These are NX-OS commands and needs to be executed from nx-os context.

If you have configured UCSM to save syslog messages to a local file on Fabric Interconnect, then you can following command to view the log file contents ( syslog messages )

connect nxos

show logging logfile

show system internal dir /var/log/external

Padma

ashjosh11
Level 1
Level 1

Hi Padramas,

I tried executing these commands from Fabric Interconnect CLI but these commands are wrong.

Even after changing scope to local-mgmt or monitoring , these commands are not working in Fabric Interconnect console.

It would help if you could provide output of following commands

show version

scope monitoring

show syslog

connect nxos

show logging logfile

show system internal dir /var/log/external

Padma

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card