Cisco D9800 Reference Manual page 279

Network transport receiver
Hide thumbs Also See for D9800:
Table of Contents

Advertisement

API Definitions
URI Argument
ipver
ipv4addr
ipv4mask
ipv4defgw
phymode
GET Method Examples:
Display physical Ethernet Port information in XML or JSON. It can be used to display all ports information
or specific port or port field information according to the input parameters.
Show all port Info in XML format:
curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/device_ctl/eth"
Expected output (values are for example purposes only):
<?xml version="1.0" encoding="ISO-8859-1" ?>
<devicectl>
<eth>
<port>
</port>
Description
IP version selection
Type: String
Value: IPv4, IPv6
Note
IP V4 Address
Type: String
Value: IP address, for example, 192.168.0.1
IP V4 mask
Type: digit
Value: 8..30
IP V4 Default Gateway
Type: String
Value: IP address, for example, 192.131.244.254
IP Physical Port Mode
Type: String
Value: Auto, 10HD, 10FD, 100HD, 100FD, 1000FD
<portid>1</portid>
<name>Management</name>
<ipver>IPv4</ipver>
<ipv4addr>192.168.0.1</ipv4addr>
<ipv4mask>24</ipv4mask>
<ipv4defgw>192.168.0.254</ipv4defgw>
<phymode>Auto</phymode>
<port>
<portid>2</portid>
<name>Data1</name>
<ipver>IPv4</ipver>
<ipv4addr>192.168.1.2</ipv4addr>
<ipv4mask>24</ipv4mask>
<ipv4defgw>192.168.1.254</ipv4defgw>
<phymode>Auto</phymode>
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
Only IPv4 is currently
supported.
Ethernet Device Control Command
267

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents