VMware, Inc. 85
Appendix
Traffic Stats Schema
ThisschemaconfigurestheTrafficStatscollectionserviceforanode.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="VShieldEdgeConfig">
<xs:complexType>
<xs:all minOccurs="0">
<xs:element name="TrafficStats" type="TrafficStats"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:complexType name="TrafficStats">
<xs:sequence>
<xs:element maxOccurs="unbounded" name="StatsRecord" type="StatsRecord" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="StatsRecord">
<xs:sequence>
<xs:element name="ipAddress" type="xs:NMTOKEN" />
<xs:element minOccurs="0" name="timeStamp" type="xs:unsignedInt" />
<xs:element minOccurs="0" name="txPacketCount" type="xs:unsignedInt" />
<xs:element minOccurs="0" name="rxPacketCount" type="xs:unsignedInt" />
<xs:element minOccurs="0" name="txByteCount" type="xs:unsignedInt" />
<xs:element minOccurs="0" name="rxByteCount" type="xs:unsignedInt" />
</xs:sequence>
</xs:complexType>
</xs:schema>
Syslog Schema
ThisschemaenablesconnectionfromavShieldEdgetoasyslogserver.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="VShieldEdgeConfig">
<xs:complexType>
<xs:all minOccurs="0">
<xs:element name="SyslogServerConfig" type="SyslogServerConfig"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:complexType name="SyslogServerConfig">
<xs:choice>
<xs:element minOccurs="1" maxOccurs="2" name="ipAddress" type="IP" />
<xs:element name="Snapshots" type="Snapshots"/>
<!-- Only in Response from Server -->
</xs:choice>
</xs:complexType>
<xs:simpleType name="IP">
<xs:restriction base="xs:string">
<xs:pattern value="((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.)
{3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Snapshots">
<xs:sequence>
<xs:element maxOccurs="unbounded" name="timestamp" type="xs:unsignedInt" />
</xs:sequence>
</xs:complexType>
Commenti su questo manuale