
VMware, Inc. 51
Chapter 5 vShield Edge Management
Example 5-37. Get DHCP statistics
Request:
GET https://<vsm-ip>/api/2.0/networks/<internal-portgroup-vc-moref-id>/edge/statistics/dhcp
Network Interface Statistics
Youcanretrievetrafficstatus,includingexternalandinternalinterfaces,perinterface,VPNtoremotesubnets,
vShieldEdgetrafficprocessed,anddroppedcountersduetouser‐configuredfirewallrules.
Example 5-38. Get traffic statistics
Request:
GET https://<vsm-ip>/api/2.0/networks/<internal-portgroup-vc-moref-id>/edge/statistics/interface
Get Service Status
Youcanretrievethestatusofvariousservices,where<svc>couldbe:
dhcp–returnsstatusofDHCPservice,upordowndependingontheEdgeappliance’sDHCPdaemon.
GET https://<vsm-ip>/api/2.0/networks/dvportgroup-63>/edge/dhcp/service
vpn–returnsstatusofVPNservice,upordowndependingontheEdgeappliance’sVPNdaemon.
GET https://<vsm-ip>/api/2.0/networks/dvportgroup-63>/edge/vpn/service
loadbalancer–returnsstatusofloadbalancerservice,dependingontheEdgeappliance’sdaemon.
GET https://<vsm-ip>/api/2.0/networks/dvportgroup-63>/edge/loadbalancer/service
Example 5-39. Get service status
Request:
GET https://<vsm-ip>/api/2.0/networks/<internal-portgroup-vc-moref-id>/edge/<svc>/service
Debugging and Support
TohelpwithyourowndebuggingandtoprovideinformationforVMwaretechnicalsupport,APIsare
availabletoretrievevShieldlogsandgetstatisticsaboutEdgeservices.
Retrieve Logs for Technical Support
ThiscallprovidesthetechnicalsupportlogsfromvShieldEdge.Theseareoftenrequiredfordebugging
purposes.Thecallreturnsthelocationwherethecompressedlogfilesaredownloaded.
Example 5-40. Get support logs
Request:
GET https://<vsm-ip>/api/2.0/networks/<internal-portgroup-vc-moref-id>/edge/techSupportLogs
Thetechnicalsupportlogisplacedinafile,howevertheRESTAPIhasnoprovisionfordownloadingit,and
wgetandcurldonothavepermissiontodownloadit,either .YoucanretrievethelogwithvShieldManager
byclickingSettings&Reports>Configuration>Support>[LogDownload]
Initiate.
Commentaires sur ces manuels