gRIBI display commands
SR Linux supports display commands to provide operational information about gRIBI clients and routes.
Displaying gRIBI client information
Enter the following command:
info from state system gribi-server client <id>
Where <id> refers to the system generated ID for the client.
Available options are as follows:
- election-id: Election ID of this client
- persistence-mode: The defined persistence mode as signaled by the client
- remote-host: Remote host of the client
- remote-port: Remote port of the client
- start-time: Time the client first connected
- user: Authenticated username for the client
- user-agent: User agent used for by the client
info from state system gribi-server client election-id
--{ * candidate shared default }--[ ]--
# info from state system gribi-server client 0 election-id
system {
gribi-server {
client 0 {
election-id 1:1
}
}
}
info from state system gribi-server client persistence-mode
--{ * candidate shared default }--[ ]--
# info from state system gribi-server client 0 persistence-mode
system {
gribi-server {
client 0 {
persistence-mode preserve
}
}
}
info from state system gribi-server client remote-host
--{ * candidate shared default }--[ ]--
# info from state system gribi-server client 0 remote-host
system {
gribi-server {
client 0 {
remote-host 10.10.0.1
}
}
}
info from state system gribi-server client remote-port
--{ * candidate shared default }--[ ]--
# info from state system gribi-server client 0 remote-port
system {
gribi-server {
client 0 {
remote-port 33214
}
}
}
info from state system gribi-server client start-time
--{ * candidate shared default }--[ ]--
# info from state system gribi-server client 0 start-time
system {
gribi-server {
client 0 {
start-time "31 seconds ago"
}
}
}
info from state system gribi-server client user
--{ * candidate shared default }--[ ]--
# info from state system gribi-server client 0 user
system {
gribi-server {
client 0 {
user __gribi__
}
}
}
info from state system gribi-server client user-agent
--{ * candidate shared default }--[ ]--
# info from state system gribi-server client 0 user-agent
system {
gribi-server {
client 0 {
user-agent "grpc-python/1.35.0 grpc-c/14.0.0 (linux; chttp2)"
}
}
}
Displaying gRIBI route information
Enter the following command:
show network-instance <id> route-table
show network-instance route-table
--{ * candidate shared default }--[ ]--
# show network-instance vrf route-table
------------------------------------------------------------------------------------------------
IPv4 unicast route table of network instance vrf
-------------------------------------------------------------------------------------------------
+--------------+------+-----------+---------------+--------+---------+--------+--------+--------+
| Prefix | ID | Route | Route Owner | Active | Metric | Pref | Next- | Next- |
| | | Type | | | | | hop | hop In |
| | | | | | | | (Type) | terfac |
| | | | | | | | | e |
+==============+======+===========+===============+========+=========+========+========+========+
| 10.10.1.0/24 | 1 | gribi | gribi_server | True | 1 | 4 | | |
+--------------+------+-----------+---------------+--------+---------+--------+--------+--------+
-------------------------------------------------------------------------------------------------
IPv4 routes total : 1
IPv4 prefixes with active routes : 1
IPv4 prefixes with active ECMP routes: 0
-------------------------------------------------------------------------------------------------