Once again, in an effort to study for my ACE-A, this blog post will be a list of the nice cool CLI commands I’ve found that make EOS stand apart from other OS’.
#7010T-B# show run ?
all Configuration with defaults
detail Detail configuration with defaults
diffs Differences from startup-config this cmd is nice, do a diff right on the box instead of needing a 3rd party tool. Have no more fear of rebooting that switch and wondering “what changed?”
interfaces Filter config to include only the given interfaces
sanitized Sanitized Output this one is nice as a backup or showing config to a coworker. This command removes any passwords from the show run.
section Display sections containing matching commands
7010T-B#bash ls -al /mnt/flash run your favorite Linux cmds straight from the CLI! No need to switch into bash mode!
drwxrwx— 6 root eosadmin 4096 Jan 1 19:26 .
drwxr-xr-x 3 root root 100 Jan 1 19:12 ..
-r-xr-x— 1 root eosadmin 363900018 Jan 1 19:11 .boot-image.swi
drwxrwx— 2 root eosadmin 4096 Aug 14 2014 .extensions
-rwxrwx— 1 root eosadmin 366454059 Aug 14 2014 EOS-4.14.1.swi
-rwxrwx— 1 root eosadmin 363900018 Jan 1 18:58 EOS-4.14.9M.swi
7010T-B#bash python once again, being Linux, python2.7 is already installed on the box
Python 2.7 (r27:82500, Aug 4 2015, 10:11:11)
[GCC 4.5.1 20100924 (Red Hat 4.5.1-4)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
fan-speed Configure the system fan speed you can change the fan speed between 30% or 100% capacity, or set to auto.
insufficient-fans Configure system behavior when insufficient fans are inserted have the switch either ignore if there are not enough fans or shutdown the switch
overheat Configure system overheat behavior same with fans, either ignore the alert or shutdown the switch
7010T-B(config)#load-interval default ?
<5-600> Load interval delay in seconds this cmds allows us to toggle the interval of counters, like when we do a #show commands. By default, its 300 seconds/5 minutes.
<5-600> Load interval delay in seconds we can do the same as above, but do it on a per-int basis instead of globally.
7010T-B(config-email)#? we can also send email from the switch. If we wanted to send like a #show tech to ourselves, or to A-TAC, use #sh tech | email firstname.lastname@example.org for example
auth Email account authentication
from-user Send email from this user
server Email relay
tls Require TLS
comment Up to 240 characters, comment for this mode
default Set a command to its defaults
exit Exit from Email configuration mode
help Description of the interactive help system
no Negate a command or set its defaults
show Show running system information
!! Append to comment
7010T-B#show logging ? i used to hate going through logs, they were always full and it was hard to filter what i wanted to see minus using pipe commands. Being powered by Linux, we have a few extra options we can use. Follow is nice as it adds to the console as new logs get added, or last for the last 10 logs show, or show only errors via the errors keyword.
alerts Immediate action needed
all Show all the lines in the logging buffer
critical Critical conditions
debugging Debugging messages
emergencies System is unusable
errors Error conditions
follow Keep following the log buffer as it grows
informational Informational messages
last Show messages in last <N> time-units
mce Show the contents of the mcelog buffer
notifications Normal but significant conditions
system Show the contents of the system log buffer
threshold Show only log messages at threshold level or above
time-range Filter logs by begin and end time
warnings Warning conditions
<1-9999> Show last number of messages in the logging buffers
7010T-B#send log level 5 message NYCNETWORKERS!!!! we could also make customized syslog msgs, its a nice way to have a “bookmark” where you’ve started tshooting or configuration.
7010T-B#send log message NYCNETWORKERS!!!!
7010T-B#show log last 5
<1-9999> Number of time units (sec|min|hr|day)
7010T-B#show log last 5 ?
days Show messages in last <N> days
hours Show messages in last <N> hours
minutes Show messages in last <N> minutes
seconds Show messages in last <N> seconds
7010T-B#show log last 5 min
Jan 1 20:57:57 7010T-B Cli: %SYS-5-LOGMSG_NOTICE: Message from admin on con0 (0.0.0.0): NYCNETWORKERS!!!!
Jan 1 20:58:02 7010T-B Cli: %SYS-6-LOGMSG_INFO: Message from admin on con0 (0.0.0.0): NYCNETWORKERS!!!!
7010T-B(config-if-Et1)#flowcontrol ? allow or deny flow control only 1 in direction or another (like towards a syslog server, or dedicate bandwidth towards one direction).
receive Configure receiving flow operation
send Configure transmit flow operation
7010T-B(config-if-Et1)#flowcontrol receive ?
desired Allow but do not require flow-control capable link partner
off Forbid flow-control capable link partner
on Require flow-control capable link partner
7010T-B(config-if-Et1)#show flowcontrol interface e1
Port Send FlowControl Receive FlowControl RxPause TxPause
admin oper admin oper
———- ——– ——– ——– ——– ————- ————-
Et1 off off on on 0 0
7010T-B#show reload cause full this is especially helpful when tshooting why a switch rebooted