View Traffic Statistics; Debug Vshield Edge Services Using Service Statistics - VMware VSHIELD APP 1.0 - API Programming Manual

Vshield api
Table of Contents

Advertisement

You can retrieve the current MTU threshold from a vShield Edge for reference.
Example 5-57. Retrieving the MTU Threshold for a vShield Edge
Request:
GET <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/mtu
Example:
GET /api/1.0/network/network-244/mtu HTTP/1.1
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: localhost:9998
<?xml version="1.0" encoding="UTF-8"

View Traffic Statistics

Each vShield Edge agent offers a collection service for traffic statistics. Traffic statistics provide information on 
the sessions in and out of your network.
For the traffic statistics schema, see "Traffic Stats Schema" on page 87.
Example 5-58. Getting Traffic Statistics for a vShield Edge
Request:
GET <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/trafficstats/all
Example:
GET /api/1.0/network/network-244/trafficstats/all HTTP/1.1
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: localhost

Debug vShield Edge Services Using Service Statistics

You can retrieve the path to the service statistics file of a vShield Edge and use the statistics to debug service 
issues.
Example 5-59. Debugging a vShield Edge by Using Service Statistics
Request:
GET <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/serviceStats
Response:
XML with path of vShield Edge service statistics file which can be downloaded over http
VMware, Inc.
standalone="yes"?><VShieldEdgeConfig><MTU><internalInterfaceMTU>2000</internalInte
rfaceMTU><externalInterfaceMTU>2000</externalInterfaceMTU></MTU></VShieldEdgeConfi
g>
Chapter 5 vShield Edge Management
49

Advertisement

Table of Contents
loading

Table of Contents