Pica8 Commands

Command List


ovs-appctl pica/show

This command displays available resources for open flow. 

Max Hardware Flow Entry Limitation:
    TCAM Table    : 8192
    Egress Table  : 512
    VFilter Table : 512
    L2 Table      : 32768
    L3 Table      : 24000

Valid Interfaces On Switch as5812_54x:
    Physical interfaces:
        te-1/1/1(1)       te-1/1/2(2)       te-1/1/3(3)       te-1/1/4(4)
        te-1/1/5(5)       te-1/1/6(6)       te-1/1/7(7)       te-1/1/8(8)
        te-1/1/9(9)       te-1/1/10(10)     te-1/1/11(11)     te-1/1/12(12)
        te-1/1/13(13)     te-1/1/14(14)     te-1/1/15(15)     te-1/1/16(16)
        te-1/1/17(17)     te-1/1/18(18)     te-1/1/19(19)     te-1/1/20(20)
        te-1/1/21(21)     te-1/1/22(22)     te-1/1/23(23)     te-1/1/24(24)
        te-1/1/25(25)     te-1/1/26(26)     te-1/1/27(27)     te-1/1/28(28)
        te-1/1/29(29)     te-1/1/30(30)     te-1/1/31(31)     te-1/1/32(32)
        te-1/1/33(33)     te-1/1/34(34)     te-1/1/35(35)     te-1/1/36(36)
        te-1/1/37(37)     te-1/1/38(38)     te-1/1/39(39)     te-1/1/40(40)
        te-1/1/41(41)     te-1/1/42(42)     te-1/1/43(43)     te-1/1/44(44)
        te-1/1/45(45)     te-1/1/46(46)     te-1/1/47(47)     te-1/1/48(48)
        xe-1/1/1(73)      xe-1/1/2(74)      xe-1/1/3(75)      xe-1/1/4(76)
        xe-1/1/5(77)      xe-1/1/6(78)      
    LAG   interfaces:    ae1(1025) - ae1023(2047)
    Bond  interfaces:  bond1(2049) - bond1023(3071)
    GRE   interfaces:   gre1(3073) - gre1023(4095)
    VXLAN interfaces: vxlan1(4097) - vxlan1023(5119)
    L2GRE interfaces: l2gre1(5121) - l2gre1023(6143)

ovs-appctl bridge/clear-counts  bridge [interface]

This command clears ports statistics. 

admin@PicOS-OVS$ovs-appctl bridge/clear-counts br0
admin@PicOS-OVS$ovs-appctl bridge/clear-counts br0 ge-1/1/1

ovs-appctl  pica/dump-flows [--sort | --rsort]

 

Shows the hardware flow.

 

User can use [--sort|--rsort]to sort the output of the hardware flow dump by priority.

admin@PicOS-OVS$ovs-appctl pica/dump-flows        
#4 normal permanent flow_id=7 priority=2,in_port=49, actions:50
#0 normal_d permanent flow_id=2 priority=0, actions:drop
#5 normal permanent flow_id=8 priority=3,in_port=51, actions:50
Total 3 flows in HW.
 
admin@PicOS-OVS$ovs-appctl pica/dump-flows --sort 
#0 normal_d permanent flow_id=2 priority=0, actions:drop
#4 normal permanent flow_id=7 priority=2,in_port=49, actions:50
#5 normal permanent flow_id=8 priority=3,in_port=51, actions:50
Total 3 flows in HW.

admin@PicOS-OVS$ovs-appctl pica/dump-flows --rsort
#5 normal permanent flow_id=8 priority=3,in_port=51, actions:50
#4 normal permanent flow_id=7 priority=2,in_port=49, actions:50
#0 normal_d permanent flow_id=2 priority=0, actions:drop
Total 3 flows in HW.

ovs-appctl bridge/dump-flows bridge

Shows all software flows, including those flows not added by user or switch.

