Fortinet white logo
Fortinet white logo

CLI Reference

diagnose lpmd

diagnose lpmd

Longest Prefix Match Daemon

This topic includes the following commands:

diagnose lpmd debug

set and show debug flags

diagnose lpmd debug

diagnose lpmd debug query

Query kernel route entry.

diagnose lpmd debug query

diagnose lpmd debug set

set debug flags : ERROR, INFO, DEBUG

diagnose lpmd debug set

diagnose lpmd debug show

Show current debug level.

diagnose lpmd debug show

diagnose lpmd ktrie

Ktrie related CMD.

diagnose lpmd ktrie

diagnose lpmd ktrie next_hop

Dump next hop entry.

diagnose lpmd ktrie next_hop

diagnose lpmd ktrie query

Query ktrie entry.

diagnose lpmd ktrie query <0-511> <XXX.XXX.XXX.XXX/xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx>

Parameter

Description

Type

Size

<0-511>

Virtual Route ID.

string

<XXX.XXX.XXX.XXX/xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx>

IP address./IPv6 address.

string

diagnose lpmd ktrie route

Dump ktrie entry.

diagnose lpmd ktrie route

diagnose lpmd ktrie stats

Dump ktrie stats.

diagnose lpmd ktrie stats

diagnose lpmd route

Routing table related CMD.

diagnose lpmd route

diagnose lpmd route add

Add route to LPM.

diagnose lpmd route add <XXX.XXX.XXX.XXX> <0-32/128> <XXX.XXX.XXX.XXX> <intf-name> <0-255> <0-4096> <0-4096> <0-256> <0-4294967295> <0-4096> <0-4294967295>

Parameter

Description

Type

Size

<XXX.XXX.XXX.XXX>

IP address.

string

<0-32/128>

Subnet prefix length.

string

<XXX.XXX.XXX.XXX>

Gateway IP address.

string

<intf-name>

Interface Name.

string

<0-255>

Routing table id (e.g. RT_TABLE_MAIN(254)).

string

<0-4096>

Routing scope (e.g., RT_SCOPE_UNIVERS(0)).

string

<0-4096>

Routing type (e.g. RTN_UNICAST(1)).

string

<0-256>

Routing protocol (e.g. RTPROT_STATIC(4))

string

<0-4294967295>

Routing priority.

string

<0-4096>

Routing tos.

string

<0-4294967295>

LPM route flags.

string

diagnose lpmd route del

Delete route from LPM.

diagnose lpmd route del <XXX.XXX.XXX.XXX> <0-32/128> <XXX.XXX.XXX.XXX> <intf-name> <0-255> <0-4096> <0-4096> <0-256> <0-4294967295> <0-4096> <0-4294967295>

Parameter

Description

Type

Size

<XXX.XXX.XXX.XXX>

IP address.

string

<0-32/128>

Subnet prefix length.

string

<XXX.XXX.XXX.XXX>

Gateway IP address.

string

<intf-name>

Interface Name.

string

<0-255>

Routing table id (e.g. RT_TABLE_MAIN(254)).

string

<0-4096>

Routing scope (e.g., RT_SCOPE_UNIVERS(0)).

string

<0-4096>

Routing type (e.g. RTN_UNICAST(1)).

string

<0-256>

Routing protocol (e.g. RTPROT_STATIC(4))

string

<0-4294967295>

Routing priority.

string

<0-4096>

Routing tos.

string

<0-4294967295>

LPM route flags.

string

diagnose lpmd route dump

Dump lpm compiler entry.

diagnose lpmd route dump <4 | 6>

Parameter

Description

Type

Size

<4 | 6>

IPv4 | IPv6.

string

diagnose lpmd route query

Query LPM entry.

diagnose lpmd route query <0-511> <XXX.XXX.XXX.XXX/xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx> <np_id>

Parameter

Description

Type

Size

<0-511>

Virtual Route ID.

string

<XXX.XXX.XXX.XXX/xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx>

IP address./IPv6 address.

string

<np_id>

NPU ID.

string

diagnose lpmd stats

Dump lpm compiler stats.

