axdebug¶
Packet Trace Options
axdebug Specification¶
Parameter Value Type Configuration Resource Element Name axdebug Element URI /axapi/v3/axdebug Element Attributes axdebug_attributes Partition Visibility shared Schema axdebug schema
Operations Allowed:
Operation | Method | URI | Payload | |
---|---|---|---|---|
Create Object | POST | /axapi/v3/axdebug | ||
Get Object | GET | /axapi/v3/axdebug | ||
Modify Object | POST | /axapi/v3/axdebug | ||
Replace Object | PUT | /axapi/v3/axdebug | ||
Delete Object | DELETE | /axapi/v3/axdebug |
axdebug attributes¶
apply-config
Description: apply-config is a JSON Block. Please see below for apply-config
Type: Object
Reference Object: /axapi/v3/axdebug/apply-config
capture
Description: capture is a JSON Block. Please see below for capture
Type: Object
Reference Object: /axapi/v3/axdebug/capture
count
Description Maximum packets to capture per cpu. Default is 3000. (Maximum packets to capture. For umlimited, specify 0)
Type: number
Range: 0-65535
Default: 3000
delete
Description: delete is a JSON Block. Please see below for delete
Type: Object
Reference Object: /axapi/v3/axdebug/delete
exit
Description: exit is a JSON Block. Please see below for exit
Type: Object
Reference Object: /axapi/v3/axdebug/exit
filter-config-list
Type: List
Reference Object: /axapi/v3/axdebug/filter-config/{number}
inc-port-num
Description Port Numbers separated by commas(,) and hyphens(-) without spaces. ex: 4,5,10-30, or separated by spaces and double-quoted(“)
Type: string
Format: string-rlx
Maximum Length: 511 characters
Maximum Length: 1 characters
incoming
Description Incoming interface. (For all ports, don’t specify port number.)
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
length
Description Packet length to capture
Type: number
Range: 64-12000
Default: 1518
maxfile
Description Maximum number of debug packet files. Default is 100
Type: number
Range: 1-65535
Default: 100
out-port-num
Description Port Numbers separated by commas(,) and hyphens(-) without spaces. ex: 4,5,10-30, or separated by spaces and double-quoted(“)
Type: string
Format: string-rlx
Maximum Length: 511 characters
Maximum Length: 1 characters
outgoing
Description Outgoing interface (For all ports, don’t specify port number.)
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
pcapng-config
Description: pcapng-config is a JSON Block. Please see below for pcapng-config
Type: Object
Reference Object: /axapi/v3/axdebug/pcapng-config
save-config
Description: save-config is a JSON Block. Please see below for save-config
Type: Object
Reference Object: /axapi/v3/axdebug/save-config
sess-filter-dis
Description Disable session based filter
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
timeout
Description Maximum number of minutes for a capture. Default is 5 minutes. For unlimited, specify 0
Type: number
Range: 0-65535
Default: 5
uuid
Description uuid of the object
Type: string
Maximum Length: 64 characters
Maximum Length: 1 characters
delete¶
Specification Value Type object capture-file
Description Delete a capture file (Specify target filename to change)
Type: string
Format: string-rlx
Maximum Length: 63 characters
Maximum Length: 1 characters
config-file
Description Delete AXDebug config file (Specify target filename to change)
Type: string
Format: string-rlx
Maximum Length: 63 characters
Maximum Length: 1 characters
apply-config¶
Specification Value Type object config-file
Description config file name
Type: string
Format: string-rlx
Maximum Length: 63 characters
Maximum Length: 1 characters
save-config¶
Specification Value Type object config-file
Description config file name
Type: string
Format: string-rlx
Maximum Length: 63 characters
Maximum Length: 1 characters
default
Description save to default config file
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
capture¶
Specification Value Type object brief
Description Print basic packet information
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
current-slot
Description Only for current-slot of chassis
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
detail
Description Include packet payload
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
no-stop
Description Non-stop execution
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
save
Description Save packets into file (Specify filename to save packets)
Type: string
Format: string-rlx
Maximum Length: 63 characters
Maximum Length: 1 characters
exit¶
Specification Value Type object stop-capture
Description stop capture traffic
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
filter-config-list¶
Specification Value Type list Block object keys WORD0
Description WORD0 to compare
Type: string
Maximum Length: 128 characters
Maximum Length: 1 characters
Mutual Exclusion: WORD0, hex, and integer are mutually exclusive
WORD1
Description WORD min value
Type: string
Maximum Length: 128 characters
Maximum Length: 1 characters
WORD2
Description WORD max value
Type: string
Maximum Length: 128 characters
Maximum Length: 1 characters
comp-hex
Description value to compare
Type: string
Format: time-hh:mm
Maximum Length: 2 characters
Maximum Length: 1 characters
dst
Description Destination
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
Mutual Exclusion: dst and l3-proto are mutually exclusive
dst-ip
Description dest IP
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
dst-ipv4-address
Description dest ip address
Type: string
Format: ipv4-address
dst-mac
Description dest mac address
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
dst-mac-addr
Description dest mac address
Type: string
Format: mac-address
dst-port
Description dest port number
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
dst-port-num
Description dest Port number
Type: number
Range: 1-65535
exit
Description Exit from axdebug mode
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
hex
Description Define hex value
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
Mutual Exclusion: hex,integer, word, and WORD0 are mutually exclusive
integer
Description Define decimal value
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
Mutual Exclusion: integer,hex, word, and WORD0 are mutually exclusive
integer-comp
Description value to compare
Type: number
Range: 1-255
integer-max
Description max value
Type: number
Range: 1-255
integer-min
Description min value
Type: number
Range: 1-255
ip
Description IP
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
Mutual Exclusion: ip, l3-proto, and ipv6 are mutually exclusive
ipv4-address
Description ip address
Type: string
Format: ipv4-address
ipv4-netmask
Description IP subnet mask
Type: string
Format: ipv4-netmask
ipv6
Description IPV6
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
Mutual Exclusion: ipv6, l3-proto, and ip are mutually exclusive
ipv6-address
Description ipv6 address
Type: string
Format: ipv6-address
l3-proto
Description ‘arp’: arp; ‘neighbor’: neighbor;
Type: string
Supported Values: arp, neighbor
Mutual Exclusion: l3-proto,dst, src, ip, ipv6, mac, port, proto, and offset are mutually exclusive
length
Description byte length
Type: number
Range: 1-65535
mac
Description mac address
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
Mutual Exclusion: mac and l3-proto are mutually exclusive
mac-addr
Description mac address
Type: string
Format: mac-address
max-hex
Description max value
Type: string
Format: time-hh:mm
Maximum Length: 2 characters
Maximum Length: 1 characters
min-hex
Description min value
Type: string
Format: time-hh:mm
Maximum Length: 2 characters
Maximum Length: 1 characters
number
Description Specify filter id
Type: number
Range: 1-32
offset
Description byte offset
Type: number
Range: 0-65535
Mutual Exclusion: offset and l3-proto are mutually exclusive
oper-range
Description ‘gt’: greater than; ‘gte’: greater than or equal to; ‘se’: smaller than or equal to; ‘st’: smaller than; ‘eq’: equal to; ‘range’: select a range;
Type: string
Supported Values: gt, gte, se, st, eq, range
port
Description port configurations
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
Mutual Exclusion: port and l3-proto are mutually exclusive
port-num-max
Description max port number
Type: number
Range: 1-65535
port-num-min
Description min port number
Type: number
Range: 1-65535
prot-num
Description protocol number
Type: number
Range: 1-255
Mutual Exclusion: prot-num and proto-val are mutually exclusive
proto
Description ip protocol number
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
Mutual Exclusion: proto and l3-proto are mutually exclusive
proto-val
Description ‘icmp’: icmp; ‘icmpv6’: icmpv6; ‘tcp’: tcp; ‘udp’: udp;
Type: string
Supported Values: icmp, icmpv6, tcp, udp
Mutual Exclusion: proto-val and prot-num are mutually exclusive
src
Description Src
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
Mutual Exclusion: src and l3-proto are mutually exclusive
src-ip
Description src IP
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
src-ipv4-address
Description src ip address
Type: string
Format: ipv4-address
src-mac
Description src mac address
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
src-mac-addr
Description src mac address
Type: string
Format: mac-address
src-port
Description src port number
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
src-port-num
Description src Port number
Type: number
Range: 1-65535
user-tag
Description Customized tag
Type: string
Format: string-rlx
Maximum Length: 127 characters
Maximum Length: 1 characters
uuid
Description uuid of the object
Type: string
Maximum Length: 64 characters
Maximum Length: 1 characters
word
Description Define hex value
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
Mutual Exclusion: word, hex, and integer are mutually exclusive
pcapng-config¶
Specification Value Type object exit
Description Exit from axdebug pcapng mode
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
pcapng-enable
Description Enable pcapng
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
ssl-key-enable
Description Enable ssl key tracking
Type: boolean
Supported Values: true, false, 1, 0
Default: 0
uuid
Description uuid of the object
Type: string
Maximum Length: 64 characters
Maximum Length: 1 characters