Configuring the PTP Delay Mechanism
To set the delay mechanism used in boundary-mode, use the ptp delay-mechanism command.
Example
switch(config-if-Et5)# ptp delay-mechanism p2p
switch(config-if-Et5)#
To set the delay mechanism used in boundary-mode, use the ptp delay-mechanism command.
Example
switch(config-if-Et5)# ptp delay-mechanism p2p
switch(config-if-Et5)#
The commit timer command can automatically roll back changes performed during a configuration session if you haven't confirmed them within a preset time interval. This feature can prevent a user from committing configuration changes that could cause a network disruption. The no commit timer command deletes the session.
Command Mode
Configure Session Configuration Mode
Command Syntax
commit timer hh:mm:ss
Parameters
hh:mm:ss - Specify the time interval for the commit session.
Example
Use the following command to create a commit timer for 1 hour:
switch(config-s-MySession)# commit timer 1:00:00
switch#
The configure replace command replaces the current configuration with a new configuration from the specified source.
Command Mode
Privileged EXEC
Command Syntax
configure replace source_file_path:source_file_name [ignore-errors] [md5 md5sum] [skip-checkpoint] [vrf instance_name]
switch(config)# configure replace start-config
! Preserving static routes. Use 'no ip routing delete-static-routes' to clear them.
switch#
The configure session command allows a series of temporary configuration changes and commits to running-config later by issuing the commit command. EOS discards an uncommitted configuration session if the switch reboots and times out after 24 hours.
The no configure session session_name and default configure session session_name commands delete the specified configuration session.
Command Mode
Privileged EXEC
Command Syntax
configure session [session_name] [abort | commit | description description ]
no configure session session_name
default configure session
Parameter
Guidelines
Example
switch(config)#configure session
switch(config-s-sess-1)#aaa authentication dot1x default group radius
switch(config-s-sess-1)#dot1x system-auth-control
switch(config-s-sess-1)#commit
switch(config-s-sess-1)#
The domain command configures the switch's XMPP domain name. The XMPP client accepts messages only when using a locally configured domain. It uses the switch's domain name if none is specified.
Management over XMPP is disabled by default. To enable it, you must provide the server's location, domain, username, and password for the switch.
Arista recommends configuring the XMPP domain before the username, because it provides shortcuts for the switch-group and username so you can configure it without the domain attached to it, for example, USERNAME, instead of USERNAME@DOMAIN.
The no domain and default domain commands delete the domain name by removing the domain command from running-config.
Command Mode
ManagementXMPP Configuration
Command Syntax
domain string
no domain
default domain
Parameter
string - Configures the domain name as a text string.
switch(config)#management xmpp
test1(config-mgmt-xmpp)#server arista-xmpp
test1(config-mgmt-xmpp)#domain test.aristanetworks.com
test1(config-mgmt-xmpp)#username This email address is being protected from spambots. You need JavaScript enabled to view it. password 0 arista
test1(config-mgmt-xmpp)#no shutdown
switch(config-mgmt-xmpp)#no domain
switch(config-mgmt-xmpp)#
The idle-timeout (Console Management) command configures the idle-timeout period for console connection sessions. The idle timeout refers to the length of time that a connection waits after a user's most recent command before shutting down the connection. By default, setting the idle timeout to zero disables the connection timeout automatically.
The no idle-timeout and default idle-timeout commands disable the automatic connection timeout by removing the idle-timeout statement from running-config.
Command Mode
ManagementConsole Configuration
Command Syntax
idle-timeout idle_period
no idle-timeout
default idle-timeout
Parameters
switch(config)# management console
switch(config-mgmt-console)# idle-timeout 180
switch(config-mgmt-console)# exit
switch(config)#
switch(config)# management console
switch(config-mgmt-console)# idle-timeout 0
switch(config-mgmt-console)#
The idle-timeout (SSH Management) command configures the idle-timeout period for SSH connection sessions. The idle timeout refers to the length of time that a connection waits after a user's most recent command before shutting down the connection. Setting the idle timeout to zero disables the connection timeout automatically.
The no idle-timeout and default idle-timeout commands disable the automatic connection timeout by removing the idle-timeout statement from running-config.
Command Mode
Management SSH Configuration
Command Syntax
idle-timeout idle_period
no idle-timeout
default idle-timeout
Parameters
switch(config)#management ssh
switch(config-mgmt-ssh)#idle-timeout 180
switch(config-mgmt-ssh)#exit
switch(config)#
switch(config)#management ssh
switch(config-mgmt-ssh)#idle-timeout 0
switch(config-mgmt-ssh)#
The idle-timeout (Telnet Management) command configures the idle-timeout period for Telnet connection sessions. The idle timeout refers to the length of time that a connection waits after a user's most recent command before shutting down the connection. Setting the idle timeout to zero disables the connection timeout automatically.
The no idle-timeout and default idle-timeout commands disable the automatic connection timeout by removing the idle-timeout statement from running-config.
Command Mode
ManagementTelnet
Command Syntax
idle-timeout idle_period
no idle-timeout
default idle-timeout
Parameters
switch(config)#management telnet
switch(config-mgmt-telnet)#idle-timeout 180
switch(config-mgmt-telnet)#exit
switch(config)#
switch(config)#management telnet
switch(config-mgmt-telnet)#idle-timeout 0
switch(config-mgmt-telnet)#
The management api eos-sdk-rpc command places the switch in EOS SDK RPC API management configuration mode.
The no management api eos-sdk-rpc and default management api eos-sdk-rpc commands delete the mgmt-api-eos-sdk-rpc configuration mode statements from running-config.
EOS SDK RPC API management configuration mode is not a group change mode; running-config is changed immediately upon entering commands. Exiting the EOS SDK RPC API management configuration mode does not affect the running-config. The exit command returns the switch to global configuration mode.
Command Mode
Global Configuration
Command Syntax
management api eos-sdk-rpc
no management api eos-sdk-rpc
default management api eos-sdk-rpc
switch(config)#management api eos-sdk-rpc
switch(config-mgmt-api-eos-sdk-rpc)#
switch(config-mgmt-api-eos-sdk-rpc)#exit
switch(config)#
The management api external-services command places the switch in External Services API configuration mode.
The no management api external-services and default management api external-services commands delete the mgmt-api-external-services configuration mode statements from running-config.
External Services API configuration mode is not a group change mode; running-config is changed immediately upon entering commands. Exiting the External Services API configuration mode does not affect the running-config. The exit command returns the switch to global configuration mode.
Command Mode
Global Configuration
Command Syntax
management api external-services
no management api external-services
default management api external-services
switch(config)# management api external-services
switch(config-mgmt-api-external-services)#
switch(config-mgmt-api-external-services)# exit
switch(config)#
The management api gnmi command places the switch in GNMI API Management configuration mode.
The no management api gnmi and default management api gnmi commands delete the mgmt-api-gnmi configuration mode statements from running-config.
GNMI API Management configuration mode is not a group change mode; running-config is changed immediately upon entering commands. Exiting the GNMI API Management configuration mode does not affect running-config. The exit command returns the switch to global configuration mode.
Command Mode
Global Configuration
Command Syntax
management api gnmi
no management api gnmi
default management api gnmi
switch(config)# management api gnmi
switch(config-mgmt-api-gnmi)#
switch(config-mgmt-api-gnmi)# exit
switch(config)#
The management api gnsi command places the switch in GNSI API management configuration mode.
The no management api gnsi and default management api gnsi commands delete the mgmt-api-gnsi configuration mode statements from running-config.
GNSI API Management configuration mode is not a group change mode; running-config is changed immediately upon entering commands. Exiting the GNSI API Management configuration mode does not affect running-config. The exit command returns the switch to global configuration mode.
Command Mode
Global Configuration
Command Syntax
management api gnsi
no management api gnsi
default management api gnsi
switch(config)#management api gnsi
switch(config-mgmt-api-gnsi)#
switch(config-mgmt-api-gnsi)#exit
switch(config)#
The management api gribi command places the switch in gRIBI API Management configuration mode.
The no management api gribi and default management api gribi commands delete the mgmt-api-gribi configuration mode statements from running-config.
gRIBI API Management configuration mode is not a group change mode; running-config changes immediately upon entering commands. Exiting the gRIBI API Management configuration mode does not affect running-config. The exit command returns the switch to global configuration mode.
Command Mode
Global Configuration
Command Syntax
management api gribi
no management api gribi
default management api gribi
switch(config)# management api gribi
switch(config-mgmt-api-gribi)#
switch(config-mgmt-api-gribi)# exit
switch(config)#
The management api http-commands command places the switch in HTTP Commands API Management Configuration Mode.
The no management api http-commands and default management api http-commands commands delete the HTTP Commands API Management Configuration Mode statements from running-config.
HTTP Commands API Management Configuration Mode is not a group change mode. The running-config changes immediately upon entering commands. Exiting HTTP Commands API Management configuration mode does not affect running-config. The exit command returns the switch to global configuration mode.
Command Mode
Global Configuration
Command Syntax
management api http-commands
no management api http-commands
default management api http-commands
switch(config)# management api http-commands
switch(config-mgmt-api-http-cmds)#
switch(config-mgmt-api-http-cmds)# exit
switch(config)#
The management api models command places the switch in Models API Management configuration mode.
The no management api models and default management api models commands delete the mgmt-api-models configuration mode statements from running-config.
Models API Management configuration mode is not a group change mode; running-config is changed immediately upon entering commands. Exiting Models API Management configuration mode does not affect running-config. The exit command returns the switch to global configuration mode.
Command Mode
Global Configuration
Command Syntax
management api models
no management api models
default management api models
switch(config)# management api models
switch(config-mgmt-api-models)#
switch(config-mgmt-api-models)# exit
switch(config)#
The management api netconf command places the switch in Netconf API Management configuration mode.
The no management api netconf and default management api netconf commands delete the mgmt-api-netconf configuration mode statements from running-config.
Netconf API Management configuration mode is not a group change mode; running-config is changed immediately upon entering commands. Exiting Netconf API Management configuration mode does not affect running-config. The exit command returns the switch to global configuration mode.
Command Mode
Global Configuration
Command Syntax
management api netconf
no management api netconf
default management api netconf
switch(config)# management api netconf
switch(config-mgmt-api-netconf)#
switch(config-mgmt-api-netconf)# exit
switch(config)#
The management api restconf command places the switch in Restconf API Management configuration mode.
The no management api restconf and default management api restconf commands delete the mgmt-api-restconf configuration mode statements from running-config.
Restconf API Management configuration mode is not a group change mode; running-config is changed immediately upon entering commands. Exiting Restconf API Management configuration mode does not affect running-config. The exit command returns the switch to global configuration mode.
Command Mode
Global Configuration
Command Syntax
management api restconf
no management api restconf
default management api restconf
switch(config)# management api restconf
switch(config-mgmt-api-restconf)#
switch(config-mgmt-api-restconf)# exit
switch(config)#
The management console command places the switch in Console Management Configuration Mode to adjust the idle-timeout period for console connection sessions. The idle-timeout period determines the inactivity interval that terminates a connection session.
The no management console and default management console commands delete the Console Management Configuration Mode statements from running-config.
The mgmt-console configuration mode is not a group change mode. The running-config changes immediately upon entering commands. Exiting the mgmt-console configuration mode does not affect running-config. The exit command returns the switch to Global Configuration Mode.
Command Mode
Global Configuration
Command Syntax
management console
no management console
default management console
Commands Available in Console Management Configuration Mode
switch(config)# management console
switch(config-mgmt-console)#
switch(config-mgmt-console)# exit
switch(config)#
The management ssh command places the switch in SSH Management Configuration Mode to adjust SSH session connection parameters.
The no management ssh and default management ssh commands delete the SSH Management Configuration Mode statements from running-config.
The mgmt-ssh configuration mode is not a group change mode. The running-config changes immediately upon entering commands. Exiting the SSH Management Configuration Mode does not affect running-config. The exit command returns the switch to Global Configuration Mode.
Command Mode
Global Configuration
Command Syntax
management ssh
no management ssh
default management ssh
switch(config)# management ssh
switch(config-mgmt-ssh)#
switch(config-mgmt-ssh)# exit
switch(config)#
The management telnet command places the switch in Telnet Management Configuration Mode to adjust Telnet session connection parameters.
The no management telnet and default management telnet commands delete the Telnet ManagementConfiguration Mode statements from running-config.
The Telnet Management Configuration Mode is not a group change mode. The running-config changes immediately upon entering commands. Exiting the Telnet Management Configuration Mode does not affect the running-config. The exit command returns the switch to Global Configuration Mode.
Command Mode
Global Configuration
Command Syntax
management telnet
no management telnet
default management telnet
switch(config)# management telnet
switch(config-mgmt-telnet)#
switch(config-mgmt-telnet)# exit
switch(config)#
The management xmpp command places the switch in Management XMPP Configuration Mode. EOS disables Management over XMPP by default. To enable XMPP, you must provide the location of the XMPP server along with the username and password for the switch.
The no management xmpp and default management xmpp commands delete the Management XMPP Configuration Mode statements from running-config.
The mgmt-xmpp configuration mode does not provide a group change mode. The running-config changes immediately upon entering commands. Exiting the mgmt-xmpp configuration mode does not affect running-config. The exit command returns the switch to Global Configuration Mode.
Command Mode
Global Configuration
Command Syntax
management xmpp
no management xmpp
default management xmpp
switch(config)# management xmpp
switch(config-mgmt-xmpp)#
switch(config-mgmt-xmpp)# exit
switch(config-mgmt-xmpp)#
The protocol http command enables the hypertext transfer protocol (HTTP) server.
The no protocol http and default protocol http commands disable the HTTP server by removing the protocol http statement from running-config.
Command Mode
Mgmt-API Configuration
Command Syntax
protocol http [TCP_PORT]
no protocol http
default protocol http
Related Commands
management api http-commands places the switch in mgmt-api configuration mode.
switch(config)#management api http-commands
switch(config-mgmt-api-http-cmds)#
The protocol https command enables the HTTP secure server. The HTTP secure server is active by default.
The default protocol https command restores the default setting by removing the no protocol https statement from running-config. The no protocol https command disables the HTTP secure server.
Command Mode
API Management Configuration
Command Syntax
protocol https [TCP_PORT]
no protocol https
default protocol https
Related Commands
management api http-commands places the switch in API Management Configuration Mode.
switch(config)# management api http-commands
switch(config-mgmt-api-http-cmds)# protocol https
switch(config-mgmt-api-http-cmds)# no shutdown
switch(config)# management api http-commands
switch(config-mgmt-api-http-cmds)# protocol https port 52
switch(config-mgmt-api-http-cmds)# no shutdown
The protocol https certificate command configures the HTTP secure server to request an X.509 certificate from the client. The client then authenticates the certificate with a public key.
The no protocol https certificate and default protocol https certificate commands restore default behavior by removing the protocol https certificate statement from running-config.
Command Mode
API Management Configuration
Command Syntax
protocol https certificate
no protocol https certificate
default protocol https certificate
Related Command
management api http-commands places the switch in API Management Configuration Mode.
switch(config)# management api http-commands
switch(config-mgmt-api-http-cmds)# protocol https certificate
switch(config-mgmt-api-http-cmds)#
Use the reset system storage secure command to trigger the secure erase mechanism. Secure erase is a command that deliberately, permanently, and irreversibly removes and destroys the data stored on a storage device, rendering that data unrecoverable.
Command Mode
EXEC
Command Syntax
reset system storage secure
switch# reset system storage secure
WARNING! This will destroy all
data and will NOT be recoverable.
Device will reboot into Aboot, and
execution may take up to one hour.
Would you like to proceed? [y/N]
switch#reset system storage secure
% Unavailable command (not supported on this hardware platform)
The server command adds an XMPP server to running-config. You can set up multiple XMPP servers for redundancy. The XMPP server location should be a DNS name and not a raw IP address for redundant configurations. The DNS server returns the list of available XMPP servers, which the client can use to find an accessible server.
The XMPP server provides the user authentication. The EOS local configuration or TACACS+ provides the command authentication. The XMPP server should use the same authentication source as the switches. RADIUS is not supported as an XMPP authorization mechanism.
Theno server and default server commands remove the specified XMPP server from running-config.
Command Mode
XMPP Management Configuration Mode
Command Syntax
server SERVER_NAME [SERVER_PORT]
no server
default server
switch(config)# management xmpp
switch(config-mgmt-xmpp)# server arista-xmpp port 1
switch(config-mgmt-xmpp)# no server
The session privilege command places the user in EXEC mode. By default, the initial privilege level has no configured privileges. However, with the configuration of roles, users can add meaning to the different privilege levels. By default, XMPP does not limit access to any command.
Level 1-15: Commands accessible from EXEC Mode.
If no AAA configuration exists and the switch is configured to connect to the XMPP client, any message received is executed with privilege level 1 by default.
The no session privilege and default session privilege commands revert the list contents to none for the specified privilege levels.
Command Mode
XMPP Management Configuration Mode
Command Syntax
session privilege priv_level
no session privilege
default session privilege
Parameter
priv_level - Privilege levels of the commands. The value ranges from 0 and 15.
switch(config)#(config)# management xmpp
switch(config-mgmt-xmpp)# session privilege 5
switch(config-mgmt-xmpp)#
switch(config)# management xmpp
switch(config-mgmt-xmpp)# no session privilege
The show inventory command displays the hardware components installed in the switch. Each component has a serial number and a description.
Command Mode
EXEC
Command Syntax
show inventory
switch> show inventory
System information
Model Description
------------------------ ----------------------------------
DCS-7150S-52-CL 52-port SFP+ 10GigE 1RU + Clock
HW Version Serial Number Mfg Date
----------- -------------- ----------
02.00 JPE13120702 2013-03-27
System has 2 power supply slots
Slot Model Serial Number
---- ---------------- ----------------
1 PWR-460AC-F K192KU00241CZ
2 PWR-460AC-F K192L200751CZ
System has 4 fan modules
Module Number of Fans Model Serial Number
------- --------------- ---------------- ----------------
1 1 FAN-7000-F N/A
2 1 FAN-7000-F N/A
3 1 FAN-7000-F N/A
4 1 FAN-7000-F N/A
System has 53 ports
Type Count
---------------- ----
Management 1
Switched 52
System has 52 transceiver slots
Port Manufacturer Model Serial Number Rev
---- ---------------- ---------------- ---------------- ----
1 Arista Networks SFP-10G-SR XCW1225FD753 0002
2 Arista Networks SFP-10G-SR XCW1225FD753 0002
51 Arista Networks SFP-10G-SR XCW1225FD753 0002
52 Arista Networks SFP-10G-SR XCW1225FD753 0002
switch>
The show xmpp neighbors command displays all neighbors and connection status. The XMPP server keeps track of all relationships between users.
Command Mode
EXEC
Command Syntax
show xmpp neighbors
switch# show xmpp neighbors
Neighbor State Last Seen Login Time
------------------------------ --------------- ---------------------
This email address is being protected from spambots. You need JavaScript enabled to view it. present 0:01:40 ago
This email address is being protected from spambots. You need JavaScript enabled to view it. present 20:29:39 ago
Neighbor Status Message
------------------------------ -------------------------------------
This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it. Arista Networks DCS-7048T-4S
switch#
The show xmpp status command displays the current XMPP connection status to the server.
The XMPP server keeps track of all relationships between users. For two users to communicate directly, the other party must establish and confirm this relationship.
Switches automatically confirm requests from outside parties as long as they are users from the same domain name, for example, when you chat with your switch from your XMPP chat client.
Command Mode
EXEC
Command Syntax
show xmpp status
switch#show xmpp status
XMPP Server: port 5222
Client username: This email address is being protected from spambots. You need JavaScript enabled to view it.
Default domain: test.aristanetworks.com
Connection status: connected
switch#
The show xmpp switch-group command displays the configured and active switch groups for the switch.
Command Mode
EXEC
Command Syntax
show xmpp switch-group
switch# show xmpp switch-group
This email address is being protected from spambots. You need JavaScript enabled to view it.
switch#
The shutdown command disables management over API on the switch in API Management Configuration Mode. EOS disables API Management by default.
The no shutdown command enables the API managementaccess in mgmt-api configuration mode.
The default shutdown command disables the management API access in mgmt-api configuration mode.
Command Mode
Mgmt-API Configuration
Command Syntax
shutdown
no shutdown
default shutdown
Related Command
management api http-commands places the switch in mgmt-api configuration mode.
switch(config)# management api http-commands
switch(config-mgmt-api-http-cmds)# shutdown
switch(config-mgmt-api-http-cmds)#
switch(config)# management api http-commands
switch(config-mgmt-api-http-cmds)# no shutdown
switch(config-mgmt-api-http-cmds)#
Command Mode
Telnet Management Configuration
Command Syntax
shutdown
no shutdown
switch(config)# management telnet
switch(config-mgmt-telnet)# no shutdown
switch(config-mgmt-telnet)# exit
switch(config)#
switch(config-mgmt-telnet)# shutdown
The shutdown command disables or enables management over XMPP on the switch in management-telnet mode. EOS disables XMPP by default.
The no shutdown and default shutdown commands re-enable XMPP by removing the shutdown command from running-config.
Command Mode
XMPP Management Configuration
Command Syntax
shutdown
no shutdown
default shutdown
switch(config-mgmt-xmpp)# no shutdown
switch(config-mgmt-xmpp)# exit
switch(config)#
switch(config-mgmt-xmpp)# shutdown
switch(config-mgmt-xmpp)#
The switch-group command allows you to configure each switch to join specified chat rooms on startup. Configure the switch to belong to the specified chat room to participate in a chat group.
The no switch-group and default switch-group commands delete the specified switch-group configuration (or all switch-group configurations if no name is specified) by removing the corresponding switch-group statement from running-config.
Command Mode
XMPP Management Configuration Mode
Command Syntax
switch-group name SECURITY
no switch-group
default switch-group
Valid usernames begin with A-Z, a-z, or 0-9 and may also contain any of these characters:
@ # $ % ^ & * - _ = + ; < > ,. ~ |
switch(config)# management xmpp
switch(config-mgmt-xmpp)# switch-group
This email address is being protected from spambots. You need JavaScript enabled to view it. password 0 arista
switch# show xmpp switch-group
This email address is being protected from spambots. You need JavaScript enabled to view it.
The username command configures the username and password for the switch on the XMPP server.
The no username and default username commands delete the specified username by removing the corresponding username statement from running-config.
Command Mode
XMPP Management Configuration
Command Syntax
username name security
no username
default username
Valid usernames begin with A-Z, a-z, or 0-9 and may also contain any of these characters:
@ # $ % ^ & * ( ) - _ = + { } [ ] ; < > ,. ~ |
Guidelines
Encrypted strings entered through this parameter are generated elsewhere. The password 7 option (SECURITY) is typically used to enter a list of username-passwords from a script.
switch(config)# management xmpp
switch(config-mgmt-xmpp)# server arista-xmpp
switch(config-mgmt-xmpp)# domain test.aristanetworks.com
switch(config-mgmt-xmpp)# username This email address is being protected from spambots. You need JavaScript enabled to view it. password 0 arista
switch(config-mgmt-xmpp)# no shutdown
switch(config-mgmt-xmpp)# no username
switch(config-mgmt-xmpp)#
The vrf command places the switch in the server's VRF configuration mode. If the named VRF does not already exist, this command creates it.
Command Mode
API Management Configuration
Command Syntax
vrf VRF_INSTANCE
Parameters
Related Command
management api http-commands places the switch in API Management Configuration.
switch(config)# management api http-commands
switch(config-mgmt-api-http-cmds)# vrf management-vrf
switch(config-mgmt-api-http-cmds-vrf-management-vrf)#
The vrf command places the switch in VRF Configuration mode for the XMPP server. If the named VRF does not already exist, this command creates it.
The VRF configuration for the client is for the entire XMPP service rather than per server. All servers resolving on a particular hostname must be reachable in the same VRF.
Command Mode
XMPP Management Configuration
Command Syntax
vrf [VRF_INSTANCE]
Parameters
switch(config)# management xmpp
switch(config-mgmt-xmpp)# vrf management-vrf
switch(config-mgmt-xmpp)
The xmpp send command can connect to the XMPP server and send messages to switches or switch groups within the network.
Before switches can send messages, they must be connected with each other. The show xmpp neighbor command verifies the friendship between switches.
Command Mode
Privileged EXEC
Command Syntax
xmpp send to neighbor XMIT_TYPE content
switch# xmpp send test2 command show version
message from user: This email address is being protected from spambots. You need JavaScript enabled to view it.
--------------------------------------------------
Hardware version: 04.40
Serial number: JFL08432083
System MAC address: 001c.7301.7d69
Software image version: 4.12.3
Architecture: i386
Internal build version: 4.12.3
Internal build ID: f5ab5f57-9c26-4fe4-acaa-fb60fa55d01d
Uptime: 2 hours and 38 minutes
Total memory: 1197548 kB
Free memory: 182452 kB
The xmpp session command is similar to running SSH from the switch. The user must input their username and password in order to connect to the XMPP server. EOS uses the format USER@DEFAULTDOMAIN by default. This command allows you to interact in the enable mode with a switch or switch group over XMPP using the standard CLI, with access to help and tab completion. All commands are then executed remotely and only the non-empty results are displayed on the screen.
Command Mode
Privileged EXEC
Command Syntax
xmpp session switchgroup
Parameters
switchgroup The option includes the switch group within the network connected as friends in a chat room.
switch# xmpp session This email address is being protected from spambots. You need JavaScript enabled to view it.
xmpp-all# show int Eth3 status
response from: This email address is being protected from spambots. You need JavaScript enabled to view it.
--------------------------------------------------
Port Name Status Vlan Duplex Speed Type
Et3 bs3 connected in Po3 a-full a-1000 10GBASE-SR
switch#
This chapter describes administrative tasks that are typically performed only after initially configuring the switch or after recovery procedures.
A Fully Qualified Domain Name (FQDN) labels the switch and defines its organization ID in the Domain Name System hierarchy. The switch's FQDN consists of a host name and domain name.
switch(config)# hostname main-host
main-host(config)#
switch(config)# dns domain aristanetworks.com
switch(config)#
switch(config)# dns domain samplecorp.org
switch(config)#
switch# show running-config
! Command: show running-config
! device: switch (DCS-7150S-64-CL, EOS-4.13.2F)
!
vlan 3-4
!
username john secret 5 $1$a7Hjept9$TIKRX6ytkg8o.ENja.na50
!
hostname sales1
ip name-server vrf default 172.17.0.22
dns domain samplecorp.org
!
end
switch#
The Domain Name Server (DNS) maps FQDN labels to IP addresses and provides addresses for network devices. Each network requires at least one server to resolve addresses. The configuration file can list a maximum of three server addresses.
To add name servers to the configuration, use the ip name-server command. Each command can add multiple servers. All server addresses support multiple VRFs, and a priority may be specified for each server named. If all name servers have the default priority (0), the default DNSmasq behavior is followed for the configuration. It queries all name servers simultaneously and forwards the requests to the first name server for 50 queries or 20 seconds, whichever expires sooner for answering. If any priorities are non-zero, queries are issued in order with a five second timeout between unresponsive name servers.
switch(config)# show ip name-server
IP Address VRF Priority
---------- ------- --------
10.0.0.1 default 0
10.0.0.2 default 1
10.0.0.1 vrf1 2
10.0.0.2 vrf1 3
fc00::1 default 4
The switch assigns source IP addresses to outgoing DNS requests. To force the switch to use a single, user-defined source interface for all requests, use the ip domain lookup command.
switch(config)# ip domain lookup source-interface Vlan5
switch(config)#
switch(config)# ip domain lookup vrf purple source-interface Vlan10
switch(config)#
switch(config)# ip name-server vrf purple 10.1.1.24 priority 4
switch(config)#
switch(config)# no ip name-server vrf purple 10.1.1.24
switch(config)#
switch(config)# no ip name-server
switch(config)#
NXDOMAIN
is considered a valid reply for the query.
The switch uses the system clock to display the time and time-stamping messages. Set the system clock to Coordinated Universal Time (UTC); the switch calculates local time based on the time zone setting. Time-stamps and time displays are in local time. The system clock can be set manually or via Network Time Protocol (NTP); any NTP servers properly configured on the switch override time manually entered.
The following sections deal with the configuration of the system clock and the use of NTP and PTP.
Select the switch's time zone to convert the system time (UTC) to local time. To specify the time zone, use the clock timezone command.
switch(config)# clock timezone US/Central
switch(config)#show clock
Mon Jan 14 18:42:49 2013
timezone is US/Central
switch(config)#
switch(config)# clock timezone ?
Africa/Abidjan Africa/Accra
WET WET timezone
Zulu Zulu timezone
switch(config)#clock timezone
switch(config)# clock timezone AMERICA?
America/Adak America/Anchorage
America/Yellowknife
switch(config)#clock timezone AMERICA
The clock set command manually configures the system clock time and date in local time. Manually enter any NTP servers properly configured on the switch override time.
switch# clock set 08:15:24 14 Jan 2013
Mon Jan 14 08:15:25 2013
timezone is US/Central
Enter the show clock command to display the local time and configured time zone.
switch(config)# show clock
Mon Jan 14 16:32:46 2013
timezone is America/Los_Angeles
EOS enables Network Time Protocol (NTP) on the switch by default, and time settings from any properly configured NTP server override manual setting of the system clock.
NTP servers synchronize time settings of systems running an NTP client. The switch supports NTP versions 1 through 4, and uses version 4 by default. After configuring the switch to synchronize with an NTP server, it may take up to ten minutes for the switch to set the clock. Select the configured running-config lists of the NTP servers that the switch uses.
The ntp server command adds a server to the list or modifies the parameters of a previously listed address. When the system contains multiple NTP servers, the prefer keyword can be used to specify a preferred NTP server and uses it as the NTP server.
Note that all NTP servers must be in the same VRF and added in the default VRF if you do notspecify a VRF.
NTP sets the system clock if enabled, and if the switch has one properly configured NTP server.NTP overrides the manual setting of the system clock. EOS enables NTP by default. To disable NTP, select the no ntp command.
Use the following commands to add three NTP servers and designate the second server as the preferred NTP server.
switch(config)# ntp server local-NTP
switch(config)#ntp server 172.16.0.23 Prefer
switch(config)#ntp server 172.16.0.25
A local interface can be specified as the source in outgoing NTP packets using the ntp local-interface command to control the address to send NTP responses to the switch. The IP address of that interface uses the source address in all outgoing NTP packets unless the switch acts as an NTP server and a server-specific source configured using the source option of the ntp server command.
switch(config)# ntp local-interface vlan 25
switch(config)#
To configure the switch to accept NTP requests on all interfaces, use the ntp serve all command to enable NTP server mode globally on the switch. To configure an individual interface to accept or deny NTP requests, use the ntp serve command. Interface level settings override the global settings, and changing the settings at either the global or interface level also causes the switch to re-synchronize with its upstream NTP server. Disable the NTP server mode by default.
switch(config)# ntp serve all
switch(config)#
switch(config)# interface ethernet 5
switch(config-if-Et5)#ntp serve
switch(config-if-Et5)#
The switch can be configured to accept NTP packets only from an authenticated server or client. Disable the NTP authentication by default.
To configure the switch to authenticate NTP packets, create one or more authentication keys using the ntp authentication-key command, specify which keys are trusted by using the ntp trusted-key command, use the ntp authenticate command to enable NTP authentication, and specify to use the trusted-key for a specific server. The NTP server must be configured to select the same authentication key and key ID number.
Note: Enable when NTP authentication on a switch; all NTP servers upstream of the switch and all NTP clients of the switch should have matching keys configured, and clients must have NTP authentication enabled.
These commands configure the switch to authenticate NTP packets using key 328 with the plaintext password timeSync.
switch(config)# ntp authentication-key 328 md5 timeSync
switch(config)#ntp trusted key 328
switch(config)#ntp authenticate
switch(config)#
To display the status of Network Time Protocol (NTP) on the switch, use the show ntp status command. To display the status of connections to NTP servers, use the show ntp associations command.
Note: In the output for show ntp associations, the reference ID (which identifies the time source of the NTP server) is either the IPv4 address of the time source or, if that source has an IPv6 address, the first four octets of the MD5 hash of that IPv6 address. In EOS releases prior to 4.23.2, the show ntp status command identified the system peer by its reference ID as described above. Still, in later releases, it shows the IP address (whether IPv4 or IPv6).
switch# show ntp status
synchronised to NTP server (192.168.78.62) at stratum 3
time correct to within 66 ms
polling server every 1024 s
switch #
switch# show ntp associations
remote refid st t when poll reach delay offset jitter
==============================================================================
+l.ntp.arista.co 125.157.10.11 2 u 539 1024 377 121.748 -0.345 0.893
-3.ntp.arista.co 127.31.152.34 2 u 868 1024 377 101.671 2.434 1.529
+2.ntp.arista.co 176.131.12.185 2 u 676 1024 377 116.505 0.03 0.768
*4.ntp.arista.co 120.181.192.192 2 u 696 1024 377 48.431 -0.416 0.15
switch#
Display commands control the content of the banner and the command line prompt.
This output displays both banners in bold:
This is a login banner
switch login: john
Password:
Last login: Mon Jan 14 09:24:36 2013 from aristanetworks.com
This is an motd banner
switch>
Use the following commands to create a login and motd banner:
switch(config)# banner login
Enter TEXT message. Type 'EOF' on its line to end.
This is a login banner
EOF
switch(config)# banner motd
Enter TEXT message. Type 'EOF' on its own line to end.
This is an motd banner
EOF
switch(config)#
Use the following steps to create a banner:
The prompt provides an entry point for EOS commands. The prompt command configures the contents of the prompt. The no prompt command returns the prompt to the default of %H%P.
Characters allowed in the prompt include A-Z, a-z, 0-9, and the following additional characters:
! @ # $ % ˆ & * ( ) - = + f g [ ] ; : < > , . ? / ˜ n
switch(config)# prompt system%s1%P
system 1(config)#
switch(config)# prompt %p
(config)#
% prompt %H%P
host-name.dut103(config)#
%no prompt
host-name.dut103(config)#
Arista switches log Event Notifications using the Syslog protocol. By default, EOS logs the event notifications internally to the folder, /var/log/messages but can also be displayed on the console or logged to an external server. Configure severity levels and log message destinations using the CLI, and configure individual processes and protocols to adjust or limit the messages from them. Use the show logging command to view details of the current logging configuration.
For a full list of Syslog messages, visit the Arista website.
Strata chipsets, present in the 7010, 7050X, 7060X, 7250X, 7260X, and 7300X series switches, provide event logging for the hardware capacity of TCAM tables on a per-slice basis, and trigger a capacity warning by default whenever any TCAM slice exceeds 90% capacity. As a result, default TCAM logging can generate high levels of syslog messages on these platforms. The hardware capacity alert table command can adjust the capacity levels for the warnings above the 90% default. In that case, this adjustment can be made per TCAM resource and per slice. The command can also disable TCAM hardware capacity messages at the level Warning and below for a given slice. To disable messages, set the threshold to 0 or use the no version of the command.
switch(config)# hardware capacity alert table EFP feature Slice-2 threshold 99
switch(config)# hardware capacity alert table IFP feature Slice-5 threshold 0
switch(config)# no hardware capacity alert table VFP
Hardware capacity messages are user-configurable only at or below the “Warning” level. When depleting TCAM management software, it always sends “Error” messages to Syslog and affected features when all TCAM resources are used.
A hash collision occurs when two or more distinct pieces of data map to the same entry or slot in the hardware table. It can happen when the hash function used to calculate the index for a MAC address results in the already occupied index and causes a failure of inserting the later MAC address to the hardware table.
Use the following commands to enable system logging of MAC Learn Failures on the switch:
switch(config)# platform trident hardware mac-address-table collision-tracking
Use the no version of the command to disable the feature:
switch(config)# no platform trident hardware mac-address-table collision-tracking
Use the following command to display missing MAC addresses in the hardware table:
switch# show platform trident l2 hardware mac-address-table missing
Vlan | Mac Address | Present in SW? | Present in HW | Missing in HW |
---------|-----------------------|--------------------|-------------------|---------------|
2141 | 00:00:04:00:00:09 | Y | | Switchcard1/0 |
---------|-----------------------|--------------------|-------------------|---------------|
2141 | 00:00:03:00:19:0c | Y | | Switchcard1/0 |
---------|-----------------------|--------------------|-------------------|---------------|
Total entries missing in software: 0
Total entries missing in hardware: 2
Switchcard1/0: 2
%ETH---MACADDRBANKFULL: Unable to program learned dynamic host table entry for MAC address MAC address in VLAN VLAN Id due to hardware resource exhaustion.
The Event Monitor writes system event records to local files for access by SQLite database commands.
The event monitor receives notifications for important events or changes to the enabled event monitor tables. These changes are logged to a fixed-size circular buffer. The size of this buffer is configurable, but it does not grow dynamically. Buffer contents can be stored to permanent files to increase the event monitor effective capacity. The permanent file size and the number of permanent files is configurable. The buffer is stored at a fixed location on the switch.
Specific event monitor queries are available through CLI commands. For queries not available through specific commands, manual queries are supported through other CLI commands. When the user issues a query command, the relevant events from the circular buffer and permanent files are written to and accessed from a temporary SQLite database file. The database keeps a separate table for each logging type (such as MAC, ARP, route, and others). When the monitor receives notification of a new event, the database file is deleted, then recreated.
The switch does not enable event-monitor by default. Use the event-monitor command to explicitly enable the Event Monitor. The no event-monitor all disables the Event Monitor. The no event-monitor command, followed by a log type parameter, disables event recording for the specified type.
switch(config)# no event-monitor all
switch(config)# event-monitor route
The event-monitor clear command removes the contents of the Event Monitor buffer. If enabled, this command removes the contents from all Event Monitor backup files.
switch# event-monitor clear
switch(config)#
The event-monitor buffer max-size command specifies the size of the Event Monitor buffer. The Event Monitor buffer has a fixed-size circular data structure that receives event records from the Event Monitor. When enabling Event Monitor backup, the buffer copies the events to a backup file before each rollover. Buffer size ranges from 6 Kb to 50 Kb with a default size of 32 Kb.
switch(config)# event-monitor buffer max-size 48
switch(config)#
The event-monitor backup path command enables storage of the Event Monitor buffer to permanent switch files and specifies the path and name of these files. The command references file location either from the flash drive root directory where the CLI operates (/mnt/flash) or from the switch root directory (/).
The Event Monitor buffer becomes circular after the buffer fills, new data replaces older data at the beginning of the buffer. The switch copies the buffer into a new backup file after each buffer writing cycle before the switch starts re-writing the buffer.
switch(config)# event-monitor backup path eventmon_backup_dir/event.log
switch(config)#
bash-4.3# ls /mnt/flash/eventmon_backup_dir/
arpevent.log.1 lacpevent.log.1 neighborevent.log.1 routeevent.log.1
igmpsnoopingevent.log.1 macevent.log.1 route6event.log.1
stpunstableevent.log.1
The event-monitor backup max-size command specifies the quantity of Event Monitor backup files the switch maintains. The switch appends an extension number to the file name when it creates a new file. After every 500 events, the switch deletes the oldest backup file after exceeding the file limit.
switch(config)# event-monitor backup path sw-event.log
switch(config)# event-monitor backup max-size 4
switch(config)#
The switch creates these first five files to store Event Monitor buffer contents:
sw-event.log.0
sw-event.log.1
sw-event.log.2
sw-event.log.3
sw-event.log.4
The switch deletes sw-event.log.0 the first time it verifies the number of existing backup files after the creation of sw-event.log.4.
switch# show event-monitor mac
% Writing 0 Arp, 0 Route, 1 Mac events to the database
2012-01-19 13:57:55|1|0808.0808.0808|Ethernet1|configuredStaticMac|added|0
For other database queries, the show event-monitor sqlite command performs an SQL-style query on the database, using the statement specified in the command.
switch# show event-monitor sqlite select * from route;
2019-09-30 14:01:21.659428|16.16.16.255/32|default|receiveBcast|0|0|updated|20
2019-09-30 14:01:21.659464|192.168.201.12/30|default|connected|1|0|updated|21
2019-09-30 14:01:21.659497|192.168.1.255/32|default|receiveBcast|0|0|updated|22
2019-09-30 14:01:21.659503|192.168.201.8/32|default|receiveBcast|0|0|updated|23
2019-09-30 14:01:21.659512|16.16.16.0/32|default|receiveBcast|0|0|updated|24
2019-09-30
14:01:21.659517|192.168.201.12/32|default|receiveBcast|0|0|updated|25
2019-09-30
14:01:21.659524|192.168.201.15/32|default|receiveBcast|0|0|updated|26
2019-09-30 14:01:21.659541|192.168.201.8/30|default|connected|1|0|updated|27
2019-09-30 14:01:21.659564|16.16.16.0/24|default|connected|1|0|updated|28
2019-09-30 14:01:21.659578|192.168.201.9/32|default|receive|0|0|updated|29
The event-monitor sync command combines the event monitor buffer with all backup logs and synchronizes them into a single SQLite file. The data can be accessed through SQLite or by using the show event-monitor commands.
switch(config)# event-monitor sync
switch(config)#
The most simple and efficient way to make the most of the extensibility in EOS through the use of extensions. An extension provides a pre-packaged optional feature or a set of scripts in an RPM Package Manager (RPM) or Software image extension (SWIX) format. Arista provides a variety of extensions on the EOS Software Downloads page.
Complete the following steps to install an EOS extension.
Complete the following steps to install an EOS extension on a dual-supervisor switch.
Complete the steps to verify that the EOS extensions installed correctly.
Complete the following steps to uninstall an EOS extension.
The banner login command configures a message that the switch displays before login and password prompts. The login banner is available on console, telnet, and ssh connections.
The no banner login and default banner login commands delete the login banner.
Command Mode
Global Configuration
Command Syntax
banner login
no banner login
default banner login
switch(config)# banner login
Enter TEXT message. Type 'EOF' on its own line to end.
This is a login banner for $(hostname).
Enter your login name at the prompt.
EOF
switch(config)#
This is a login banner for switch.
Enter your login name at the prompt.
switch login:john
Password:
Last login: Mon Jan 14 09:05:23 2013 from adobe-wrks.aristanetworks.com
switch>
The banner motd command configures a message of the day (motd) that the switch displays after a user logs in. The motd banner is available on console, telnet, and ssh connections.
The no banner motd and default banner motd commands delete the motd banner.
Command Mode
Global Configuration
Command Syntax
banner motd
no banner motd
default banner motd
switch(config)# banner motd
Enter TEXT message. Type 'EOF' on its own line to end.
This is an motd banner for $(hostname)
EOF
switch(config)#
switch login: john
Password:
Last login: Mon Jan 14 09:17:09 2013 from adobe-wrks.aristanetworks.com
This is an motd banner for Switch
switch>
The clear ptp interface counters command resets the Precision Time Protocol (PTP) packet counters.
Command Mode
Privileged EXEC
Command Syntax
clear ptp interface [INTERFACE_NAME] counters
Parameters
Valid parameter formats include number, number range, or comma-delimited list of numbers and ranges.
Example
switch# clear ptp counters
switch#
The clock set command sets the system clock time and date. If the switch is configured with an NTP server, NTP time synchronizations override manually entered time settings.
Time entered by this command is local, as configured by the clock timezone command.
Command Mode
Privileged EXEC
Command Syntax
clock set hh:mm:ss date
Example
switch# clock set 08:15:24 14 Jan 2013
Mon Jan 14 08:15:25 2013
timezone is US/Central
The clock timezone command specifies the UTC offset that converts system time to local time. The switch uses local time for time displays and to time-stamp system logs and messages.
The no clock timezone and default clock timezone commands delete the timezone statement from running-config, setting local time to UTC.
Command Mode
Global Configuration
Command Syntax
clock timezone zone_name
no clock timezone
default clock timezone
Parameters
zone_name the time zone. Settings include a list of predefined time zone labels.
switch(config)# clock timezone US/Central
switch(config)# show clock
Fri Jan 11 18:42:49 2013
timezone is US/Central
switch(config)#
switch(config)# clock timezone ?
Africa/Abidjan Africa/Accra
Africa/Addis_Ababa Africa/Algiers
Africa/Asmara Africa/Asmera
Africa/Bamako Africa/Bangui
W-SU W-SU timezone
WET WET timezone
Zulu Zulu timezone
switch(config)#clock timezone
switch(config)# clock timezone AMERICA?
America/Adak America/Anchorage
America/Anguilla America/Antigua
America/Araguaina America/Argentina/Buenos_Aires
America/Virgin America/Whitehorse
America/Winnipeg America/Yakutat
America/Yellowknife
switch(config)#clock timezone AMERICA
The dns domain command configures the switchs domain name. The switch uses this name to complete unqualified host names.
The no dns domain and default dns domain commands delete the domain name by removing the dns domain command from running-config.
Command Mode
Global Configuration
Command Syntax
dns domain string
no dns domain
default dns domain
Parameter
string domain name (text string).
Example
switch(config)# dns domain aristanetworks.com
switch(config)#
The email command places the switch in email client configuration mode. If you configure a from-user and an outgoing SMTP server on the switch, you can then use an email address as an output modifier to a show command and receive the output as email.
Command Mode
Global Configuration
Command Syntax
Example
switch(config)# email
switch(config)#
The event-monitor backup max-size command specifies the quantity of event monitor backup files the switch maintains. Values range from 1 to 200 files with a default of ten files.
The event-monitor backup path command specifies the path/name of these files. The switch appends an extension to the file name that tracks the creation order of backup files. When the quantity of files exceeds the configured limit, the switch deletes the oldest file.
The no event-monitor backup max-size and default event-monitor backup max-size command restores the default maximum number of backup files the switch can store to ten by removing the corresponding event-monitor backup max-size command from running-config.
Command Mode
Global Configuration
Command Syntax
event-monitor backup max-size file_quantity
no event-monitor backup max-size
default event-monitor backup max-size
Parameter
file_quantity maximum number of backup files. Value ranges from 1 to 200. Default is 10.
Example
switch(config)# event-monitor backup path sw-event.log
switch(config)# event-monitor backup max-size 4
switch(config)#
The first five files that the switch creates to store event monitor buffer contents are:
sw-event.log.0
sw-event.log.1
sw-event.log.2
sw-event.log.3
sw-event.log.4
The switch deletes sw-event.log.0 the first time it verifies the number of existing backup files after the creation of sw-event.log.4.
The event-monitor backup path command enables the storage of the event monitor buffer to switch files and specifies the path/name of these files. The command references the file location either from the flash drive root directory (/mnt/flash) where the CLI operates or from the switch root directory (/).
The event monitor buffer is circular after the buffer is filled, new data is written to the beginning of the buffer, replacing old data. At the conclusion of each buffer writing cycle, it is copied into a new backup file before the switch starts re-writing the buffer. The switch appends a extension number to the file name when it creates a new file. After every 500 events, the switch deletes the oldest backup file if the file limit specified by the event-monitor backup max-size command is exceeded.
running-config can contain a maximum of one event-monitor backup path statement. Subsequent event-monitor backup path commands replace the existing statement in running-config, changing the name of the file where event monitor backup files are stored.
The no event-monitor backup path and default event-monitor backup path commands disable the storage of the event monitor buffer to switch files by deleting the event-monitor backup path command from running-config.
Command Mode
Global Configuration
Command Syntax
event-monitor backup path URL_FILE
no event-monitor backup path
default event-monitor backup path
Parameters
Example
switch(config)# event-monitor backup path eventmon_backup_dir/event.log
switch(config)#
bash-4.3# ls /mnt/flash/eventmon_backup_dir/
arpevent.log.1 lacpevent.log.1 neighborevent.log.1 routeevent.log.1
igmpsnoopingevent.log.1 macevent.log.1 route6event.log.1
stpunstableevent.log.1
The event-monitor buffer max-size command specifies the size of the event monitor buffer. The event monitor buffer is a fixed-size circular data structure that receives event records from the event monitor. When event monitor backup is enabled (event-monitor backup path), the buffer is copied to a backup file before each rollover.
Buffer size ranges from 6 Kb to 50 Kb. The default size is 32 Kb.
The no event-monitor buffer max-size and default event-monitor buffer max-size commands restore the default buffer size of 32 Kb by removing the event-monitor buffer max-size command from running-config.
Command Mode
Global Configuration
Command Syntax
event-monitor buffer max-size buffer_size
no event-monitor buffer max-size
default event-monitor buffer max-size
Parameters
buffer_size buffer capacity (Kb). Values range from 6 to 50. Default value is 32.
Example
switch(config)# event-monitor buffer max-size 48
switch(config)#
The event-monitor clear command removes the contents of the event monitor buffer. If event monitor backup is enabled, this command removes the contents from all event monitor backup files.
Command Mode
Privileged EXEC
Command Syntax
event-monitor clear
Example
switch# event-monitor clear
switch#
The event-monitor buffer sync command combines the event monitor buffer and all backup logs and synchronizes them into a single SQLite file, which is stored at /var/log/eventMon.db.
Command Mode
Privileged EXEC
Command Syntax
event-monitor sync
Example
switch(config)# event-monitor sync
switch(config)#
The event-monitor command enables the event monitor and specifies the types of events that are logged. The event monitor is an event logging service that records system events to a local database.
The database maintains a separate table for each event type.
The no event-monitor and default event-monitor commands, without a LOG_TYPE parameter, restore the default event monitor settings by deleting all event monitor related commands from running-config.
Command Mode
Global Configuration
Command Syntax
event-monitor LOG_TYPE
no event-monitor LOG_TYPE
default event-monitor LOG_TYPE
Parameters
Related Command
switch(config)# no event-monitor all
switch(config)#
switch(config)# event-monitor route
switch(config)#
The hostname command assigns a text string as the switch's host name. The default host name is localhost.
The prompt displays the host name when appropriately configured through the prompt command.
The no hostname and default hostname commands return the switch's host name to the default value of localhost.
Command Mode
Global Configuration
Command Syntax
hostname string
no hostname
default hostname
Parameter
string host name assigned to the switch.
Example
switch(config)# hostname main-host
main-host(config)#
The prompt was previously configured to display the host name.
The ip domain lookup command specifies the source interface for all DNS requests sent from the specified VRF.
The no ip domain lookup and default ip domain lookup commands return the switch to its default state, in which the switch selects source IP addresses for each DNS request from the specified VRF.
Command Mode
Global Configuration
Command Syntax
ip domain lookup [VRF_INSTANCE] source-interface INTF_NAME
no ip domain lookup [VRF_INSTANCE] source-interface
default ip domain lookup [VRF_INSTANCE] source-interface
switch(config)# ip domain lookup source-interface Vlan5
switch(config)#
switch(config)# ip domain lookup vrf purple source-interface Vlan10
switch(config)#
The ip domain-list command specifies a domain name to add to the IP domain list.
The no ip domain-list and default ip domain-list commands return the IP domain list to its default state, in which the switch selects source IP addresses for each DNS request from the specified VRF.
Command Mode
Global Configuration
Command Syntax
ip domain-list [IP_DOMAIN_NAME]
no ip domain-list [IP_DOMAIN_NAME]
default ip domain-list [IP_DOMAIN_NAME]
Parameter
IP_DOMAIN_NAME specifies the IP domain name.
switch(config)# ip domain-list foo.com
switch(config)#
switch(config)# no ip domain-list foo.com
switch(config)#
The ip host command associates a hostname to an IPv4 address. This command supports local hostname resolution based on local hostname IP address maps. Multiple hostnames can be mapped to an IP address. IPv4 and IPv6 addresses can be mapped to the same hostname. To map an IPv6 address to a hostname, use the ipv6 host command. The show hosts command displays the local hostname IP address mappings.
Command Mode
Global Configuration
Command Syntax
ip host hostname hostadd_1 [hostadd_2] ...[hostadd_X]
no ip host [hostname] [hostadd_1 [hostadd_2] [hostadd_X]
default ip host [hostname] [hostadd_1 [hostadd_2] [hostadd_X]
switch(config)#ip host MyTestLab 10.24.18.5 10.24.16.3
switch(config)#no ip host production_lab
switch(config)#
The ip name-server command adds name server addresses to running_config. The switch uses name servers for name and address resolution. The switch can be configured with up to three name servers. Although a command can specify multiple name server addresses, running_config stores each address in a separate statement. Name server addresses can be IPv4 and IPv6; each command can specify both address types.
Attempts to add a fourth server generate an error message. All name server addresses must be configured in the same VRF. When name servers were previously configured in a VRF, they must all be removed before adding new name server entries.
The no ip name-server and default ip name-server commands remove specified name servers from running_config. Commands that do not list an address remove all name servers.
Command Mode
Global Configuration
Command Syntax
ip name-server [VRF_INSTANCE] [SERVER_1] [SERVER_2] [SERVER_3]
no ip name-server [VRF_INSTANCE] [SERVER_1] [SERVER_2] [SERVER_3]
default ip name-server [VRF_INSTANCE] [SERVER_1] [SERVER_2] [SERVER_3]
A command can contain both (IPv4 and IPv6) address types.
Guidelines
All configured name server addresses must come from the same VRF. To use a user defined VRF for connection to a name server, first remove any name servers configured in the default VRF.
switch(config)# ip name-server 172.0.14.21 3:4F21:1902::
switch(config)#
switch(config)# ip name-server 172.1.10.22
% Maximum number of nameservers reached. '172.1.10.22' not added
switch(config)#
The ipv6 host command associates a hostname to an IPv6 address. This command supports local hostname resolution based on local hostname IP address maps. Multiple hostnames can be mapped to an IPv6 address. IPv4 and IPv6 addresses can be mapped to the same hostname. To map IPv4 addresses to a hostname, use the ip host command. The show hosts command displays the local hostname IP address mappings.
Command Mode
Global Configuration
Command Syntax
ipv6 host hostname hostadd1 [hostadd2] ...[hostaddX]
no ipv6 host [hostname] [hostadd1 [hostadd2] [hostaddX]
default ipv6 host [hostname] [hostadd1 [hostadd2] [hostaddX]
Example
switch(config)#ipv6 host MySupportLab 2001:0DB8:73:ff:ff:26:fd:90
switch(config)#
The logging format command configures formatting options for syslog messages.
The no logging format and default logging format commands remove the corresponding logging format command from running-config and restore the specified formatting to its default setting.
Command Mode
Global Configuration
Command Syntax
logging format {hostname{fqdn|ipv4}|rfc5424|sequence-numbers|timestamp{high-resolution|traditional[timezone][year]}}
no logging format {hostname|rfc5424|sequence-numbers|timestamp}
default logging format {hostname|rfc5424|sequence-numbers|timestamp}
Parameters
hostname {fqdn\ipv4} specifies the formatting for the hostname in syslog messages as either fqdn (fully qualified domain name) or ipvr (IPv4 address).
rfc5424 causes syslogs generated locally to include high-resolution timestamps, and syslogs forwarded to remote servers to be sent in RFC5424 format.
sequence-numbers causes the sequence numbers of syslog messages to be visible when the messages are displayed.
timestamp {high-resolution|traditional[timezone][year]} specifies the formatting for syslog timestamps as either high-resolution (high-resolution RFC3339 timestamps) or traditional (traditional syslog timestamps as specified in RFC3164).When using the traditional timestamp format, timezone and year can also be included.
switch(config)# logging format sequence-numbers
switch(config)#
switch# show logging
Syslog logging: enabled
Buffer logging: level debugging
Console logging: level informational
Synchronous logging: disabled
Trap logging: level informational
Sequence numbers: enabled
Syslog facility: local4
Hostname format: Hostname only
Repeat logging interval: disabled
Log Buffer:
Nov 12 14:03:34 switch1 SuperServer: 1: %SYS-7-CLI_SCHEDULER_LOG_STORED: Logfile for scheduled CLI execution job 'tech-support' is stored in
flash:/schedule/tech-support/tech-support_2012-11-12.1402.log.gz
Nov 12 14:06:52 switch1 Cli: 2: %SYS-5-CONFIG_I: Configured from console by admin on con0 (0.0.0.0)
Nov 12 14:07:26 switch1 Cli: 3: %SYS-5-CONFIG_E: Enter configuration mode from console by admin on con0 (0.0.0.0)
Nov 12 14:14:29 switch1 Cli: 4: %SYS-5-CONFIG_I: Configured from console by admin on con0 (0.0.0.0)
Nov 12 14:15:55 switch1 Cli: 5: %SYS-5-CONFIG_E: Enter configuration mode from console by admin on con0 (0.0.0.0)
Nov 12 14:33:05 switch1 Cli: 6: %SYS-5-CONFIG_I: Configured from console by admin on con0 (0.0.0.0)
Nov 12 14:45:13 switch1 Cli: 7: %SYS-5-CONFIG_E: Enter configuration mode from console by admin on con0 (0.0.0.0)
switch#
The logging persistent command logs the files stored on the flash disk. It can store upto 30MB logs.
The no logging persistent command disables the logging from the running-config.
Command Mode
Global Configuration Mode
Command Syntax
logging persistent logging file size
no logging persistent logging file size
switch# config
switch(config)# logging persistent 1024
! Note: writing system log message on non-volatile flash will affect the life
expectancy of the flash drive due to heavy writing. Please disable persistent logging unless needed.
The logging repeat-messages command configures repetition of syslog messages instead of summarizing the count of repeats.
The no logging repeat-messages and default logging repeat-messages commands disable the functionality to repeat logging messages in running-config.
Command Mode
Global Configuration
Command Syntax
logging repeat-messages
no logging repeat-messages
default logging repeat-messages
switch(config)# logging repeat-messages
switch(config)#
switch(config)# show logging
Syslog logging: enabled
Buffer logging: level debugging
Console logging: level debugging
Monitor logging: level debugging
Synchronous logging: disabled
Trap logging: level informational
Sequence numbers: disabled
Syslog facility: local4
Hostname format: Hostname only
Repeat logging interval: disabled
Repeat messages: enabled
Facility Severity Effective Severity
-------------- ------------- ------------------
aaa debugging debugging
accounting debugging debugging
switch(config)#
To disable the event monitor, enter the no event-monitor all command (event-monitor).
Command Mode
Global Configuration
Command Syntax
no event-monitor [PARAMETER]
default event-monitor [PARAMETER]
Parameters
Example
switch(config)# no event-monitor
switch(config)#
The ntp authenticate command enables the authentication of incoming NTP packets. When authentication is enabled, NTP packets will be used to synchronize time on the switch only if they include a trusted authentication key. Authentication keys are created on the switch using the ntp authentication-key command, and the ntp trusted-key command is used to specify which keys are trusted. NTP authentication is disabled by default.
The no ntp authenticate and default ntp authenticate commands disable NTP authentication on the switch by removing the corresponding ntp authenticate command from running-config.
Command Mode
Global Configuration
Command Syntax
ntp authenticate
no ntp authenticate
default ntp authenticate
switch(config)# ntp authenticate
switch(config)#
switch(config)# no ntp authenticate
switch(config)#
The ntp authentication-key command creates an authentication key for use in authenticating incoming NTP packets. For the key to be used in authentication:
The no ntp authentication-key and default ntp authentication-key commands remove the specified authentication key by removing the corresponding ntp authentication-key command from running-config.
Command Mode
Global Configuration
Command Syntax
ntp authentication-keykey_id ENCRYPT_TYPE password_text
no ntp authentication-key key_id
default ntp authentication-key key_id
switch(config)# ntp authentication-key 234 md5 timeSync
Running-config stores the password as plain text.
switch(config)# no ntp authentication-key 234
The ntp local-interface command configures an interface as the local NTP source. The IP address of that interface will then be used as the source address in NTP packets sent by the switch. If the switch is acting as an NTP server and a server-specific source interface has been configured using the source option of the ntp server command, the server-specific source address will take precedence.
The no ntp local-interface and default ntp local-interface commands remove the ntp local-interface command from running-config.
Command Mode
Global Configuration
Command Syntax
ntp local-interface [VRF_INSTANCE] INT_PORT
no ntp local-interface
default ntp local-interface
switch(config)# ntp local-interface vlan 25
switch(config)#
switch(config)# no ntp local-interface
switch(config)#
The ntp serve all command configures the switch to act as an NTP server by accepting incoming NTP requests.
Using this command also causes the switch to re-synchronize with its upstream NTP server.
Individual interfaces can be configured separately to accept or deny NTP requests by using the ntp serve command, and these settings override the global setting.
Command Mode
Global Configuration
Command Syntax
ntp serve all
no ntp serve all
default ntp serve all
switch(config)# ntp serve all
switch(config)#
switch(config)# no ntp serve all
switch(config)#
The ntp serve command configures the command mode interface to accept incoming NTP requests regardless of the global setting.
The no ntp serve command configures the command mode interface to refuse incoming NTP requests regardless of the global setting. The default ntp serve command configures the command mode interface to follow the global setting.
Using this command also causes the switch to re-synchronize with its upstream NTP server.
Command Modes
Interface-Ethernet Configuration
Interface-Loopback Configuration
Interface-Management Configuration
Interface-Port-channel Configuration
Interface-VLAN Configuration
Interface-VXLAN Configuration
Command Syntax
ntp serve
no ntp serve
default ntp serve
switch(config)# interface ethernet 5
switch(config-if-Et5)# ntp serve
switch(config-if-Et5)#
switch(config)# interface ethernet 5
switch(config-if-Et5)# no ntp serve
switch(config-if-Et5)#
switch(config)# interface ethernet 5
switch(config-if-Et5)#default ntp serve
switch(config-if-Et5)#
The ntp server command adds a Network Time Protocol (NTP) server to the running-config. If the command specifies an existing server in the running-config, it modifies the server settings. The switch synchronizes the system clock with an NTP server when running-config contains at least one valid NTP server.
The switch supports NTP versions 1 through 4. The default is version 4.
The prefer option specifies a preferred NTP server to use as the NTP server if not discarded by NTP.
The no ntp server and default ntp server commands remove the specified NTP server from running-config. To remove an NTP server configured in a user-defined VRF, include the VRF name in the no ntp server command.
Command Mode
Global Configuration
Command Syntax
ntp server [ vrfvrf_instance | host_name] refresh [version ntp_version] [source-address [ [ipv4_address | ipv6_address] burst [iburst [ key auth_key ][ maxpoll max_poll_interval][] [ minpoll min_poll_interval ] prefer source interface_name
no ntp server [vrf_instance] host_name
default ntp server [vrf_instance] host_name
All parameters except vrf and hostname can be placed in any order.
Guidelines
To configure multiple parameters for a single server, include them all in a single ntp server command. Using the command again for the same server overwrites parameters previously configured in running-config.
All NTP servers must use the same VRF. If you do not specify a VRF, the server uses the default VRF. To use a user-defined VRF for connection to an NTP server, first use the no ntp server command to remove any NTP servers configured in the default VRF.
When specifying a source interface, choose an interface in the same VRF as the server. If the source interface does not exists on the same VRF, the running-config includes the source data but does not add it to the NTP packets.
An NTP server may be configured using an invalid or inactive VRF, but the status of the NTP server remains inactive until the VRF becomes active.
switch(config)# ntp server 172.16.0.23 prefer
switch(config)# ntp server local-nettime
switch(config)# ntp server 171.18.1.22 version 3
switch(config)# no ntp server 172.16.0.23
switch(config)# no ntp server local-nettime
switch(config)# no ntp server 171.18.1.22
switch(config)# ntp server vrf magenta 172.16.0.23 prefer
switch(config)# ntp server vrf magenta local-nettime
switch(config)# ntp server vrf magenta 171.18.1.22 version 3
switch(config)#
The ntp trusted-key command specifies which authentication keys will be trusted for authentication of NTP packets. A packet with a trusted key will be used to update the local time if authenticated.
The no ntp trusted-key and default ntp trusted-key commands remove the specified authentication keys from the trusted key list by removing the corresponding ntp trusted-key command from running-config.
Command Mode
Global Configuration
Command Syntax
ntp trusted-key key_list
no ntp trusted-key
default ntp trusted-key
Parameter
key_list specified one or more keys. Formats include a number (1 to 65534), number range, or comma-delimited list of numbers and ranges.
Example
switch(config)# ntp trusted-key 234,237
switch(config)#
The power enable module command powers up the specified module. The no power enable module command powers down the specified module.
Command Mode
Global Configuration
Command Syntax
power enable module {fabric|linecard|supervisor|switchcard} module_number
no power enable module {fabric|linecard|supervisor|switchcard} module_number
default power enable module {fabric|linecard|supervisor|switchcard} module_number
Parameters
fabric specifies a fabric card
linecard specifies a linecard
supervisor specifies a supervisor
switchcard specifies a switch card
module_number specifies the number of the module
switch(config)# no power enable module linecard 3
switch(config)#
switch(config)# no power enable module fabric 2
switch(config)# power enable module fabric 2
switch(config)#
The prompt command specifies the contents of the CLI prompt. Characters allowed in the prompt include A-Z, a-z, 0-9, and these punctuation marks:
! @ # $ % & * ( ) - = + f g [ ] ; : < > , . ? / n
Command Mode |
Command Mode Prompt |
Extended Command Mode Prompt |
---|---|---|
Exec |
> |
> |
Privileged Exec |
# |
# |
Global Configuration |
(config)# |
(config)# |
Ethernet Interface Configuration |
(config-if)# |
(config-if-ET15)# |
VLAN Interface Configuration |
(config-if)# |
(config-if-Vl24)# |
Port Channel Interface Configuration |
(config-if)# |
(config-if-Po4)# |
Management Interface Configuration |
(config-if)# |
(config-if-Ma1) |
Access List Configuration |
(config-acl)# |
(config-acl-listname)# |
OSPF Configuration |
(config-router)# |
(config-router-ospf)# |
BGP Configuration |
(config-router)# |
(config-router-bgp)# |
The no prompt and default prompt commands return the prompt to the default of %H%R%P.
Command Mode
Global Configuration
Command Syntax
prompt p_string
no prompt
default prompt
Parameters
p_string prompt text (character string). Elements include letters, numbers, and control sequences.
host-name.dut103(config)# prompt system%s1%P
system 1(config)#
host-name.dut103(config)# prompt %p
(config)#
% prompt %H%P
host-name.dut103(config)#
% no prompt
host-name.dut103(config)#
The show banner command displays the specified banner.
Command Mode
Privileged EXEC
Command Syntax
show banner BANNER_TYPE [login | motd]
Parameters
Example
switch(config)# banner motd
Enter TEXT message. Type 'EOF' on its own line to end.
This is an motd banner for $(hostname)
EOF
switch(config)# show banner motd
This is an motd banner for $(hostname)
switch(config)#
The show clock command displays the current system clock time and configured time zone. The switch uses the system clock for system log messages and debugging traces.
Command Mode
EXEC
Command Syntax
show clock
Example
switch> show clock
Wed Nov 2 10:29:32 2011
timezone is America/Los_Angeles
switch>
The show event-monitor arp command performs an SQL-style query on the event monitor database and displays ARP table events as specified by command parameters. The event monitor buffer and all backup logs are synchronized into a single SQLite file.
Command Mode
Privileged EXEC
Command Syntax
show event-monitor arp [GROUP] [MESSAGES] [INTERFACE] [IP] [MAC] [TIME] [VRF]
Optional parameters can be placed in any order.
Example
switch# show event-monitor arp
% Writing 220017 Arp, 234204 Route, 1732559 Mac events to the database
2012-11-06 12:36:10|10.33.6.159|Vlan1417|0000.00dc.cc0d|0|added|2186271
2012-11-06 12:38:20|10.33.7.150|Vlan1417|0000.00f7.e25f|0|added|2186292
2012-11-06 12:38:34|10.33.6.62|Vlan1417|0000:00:01:c2:ac|0|added|2186295
2012-11-06 12:39:13|10.33.7.162|Vlan1417|00:00:00:45:c2:79|0|added|2186299
2012-11-06 12:39:50|10.33.12.54|Vlan1417|||removed|2186303
2012-11-06 12:39:51|10.33.6.218|Vlan1417|00:00:00:e9:36:46|0|added|2186305
2012-11-06 12:40:00|10.33.6.140|Vlan1417|00:00:00:4a:36:c3|0|added|2186308
2012-11-06 12:40:02|10.33.6.239|Vlan1417|00:00:00:5b:a7:21|0|added|2186312
2012-11-06 12:41:16|10.33.7.11|Vlan1417|00:00:00:3f:94:59|0|added|2186320
2012-11-06 12:41:50|10.33.7.60|Vlan1417|00:00:00:1f:3c:8e|0|added|2186346
2012-11-06 12:43:34|10.33.7.81|Vlan1417|00:00:00:e3:0d:9c|0|added|2186762
2012-11-06 12:43:42|10.33.6.214|Vlan1417|00:00:00:7b:09:7d|0|added|2186765
2012-11-06 12:43:59|10.33.7.149|Vlan1417|00:00:00:8d:a6:d8|0|added|2186768
switch#
The show event-monitor igmpsnooping command performs an SQL-style query on the event-monitor database, using the statement specified in the command.
Command Mode
Privileged EXEC
Command Syntax
show event-monitor igmpsnooping [GROUP] [MESSAGES] [MAC] [INTERFACE] [VLAN] [TIME]
switch# show event-monitor igmpsnooping
switch#
The show event-monitor mac command performs an SQL-style query on the event monitor database and displays MAC address table events as specified by command parameters. The event monitor buffer and all backup logs are synchronized into a single SQLite file.
Command Mode
Privileged EXEC
Command Syntax
show event-monitor mac [GROUP] [MESSAGES] [INTERFACE] [MAC] [TIME]
Optional parameters can be placed in any order.
switch# show event-monitor mac
% Writing 0 Arp, 0 Route, 1 Mac events to the database
2012-01-19 13:57:55|1|0808.0808.0808|Ethernet1|configuredStaticMac|added|0
switch# show event-monitor mac match-mac 08:08:08:%
2012-01-19 13:57:55|1|0808.0808.0808|Ethernet1|configuredStaticMac|added|0
The show event-monitor mroute command performs an SQL-style query on the event-monitor database, using the statement specified in the command.
Command Mode
Privileged EXEC
Command Syntax
show event-monitor mroute [GROUP] [MESSAGES] [IP] [INTERFACE] [SRC_IP] [TIME]
Optional parameters can be placed in any order.
Example
switch# show event-monitor mroute
2011-07-28 12:33:28|default|16.17.18.19/32|225.0.0.1/32|||added|30
2011-07-28 12:33:28|default|16.17.18.19/32|225.0.0.1/32|Vlan2|iif|join|31
2011-07-28 12:33:28|default|16.17.18.19/32|225.0.0.1/32|Vlan3|oif|join|32
2011-07-28 12:33:28|default|16.17.18.19/32|225.0.0.1/32|Vlan4|oif|join|33
2011-07-28 12:33:28|default|10.11.12.13/32|225.0.0.2/32|||added|34
2011-07-28 12:33:28|default|10.11.12.13/32|225.0.0.2/32|Vlan3|iif|join|35
2011-07-28 12:33:28|default|10.11.12.13/32|225.0.0.2/32|Vlan2|oif|join|36
2011-07-28 12:33:28|default|16.17.18.19/32|225.0.0.1/32|Vlan4||leave|37
2011-07-28 12:33:28|default|16.17.18.19/32|225.0.0.1/32|||deleted|38
2011-07-28 12:33:28|default|10.11.12.13/32|225.0.0.2/32|||deleted|39
The show event-monitor neighbor command performs an SQL-style query on the event monitor database and displays neighbor table events as specified by command parameters. The event monitor buffer and all backup logs are synchronized into a single SQLite file.
Command Mode
Privileged EXEC
Command Syntax
show event-monitor neighbor [GROUP][MESSAGES][INTERFACE][IP6][MAC][TIME][VRF]
Optional parameters can be placed in any order.
Example
switch# show event-monitor neighbor
2019-09-30 14:37:32.894147|def0::1|Vlan1|default|0005.0005.0005|1|added|1
2019-09-30 14:37:32.894395|def0::2|Vlan1|default|0005.0005.0005|1|added|2
2019-09-30 14:37:32.894607|def0::3|Vlan1|default|0005.0005.0005|1|added|3
2019-09-30 14:37:32.894815|def0::4|Vlan1|default|0005.0005.0005|1|added|4
2019-09-30 14:37:32.895071|def0::5|Vlan1|default|0005.0005.0005|1|added|5
2019-09-30 14:37:32.895303|def0::6|Vlan1|default|0005.0005.0005|1|added|6
2019-09-30 14:37:32.895527|def0::7|Vlan1|default|0005.0005.0005|1|added|7
2019-09-30 14:37:32.895732|def0::8|Vlan1|default|0005.0005.0005|1|added|8
2019-09-30 14:37:32.895968|def0::9|Vlan1|default|0005.0005.0005|1|added|9
2019-09-30 14:37:32.896194|def0::a|Vlan1|default|0005.0005.0005|1|added|10
The show event-monitor route6 command performs an SQL-style query on the event monitor database and displays routing6 table events as specified by command parameters. The event monitor buffer and all backup logs are synchronized into a single SQLite file.
Command Mode
Privileged EXEC
Command Syntax
show event-monitor route6 [GROUP][MESSAGES][IP6][TIME]
Optional parameters can be placed in any order.
Example
switch# show event-monitor route6
2019-09-30 14:59:30.660447|def1::1:0/128|default|receive|0|1|updated|41
2019-09-30 14:59:30.660720|def1::2:0/128|default|attached|0|1|updated|42
2019-09-30 14:59:30.660983|def1::3:0/128|default|staticConfig|0|1|updated|43
2019-09-30 14:59:30.661226|def1::4:0/128|default|kernel|0|1|updated|44
2019-09-30 14:59:30.661469|def1::5:0/128|default|rip|0|1|updated|45
2019-09-30 14:59:30.661706|def1::6:0/128|default|connected|0|1|updated|46
2019-09-30 14:59:30.661968|def1::7:0/128|default|redirect|0|1|updated|47
2019-09-30 14:59:30.662207|def1::8:0/128|default|bgpAggregate|0|1|updated|48
2019-09-30 14:59:30.662451|def1::9:0/128|default|ospfAggregate|0|1|updated|49
2019-09-30 14:59:30.662694|def1::a:0/128|default|ospf|0|1|updated|50
2019-09-30 14:59:30.662935|def1::b:0/128|default|bgp|0|1|updated|51
2019-09-30 14:59:30.663174|def1::c:0/128|default|unknown|0|1|updated|52
switch#
The show event-monitor route command performs an SQL-style query on the event monitor database and displays routing table events as specified by command parameters. The event monitor buffer and all backup logs are synchronized into a single SQLite file.
Command Mode
Privileged EXEC
Command Syntax
show event-monitor route [GROUP][MESSAGES][IP][TIME]
Optional parameters can be placed in any order.
Example
switch# show event-monitor route limit 10
2019-09-30 14:01:21.659428|16.16.16.255/32|default|receiveBcast|0|0|updated|20
2019-09-30 14:01:21.659464|192.168.201.12/30|default|connected|1|0|updated|21
2019-09-30 14:01:21.659497|192.168.1.255/32|default|receiveBcast|0|0|updated|22
2019-09-30 14:01:21.659503|192.168.201.8/32|default|receiveBcast|0|0|updated|23
2019-09-30 14:01:21.659512|16.16.16.0/32|default|receiveBcast|0|0|updated|24
2019-09-30
14:01:21.659517|192.168.201.12/32|default|receiveBcast|0|0|updated|25
2019-09-30
14:01:21.659524|192.168.201.15/32|default|receiveBcast|0|0|updated|26
2019-09-30 14:01:21.659541|192.168.201.8/30|default|connected|1|0|updated|27
2019-09-30 14:01:21.659564|16.16.16.0/24|default|connected|1|0|updated|28
2019-09-30 14:01:21.659578|192.168.201.9/32|default|receive|0|0|updated|29
switch#
The show event-monitor sqlite command performs an SQL-style query on the event monitor database, using the statement specified in the command.
Command Mode
Privileged EXEC
Command Syntax
show event-monitor sqlite statement
Parameter
statement SQLite statement.
Example
switch# show event-monitor sqlite select * from route;
2019-09-30 14:01:21.659428|16.16.16.255/32|default|receiveBcast|0|0|updated|20
2019-09-30 14:01:21.659464|192.168.201.12/30|default|connected|1|0|updated|21
2019-09-30 14:01:21.659497|192.168.1.255/32|default|receiveBcast|0|0|updated|22
2019-09-30 14:01:21.659503|192.168.201.8/32|default|receiveBcast|0|0|updated|23
2019-09-30 14:01:21.659512|16.16.16.0/32|default|receiveBcast|0|0|updated|24
2019-09-30
14:01:21.659517|192.168.201.12/32|default|receiveBcast|0|0|updated|25
2019-09-30
14:01:21.659524|192.168.201.15/32|default|receiveBcast|0|0|updated|26
2019-09-30 14:01:21.659541|192.168.201.8/30|default|connected|1|0|updated|27
2019-09-30 14:01:21.659564|16.16.16.0/24|default|connected|1|0|updated|28
2019-09-30 14:01:21.659578|192.168.201.9/32|default|receive|0|0|updated|29
switch#
The show event-monitor stpunstable command performs an SQL-style query on the event-monitor database, using the statement specified in the command.
Command Mode
Privileged EXEC
Command Syntax
show event-monitor stpunstable [MESSAGES][TIME]
Optional parameters can be placed in any order.
switch# show event-monitor stpunstable limit 5
2019-02-07 07:22:10.286164|Cist|Ethernet5|forward-delay-while|1
2019-02-07 07:22:10.286651|Cist|Ethernet6|forward-delay-while|2
2019-02-07 07:22:10.286844|Cist|Ethernet8|forward-delay-while|3
2019-02-07 07:22:10.287030|Cist|Ethernet14|forward-delay-while|4
2019-02-07 07:22:10.287215|Cist|Ethernet21|forward-delay-while|5
switch#
The show hostname command displays the hostname and the Fully Qualified Domain Name (FQDN) of the switch.
Command Mode
EXEC
Command Syntax
show hostname
Example
switch> show hostname
Hostname: switch_1
FQDN: switch_1.aristanetworks.com
switch>
The show hosts command displays the default domain name, name lookup service style, a list of name server hosts, and the static hostname-IP address maps.
Command Mode
EXEC
Command Syntax
show hosts
Example
switch> show hosts
Default domain is: aristanetworks.com
Name/address lookup uses domain service
Name servers are: 172.22.22.40, 172.22.22.10
Static Mappings:
Hostname IP Addresses
TEST_LAB IPV4 10.24.18.6
PRODUCTION_LAB IPV4 10.24.18.7
SUPPORT_LAB IPV6 2001:0DB8:73:ff:ff:26:fd:90
switch>
The show ip domain-name command displays the switchs IP domain name that is configured with the ip domain name command.
Command Mode
EXEC
Command Syntax
show ip domain-name
Example
switch> show ip domain-name
aristanetworks.com
switch>
The show ip name-server command displays the ip addresses of name-servers in running-config. The name servers are configured by the ip name-server command.
Command Mode
EXEC
Command Syntax
show ip name-server
Example
switch> show ip name-server
172.22.22.10
172.22.22.40
switch>
The show local-clock time-properties command displays the Precision Time Protocol (PTP) clock properties.
Command Mode
Privileged EXEC
Command Syntax
show local-clock time-properties
Example
switch# show local-clock time-properties
Current UTC offset valid: False
Current UTC offset: 0
Leap 59: False
Leap 61: False
Time Traceable: False
Frequency Traceable: False
PTP Timescale: False
Time Source: 0x0
switch#
The show ntp associations command displays the status of connections to NTP servers.
Command Mode
EXEC
Command Syntax
show ntp associations
Example
switch> show ntp associations
remote refid st t when poll reach delay offset jitter
==============================================================================
+l.ntp.arista.co 125.157.10.11 2 u 539 1024 377 121.748 -0.345 0.893
-3.ntp.arista.co 127.31.152.34 2 u 868 1024 377 101.671 2.434 1.529
+2.ntp.arista.co 176.131.12.185 2 u 676 1024 377 116.505 0.03 0.768
*4.ntp.arista.co 120.181.192.192 2 u 696 1024 377 48.431 -0.416 0.15
switch#
The show ntp status command displays the status of NTP on the switch. If the switch clock is not synchronized to an NTP server, the status reads “unsynchronised” and shows the server polling interval. If the clock is synchronized to an NTP server, the status shows the IP address and stratum of the server, the precision of the synchronization, and the polling interval.
Command Mode
EXEC
Command Syntax
show ntp status
Example
switch> show ntp status
synchronised to NTP server (192.168.78.62) at stratum 3
time correct to within 66 ms
polling server every 1024 s
switch>