diagnose lpmd stats

diagnose lpmd

diagnose lpmd

Longest Prefix Match Daemon

This topic includes the following commands:

diagnose lpmd debug

set and show debug flags

diagnose lpmd debug

diagnose lpmd debug query

Query kernel route entry.

diagnose lpmd debug query

diagnose lpmd debug set

set debug flags : ERROR, INFO, DEBUG

diagnose lpmd debug set

diagnose lpmd debug show

Show current debug level.

diagnose lpmd debug show

diagnose lpmd ktrie

Ktrie related CMD.

diagnose lpmd ktrie

diagnose lpmd ktrie next_hop

Dump next hop entry.

diagnose lpmd ktrie next_hop

diagnose lpmd ktrie query

Query ktrie entry.

diagnose lpmd ktrie query <0-511> <XXX.XXX.XXX.XXX/xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx>

Parameter

Description

Type

Size

<0-511>

Virtual Route ID.

string

<XXX.XXX.XXX.XXX/xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx>

IP address./IPv6 address.

string

diagnose lpmd ktrie route

Dump ktrie entry.

diagnose lpmd ktrie route

diagnose lpmd ktrie stats

Dump ktrie stats.

diagnose lpmd ktrie stats

diagnose lpmd route

Routing table related CMD.

diagnose lpmd route

diagnose lpmd route add

Add route to LPM.

diagnose lpmd route add <XXX.XXX.XXX.XXX> <0-32/128> <XXX.XXX.XXX.XXX> <intf-name> <0-255> <0-4096> <0-4096> <0-256> <0-4294967295> <0-4096> <0-4294967295>

Parameter

Description

Type

Size

<XXX.XXX.XXX.XXX>

IP address.

string

<0-32/128>

Subnet prefix length.

string

<XXX.XXX.XXX.XXX>

Gateway IP address.

string

<intf-name>

Interface Name.

string

<0-255>

Routing table id (e.g. RT_TABLE_MAIN(254)).

string

<0-4096>

Routing scope (e.g., RT_SCOPE_UNIVERS(0)).

string

<0-4096>

Routing type (e.g. RTN_UNICAST(1)).

string

<0-256>

Routing protocol (e.g. RTPROT_STATIC(4))

string

<0-4294967295>

Routing priority.

string

<0-4096>

Routing tos.

string

<0-4294967295>

LPM route flags.

string

diagnose lpmd route del

Delete route from LPM.

diagnose lpmd route del <XXX.XXX.XXX.XXX> <0-32/128> <XXX.XXX.XXX.XXX> <intf-name> <0-255> <0-4096> <0-4096> <0-256> <0-4294967295> <0-4096> <0-4294967295>

Parameter

Description

Type

Size

<XXX.XXX.XXX.XXX>

IP address.

string

<0-32/128>

Subnet prefix length.

string

<XXX.XXX.XXX.XXX>

Gateway IP address.

string

<intf-name>

Interface Name.

string

<0-255>

Routing table id (e.g. RT_TABLE_MAIN(254)).

string

<0-4096>

Routing scope (e.g., RT_SCOPE_UNIVERS(0)).

string

<0-4096>

Routing type (e.g. RTN_UNICAST(1)).

string

<0-256>

Routing protocol (e.g. RTPROT_STATIC(4))

string

<0-4294967295>

Routing priority.

string

<0-4096>

Routing tos.

string

<0-4294967295>

LPM route flags.

string

diagnose lpmd route dump

Dump lpm compiler entry.

diagnose lpmd route dump <4 | 6>

Parameter

Description

Type

Size

<4 | 6>

IPv4 | IPv6.

string

diagnose lpmd route query

Query LPM entry.

diagnose lpmd route query <0-511> <XXX.XXX.XXX.XXX/xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx> <np_id>

Parameter

Description

Type

Size

<0-511>

Virtual Route ID.

string

<XXX.XXX.XXX.XXX/xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx>

IP address./IPv6 address.

string

<np_id>

NPU ID.

string

diagnose lpmd stats

Dump lpm compiler stats.

diagnose lpmd stats