06-02-2013 08:56 AM - edited 03-01-2019 11:03 AM
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 ?
06-02-2013 09:43 PM
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
06-03-2013 12:11 AM
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.
06-03-2013 12:14 AM
Hello Ashish,
We need to execute the command from NX-OS context
connect nxos
show system internal dir /var/log/external
Padma
06-03-2013 04:14 AM
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
06-24-2013 03:45 AM
HI Padramas ,
Both commands show logging logfile & show system internal dir /var/log/external are not working.
Pls suggest.
06-24-2013 03:54 AM
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
06-24-2013 06:31 AM
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.
06-24-2013 07:59 AM
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
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: