vrouter-rib-history-show

This command displays past changes to the RIB routing table. It was added to assist with troubleshooting and add time-machine-like capability for packet paths.

Syntax   vrouter-rib-history-show

time date/time: yyyy-mm-ddThh:mm:ss

Specifies the time for the statistics.

start-time start-time

Specifies the start time for the statistics display using the

notation yyyy-mm-ddThh:mm:ss.

end-time end-time

Specifies the end time for the statistics display using the

notation yyyy-mm-ddThh:mm:ss.

duration duration: #d#h#m#s

Specify the duration for the traffic statistics.

interval duration: #d#h#m#s

Specifies the time interval for the statistics display.

since-start|
no-since-start

Specifies if the statistics are collected from the start of the VLAN.

older-than duration: #d#h#m#s

Specifies if the statistics are older than the stated duration.

within-last duration: #d#h#m#s

Specifies the statistics collected within the last duration.

caller init|control|logger|gre-tunnel|flush|user|static-route-init|   fabric-tunnel|router-if|vnet-service|l3-check|vrf|vxlan-routing

Specifies the feature that made the change for this entry.

last-caller init|control|logger|gre-tunnel|flush|user|   static-route-init|fabric-tunnel|router-if|vnet-service|l3-check|vrf|vxlan-routing

Specifies the most recent caller for this entry.

reason save|restart|add|modify|remove|remove-all|inject|evict| router-delete

Specifies the reason for the history entry.

last-reason save|restart|add|modify|remove|remove-all|inject|evict|    router-delete

Specifies the most recent reason for the entry.

changes vrid|ip|prelen|number-of-nexthops|nexthops-in-hw|ecmp-group| nexthop|egress-id|flags|vlan|intf_ip|intf_id|number-of-tunnels

Specifies the change in the entry.

count count-number

Specifies the count for RIB history.

vrid id

Specifies the virtual router ID.

ip ip-address

Specifies the IP address.

prelen number 

Specifies the prefix length as a value from 0 to 128.

number-of-nexthops number-of-nexthops-number 

Specifies the number of next hops in the route.

nexthops-in-hw nexthops-in-hw-number 

Specifies the number next hops in hardware.

ecmp-group ecmp-group-number 

Specifies the ECMP group number.

nexthop ip-address

Specifies the next hop IP address.

egress-id egress-id-number 

Specifies the egress ID.

flags ECMP|in-hw|in-cache|
in-ecmp-cache|local-subnet|drop

Specifies the flags for the routes.

ECMP

in-hw - stored in hardware

cache - stored in the RIB.

local-subnet - stored in the local subnet

vnet vnet name 

Specifies the vNET name.

bd bridge-domain name

Specifies the bridge domain name.

vlan vlan-id

Specifies the VLAN ID.

intf_ip ip-address

Specifies the interface IP address.

intf_id vrouter-hw-if hw-id

Specifies the router interface.

number-of-tunnels number-of-tunnels-number 

Specifies the number of tunnels dependent on the route.

Defaults   None

Access   Network-admin

History   Command introduced in Version 2.4.1.

Usage   Use this command to display the RIB history.

Examples  To display RIB history, use the following syntax:

CLI network-admin@switch > vrouter-rib-history-show

time:                   15:29:41

caller:                 router-if

reason:                 add

ip:                     10.16.111.0 24

prelen:                 24

nexthop:                10.16.111.1

flags:                  in-hw,local-subnet

vlan:                   111

intf_ip:                10.16.111.1

intf_id:                

time:                   15:29:43

caller:                 router-if

reason:                 add

ip:                     10.16.100.0

prelen:                 24

nexthop:                10.16.100.1

flags:                  in-hw,local-subnet

vlan:                   100

intf_ip:                10.16.100.1

intf_id:                1

vrouter-rib-history-settings-modify

This command allows you to modify the RIB history log settings on the switch.

Syntax   vrouter-rib-history-settings-modify 

enable|disable

Specify if you want to enable RIB history logging on the switch.

disk-space disk-space-number

Specify if the amount of disk space allocated for the log files.

log-file-count number

Specify the number of log files for rotation. This is a value between 1 and 20.

Defaults   None

Access   Network-admin

History   Command introduced in Version 2.4.1.

Usage   Use this command to modify the RIB history log settings.

Examples  To enable RIB history logging, use the following syntax:

CLI network-admin@switch > vrouter-rib-history-settings-modify enable

vrouter-rib-history-settings-show

This command displays RIB history information.

Syntax   vrouter-rib-history-settings-show

enable|disable

Specify if you want to enable RIB history logging on the switch.

disk-space disk-space-number

Specify if the amount of disk space allocated for the log files.

log-file-count number

Specify the number of log files for rotation. This is a value between 1 and 20.

Defaults   None

Access   Network-admin

History   Command introduced in Version 2.4.1.

Usage   Use this command to view the RIB history settings

Examples  To view the RIB history settings, use the following syntax:

CLI network-admin@switch > vrouter-rib-history-settings-show

switch:         switchname

enable:         yes

disk-space:     50M

log-file-count: 10

vrouter-rib-routes-lookup

Netvisor allows you to display information about routes in the Routing Information database using this command.

Syntax   vrouter-rib-routes-lookup

vrid vr-id

Specifies the virtual router ID.

ip ip-address

Specifies the IP address.

Defaults   None

Access   Network administrator

History   Command introduced in Version 5.1.0

Usage   Use this command to display routes in the RIB.

Examples  To display routes, use the following syntax:

CLI network-admin@switch > vrouter-rib-routes-lookup

vrouter-rib-routes-show

This command is used to display the Routing Information database (RIB) for vRouter routes.

Syntax   vrouter-rib-routes-show

vrid vrid-number

Specifies the vRouter ID assigned.

ip ip-address

Specifies the IP address.

prelen prelen-number

Specifies the prefix length.

numer-of-nexthops numer-of-nexthops-
number

Specifies the number of next hops for the route.

nexthops-in-hw nexthops-in-hw-
number

Specifies the number of next hops for hardware routing.

nexthop ip-address

Specifies the IP address for the next hop on the route.

ecmp-group ecmp-group-number

Specifies the Equal Cost Multipath (ECMP) group number.

egress-id egress-id-number

Specifies the egress ID assigned to an outgoing route.

flags ECMP|in-hw|in-cache|
local-subnet

Specifies the flags for the routes.

ECMP

in-hw - stored in hardware

cache - stored in the RIB.

local-subnet - stored in the local subnet.

vlan vlan-number

Specifies the VLAN of the routes.

intf_ip ip-address

Specifies the IP address of the interface participating in the routing table.

intf_id vrouter-hw-if hw-id

Specifies the hardware ID if the router interface is hardware.

ecmp-nexthops|no-ecmp-
nexthops

Specifies filter to display single/mutiple route entries (per nexthop)

number-of-tunnels number-of-tunnels-number

Specifies the number of tunnels dependent on this route.

Defaults   None

Access   CLI

History   

Version 2.1

Command introduced.

Version 2.2

The parameters, vlan and vxlan, deprecated.

Version 2.2.3

The parameters, vlan, and intf_id added.

Version 2.2.5

The parameter, local-subnet, added to RIB route flags.

Version 2.4

The parameter, number-of-tunnels, added.

Version 2.5.4

The parameter, ecmp-nexthops|no-ecmp-
nexthops,added.

Usage   Use this command to display the RIB for vRouters which can be helpful when troubleshooting a connection.

Examples  To display the RIB routes, use the following command:

CLI network-admin@switch > vrouter-rib-routes-show

switch:             Spine-1

vrid:               0

ip:                 192.168.10.52

prelen:             30

number-of-nexthops: 1

nexthops-in-hw:     1

nexthop:            192.168.0.225

egress-id:          100037

flags:              in-hw

vlan:               4081

intf-ip:            192.168.0.226

intf-id:            10

number-of-tunnels:  0

switch:             Spine-1

vrid:               0

ip:                 192.168.10.24

prelen:             30

number-of-nexthops: 1

nexthops-in-hw:     1

nexthop:            192.168.0.225

egress-id:          100037

flags:              in-hw

vlan:               4081

intf-ip:            192.168.0.226

intf-id:            10

number-of-tunnels:  0