Identifying Router WAN Interfaces via CLI
search cancel

Identifying Router WAN Interfaces via CLI

book

Article ID: 431740

calendar_today

Updated On:

Products

Network Observability

Issue/Introduction

How to fetch router devices and list specific WAN interfaces using the command line?

Environment

 

Network Observability (DX NetOps / SMARTS / VMware Telco Cloud Service Assurance)

 

Resolution

There is no single command to retrieve interface names and their types (e.g., WAN) in one step. To achieve this, you must first list the interfaces for a specific device and then query each interface for its "Type" property.

Use the following command to see all interfaces associated with a device name or IP address:

./dmctl -s INCHARGE-AM-PM getl Interface | grep <Device_Name_or_IP>

Once you have the specific interface name (e.g., IF-Name), run this command to determine if it is a WAN interface:

./dmctl -s INCHARGE-AM-PM get Interface::<IF-Name> | grep Type