admin@SpineA-OVS$ovs-appctl bridge/dump-flows br0
duration=2402s, n_packets=n/a, n_bytes=0, priority=24600,dl_vlan=4094,dl_dst=02:00:00:08:00:01/ff:03:ff:ff:ff:ff,actions=set_field:4196->vlan_vid,set_field:00:0c:29:70:2e:b8->eth_dst,output:2
duration=2402s, n_packets=n/a, n_bytes=0, priority=24600,dl_vlan=4094,dl_dst=02:00:00:08:00:02/ff:03:ff:ff:ff:ff,actions=set_field:4196->vlan_vid,set_field:00:0c:29:fd:75:ae->eth_dst,output:1
duration=2656s, n_packets=n/a, n_bytes=0, priority=22016,ip,in_port=2,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00,nw_proto=112,actions=CONTROLLER:65535,output:1
duration=2656s, n_packets=n/a, n_bytes=0, priority=22016,ip,in_port=1,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00,nw_proto=112,actions=output:2,CONTROLLER:65535
duration=2658s, n_packets=n/a, n_bytes=38984, priority=65535,dl_type=0x88cc,actions=CONTROLLER:65535
duration=2656s, n_packets=n/a, n_bytes=0, priority=22000,in_port=2,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00,actions=output:1
duration=2656s, n_packets=n/a, n_bytes=0, priority=22000,in_port=1,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00,actions=output:2
duration=2656s, n_packets=n/a, n_bytes=23628, priority=2,in_port=1,actions=CONTROLLER:65535
duration=2656s, n_packets=n/a, n_bytes=15710, priority=2,in_port=2,actions=CONTROLLER:65535
duration=53s, n_packets=n/a, n_bytes=1152296, priority=25000,in_port=1,dl_vlan=100,dl_src=00:0c:29:fd:75:ae,dl_dst=00:0c:29:70:2e:b8,actions=output:2
duration=48s, n_packets=n/a, n_bytes=1588, priority=25000,in_port=2,dl_vlan=100,dl_src=00:0c:29:70:2e:b8,dl_dst=00:0c:29:fd:75:ae,actions=output:1
duration=2658s, n_packets=n/a, n_bytes=0, priority=0,actions=drop
duration=2656s, n_packets=n/a, n_bytes=576, priority=22016,arp,in_port=1,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00,actions=output:2,CONTROLLER:65535
duration=2656s, n_packets=n/a, n_bytes=1220, priority=22016,arp,in_port=2,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00,actions=CONTROLLER:65535,output:1
duration=2656s, n_packets=n/a, n_bytes=512, priority=22016,rarp,in_port=2,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00,actions=CONTROLLER:65535,output:1
duration=2656s, n_packets=n/a, n_bytes=512, priority=22016,rarp,in_port=1,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00,actions=output:2,CONTROLLER:65535
table_id=254, duration=2658s, n_packets=n/a, n_bytes=0, priority=1,actions=drop
table_id=254, duration=2658s, n_packets=n/a, n_bytes=0, priority=0,reg0=0x3,actions=drop
table_id=254, duration=2658s, n_packets=n/a, n_bytes=0, priority=0,reg0=0x1,actions=controller(reason=no_match)
table_id=254, duration=2658s, n_packets=n/a, n_bytes=0, priority=0,reg0=0x2,actions=drop
table_id=254, duration=2658s, n_packets=n/a, n_bytes=0, priority=2,recirc_id=0,actions=resubmit(,0)

ovs-appctl cfm/set-fault [interface] normal|false|true

If true, a CFM fault was manually triggered.
If false, force to set no CFM fault.
If normal, return to normal CFM.

ovs-appctl cfm/show [interface]

Show cfm status.

admin@PicOS-OVS$ovs-appctl cfm/show
---- te-1/1/49 ----
MPID 2000: extended fault_override
fault: override
average health: 100
opstate: up
remote_opstate: up
interval: 1000ms
next CCM tx: 879ms
next fault check: 165ms
Remote MPID 2100
recv since check: true
opstate: up
---- te-1/1/50 ----
MPID 2001: extended fault_override
fault: override
average health: 100
opstate: up
remote_opstate: up
interval: 1000ms
next CCM tx: 879ms
next fault check: 569ms
Remote MPID 2101
recv since check: true
opstate: up

ovs-appctl inband/dump-flows bridge

Show inband flows. 

ovs-appctl inband/enable true|false

Enable or disable inband mode.

ovs-appctl inband/show

Show inband status.

ovs-appctl lacp/show

This command displays the LACP status on the configured ports.

admin@PicOS-OVS$ovs-appctl lacp/show
---- ae1 ----

status: active negotiated
sys_id:00:11:11:11:11:11
sys_priority: 32768
aggregation key: 1
lacp_time: fast

slave: ge-1/1/1:
current attached
port_id: 1
port_priority: 32768
may_enable: true
actor sys_id:00:11:11:11:11:11
actor sys_priority:32768
actor port_id: 1
actor port_priority:32768
actor key: 1
actor state: activity timeout synchronized collecting distributing
partner sys_id:00:0c:29:fd:75:b8
partner sys_priority: 65535
partner port_id: 2
partner port_priority:255
partner key: 17
partner state: activity timeout aggregation synchronized collecting distributing
---- ae2 ----
status: passive
sys_id: ff:ff:ff:ff:ff:00
sys_priority: 32768
aggregation key: 3
lacp_time: slow

slave: te-1/1/3: current detached
port_id: 3
port_priority: 32768
may_enable: false

actor sys_id: ff:ff:ff:ff:ff:00
actor sys_priority: 32768
actor port_id: 3
actor port_priority: 32768
actor key: 3
actor state: collecting distributing

partner sys_id: ff:ff:ff:ff:ff:00
partner sys_priority: 32768
partner port_id: 2
partner port_priority: 32768
partner key: 2
partner state: activity collecting distributing



Copyright © 2024 Pica8 Inc. All Rights Reserved.