Skip to Content
Arista Warrior, 2nd Edition
book

Arista Warrior, 2nd Edition

by Gary A. Donahue
July 2019
Intermediate to advanced
569 pages
14h 7m
English
O'Reilly Media, Inc.
Content preview from Arista Warrior, 2nd Edition

Chapter 29. Troubleshooting

There are some pretty useful diagnostic tools on Arista switches, some of which we’ve already covered, such as tcpdump. Sometimes, we need to know more detail about what the switch is doing, and that’s where performance monitoring comes into play.

Logs

In Linux, you can follow live updates to a log file by using the tail -f filename command. You can do something similar when viewing your system log in EOS with the command-line interface (CLI) command show logging follow. Syslog messages are stored in Linux where any Linux person would expect to see them, namely, in /var/log/:

[admin@Arista ~]$ ls /var/log
EosInit           error.log              messages
NorCalInit        eventMon.db            nginx-access.log
Post              fneserver              nginx-error.log
agents            inotifyrun-local.log   ntpstats
btmp              inotifyrun-secure.log  ppp
cli               inotifyrun-sys.log     qt
cron              kernel.debug           secure
eos               lastlog                spooler
eos-console       libvirt                startup-config-output
eos-console-sync  logrot.log             tallylog
eos-monitor       maillog                wtmp
eos-monitor-sync  mcelog                 yum.log

/var/log/messages contains all of the syslog messages that you would see on the console. Note that you need sudo to view this file:

[admin@Arista ~]$ cd /var/log
[admin@Arista log]$ tail messages
tail: cannot open 'messages' for reading: Permission denied
[admin@Arista log]$ sudo tail messages Nov 29 02:07:34 Arista Stp: %SPANTREE-6-STABLE_CHANGE: Stp state is now stable Nov 29 02:07:56 Arista Cli: %SYS-5-CONFIG_I: Configured from console by admin on vty3 (10.0.0.100) Nov 29 02:08:01 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Network Warrior, 2nd Edition

Network Warrior, 2nd Edition

Gary A. Donahue
Site Reliability Engineering, 2nd Edition

Site Reliability Engineering, 2nd Edition

Betsy Beyer, Chris Jones, Christof Leng, David Huska, Jennifer Petoff, Niall Richard Murphy

Publisher Resources

ISBN: 9781491953037Errata Page