cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

2284
Views
0
Helpful
8
Replies
ashjosh11
Beginner

Syslog File in UCS

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

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
Beginner

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
Beginner

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

Content for Community-Ad