VeloCloud Edge CLI Documentation
VeloCloud Edge CLI Documentation
VeloCloud™
Edge CLI Documentation
Version History
Doc Version 1.0
Table of Contents
Version History 1
Copyright 13
Trademarks 13
Software License Agreement 13
Disclaimer 13
Overview 14
Purpose of this Guide 14
Version Compatibility 14
CLI Commands 15
debug.py --applications 15
Brief Description and Use Case 15
Sample Command 15
Related Commands 15
debug.py --bgp_view 15
Brief Description and Use Cases 15
Sample Command 16
debug.py --bgp_view_summary 16
Brief Description and Use Case 16
Sample Command 16
debug.py --bgp_redis_dump 17
Brief Description and Use Case 17
Sample Command 17
debug.py --bgpd_dump 17
Brief Description and Use Case 17
Sample Command 18
Related Commands 19
debug.py --biz_pol_dump 20
Brief Description and Use Case 20
Sample Command 20
Page 2
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --bw_retest 21
Brief Description and Use Case 21
Sample Command 21
debug.py --bw_testing_dump 22
Brief Description and Use Case 22
Sample Command 22
debug.py --chat_stats 23
Brief Description and Use Case 23
Sample Command 23
Related Commands 24
debug.py --clear_arp_cache 24
Brief Description and Use Case 24
Sample Command 24
Related Commands 25
debug.py --cluster_info 25
Brief Description and Use Case 25
Sample Command 25
Related Commands 25
debug.py --control_bytes 25
Brief Description and Use Case 25
Sample Command 26
debug.py --Current_apps 27
Brief Description and Use Case 27
Sample Command 27
debug.py --Dce_edge 27
Brief Description and Use Case (see debug.py --path) 27
Sample Command 27
debug.py --De2e_delete 28
Brief Description and Use Case (see debug.py --path) 28
Sample Command 28
Related Commands 28
Page 3
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --De2e_print 29
Brief Description and Use Case 29
Sample Command 29
Related Commands 29
debug.py --debug_bw_test 30
Brief Description and Use Case 30
Sample Command 30
debug.py --dns_name_cache 30
Brief Description and Use Case 30
Sample Command 30
Related Commands 30
debug.py --dpdk_bond_dump 31
Brief Description and Use Case 31
Sample Command 31
debug.py --dpdk_ports_dump 31
Brief Description and Use Case 31
Sample Command 31
debug.py --Edge_list 32
Brief Description and Use Case 32
Sample Command 32
Related Commands 32
debug.py --Edge_peers 32
Brief Description and Use Case 32
Sample Command 33
debug.py --Fast_learning_db 34
Brief Description and Use Case 34
Sample Command 34
Related Commands 34
debug.py --Firewall_dump 34
Brief Description and Use Case 34
Sample Command 34
Page 4
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --Flow_dump 35
Brief Description and Use Case 35
Sample Command 35
Related Commands 36
debug.py --flow_flush 36
Brief Description and Use Case 36
Sample Command 36
Related Commands 37
debug.py --Flow_route_dump 37
Brief Description and Use Case 37
Sample Command 37
Related Commands 38
debug.py --Gateways 38
Brief Description and Use Case 38
Sample Command 38
debug.py --Ha 38
Brief Description and Use Case 38
Sample Command 38
debug.py --ha verp 39
Brief Description and Use Case 39
Sample Command 39
debug.py --ha intf 42
Brief Description and Use Case 42
Sample Command 42
Related Commands 42
debug.py --ha lstate 43
Brief Description and Use Case 43
Sample Command 43
Related Commands 44
debug.py --ha apath 44
Brief Description and Use Case 44
Page 5
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Sample Command 44
Related Commands 45
debug.py --ha spath 45
Brief Description and Use Case 45
Sample Command 45
Related Commands 46
debug.py --ha tcp 46
Brief Description and Use Case 46
Sample Command 46
Related Commands 46
debug.py --Ha_flow_dump 48
Brief Description and Use case 48
Sample Command 48
debug.py --Ha_switch 48
Brief Description and Use case (see debug.py --path) 48
Sample Command 48
debug.py --Handoffqdbg 48
Brief Description and Use Case 48
Sample Command 48
Related Commands 49
debug.py --Hub_list 50
Brief Description and Use Case 50
Sample Command 50
Related Commands 50
debug.py --Igmp_dump 50
Brief Description and Use Case (see debug.py --path) 50
Sample Command 50
Related Commands 50
debug.py --Ike 51
Brief Description and Use Case 51
Sample Command 51
Page 6
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Related Commands 51
debug.py --Ike_childsa 52
Brief Description and Use Case 52
Sample Command 52
Related Commands 52
debug.py --Ike_debug_instance 52
Brief Description and Use Case 52
Sample Command 52
Related Commands 53
debug.py --Ike_sa 53
Brief Description and Use Case 53
Sample Command 53
Related Commands 53
debug.py --ike_setdebuglevel 53
Brief Description and Use Case 53
Sample Command 53
Related Commands 53
debug.py --Ike_setdynamiclog 54
Brief Description and Use Case 54
Sample Command 54
Related Commands 54
debug.py --Ike_spd 54
Brief Description and Use Case 54
Sample Command 54
Related Commands 54
debug.py --Interfaces 54
Brief Description and Use Case 54
Sample Command 55
Related Commands 55
debug.py --Link_stats 55
Brief Description and Use Case 55
Page 7
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Sample Command 55
Related Commands 56
debug.py --mcr_dump 57
Brief Description and Use Case 57
Sample Command 57
debug.py --pimd_dump 57
debug.py --nat_db_flush 57
debug.py --nat_dump 57
debug.py --nat_dump_depth 57
debug.py --nvs_list 58
debug.py --ospf_info 58
Brief Description and Use Case 58
Sample Command 59
debug.py --ospf_redis_dump 61
Brief Description and Use Case 61
Sample Command 61
debug.py --Ospf_view 61
Brief Description and Use Case 61
Sample Command 62
debug.py --Ospfd_dump 62
Brief Description and Use Case 62
Sample Command (see the images on the following pages) 63
debug.py --Overlay_routes 69
Brief Description and Use Case 69
Page 8
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Sample Command
69
debug.py --Path_stats 69
Brief Description and Use Case 69
Sample Command 69
Sample Command 71
Sample Command 71
Related Commands 72
debug.py --pim_neighbor 72
Brief Description and Use Case 72
debug.py --pimd_dump 72
Brief Description and Use Case 72
Sample Command 72
Related Commands 74
debug.py --pki 74
Brief Description and Use Case (see debug.py --path) 74
Sample Command 75
debug.py --pktsqed 75
debug.py --profile_dump 75
Brief Description and Use Case (see debug.py --path) 75
Sample Command 75
Related Commands 76
debug.py --Qos_link 76
Brief Description and Use Case 76
Sample Command 76
Page 9
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --Qos_net 77
Brief Description and Use Case 77
Sample Command 77
debug.py --qos_dump_link 78
Brief Description and Use Case 78
Sample Command 78
debug.py --Qos_dump_net 79
Brief Description and Use Case (see debug.py --qos_dump_net) 79
Sample Command 79
debug.py --Radius_on_routed 80
Brief Description and Use Case (see debug.py --path) 80
Sample Command 80
Related Commands 80
debug.py --Reinit_routes 80
Brief Description and Use Case: 80
Sample Command: 80
Remote_routes 80
Brief Description and Use Case: 80
Sample Command: 81
debug.py --Remote_services 81
Brief Description and Use Case 81
Sample Command: 81
debug.py --routes 82
Brief Description and Use Case: 82
Sample Output: 82
Related Commands 84
debug.py --Segments 84
Brief Description and Use Case 84
debug.py --slow_learning_db 88
Brief Description and Use Case 88
Sample Command 88
Page 10
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Related Commands 88
debug.py --Uptime 89
Brief Description and Use Case 89
Sample Command 89
debug.py --vnf 89
Brief Description and Use Case 89
Sample Command 89
debug.py --vpn_test 90
Brief Description and Use Case 90
Sample Command 90
debug.py --Vrrp_dump 91
Brief Description and Use Case 91
Sample Command 91
Related Commands 93
debug.py --is_active.py 93
Brief Description and Use Case (see debug.py --path) 93
Sample Command 94
Related Commands 94
GetPolicy 94
Log Files 94
Tcpdump 94
Log Files 94
Troubleshooting 94
Activation and Initial Configuration 94
DMPO 99
Path Creation 101
Debug User connection (Packet Path) 101
Edge Offline 101
Debug HA 101
Debug Cluster 101
Performance 101
Page 11
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 12
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Copyright
Copyright © 2019 VMware SD-WAN by VeloCloud. All rights reserved.
Trademarks
VMware SD-WAN by VeloCloud, the VMware SD-WAN by VeloCloud Logo, among others, are registered
trademarks and/or registered service marks of VMware in the United States and other countries.
Disclaimer
Software and documents distributed under the License are distributed on an "AS IS" basis, WITHOUT
WARRANTY OF ANY KIND, either expressed or implied. See the License for the specific language
governing rights and limitations under the License.
Page 13
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Overview
Purpose of this Guide
This guide provides an introduction to the VeloCloud SD-WAN Edge CLI Commands and
instructions on how to monitor your Gateway deployments.
This document is comprised of two sections, CLI Commands and Troubleshooting. The ‘CLI
Commands’ section lists all debug commands available on the Edge, along with a brief
description of each command. The ‘Troubleshooting’ section provides troubleshooting
information for various issues from the ‘CLI Commands’ section.
Version Compatibility
This guide was authored using Release 3.2.1 of the Edge as a reference. While the principles
contained in this guide are largely applicable to any version of the Edge, certain commands and
example outputs may only be relevant to Release 3.2.1.
Page 14
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
CLI Commands
debug.py --applications
Brief Description and Use Case
This command dumps the available list of applications that user traffic could be classified as
(either via the DPI engine or fast learnt via the pre-populated database).
This command is a reflection of the application map uploaded and applied to the customer
settings on the orchestrator.
Fast learnt applications are pre-populated via the application map and injected into the IP-Port
DB (indicated as ‘IP Routable’) or the Port-Protocol DB (indicated as ‘Port Routable’).
Slow application classification occurs generally via the internal DPI engine.
Sample Command
NAME DISPLAY APP_ID CLASS_ID IP ROUTABLE PORT ROUTABLE
APP_UNCLASSIFIED unclassified 0 0 False False
APP_BASE base 3 13 False False
APP_UNKNOWN unknown 4 0 False False
APP_MALFORMED malformed 5 13 False False
APP_INCOMPLETE incomplete 6 13 False False
APP_8021Q 8021q 7 13 False False
APP_AIM aim 8 10 False False
APP_AMQP amqp 9 13 False False
APP_APOLLO apollo 10 13 False False
APP_ARP arp 11 13 False False
APP_ATALK atalk 12 13 False False
APP_BGP bgp 13 13 False True
APP_BITTORRENT bittorrent 15 14 False False
Related Commands
● Verbose dumps of the same command are available to view via --verbose_applications
● A fast learnt pre-populated list of applications can be viewed against --fast_learning_db
● A DPI classified list of applications can be viewed against --slow_learning_db
debug.py --bgp_view
Brief Description and Use Cases
This command displays the consolidated list of all routes learnt via the BGP protocol from all
segments (underlay learnt BGP routes).
Page 15
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
● The ‘Advertise’ field indicates if a particular route has been advertised to the overlay.
● The ‘U’ flag in the ‘Type’ field indicates if the route is classified as ‘Uplink’.
The command supports the ‘verbose’ option to display more details about each prefix in the
table.
Sample Command
debug.py --bgp_view_summary
Brief Description and Use Case
This command displays a list of all BGP neighbors configured in the system for all the
segments.
Important use cases:
● Check if the local AS number, router-id, and neighbor-ip(s) are correctly configured on
the Edge from the VCO.
● Check if the BGP neighborship to a particular neighbor is established or stuck in another
state.
● Check the number of prefixes received from a particular neighbor in the ‘Up’ state
(State/PfxRcd).
Sample Command
Page 16
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --bgp_redis_dump
Brief Description and Use Case
This command displays the list of prefixes that could be redistributed to local BGP neighbor(s).
The routes could be learnt via overlay/static/connected/OSPF protocol and re-distributed to
BGP protocol.
The command supports the ‘verbose’ option to display more details about each prefix in the
table.
Sample Command
debug.py --bgpd_dump
Brief Description and Use Case
This is the most comprehensive BGP command that is used to dump the complete BGP
database, including configuration, neighbor states (bgp_view_summary), BGP routes
(bgp_view), BGP routes, and BGP scan status per segment.
Page 17
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Sample Command
Page 18
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Related Commands
The individual commands, bgp_view and bgp_view_summary could be used for the purposes
described above.
Page 19
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --biz_pol_dump
Brief Description and Use Case
This command displays the business policy configuration of the Edge.
It is generally used to determine if a particular flow matches the user configured policy.
Sample Command
Page 20
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
● ServiceGroup:
○ All
○ Private
○ Public-Wired
○ Public-Wireless
● Link Policy:
○ Loadbalance
○ Bw_balance
○ Replicate
● Interface: Indicates the Edge interface that is used to route traffic.
● ErrorCorrection: Error correction that will be applied upon SLA degradation.
● Link: Indicates the UUID of the link object used for link steering.
debug.py --bw_retest
Brief Description and Use Case
This command is used to perform the bandwidth retest on all links.
Performing this command re-measures the bandwidth on all paths.
Sample Command
Page 21
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --bw_testing_dump
Brief Description and Use Case
This command provides detailed bandwidth test information for each path.
It is used for triaging bandwidth test failures.
Sample Command
"
Page 22
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --chat_stats
Brief Description and Use Case
This command displays detailed information for the flow chats between two endpoints. Can be
used for the following scenarios:
1. Troubleshoot connection and traffic between two endpoints
2. To determine which links are being used for certain traffic
3. Number of floats matching the following [App, SourceIP,DestinatioIP,DestinationPort]
Sample Command
velocloud vEdge 8CPU Hub:/opt/vc/bin# debug.py --chat_stats
{
"appClass": 20,
"appClassString": "APP_CLASS_VELOCLOUD",
"application": 4095,
"applicationString": "APP_VELOCLOUD_MGMT",
"bytesRx": 149,
"bytesTx": 149,
"endpoints": {
"innerHostName": "VeloCloud Edge",
"innerIp": "172.16.3.55",
"innerMac": "52:54:00:1f:84:10",
"outerHostName": "velocloud.net",
"outerIp": "216.229.0.50",
"outerPort": 123,
"segmentId": 0
},
"flowCount": 1,
"flowPath": "Edge2CloudViaGateway",
"gatewayIp": "151.0.0.16",
"links": [
{
"bytesRx": 149,
"bytesTx": 149,
"internalId": "89635b61-70ec-40d9-93f7-7582a645be01",
"logicalId": "54:7f:ee:da:c4:7c:0000",
"packetsRx": 1,
"packetsTx": 1
}.. (Multiple links possible)
],
"network": 17,
"packetsRx": 1,
"packetsTx": 1,
"transport": 17
},
Page 23
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
● Endpoints: Identifies the endpoints. Note that innerPort is not included. This this is a
representation of multiple aggregated flows, as long their endpoint IP/application and
port are the same.
● flowPath: Flow path taken, possibilities are as follows:
○ Edge2CloudViaGateway
○ Edge2CloudDirect
○ Edge2EdgeViaGateway
○ Edge2EdgeViaHub
○ Edge2EdgeDirect
○ Edge2DataCenterDirect
○ Edge2DataCenterViaGateway
○ Edge2Backhaul
○ Edge2Proxy
○ Edge2OPG
○ Routed
● Links: Links usage information
○ links.[0].BytesRx Bytes received on this link
○ links.[0].BytesTx Bytes set on this link
○ links.[0].internalId Link ID
○ links.[0].logicalId Link Logical ID
● Network: Specifies the protocol ID
● packetsRx Total packets received
● packetsRx Total Packets sent
Related Commands
Use debug.py --link to correlate the link id with the link name.
debug.py --clear_arp_cache
Brief Description and Use Case
This command clears the internal VMware SD-WAN Edge ARP cache on a per interface basis.
Sample Command
edge:ESXi-Spoke:~# debug.py --arp_dump GE3
Interface Address C-Tag Flags Mac S-Tag Source Mac State IsArp_failure_event_sent Arp Retry count
GE3 11.5.1.37 0 0 f0:8e:db:01:98:85 0 f0:8e:db:1d:00:85 ALIVE 0 0
GE3 11.5.1.254 0 0 36:ae:4c:a7:c8:e4 0 f0:8e:db:1d:00:85 ALIVE 0 0
edge:ESXi-Spoke:~# debug.py --clear_arp_cache GE3
{
"ALERT": "ARP Cache cleaned up"
}
edge:ESXi-Spoke:~# debug.py --arp_dump GE3
Interface Address C-Tag Flags Mac S-Tag Source Mac State IsArp_failure_event_sent Arp Retry count
GE3 11.5.1.254 0 0 36:ae:4c:a7:c8:e4 0 f0:8e:db:1d:00:85 ALIVE 0 0
Page 24
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
edge:ESXi-Spoke:~#
Related Commands
● debug.py --arp_dump
Dumps the arp cache for active interfaces.
Use --arp_dump <interface name> for interface the specific dump
Sample Command
Related Commands
debug.py --control_bytes
Brief Description and Use Case
This command provides insight into the number of bytes and packets of each TX and RX control
message sent on a per link basis.
--control_bytes - this displays all the non-zero bytes for each TX and RX counter.
--control_bytes all - this displays all the TX and RX counters (zero and non zero values).
--control_bytes clear - resets all the counters.
It is used to monitor the amount of control messages transmitted over the Vmware SD-WAN by
VeloCloud tunnels and is useful to triage any control message utilizing a higher link bandwidth.
Page 25
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Sample Command
Page 26
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --Current_apps
Brief Description and Use Case
Similar in usage to --chat_stats and condensed for easier viewing and consumption.
Dumps the current identified 4-tuple based flow stats data.
Note: A 4-tuple chat could be a collection of multiple 5-tuple flows (each with a different source
port) and generally indicates one application session.
Sample Command
edge:K:~# debug.py --current
SRC IP DST IP DST PORT PROTOCOL SEGID APPLICATION HOSTNAME APP CLASS PATH
10.52.9.74 216.6.2.70 123 17 0 APP_VELOCLOUD_MGMT(4095) velocloud.net APP_CLASS_VELOCLOUD(20) Edge2CloudViaGateway
10.0.0.2 54.90.228.177 443 6 0 APP_VELOCLOUD_MGMT(4095) velocloud.net APP_CLASS_VELOCLOUD(20) Edge2CloudViaGateway
10.52.9.74 204.2.134.164 123 17 0 APP_VELOCLOUD_MGMT(4095) velocloud.net APP_CLASS_VELOCLOUD(20) Edge2CloudViaGateway
debug.py --Dce_edge
Brief Description and Use Case (see debug.py --path)
This command lists the tunnels formed by a spoke with its Hub. The spoke forms tunnels to the
Hub based on the information received from the Gateway. The tunnel information can be
identified by the Hub’s logical identifier and peer IP address.
Sample Command
This example displays the list of tunnels formed by the spoke (b2-edge1) with the Hub (logical-
id:ccb39d28-103b-4cd8-a301-3567ae801d26:ccb39d28-103b-4cd8-a301-3567ae801d26). The
address column lists the IP address of tunnel’s Hub endpoint.
Page 27
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --De2e_delete
Brief Description and Use Case (see debug.py --path)
The Branch-to-Branch VPN feature enables Edges to establish tunnels directly with their peer
Edges instead of going through the Gateway.
This command can be used to tear down tunnels that are setup between an Edge and its peer.
These tunnels are setup when the Branch-to-Branch VPN feature is enabled and traffic is
exchanged with the peer site or when traffic is exchanged with its peers in the recent past.
This command is particularly useful when an admin would like to reduce the number of Edge-to-
Edge tunnels maintained by an Edge. An Edge handling many tunnels can degrade its
performance significantly.
Sample Command
In the example below, the dynamic tunnels setup from ‘b2-edge1’ to peer ‘b1-edge1’ will be torn
down once provided with the correct peer logical-id (ccb39d28-103b-4cd8-a301-3567ae801d26
in this example).
Related Commands
● debug.py --de2e_print
Page 28
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --De2e_print
Brief Description and Use Case
This command lists the tunnels currently formed by an Edge with its peers when the following
occurs:
● Branch-to-Branch VPN is enabled and traffic is exchanged with the peer sites.
Sample Command
In the example, an Edge (b2-edge1) has formed tunnels with its peer Edges (b1-edge1 and b3-
edge1). The number of Rx and Tx bytes exchanged are also displayed.
edge:b2-edge1:~# debug.py --de2e_print
{'debug': 'de2e_dump'}
Peer Name Initiator Now Last Update Rx
Bytes Rx Bytes Last Tx Bytes Tx Bytes Last
ccb39d28-103b-4cd8-a301-3567ae801d26 b1-edge1 0 22292 22291 286
143 412 206
dcfc4bdf-f388-44f5-8804-ac17aace4f6f b3-edge1 1 22292 22291 11297
11154 16274 16068
edge:b2-edge1:~#
Related Commands
● debug.py --de2e_delete
Page 29
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --debug_bw_test
Brief Description and Use Case
This command is used to perform the bandwidth test on an interface basis. It requires the name
of the link for which the retest must be performed.
This command should be used when only one of the links requires remeasurement.
Usage: --debug_bw_test {GE3,GE4,GE5,GE6,GE7,GE8}
Sample Command
debug.py --dns_name_cache
Brief Description and Use Case
This command is used to dump the current entries of the edged DNS name cache. This
command is useful to determine which hostnames will be converted to IP addresses through the
local DNS name resolver for a quicker resolution.
Sample Command
velocloud edge-215:~# debug.py --dns_name_cache
NAME ADDRESS
.jellybelly.com 13.64.119.53
.r32-us3.eng.velocloud.net 52.205.50.80
.sfgate.com 98.129.228.59
velocloud edge-215:~#
Related Commands
● debug.py --dns_ip_cache dump the dns ip cache
● debug.py --dns_ip_lookup IP ADDRESS
lookup an address in the dns ip cache
● debug.py --dns_name_lookup HOSTNAME
Page 30
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --dpdk_bond_dump
Brief Description and Use Case
Similar to --dpdk_ports_dump - displays information about bonded interface members for a
given interface. See dpdk_port_dump for details.
Sample Command
debug.py --dpd_bond_dump bond0
name port link strip speed duplex autoneg
eth0 0 1 1 10000 1 1
eth1 1 1 1 10000 1 1
debug.py --dpdk_ports_dump
Brief Description and Use Case
This command is used to display the list of ports currently using DPDK poll-mode drivers (vs.
common Linux kernel drivers). For each port, it displays the ‘internal’ name and id, link status
(0/1), hardware vlan strip flag, effective link speed, duplex, and link auto-negotiation settings.
Sample Command
debug.py --dpdk_ports_dump
name port link strip speed duplex autoneg
eth0 0 1 1 10000 1 1
eth1 1 1 1 10000 1 1
eth2 2 0 1 0 0 0
Page 31
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --Edge_list
Brief Description and Use Case
This command is currently only available when Branch-to-Branch VPN traffic is enabled.
It allows you to match the Edge with its unique LogicalD(UUID format) and ProfileId.
Sample Command
velocloud vEdge 8CPU Hub:/opt/vc/bin# debug.py --edge_list
Name LogicalId ProfileId
Edge_2000_Spoke_2 3e7691bf-b509-4039-90c4-8f568843e65a 28850056-0d39-11e8-961b-322b6f5d07eb
Edge_2000_Hub 71d7ce67-607f-4085-914e-6d68cb3d50c9 af1fe1b4-0d36-11e8-961b-322b6f5d07eb
Edge_1000_Spoke 7ae63eef-9675-44e5-a522-71872753ac10 28850056-0d39-11e8-961b-322b6f5d07eb
Edge_2000_Spoke_1 b9669a18-7781-4033-ac91-db80f38b1255 28850056-0d39-11e8-961b-322b6f5d07eb
velocloud vEdge 8CPU Hub:
Related Commands
Once you get an Edge ID you can use it to search in the logs and get debug information for that
specific end-point.
Additionally, can also check for routes for the specific destination-id.
● debug --routes | grep <logical-id>
● cat /var/log/edged.log | grep "LogicalId"
debug.py --Edge_peers
Brief Description and Use Case
This command is used to check the peers associated with an edge when branch to branch VPN
is enabled. It provides an insight into VPN peer connectivity segment wise.
Page 32
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Sample Command
Page 33
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --Fast_learning_db
Brief Description and Use Case
This command allows you to dump the available list of applications that the user traffic could be
classified against via the pre-populated IP-Port database (added/deleted/modified via the
orchestrator enabled application map editor).
Fast learnt applications are pre-populated via the application map and injected into the IP-Port
DB (indicated as ‘IP Routable’) or Port-Protocol DB (indicated as ‘Port Routable’).
This command simply dumps the available list of IP-Port Routable Applications.
--port_routable_apps can be further used to dump the Port-Protocol Routable Application DB.
Sample Command
IP ADDR NETMASK PORT(S) APPLICATION CLASS
199.30.107.1 255.255.255.255 [80, 5060, 8000, 8080] APP_SPEEDTEST APP_CLASS_FILE_SHARING
194.105.179.1 255.255.255.255 [80, 5060, 8000, 8080] APP_SPEEDTEST APP_CLASS_FILE_SHARING
195.64.183.1 255.255.255.255 [80, 5060, 8000, 8080] APP_SPEEDTEST APP_CLASS_FILE_SHARING
180.240.197.1 255.255.255.255 [80, 5060, 8000, 8080] APP_SPEEDTEST APP_CLASS_FILE_SHARING
77.72.2.2 255.255.255.255 [80, 5060, 8000, 8080] APP_SPEEDTEST APP_CLASS_FILE_SHARING
64.195.18.2 255.255.255.255 [80, 5060, 8000, 8080] APP_SPEEDTEST APP_CLASS_FILE_SHARING
64.111.20.2 255.255.255.255 [80, 5060, 8000, 8080] APP_SPEEDTEST APP_CLASS_FILE_SHARING
162.221.46.2 255.255.255.255 [80, 5060, 8000, 8080] APP_SPEEDTEST APP_CLASS_FILE_SHARING
198.91.48.2 255.255.255.255 [80, 5060, 8000, 8080] APP_SPEEDTEST APP_CLASS_FILE_SHARING
Related Commands
● Verbose dumps of the same command are available to view via --verbose_applications
● Fast learnt pre-populated list of applications can be viewed against --fast_learning_db
● DPI classified list of applications can be viewed against --slow_learning_db
debug.py --Firewall_dump
Brief Description and Use Case
This command allows you to dump the firewall config on the Edge.
The rule name, along with the number of hits and the action configured, will be displayed on a
per segment basis. It also displays the inbound Port-Forwarding and 1:1 NAT configurations
and associated hit counter.
Sample Command
edge:b1-edge1:~# debug.py --firewall_dump
Page 34
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
------------------ONE-TO-ONE NAT-------------------
Name Interface Outside IP Inside IP Bidirectional Allowed Protocol Allowed Port(s) Segment Id Hits
------------------ONE-TO-ONE NAT-------------------
Name Interface Outside IP Inside IP Bidirectional Allowed Protocol Allowed Port(s) Segment Id Hits
edge:b1-edge1:~#
debug.py --Flow_dump
Brief Description and Use Case
This command allows you to dump the current active flows in the device. The command has the
following syntax:
--flow_dump [local | logical-id | all] [all | dest-ip] [all|segid]
Executing this command in a heavily loaded device may result in device failure, as there may be
a large number of flows, and dumping all the flows might increase memory usage and might
terminate the process. This command should be executed with caution.
Sample Command
edge:b1-edge1:~# debug.py --flow_dump all 8.8.8.8 all
Page 35
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
FID SECURE SEGID FDSN MAX_RECV_FDSN FDSN_READ LAST_LATE_FDSN SRC_IP DEST_IP SRC_PORT DEST_PORT PROTO PRIORITY APPLICATION
APP_CLASS TRAFFIC-TYPE ROUTE-POL LINK-POL NH-ID LINK-ID FLAGS1 VERSION SRC ADDR SR DR
53614 1 0 11 10 10 0 10.0.1.25 8.8.8.8 13200 0 1 normal APP_ICMP(70) APP_CLASS_NETWORK_SERVICE(13) transactional
backhaul loadbalance 37f5da1b- N/A 0x9000800000002L 1 local 0x7f679400adb0 0x7f67dc248000 0x7f67dc24c600
Related Commands
debug.py --flow_route_dump can be used to dump the source route and destination route for
the particular flow.
debug.py --flow_flush can be used to flush the particular flow.
debug.py --flow_flush
Brief Description and Use Case
This command clears/deletes a particular flow or all flows.
When any business policy is applied and the flow is stuck in the old policy for some reason, you
can clear the flow/flows to force the flow to use latest business policies.
● Running this command without any argument deletes all flows.
● To delete a particular flow, you should use the flow id as the argument. The flow id can
be retrieved from the flow_dump command.
Sample Command
edge:b1-edge1:~# debug.py --flow_flush
{
"ALERT": "Flow cleaned up"
}
Page 36
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Related Commands
debug.py --flow_dump can be used to dump the current active flows in the device.
debug.py --Flow_route_dump
Brief Description and Use Case
This command allows you to dump the source route and destination route used in the current
active flow in the device. The command has the following syntax:
--flow_route_dump [local | logical-id | all] [all | dest-ip] [all|segid] [flowIdx | noroute]
The first three arguments follow the same convention as the flow_dump debug command.
The fourth argument can be the flow id, which can be retrieved from the flow_dump debug
command, which is used to dump the src and dst routes associated with the particular flow.
no_route argument behaves similar to the flow_dump command
Sample Command
edge:b1-edge1:~# debug.py --flow_dump all all 1
FID SECURE SEGID FDSN MAX_RECV_FDSN FDSN_READ LAST_LATE_FDSN SRC_IP DEST_IP SRC_PORT DEST_PORT PROTO PRIORITY
APPLICATION APP_CLASS TRAFFIC-TYPE ROUTE-POL LINK-POL NH-ID LINK-ID FLAGS1 VERSION SRC ADDR SR DR
53715 0 1 -1 -1 -1 -1 172.17.1.10 172.17.1.11 179 39604 6 normal APP_VELOCLOUD_MGMT(4095) APP_CLASS_VELOCLOUD(20)
realtime N/A N/A 00000000- N/A 0x2000001L 0 local 0x7f679400fda0 0x7f67dc24ad80 0x7f67dc249dc0
53709 0 1 -1 -1 -1 -1 172.17.1.2 172.17.1.3 179 43192 6 normal APP_VELOCLOUD_MGMT(4095) APP_CLASS_VELOCLOUD(20)
realtime N/A N/A 00000000- N/A 0x2000002L 0 local 0x7f6794006fa0 0x7f67dc24a920 0x7f67dc249ce0
Page 37
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Related Commands
● debug.py --flow_dump can be used to dump the current active flows in the device.
debug.py --Gateways
Brief Description and Use Case
This command dumps the list of VMware SD-WAN Gateways (peers) that the Edge has been
configured to establish an overlay with the peer.
Sample Command
edge:K:~# debug.py --gateways
[
{
"CDE Enabled": 0,
"Controller": 0,
"IPSec gateway IP Addr": "N/A",
"Local Gateway": true,
"LogicalId": "fb0bc136-0000-0000-0000-000000000000",
"Name": "kontiki-gw",
"Primary Global GW": 1,
"Private IP Address": "N/A",
"Public IP Address": "54.193.11.251",
"Type": "Public",
"epType": 16,
"onPremise": "No",
"peer_state": "ALIVE",
"private_network_id": 0,
"state": "ACTIVE"
}
]
debug.py --Ha
Brief Description and Use Case
This command gets details about the state of High Availability.
There are multiple sub-commands to this option.
Sample Command
debug.py --ha verp
debug.py --ha intf
debug.py --ha lstate
debug.py --ha apth
debug.py --ha spath
debug.py --ha tcp
Page 38
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Sample Command
debug.py --ha verp
[
{
"Active events": 0,
"Degraded lan heartbeats": 0,
"Degraded wan heartbeats": 0,
"Drop packets": 0,
"Failover interval ms": 700,
"Force switch": 0,
"HA event qdrop": 0,
"HA event qlen": 0,
"HA pkt pool fail": 0,
"HA pkt pool free": 256,
"HA skb pool fail": 0,
"HA skb pool free": 256,
"Heartbeat interval ms": 100,
"Init count": 0,
"My HA State": "ACTIVE",
"Num Degraded lan/wan heartbeats checked": 7,
"Peer Activated": 1,
"Peer CERT": 0,
"Peer CSR": 0,
"Peer HA State": "STANDBY",
"Peer HA version": 9,
"Peer Key seen": 1,
"Peer SN": "VCE0840000XXXX",
"Peer Serial Number": 0,
"Pvt Wan hold down (ms)": 0,
"Real Peer HA version": 9,
"Seconds post flow flood": 161080,
"Self Key read": 1,
"Self mac count": 0,
"Self mac previous": 0,
"Serial Number": "VCE0840000XXXX",
"Skip Pvt for LAN election": 1,
"Switched over in last 5 secs": 0,
"Switchover time": 0,
"Swover on ARP down secs": 0,
"Swover on intfdown": 1,
"Swover wait on intfdown": 15,
"UP Lan interfaces": 4,
"UP PPPoE interfaces": 0,
"UP Private interfaces": 0,
"UP Wan interfaces": 1,
"Use Peer": 1,
"VCO event qlen": 0,
"VCO qdrop": 0
Page 39
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
}
]
Page 40
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 41
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Sample Command
debug.py --ha intf
[
{
"my_table_version": 0,
"peer_table_version": 2054625046
},
{
"HA IP": "169.254.7.10",
"HA IPMASK": "255.255.255.248",
"LINKID": "00000003-5b53-4850-be21-78441134abed",
"NHOP IP": "169.254.7.9",
"NHOP MAC": "00:ba:be:60:00:c2",
"SOCK ARP STATE": 0,
"SOCK IP": "169.254.7.10",
"SOCK MAC": "f0:8e:db:ab:ed:82",
"SOCK PEERIP": "169.254.7.9",
"SOCK PEERMAC": "00:ba:be:60:00:c2",
"physical": "eth2"
}
]
Related Commands
Used with ‘debug.py --ha verp’, ‘debug.py --link’ and ‘debug.py --path’ to determine the interface
and overall HA state.
Page 42
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Sample Command
debug.py --ha lstate
[
{
"HA IP": "169.254.7.10",
"HA IPMASK": "255.255.255.248",
"IF STATE": "USED_BY_PEER",
"LINK IDENTIFIER": 101,
"LINK STATE": 1,
"LINKID": "00000003-5b53-4850-be21-78441134abed",
"NHOP IP": "169.254.7.9",
"NHOP MAC": "00:ba:be:60:00:c2",
"PEER LINK STATE": 0,
"PEER USE": 1,
"POINTER": "0xc1e2300",
"SOCK ARP STATE": 0,
"SOCK IP": "169.254.7.10",
"SOCK MAC": "f0:8e:db:ab:ed:82",
"SOCK PEERIP": "169.254.7.9",
"SOCK PEERMAC": "00:ba:be:60:00:c2",
"logical": "GE3",
"physical": "eth2"
}
]
Page 43
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Related Commands
Used with ‘debug.py --ha verp’, ‘debug.py --link’, ‘debug.py --path’ and ‘debug.py --verbose_arp’
to understand the interface and the state.
Sample Command
debug.py --ha apath
[
{
"my_table_version": 0,
"peer_table_version": 2054623950,
"which path": "active"
},
{
"Gateway IP": "169.254.10.2",
"Local IP": "169.254.6.37",
"Logical ID": "00000004-5b53-4850-be21-78441134abed",
"TD version": "3972188945"
},
{
"Gateway IP": "169.254.10.2",
"Local IP": "169.254.7.10",
"Logical ID": "00000003-5b53-4850-be21-78441134abed",
"TD version": "2054623939"
}
]
Page 44
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Related Commands
debug.py --path on the active,
debug.py --ha verp provides the HA state.
debug.py --ha apath on the standby to see this matches the path output on the active.
debug.py --ha spath to check on the active edge
Sample Command
debug.py --ha spath
[
{
"my_table_version": 2054623950,
"peer_table_version": -322778341,
"which path": "standby"
},
{
"Gateway IP": "169.254.10.2",
"Local IP": "169.254.6.37",
"Logical ID": "00000004-5b53-4850-be21-78441134abed",
"TD version": "3972188945"
},
{
"Gateway IP": "169.254.10.2",
"Local IP": "169.254.7.10",
"Logical ID": "00000003-5b53-4850-be21-78441134abed",
"TD version": "2054623939"
}
]
Page 45
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Related Commands
debug.py --path on the active.
debug.py --ha verp provides the HA state.
debug.py --ha apath on the standby to see this matches the path output on the active.
debug.py --ha spath on the active to match with apath output on the standby.
Sample Command
debug.py --ha tcp
[
{
"active fd": 106,
"bad_msg": 0,
"flow_floods": 1,
"flow_qlen": 0,
"ha state": "ACTIVE",
"rd offset": 0,
"remote fd": 107,
"standby fd": 106,
"sync_fail": 0,
"tcp state": "ACCEPTED"
}
]
Related Commands
● Debug.py --ha verp
● Tcpdump on the br-HA interface
● Netstat -antp
Page 46
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 47
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --Ha_flow_dump
Brief Description and Use case
This command provides data about flows synced from the active. Executed on the standby.
The flows via the Gateway are not synced.
Sample Command
debug.py --ha_flow_dump all
INTF OSIP ODIP OSPORT ODPORT OPROTO MSIP MDIP MSPORT MDPORT MPROTO ROUTE MAC APP CLASS
RETRY NRETRIES
00000003-5b53-4850-be21-78441134abed
10.0.1.25 169.254.6.18 2505 0 ICMP 0.0.0.0 0.0.0.0 0 0 ICMP 1 00:ba:be:5f:27:0c APP_ICMP APP_CLASS_NETWORK_SERVICE 0 0
00000003-5b53-4850-be21-78441134abed
10.0.1.25 169.254.6.18 2495 0 ICMP 0.0.0.0 0.0.0.0 0 0 ICMP 1 00:ba:be:5f:27:0c APP_ICMP APP_CLASS_NETWORK_SERVICE 0 0
debug.py --Ha_switch
Brief Description and Use case (see debug.py --path)
This command is used for forcing a failover manually. Performed only on the active Edge.
Sample Command
debug.py --ha_switch
Server was not listening
debug.py --Handoffqdbg
Brief Description and Use Case
This command is used to see the handoff queue for each process in Edged. Generally, this
command is used to determine if the Edge is running out of CPU and the threads are not able to
process their queues in time.
Sample Command
velocloud vEdge 8CPU Hub:/opt/vc/bin# debug.py --hand
Name qlimit lockfree sleeping wokenup enq deq drops head tail dummy next state
encrypt_0 4096 0 1 4434273 4476010 4476010 0 0x44c5d90 0x44c5d90 0x44c5d90 0x0 NORMAL
encrypt_1 4096 0 1 1511682 1520397 1520397 0 0x44c8110 0x44c8110 0x44c8110 0x0 NORMAL
haproxy_rx 2048 0 1 0 0 0 0 0x44ceb90 0x44ceb90 0x44ceb90 0x0 NORMAL
Page 48
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Related Commands
Used with other performance debug commands
● Top -H
● dispcnt -s missed -s dropped -s fail -s error -z
● debug --health
Page 49
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Sample Command
/ # /opt/vc/bin/debug.py --hub_list
LogicalId Type Order
9917c6fa-8571-4e1d-994a-157a180967d4 VPN_HUB 9
c1041f78-9b0a-4bce-84d3-d0f7f5388a9f VPN_HUB 10
Related Commands
Debu.py --dce
Sample Command
Related Commands
Page 50
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --Ike
Brief Description and Use Case
This command is used to display the IKE status of the device.
Sample Command
velocloud E1:~# debug.py --ike
{
"descriptors": [
{
"cookie": "0x2",
"dest": "50.50.52.10",
"dest-fingerPrint": "B408492DEDB790E6AEE488AE8754EEE44B437775",
"dest-issuer": "C=US S=CA L=Palo Alto O=Velocloud Networks Inc. OU=Development CN=ROOTCA",
"dest-issuer-keyId": "8D3F015457F43BFA9B7053EED887D5CE282C288C",
"dest-sn": "00D2A21BA3CCA267C9",
"dest-subject": "CN=gateway93d2acc7-2319-4b5a-a849-e089eb9addc3 CN=50.50.52.10 OU=110a0c9d-100f-11e9-a5fa-06437485e620 O=VeloCloud Inc.
serialNumber=92:11:d0:ae:b1:a6 title=gateway",
"enterprise": "8637f55c-3b3b-40a5-bb0e-12a232a910a2",
"enterpriseLogicalId": "8637f55c-3b3b-40a5-bb0e-12a232a910a2",
"host": "11.1.1.10",
"host-fingerPrint": "7FF311F3885272F1460FF94108FCD1FAF8AC338D",
"host-issuer": "C=US S=CA L=Palo Alto O=Velocloud Networks Inc. OU=Development CN=ROOTCA",
"host-subject": "CN=363d83c6-c127-40e6-8652-53c7d7007c4a O=8637f55c-3b3b-40a5-bb0e-12a232a910a2 serialNumber=90b48be5-8070-0f49-a3e3-b5f9ba352986 title=edge",
"ike_cookie_cnt": 0,
"inst_id": 2,
"logicalId": "0a343232-0000-0000-0000-000000000000",
"name": "xen03-gw-02",
"refcnt": 6,
"source": "11.1.1.10",
"state": "UP",
"td_version": "532537999",
"type": "Velocloud",
"up": 1,
"version": 2
}
],
"name": "IKE"
}
Related Commands
Used with other performance debug commands as follows:
● Debug.py --ike_spd
● Debug.py --ike_sa
● Debug.py --ike_childsa
Page 51
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --Ike_childsa
Brief Description and Use Case
This command is used to display phase-2 or child SA status of the device.
Sample Command
velocloud E1:~# debug.py --ike_childsa
Child SA
===============================================================================================================================================
===============================================
Index Users Cookie SpdId IkeSaId Flags Dir Spi Usage PeerPort Auth Encr Tunnel // Traffic
973|974 0001 0x2 80000004 8f9e1dae 00100019 outbound initiator bcbeadee 34/100 2426/* null gcm_20 // 11.1.1.10 > 50.50.52.10
974|973 0001 0x2 0003 8f9e1dae 0010001d inbound initiator d0804768 34/100 2426/* null gcm_20 // 11.1.1.10 < 50.50.52.10
975|976 0001 0x1 80000002 8f9e1d7d 00100019 outbound initiator 8610e30c 34/100 2426/* null gcm_20 // 11.1.1.10 > 50.50.51.10
976|975 0001 0x1 0001 8f9e1d7d 0010001d inbound initiator b2e65d7c 34/100 2426/* null gcm_20 // 11.1.1.10 < 50.50.51.10
Related Commands
Used with other performance debug commands.
● Debug.py --ike_spd
● Debug.py --ike_sa
● Debug.py --ike
debug.py --Ike_debug_instance
Brief Description and Use Case
This command is used to enable IKE debug messages for a particular IKE instance for 60
seconds.
The debug output is in the /var/log/ike.log
Sample Command
Debug.py --ike_debug_instance <inst_id>
velocloud E1:~# debug.py --ike_debug_instance 4
{
"Enabled debugging on": "4"
}
Page 52
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Related Commands
Used with other performance debug commands
● Debug.py --ike
debug.py --Ike_sa
Brief Description and Use Case
This command is used to display phase-1 or parent SA status of the device.
Sample Command
velocloud E1:~# debug.py --ike_sa
IKE SA
===============================================================================================================================================
=======
Index IkeSaId Cookie IKE Flags Dir NAT Ike Spi/Cookie PeerAddr State Usage
80 8f9e1d7d 0x1 v2 0100080d initiator local peer {4b73b80ef99af58b cbccdc254be7fd6f} 50.50.51.10[2426] MAIN_I 349/600
81 8f9e1dae 0x2 v2 0100081d initiator local peer {cf32a7f464f7e0bd aa4edb5033c837ea} 50.50.52.10[2426] MAIN_I 209/600
Related Commands
Used with other performance debug commands
● Debug.py --ike_spd
● Debug.py --ike_childsa
● Debug.py --ike
debug.py --ike_setdebuglevel
Brief Description and Use Case
This command is used to enable IKE debug messages for all IKE instances. The debug output
is in the /var/log/ike.log.
The default debug level is 4. Set it to level 7 to see more details.
Sample Command
“Debug.py --ike_setdebuglevel 7” to see more details.
“Debug.py --ike_setdebuglevel 4” to restore to the default.
Related Commands
● Debug.py --ike_set_debug_instance <inst_id>
Page 53
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --Ike_setdynamiclog
Brief Description and Use Case
This command is used to turn on/off the dynamic IKE log. By default, the IKE log will turn on for
60 seconds if the IKE negotiation failed. You can turn it off when necessary.
Sample Command
Debug.py --ike_setdynamiclog <0/1>
Related Commands
● Debug.py --ike_set_debug_instance <inst_id>
debug.py --Ike_spd
Brief Description and Use Case
This command is used to display the IKE security parameters of the device.
Sample Command
velocloud E1:~# debug.py --ike_spd
Security Policy
===============================================================================================================================================
=======
Index SpdId Cookie Flags Mode SecuProto Auth Encr Tunnel Traffic
1 0001 0x1 0000000d Transport ESP any_16 11.1.1.10 <-> 50.50.51.10
2 0003 0x2 0000000d Transport ESP any_16 11.1.1.10 <-> 50.50.52.10
Related Commands
Used with other performance debug commands:
● Debug.py --ike_sa
● Debug.py --ike_childsa
● Debug.py --ike
debug.py --Interfaces
Brief Description and Use Case
This command displays the current interface configuration by edged. Shows both LAN and
WAN interfaces configured in edged along with the following information:
● advertise -- route advertisement for this interface and whether enabled
● ip_addr -- static or DHCP assigned ip address to this interface
● logical_name --Logical name of this interface used internally and externally
Page 54
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Sample Command
velocloud edge-215:~# debug.py --interfaces
[
{
"advertise": false,
"ip_addr": "10.33.33.193",
"logical_name": "GE1",
"netmask": "255.255.255.255",
"nhop": "0.0.0.0",
"physical_name": "ge1",
"rpf": "SPECIFIC",
"secondaryips": [],
"segment_id": 0,
"subinterfaces": [],
"trusted": false,
"type": "WAN",
"underlay_accounting": true,
"up": true
}
]
velocloud edge-215:~#
Related Commands
debug.py --dpdk_ports_dump Dump dpdk port information
debug.py --Link_stats
Brief Description and Use Case
This command is used to dump the information about the Auto-discovered or User-Defined
WAN link objects.
Sample Command
Name Interface VLAN Mode Type MTU Backup LocalIpAddr PublicIpAddr
LogicalId InternalLogicalId LinkMode State VPN State
bandwidthKbpsTx bandwidthKbpsRx BytesTx BytesRx
Page 55
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Related Commands
● Individual path status on each link can be viewed via --path_status.
● grep ‘LINKFSM’ in edged.log should give additional details on the link state changes and
corresponding timestamps.
Page 56
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 57
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --ospf_info
Brief Description and Use Case
This command is used to dump the ospf settings and OSPF neighbor(s) status details, including
the current neighbor state, interface state, etc.
Page 58
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Sample Command
Page 59
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 60
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --ospf_redis_dump
Brief Description and Use Case
This command is used to display the list of prefixes that could be re-distributed to local OSPF
neighbor(s). The routes could be learnt via the overlay/static/connected/BGP protocol and being
re-distributed to the OSPF protocol.
Sample Command
debug.py --Ospf_view
Brief Description and Use Case
This command displays the consolidated list of all the routes learnt via the OSPF protocol
(underlay learnt OSPF routes). The command supports the option to filter by the destination
prefix.
The command supports the ‘verbose’ option to display more details about each prefix in the
table.
Page 61
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Sample Command
debug.py --Ospfd_dump
Brief Description and Use Case
This command is the most comprehensive OSPF command that is used to dump the complete
OSPF database, including configuration, OSPF interfaces, neighbors information, routes,
database, and self-originated LSAs.
Page 62
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 63
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 64
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 65
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 66
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 67
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 68
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --Overlay_routes
Brief Description and Use Case
This command is used to display the list of all prefixes that are learnt from the overlay on the
Edge. It also includes the default cloud routes to the Gateway indicated by the ‘v’ flag.
This command supports the ‘verbose’ option to display more details about each prefix in the
table.
Sample Command
debug.py --Path_stats
Brief Description and Use Case
This command is used to display all the path status of the device. Determines which devices the
device is connected to. Used in the following scenarios:
● Determining if the device is connected to Gateway and Hubs
● Determining which paths are available between the two points of the overlay
● Determining if E2E connections are being established
● Determining the condition of one or more paths
Sample Command
velocloud vEdge 8CPU Hub:/# debug.py --path
Interface VLAN PeerName PublicIpAddr PeerIpAddr TunnelingMode Version Path State RxState TxState AvgLatencyRx AvgLatencyTx RxJitter TxJitter lossRx
lossTx MeasuredRateRx MeasuredRateTx RemoteRx HeartbeatIntervalMs MTU Dynamic Dir Overhead
GE4 NONE Edge 1000 Spoke 151.0.0.9 151.0.0.103 DEFAULT 3969858055 ACTIVE STABLE STABLE 0 0 0.0 0.0 0.0 0.0
10000000 10000000 6000000 500 1500 No IN 0
GE4 NONE vcg2-10g-perf 151.0.0.9 151.0.0.16 DEFAULT 1420455520 ACTIVE STABLE STABLE 0 0 0.0 0.0 0.0 0.0
10000000 10000000 10000000 500 1500 No OUT 0
GE4 NONE Edge 2000 Spoke 1 151.0.0.9 151.0.0.101 DEFAULT 330549209 ACTIVE STABLE STABLE 0 0 0.0 0.0 0.0 0.0
10000000 10000000 6000000 500 1500 No IN 0
GE4 NONE Edge 2000 Spoke 2 151.0.0.9 151.0.0.102 DEFAULT 415149737 ACTIVE STABLE STABLE 0 0 0.1 0.0 0.0 0.0
10000000 10000000 6000000 500 1500 No IN 0
velocloud vEdge 8CPU Hub:/#
Page 69
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Interface(1) VLAN(2) PeerName(3) PublicIpAddr(4) PeerIpAddr(5) TunnelingMode(6) Version(7) Path State(8) RxState(9) TxState(10)
GE4 NONE vcg2-10g-perf 151.0.0.9 151.0.0.16 DEFAULT 751249656 ACTIVE STABLE STABLE
Page 70
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
○ QUIET: Packets on the link have not been received for 700 milliseconds.
Reasons can include, too much loss on the link for this transient period of time,
or the Gateway crashed and nothing was received on the link for 700
milliseconds.
○ DEAD: The link has not received packets on it for seven seconds, and the link
will be removed soon and will return to the INITIAL state.
Sample Command
AvgLatencyRx(10) AvgLatencyTx(11) RxJitter(12) TxJitter(13) lossRx(14) lossTx(15)
0 0 0.0 0.0 0.0 0.0
Sample Command
MeasuredRateRx(16) MeasuredRateTx(17) RemoteRx(18) HeartbeatIntervalMs(19) MTU(20) Dynamic(21) Dir(22) Overhead(23)
10000000 10000000 10000000 500 1500 No OUT 0
Page 71
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Related Commands
It is common to use this command in conjunction with the following:
tail -f /var/log/edged.log
Tcpdump captured on ‘port 2426’ will troubleshoot if packets are being sent and received
correctly.
Brief Description and Use Case Commented [25]: Is the work here done?
This command is used to dump information about the list of PIM neighbors. Commented [26]: Is the work here done?
debug.py --pimd_dump
Brief Description and Use Case
This command is used to dump information about the PIMd daemon, which handles the control
plane for multicast in the system. This includes full configuration, information about PIM enabled
interfaces, multicast RP info, various PIM states, and the list of PIM neighbors.
Sample Command
velocloud edge-215:~/opt/vc/bin/debug.py --pimd_dump
show running-config
===================
Building configuration...
Current configuration:
!
Page 72
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 73
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Related Commands
Commented [27]: [email protected] can you help
● pim_neighbor close on this by COB today; thanks.
● mcr_dump
Commented [28]: [email protected] can you help
close on this by COB today; thanks.
Page 74
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 75
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
{
"DE2E Isolation ON Segments": "0 2",
"Isolation ON Segments": "0 2",
"Profile Id": "15dc2416-f2a2-11e8-b90c-00babe757e09"
}
]
velocloud root:/#
On Gateway:
On gateway, this command needs the logical-id of the enterprise as a parameter.
# debug.py --profile_dump d1707f2a-4a57-4245-a2fc-bc6a852897e5
[
{
"DE2E Isolation ON Segments": "0 2",
"Isolation ON Segments": "0 2",
"Profile Id": "15dc2416-f2a2-11e8-b90c-00babe757e09"
}
]
#
Related Commands
Debug.py --peers
debug.py --Qos_link
Brief Description and Use Case
debug.py --qos_link <Peer logical Id> stats
<Peer logical Id> : Refers to Remote peer’s logical ID. All links used by this peer
shall be listed in the output.
Sample Command
velocloud b5-edge1:/tmp# debug.py --qos_link f228c6b9-2895-4d0b-8a17-194f62f49e72 stats
Interface Logical-Id/Remote_IP BW-Cap Kbps 10-sec-win kbps Last
slot Kbps PPS (10s win) Queued pkts Queued bytes Dropped pkts Dropped bytes
RemoteLink f228c6b9-2895-4d0b-8a17-194f62f49e72-169.254.7.2 3840 2
Page 76
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
8 2 0 0 0 0
eth2 00000003-b57d-4232-a610-a49c8b3c99a1 1920 15
8 14 0 0 0 0
RemoteLink f228c6b9-2895-4d0b-8a17-194f62f49e72-169.254.2.34 3840 1
0 2 0 0 0 0
eth4 937f53c3-577e-4c8c-9510-c6d1dc75b483 960 1
0 2 0 0 0 0
debug.py --Qos_net
Brief Description and Use Case
This command can be used to:
● Check the Total bandwidth cap configured for this Peer
● Check the current bandwidth (In Kbps and Packets/Second) usage of the Peer
● Check the number of bytes / packets queued per Peer/Segment/Traffic-Type
● Check the number of bytes / packets dropped per Peer/Segment/Traffic-Type
<Peer logical Id> : Refers to Remote peer’s logical ID. Total traffic to this peer
can be seen at an aggregate level - For the total bandwidth (Sum of all available
links) available to this peer. Commented [63]: Not a description and not consistent
Sample Command
debug.py --qos_net f228c6b9-2895-4d0b-8a17-194f62f49e72 stats
velocloud b5-edge1:/tmp# debug.py --qos_net f228c6b9-2895-4d0b-8a17-194f62f49e72 stats
Endpoint/Class BW Cap (Kbps) Weight Kbps (10s win) PPS (10s win) Queued pkts
Queued bytes Dropped pkts Dropped bytes
Root 2850 100.00 18 15 0
0 0 0
Sum(b3-edge1) 2850 100.00 3 4 0
0 0 0
Segment-0 0 100.00 0 0 0
0 0 0
RH.0.b3-edge1 2850 35.00 0 0 0
0 0 0
RN.0.b3-edge1 2850 15.00 0 0 0
0 0 0
RL.0.b3-edge1 2850 1.00 0 0 0
0 0 0
TH.0.b3-edge1 2850 20.00 0 0 0
Page 77
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
0 0 0
TN.0.b3-edge1 2850 7.00 0 0 0
0 0 0
TL.0.b3-edge1 2850 1.00 0 0 0
0 0 0
BH.0.b3-edge1 2850 15.00 0 0 0
0 0 0
BN.0.b3-edge1 2850 5.00 0 0 0
0 0 0
BL.0.b3-edge1 2850 1.00 0 0 0
0 0 0
debug.py --qos_dump_link
Brief Description and Use Case
This command dumps the hierarchy of the link scheduler. It is used internally for development
and validation purposes. It is an CPU expensive command, and it is not recommended for use
at production sites.
Sample Command
velocloud b5-edge1:/tmp# debug.py --qos_dump_link
CC - Child count AS - Active status PQ - Pks queued WT -
QoS Weight BC - Bandwidth cap
Page 78
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --Qos_dump_net
Brief Description and Use Case (see debug.py --qos_dump_net)
This command dumps the hierarchy of the Net scheduler. It is used internally for development
and validation purposes. It is an CPU expensive command, and it is not recommended for use
at production sites.
Sample Command
root@ondb-vcc1:~# /opt/vc/bin/debug.py --qos_dump_net
CC - Child count AS - Active status PQ - Pks queued WT -
QoS Weight BC - Bandwidth cap
Page 79
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Sample Command
Related Commands
debug.py --Reinit_routes
Brief Description and Use Case:
This command is mainly a debugging command that is used to flush all the local and remote
routes, and then re-learn all the routes again and converge. Upon issue of this command, we
flush the local routes and re-learn all of them. We also send a message to the gateway to re-
send the remote routes.
Sample Command:
Remote_routes
Page 80
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Sample Command:
debug.py --Remote_services
Brief Description and Use Case
This command is used to check that services such as SSH, UI, SNMP are enabled/disabled,
and that the list of host IP addresses are allowed to access the service.
Usage: --remote_services
● “allowed_ips”: List of host IPs allowed to access the service.
● “remote_ip”: host IP address allowed to access the service.
● “ssh”: Name of the remote service.
Sample Command:
Page 81
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --routes
Brief Description and Use Case:
This command is used to dump and check the routes that are present in the unified route table
or FIB. If the same route prefixes are learnt through multiple sources on the overlay as well as
underlay, they are listed in a sorted order, which reflects the exact route ordering and matches
against incoming traffic destinations.
Usage:
Edge: debug.py --routes <prefix> <segment_id>
Default option is debug.py --routes <all> <all> - dumps all routes across all segments.
Sample Output:
Edge:
Dump all routes belonging to all segments
# debug.py --routes
Address Netmask Type Gateway Next Hop Name
Next Hop ID Destination Name Dst LogicalId Reachable Metric
Preference Flags Vlan Intf Sub IntfId MTU SEG
172.16.1.10 255.255.255.255 any any N/A
N/A N/A N/A True 0 0
Ss 0 GE6 N/A N/A 0
172.16.1.2 255.255.255.255 any any N/A
N/A N/A N/A True 0 0
Ss 0 GE5 N/A N/A 0
169.254.129.2 255.255.255.255 any any N/A
N/A N/A N/A True 0 0
sm 0 any N/A N/A 0
169.254.129.1 255.255.255.255 cloud any gateway-1 020afea9-0000-0000-
0000-000000000000 gateway-1 020afea9-0000-0000-0000-000000000000 True 0
0 Rm 0 any N/A N/A 0
169.254.7.10 255.255.255.255 any any N/A
N/A N/A N/A True 0 0
Ss 0 GE3 N/A N/A 0
169.254.6.37 255.255.255.255 any any N/A
N/A N/A N/A True 0 0
Ss 0 GE4 N/A N/A 0
10.0.5.2 255.255.255.255 edge2edge any gateway-1 020afea9-0000-0000-
0000-000000000000 b5-edge1 109562ee-eba0-46b6-aaae-417dc4e30fe0 True 0
0 SRm 0 any N/A 1500 0
Page 82
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
GW:
Dump all routes belonging to enterprise ID ae9eb3de-6feb-4265-9560-cb7fa85cffcd and
segment 0.
# debug.py --routes ae9eb3de-6feb-4265-9560-cb7fa85cffcd all 0
EnterpriseID Address Netmask Type Peer Name
Destination Reachable Metric Preference Flags C-Tag S-Tag Handoff
Mode Age SEG
ae9eb3de-6feb-4265-9560-cb7fa85cffcd 10.0.5.2 255.255.255.255 edge2edge b5-edge1
109562ee-eba0-46b6-aaae-417dc4e30fe0 True 0 0 CSm 0
0 N/A N/A 360 0
ae9eb3de-6feb-4265-9560-cb7fa85cffcd 10.0.3.2 255.255.255.255 edge2edge b3-edge1
5ed5c3bb-7716-410b-9445-7197407f6d2d True 0 0 CSm 0
0 N/A N/A 363 0
ae9eb3de-6feb-4265-9560-cb7fa85cffcd 10.0.4.2 255.255.255.255 edge2edge b4-edge1
8dbf6c76-90d0-42f2-905c-956440c7740e True 0 0 CSm 0
0 N/A N/A 362 0
ae9eb3de-6feb-4265-9560-cb7fa85cffcd 10.0.1.2 255.255.255.255 edge2edge b1-edge1
95fa2c01-3176-43dc-85c8-f7159f479ea7 True 0 0 CSm 0
0 N/A N/A 363 0
Page 83
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Related Commands
debug.py --verbose_routes
debug.py --Segments
Brief Description and Use Case
This command has multiple options. It is used to get an insight into the per segment
configuration of the Gateways and VPN.
Page 84
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 85
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 86
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 87
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --slow_learning_db
Brief Description and Use Case
This command dumps the available list of previously classified destination IP-Port pairs as
identified or classified by the internal DPI engine.
Any new flow/session to the same destination IP-Port pair as maintained in the slow learning
database cache(as seen below) would now get classified on first packet itself.
Sample Command
IP ADDR PORT APPLICATION CLASS
172.217.4.163 443 APP_GSTATIC APP_CLASS_WEB
17.249.12.88 5223 APP_SSL APP_CLASS_TUNNELING_AND_VPN
54.85.131.40 443 APP_AMAZON APP_CLASS_WEB
17.252.226.85 443 APP_APPLE_LOCATION APP_CLASS_WEB
144.121.38.228 443 APP_SSL APP_CLASS_TUNNELING_AND_VPN
98.136.145.109 443 APP_YAHOO APP_CLASS_WEB
52.94.226.39 443 APP_AMAZON APP_CLASS_WEB
208.111.155.246 443 APP_APPLE APP_CLASS_WEB
216.58.192.5 443 APP_GMAIL APP_CLASS_EMAIL
52.218.212.74 443 APP_AMAZON_AWS APP_CLASS_INFRASTRUCTURE
66.170.97.1 443 APP_SSL APP_CLASS_TUNNELING_AND_VPN
35.241.23.116 443 APP_HTTP2 APP_CLASS_WEB
52.218.193.42 443 APP_AMAZON_AWS APP_CLASS_INFRASTRUCTURE
17.142.171.12 443 APP_APPLE_LOCATION APP_CLASS_WEB
172.217.11.174 443 APP_GOOGLE_GEN APP_CLASS_WEB
108.174.10.10 443 APP_LINKEDIN APP_CLASS_SOCIAL_NETWORKING
52.218.208.208 443 APP_AMAZON_AWS APP_CLASS_INFRASTRUCTURE
Related Commands
● --slow_learning_db_flush can be used to flush out the already learnt cache
Page 88
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --Uptime
Brief Description and Use Case
This command is used to determine how long the device is UP for. The output shows the
UpTime in days, minutes, hours, and seconds.
Sample Command
# debug.py --uptime
Uptime: 15:47:49, 2 days
Start: 1755522694, Current: 1985192110
#
debug.py --vnf
Brief Description and Use Case
Shows the status of the NVF insertion - for each VLAN or interface that have VNF insertion
configured it shows - internal interface/vlan name, VLAN tag, assigned ‘mapped’ vlan, auto-
assigned LAN MAC, and ARP probing state.
Sample Command
debug.py --vnf
{
"networks": [
{
"down": 1,
"mac": "F0:8E:DB:05:00:00",
"name": "br-network1",
"tag": 0,
"vlan": 0
}
]
}
Page 89
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --vpn_test
Brief Description and Use Case
This command is used to test the VPN connectivity to the peers. It is a CLI form of the
command available in the remote diagnostics page.
It takes the segment as an input argument to perform the VPN test to all the peers.
Page 90
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
debug.py --Vrrp_dump
Brief Description and Use Case
This command is used to display all the VRRP status of the device. It is used in the following
scenarios:
1. Checking the VRRP settings
2. Checking the VRRP status
3. Checking the VRRP cause of failure
Sample Command
velocloud Edge500-Top:~# debug.py --vrrp_dump
Page 91
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
{
"ha_type": "vrrp",
"icmp_response_to_echo_req": 1,
"pathUp": 1,
"total_vrrp_active_instance": 1,
"total_vrrp_instance": 1,
"total_vrrp_stale_instance": 0,
"vrrp": [
{
"authType": 0,
"failCode": "Success",
"instanceList": "active",
"interfaceLogicalName": "br-network1",
"interfacePhysicalName": "br-network1",
"interval": 1,
"localRouterMac": "f0:8e:db:01:09:65",
"localRouterPrimaryIp": "10.0.128.1",
"masterDownExpireIn_ms": 0,
"masterDown_ms": 3218,
"peerPriority": 0,
"peerRouterPrimaryIp": "0.0.0.0",
"peerState": "UNKNOWN",
"preempt": true,
"preemptDelay_ms": 5000,
"priority": 200,
"reason": "init",
"refcnt": 2,
"skew_ms": 218,
"state": "BACKUP",
"stateDuration": "0 days 00:00:05.037",
"subinterfaceId": -1,
"triggered": "startup",
"version": 2,
"virtualIpList": [
{
"cidrIp": "10.0.128.3",
"localIp": "10.0.128.1",
"netmask": "255.255.255.0"
}
],
"virtualMac": "00:00:5e:00:01:0c",
"vlanId": 1,
"vrid": 12
}
],
"vrrp_matching_rule": 3
}
Page 92
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
● triggered: Indicates the reason of triggering the state change (like: no advertisement
received, peer master down …).
● version: Indicates the VRRP version.
● virtualIpList: Indicates the virtual IP list. For now, only one virtual IP is supported.
● virtualMac: Indicates the virtual MAC address.
● vlanId: Indicates the vlan ID if configured.
● vrid: Indicates the virtual router ID.
Related Commands
It is common to use this command in conjunction with “debug.py --path” to check VCE to VCG
path status.
tail -f /var/log/edged.log | grep HAD
debug.py --is_active.py
Brief Description and Use Case (see debug.py --path)
This command is used to indicated if the device is activated.
Can be used in the following scenarios:
Page 93
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Sample Command
velocloud vEdge 8CPU Hub:/# is_activated.py
True
velocloud vEdge 8CPU Hub:/#
Related Commands
Check mgd.log to determine if the MAC address or deactivate command was sent from the
VCO.
Cat /var/log/mgd.log | grep EDGE_DEACTIVATED
GetPolicy
Log Files
Tcpdump
Troubleshooting
Commented [74]: [email protected] Hey
Kangwarn can you review? Do you see other common
issues that we should address?
_Assigned to Kangwarn Chinthammit_
Activation and Initial Configuration Commented [75]: [email protected] thoughts?
Almost all activation issues we encounter are involved with some kind of miss preparation.
Activation issues are generally hard to troubleshoot, since usually you do not have CLI access
to the box. In the event you have CLI access, the following are the first to consider:
Page 94
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
● In case this device was ever used before, reset the system.
velocloud vEdge 8CPU Hub:/opt/vc/bin# reset_config.sh
Now that you are sure of the system you are working on it's clean and has the correct config,
you can should get a correct VCO and Activation Key.
1. Make sure you can reach the Internet. Commented [76]: Are these instructions they need to
follow? If so, we need to make that more clear. Are
velocloud vEdge 8CPU Hub:/opt/vc/bin# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. those instructions on how to get a correct VCO and
64 bytes from 8.8.8.8: icmp_req=1 ttl=56 time=10.1 ms Activation Key?
64 bytes from 8.8.8.8: icmp_req=2 ttl=56 time=7.57 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=56 time=7.35 ms
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 7.357/8.356/10.133/1.261 ms
velocloud vEdge 8CPU Hub:/opt/vc/bin#
5. Perform activation.
Page 95
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
If activation fails, you will have a pcap that you can check and see what happen. Common
issues are a Firewall upstream of the device that is blocking the activation.
Device has an path to expected VCG Commented [77]: Is this part of the instructions?
You want to verify that after activation the device has a path to the expected VCG. To do this
you can do debug.py --path
You also want to see which networks you can reach via the Gateway.
Page 96
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Make sure you are trying to reach the Gateway via that link and that packets are being received.
velocloud vEdge 8CPU Hub:/opt/vc/bin# tcpdump.sh -i eth3 port 2426 and host 151.0.0.16
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tcpdump, link-type EN10MB (Ethernet), capture size 262144 bytes
18:33:51.340876 IP 151.0.0.9.2426 > 151.0.0.16.2426: UDP, length 21
18:33:51.342885 IP 151.0.0.9.2426 > 151.0.0.16.2426: UDP, length 100
18:33:51.342888 IP 151.0.0.9.2426 > 151.0.0.16.2426: UDP, length 100
18:33:51.342889 IP 151.0.0.9.2426 > 151.0.0.16.2426: UDP, length 31
18:33:51.343880 IP 151.0.0.16.2426 > 151.0.0.9.2426: UDP, length 39
If you are sending packets but not receiving any. Please have someone on the Gateway side
verify that the packets are reaching.
Initial Configuration
Once the device is activated, you will want to see two main things
1. The device is talking to the VCO.
2. The device has an path to the expected VCG.
Page 97
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Once the device is activated, it will receive the "new" configuration from the VCO. Depending on
the configuration, it will try to reach the VCO either via the Gateways or direct via the Internet. If
one fails, mgd will automatically switch the way it has to reach the VCO.
The Edge reaches out to the VCO with its current configuration version,and the VCO replies the
Edge sleeps.
If the Edge is unable to reach the VCO, you will see an Error in this log.
At this point you need to fix things locally. Changing the Edge config in the VCO will not help
since the Edge can't reach the VCO.
Several things can be done at point
2: Disable Edged and try to reach the VCO via basic linux.
1. Disabled VeloCloud
2. Try to reach the Internet
a. Use set_wan_config to fix reaching the Internet
3. Go to the VCO and make any necessary configuration changes
4. Enable MGD by itself, so you get the new config.
5. reboot
#Disable Edged
velocloud vEdge 8CPU Hub:/opt/vc/bin# vc_procmon stop
#Verify Connectivity
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=58 time=6.40 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=58 time=5.07 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=58 time=5.06 ms
Page 98
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
DMPO
In order to troubleshoot DMPO, collect the following information:
● Policy Applied to the flow in question
● Policy Configuration
● Status of the Paths that apply to the flow
● Current Path remediation techniques
1: Find the flow on the flow Table. Commented [80]: What are these instructions for? Why
are are they doing them? Are these instructions related
velocloud Empalme:/# debug.py --flow_dump all 10.32.0.97
FID SECURE FDSN MAX_RECV_FDSN FDSN_READ LAST_LATE_FDSN SRC_IP DEST IP SRC PORT DEST PORT PROTO PRIORITY APPLICATION to one of the above bullet points?
APP CLASS TRAFFIC-TYPE ROUTE-POL LINK-POL NH-ID LINK-ID FLAGS1 VERSION SRC ADDR SR DR
34019 1 14 13 13 0 10.128.0.181 10.32.0.97 23094 0 1 normal APP_ICMP(70) APP_CLASS_NETWORK_SERVICE(13) transactional
gateway loadbalance 1be73cac- N/A 0x8000800000002 1 local 0x7fe4c00037f0 0x2d13d20 0x4482c30
34028 1 47 46 46 0 10.128.0.181 10.32.0.97 23095 0 1 normal APP_ICMP(70) APP_CLASS_NETWORK_SERVICE(13) transactional
gateway loadbalance 1be73cac- N/A 0x8000800000002 1 local 0x7fe4c00193e0 0x2d13d20 0x4482c30
velocloud Empalme:/#
Page 99
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 100
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Path Creation
Edge Offline
Debug HA
Performance
Generally speaking 95% of performance issues occur because of CPU issues. Therefore, the
the first command to check is top.
1. Type top -H
2. Then press number 1 to see performance CPU.
Page 101
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 102
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
● With the Exception of the dpdk_master thread, all other threads should be under 100%.
Note:
DPDK will run differently from platform to platform. In 800 and 2000, dpdk will have a full CPU Commented [82]: Is there a reason why this is all lower
reserved for himself. In lower platforms it will share with other cores case?
DPDK Drops
DPDK runs in a loop. Depending on the platform, it will have a sleep in the loop or not. Since it's
running on a loop high, the CPU will not be able to tell you that you are running out of CPU.
If you are running in a physical platform, DPDK will detect missing packets via the following
command:
velocloud vEdge 8CPU Hub:/opt/vc/bin# dispcnt -s imissed
Edged Drops
Once the packet is in the system, most drops performed by Edged can be caught in the
debug.py --handoffqueue.
Edged works in a train processing. Each block is responsible for processing its queue and
handing it over to the next block queue.
When a process is not able to kept up, it's queue gets full and a packet is dropped.
velocloud vEdge 8CPU Hub:/opt/vc/bin# debug.py --hand
name qlimit lockfree sleeping wokenup enq deq drops head tail dummy next state
encrypt_0 4096 0 1 916454 941013 941013 0 0x44c5d90 0x44c5d90 0x44c5d90 0x0 NORMAL
encrypt_1 4096 0 1 329923 331707 331707 0 0x44c8110 0x44c8110 0x44c8110 0x0 NORMAL
haproxy_rx 2048 0 1 0 0 0 0 0x44ceb90 0x44ceb90 0x44ceb90 0x0 NORMAL
vcmp_init 1024 0 1 111 111 111 0 0x44a2590 0x44a2590 0x44a2590 0x0 NORMAL
vcmp_ctrl_0 40960 0 1 68025 68027 68027 0 0x44c1690 0x44c1690 0x44c1690 0x0 NORMAL
vcmp_ctrl_1 40960 0 1 18670 18670 18670 0 0x44c3a10 0x44c3a10 0x44c3a10 0x0 NORMAL
vcmp_data_0 1024 0 1 920426 977424 977424 0 0x44a4910 0x44a4910 0x44a4910 0x0 NORMAL
vcmp_data_1 1024 0 1 319001 333747 333747 0 0x44a6c90 0x44a6c90 0x44a6c90 0x0 NORMAL
vcmp_bh_bottom 10240 0 1 255 255 255 0 0x44ad710 0x44ad710 0x44ad710 0x0 NORMAL
ike_bh 1024 0 1 3902 4899 4899 0 0x44afa90 0x44afa90 0x44afa90 0x0 NORMAL
mc_readq 1024 0 1 0 0 0 0 0x44a01d0 0x44a01d0 0x44a01d0 0x0 NORMAL
natt_0 1024 0 1 336497 387255 387255 0 0x44b1e10 0x44b1e10 0x44b1e10 0x0 NORMAL
natt_1 1024 0 1 107992 119555 119555 0 0x44b4190 0x44b4190 0x44b4190 0x0 NORMAL
esp_0 1024 0 1 0 0 0 0 0x44ca490 0x44ca490 0x44ca490 0x0 NORMAL
esp_1 1024 0 1 0 0 0 0 0x44cc810 0x44cc810 0x44cc810 0x0 NORMAL
ipv4_bh 2048 0 1 24435 24813 24813 0 0x44ab390 0x44ab390 0x44ab390 0x0 NORMAL
cloud_bh_bottom 2048 0 1 262 262 262 0 0x44a9010 0x44a9010 0x44a9010 0x0 NORMAL
cloud_txq 1024 0 1 255 255 255 0 0x44b8890 0x44b8890 0x44b8890 0x0 NORMAL
vcmp_tx 2048 0 1 0 0 0 0 0x44b6510 0x44b6510 0x44b6510 0x0 NORMAL
glob_ls_0 1024 0 1 2482671 2545175 2545175 0 0xf067be0 0xf067be0 0xf067be0 0x0 NORMAL
velocloud vEdge 8CPU Hub:/opt/vc/bin#
Page 103
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
General Drops/Error
While generally not performance related is useful to see if any error/drops are happening in the
system.
We generally use the following command: Commented [84]: I've been trying to change most of
these to passive voice. But, do you want to indicate
dispcnt -s miss -s error -s drop -s fail -z
"we" "you" etc.?
Small Packets
All Performances tests are done with a single flow of 420 byte packet size. If a customer is
running a test with 60 byte packet size, the performance will be much lower.
Large Configuration
Performance tests are done with a basic config. A large number of Firewall Entries or Business
Policies will have a higher CPU impact.
QoS
Bandwidth Cap validation
The qos_net and qos_link command can be used to determine if the bandwidth cap is set
correctly. Caps set in qos_net represent the cap of all aggregate links. Caps set in qos_link
represent respective the link’s bandwidth cap.
Page 104
Copyright © 2019
VMware SD-WAN by VeloCloud
VMware SD-WAN by VeloCloud EDGE CLI Documentation
Page 105
Copyright © 2019
VMware SD-WAN by VeloCloud
Page 75: [1] Commented [45] Kartik Kamdar 28/01/2019 21:21:00
[email protected] can you help close on this by COB today; thanks.
Page 75: [2] Commented [46] Kartik Kamdar 28/01/2019 21:21:00
[email protected] can you help close on this by COB today; thanks.
Page 75: [3] Commented [47] Kartik Kamdar 28/01/2019 21:21:00
[email protected] can you help close on this by COB today; thanks.
Page 75: [4] Commented [48] Kartik Kamdar 28/01/2019 21:21:00
[email protected] can you help close on this by COB today; thanks.
Page 75: [5] Commented [49] Kartik Kamdar 28/01/2019 21:21:00
[email protected] can you help close on this by COB today; thanks.
Page 75: [6] Commented [50] Kartik Kamdar 28/01/2019 21:21:00
[email protected] can you help close on this by COB today; thanks.
Page 75: [7] Commented [51] Kartik Kamdar 28/01/2019 21:21:00
[email protected] can you help close on this by COB today; thanks.
Page 75: [8] Commented [52] Kartik Kamdar 28/01/2019 21:21:00
[email protected] can you help close on this by COB today; thanks.
Page 75: [9] Commented [53] Kartik Kamdar 28/01/2019 21:21:00
[email protected] can you help close on this by COB today; thanks.
Page 75: [10] Commented [54] Kartik Kamdar 28/01/2019 21:21:00
[email protected] can you help close on this by COB today; thanks.
Page 75: [11] Commented [55] Kartik Kamdar 28/01/2019 21:21:00
[email protected] can you help close on this by COB today; thanks.
Page 75: [12] Commented [56] Kartik Kamdar 28/01/2019 21:21:00
[email protected] can you help close on this by COB today; thanks.
Page 75: [13] Commented [57] Kartik Kamdar 28/01/2019 21:21:00
[email protected] can you help close on this by COB today; thanks.
Page 75: [14] Commented [58] Kartik Kamdar 28/01/2019 21:21:00
[email protected] can you help close on this by COB today; thanks.
Page 75: [15] Commented [59] Kartik Kamdar 28/01/2019 21:21:00
[email protected] can you help close on this by COB today; thanks.
Page 75: [16] Commented [60] Kartik Kamdar 28/01/2019 21:21:00
[email protected] can you help close on this by COB today; thanks.
Page 75: [17] Commented [61] Kartik Kamdar 23/01/2019 19:21:00
[email protected]
_Assigned to Gopakumar Edakkunni_
Page 75: [18] Commented [62] Kartik Kamdar 28/01/2019 21:21:00
[email protected] pls close by COB.