Command map

show bgp decode

Decode a hex-encoded BGP message into readable JSON.

Ze command

Registry path
show bgp decode
Usage
show bgp decode [type <open|update|notification|keepalive>] [nlri <nlri>] [family <family>] [pcap <pcap>] [plugin <plugin>] [message <message>]
Mode
read-only, offline
Wire method
ze-bgp:show-decode
Backends
any backend
Task support
optional: the MCP call is synchronous, which is the default
Subcommands
none: this command takes no subcommand
Pipes, always
json, ndjson, table, text, yaml, raw, no-more, save
Pipes, when the answer has rows
match, count, first, last, display, fill
Pipes, while streaming
log
Pipes, local process only
save

Description

Paste a hex BGP UPDATE and get back parsed attributes,
NLRI, and withdrawn prefixes. Use it to read pcap captures or to debug wire
issues. The web UI carries the same tool under tools.

Arguments

NameTypeRequiredValuesSummaryDescription
typeenumnoopen update notification keepaliveMessage type to decode asReads the message as this type. Without it, a message with a BGP header is read as the type its header names, and one without a header as an UPDATE body.
nlristringnoany value of this typeDecode as NLRI of this familyReads the payload as NLRI alone, of this address family (afi/safi).
familystringnoany value of this typeAddress family of an UPDATEThe address family an UPDATE body is decoded under (afi/safi).
pcapstringnoany value of this typeCapture file to decodeA packet capture to read every BGP message from, in the order the messages completed on the wire.
pluginstringnoany value of this typePlugin that decodes firstA registered plugin that decodes capabilities and NLRI before the other registered decoders. The name alone forks the plugin, ze.<name> runs it in a goroutine and ze-<name> calls it in-process. A name no registered plugin decodes under is refused. A program path is taken only by the local ze bgp decode command's own option, since it names a program on the host the decode runs on.
messagestringnoany value of this typeHexadecimal messageThe message in hexadecimal. Colons and spaces between the digits are stripped, so it may span several words.

Mapping status

No vendor equivalent has been curated yet for this Ze command.

Juniper Junos MX

No equivalent is listed for this vendor yet.

Cisco IOS XR

No equivalent is listed for this vendor yet.

Nokia SR OS

No equivalent is listed for this vendor yet.

VyOS

No equivalent is listed for this vendor yet.