| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:oval-sc="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5" xmlns:junos-sc="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#junos" xmlns:sch="http://purl.oclc.org/dsdl/schematron" targetNamespace="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#junos" elementFormDefault="qualified" version="5.11.1"> |
| 3 |
<xsd:import namespace="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5" schemaLocation="oval-system-characteristics-schema.xsd"/> |
| 4 |
<xsd:annotation> |
| 5 |
<xsd:documentation>The following is a description of the elements, types, and attributes that compose the Junos-specific system characteristic items found in Open Vulnerability and Assessment Language (OVAL). Each item is an extension of the standard item element defined in the Core System Characteristic Schema. Through extension, each item inherits a set of elements and attributes that are shared amongst all OVAL Items. Each item is described in detail and should provide the information necessary to understand what each element and attribute represents. This document is intended for developers and assumes some familiarity with XML. A high level description of the interaction between the different tests and their relationship to the Core System Characteristic Schema is not outlined here.</xsd:documentation> |
| 6 |
<xsd:documentation>This schema was originally developed by David Solin at jOVAL.org. The OVAL Schema is maintained by The MITRE Corporation and developed by the public OVAL Community. For more information, including how to get involved in the project and how to submit change requests, please visit the OVAL website at http://oval.mitre.org.</xsd:documentation> |
| 7 |
<xsd:appinfo> |
| 8 |
<schema>Junos System Characteristics</schema> |
| 9 |
<version>5.11.1:1.0</version> |
| 10 |
<date>4/22/2015 09:00:00 AM</date> |
| 11 |
<terms_of_use>Copyright (c) 2002-2015, The MITRE Corporation. All rights reserved. The contents of this file are subject to the terms of the OVAL License located at http://oval.mitre.org/oval/about/termsofuse.html. See the OVAL License for the specific language governing permissions and limitations for use of this schema. When distributing copies of the OVAL Schema, this license header must be included.</terms_of_use> |
| 12 |
<sch:ns prefix="oval-sc" uri="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5"/> |
| 13 |
<sch:ns prefix="junos-sc" uri="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#junos"/> |
| 14 |
<sch:ns prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance"/> |
| 15 |
</xsd:appinfo> |
| 16 |
</xsd:annotation> |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
<xsd:element name="xml_config_item" substitutionGroup="oval-sc:item"> |
| 21 |
<xsd:annotation> |
| 22 |
<xsd:documentation>Stores information about the existence of a particular XPATH query result from the JunOS XML config file.</xsd:documentation> |
| 23 |
</xsd:annotation> |
| 24 |
<xsd:complexType> |
| 25 |
<xsd:complexContent> |
| 26 |
<xsd:extension base="oval-sc:ItemType"> |
| 27 |
<xsd:sequence> |
| 28 |
<xsd:element name="xpath" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"> |
| 29 |
<xsd:annotation> |
| 30 |
<xsd:documentation>An XPATH 1.0 expression that was evaluated against the XML config file.</xsd:documentation> |
| 31 |
</xsd:annotation> |
| 32 |
</xsd:element> |
| 33 |
<xsd:element name="value_of" type="oval-sc:EntityItemAnySimpleType" minOccurs="0" maxOccurs="unbounded"> |
| 34 |
<xsd:annotation> |
| 35 |
<xsd:documentation>The result of the evaluation of the XPATH expression against the XML config file.</xsd:documentation> |
| 36 |
</xsd:annotation> |
| 37 |
</xsd:element> |
| 38 |
</xsd:sequence> |
| 39 |
</xsd:extension> |
| 40 |
</xsd:complexContent> |
| 41 |
</xsd:complexType> |
| 42 |
</xsd:element> |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
<xsd:element name="show_item" substitutionGroup="oval-sc:item"> |
| 47 |
<xsd:annotation> |
| 48 |
<xsd:documentation>Stores the resulting configuration data provided by the execution of a specific show command.</xsd:documentation> |
| 49 |
</xsd:annotation> |
| 50 |
<xsd:complexType> |
| 51 |
<xsd:complexContent> |
| 52 |
<xsd:extension base="oval-sc:ItemType"> |
| 53 |
<xsd:sequence> |
| 54 |
<xsd:element name="subcommand" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"> |
| 55 |
<xsd:annotation> |
| 56 |
<xsd:documentation>The name of the SHOW sub-command.</xsd:documentation> |
| 57 |
</xsd:annotation> |
| 58 |
</xsd:element> |
| 59 |
<xsd:element name="value" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"> |
| 60 |
<xsd:annotation> |
| 61 |
<xsd:documentation>The value returned from by the specified SHOW sub-command. This may consist of multiple lines of information.</xsd:documentation> |
| 62 |
</xsd:annotation> |
| 63 |
</xsd:element> |
| 64 |
</xsd:sequence> |
| 65 |
</xsd:extension> |
| 66 |
</xsd:complexContent> |
| 67 |
</xsd:complexType> |
| 68 |
</xsd:element> |
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
<xsd:element name="version_item" substitutionGroup="oval-sc:item"> |
| 73 |
<xsd:annotation> |
| 74 |
<xsd:documentation>The version_item holds information about the version of a particular component of the JunOS operating system. It extends the standard ItemType as defined in the oval-system-characteristics schema and one should refer to the ItemType description for more information.</xsd:documentation> |
| 75 |
</xsd:annotation> |
| 76 |
<xsd:complexType> |
| 77 |
<xsd:complexContent> |
| 78 |
<xsd:extension base="oval-sc:ItemType"> |
| 79 |
<xsd:sequence> |
| 80 |
<xsd:element name="component" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"> |
| 81 |
<xsd:annotation> |
| 82 |
<xsd:documentation>The name of the JunOS component whose version should be retrieved.</xsd:documentation> |
| 83 |
</xsd:annotation> |
| 84 |
</xsd:element> |
| 85 |
<xsd:element name="raw_release" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"> |
| 86 |
<xsd:annotation> |
| 87 |
<xsd:documentation>The raw release version string for the component.</xsd:documentation> |
| 88 |
</xsd:annotation> |
| 89 |
</xsd:element> |
| 90 |
<xsd:element name="major_version" type="oval-sc:EntityItemVersionType" minOccurs="0" maxOccurs="1"> |
| 91 |
<xsd:annotation> |
| 92 |
<xsd:documentation>The part of the release version of the component corresponding to the [year].[quarter] in which the release occurred. For example, the major_version for 12.2R6.1 would be 12.2.</xsd:documentation> |
| 93 |
</xsd:annotation> |
| 94 |
</xsd:element> |
| 95 |
<xsd:element name="release_type" type="junos-sc:EntityItemJunosReleaseTypeType" minOccurs="0" maxOccurs="1"> |
| 96 |
<xsd:annotation> |
| 97 |
<xsd:documentation>The release type embedded in the version of the component.</xsd:documentation> |
| 98 |
</xsd:annotation> |
| 99 |
</xsd:element> |
| 100 |
<xsd:element name="revision" type="oval-sc:EntityItemVersionType" minOccurs="0" maxOccurs="1"> |
| 101 |
<xsd:annotation> |
| 102 |
<xsd:documentation>The revision and build number (AKA spin number) information of the component's version. For example, the revision for 12.2R6.1 would be 6.1.</xsd:documentation> |
| 103 |
</xsd:annotation> |
| 104 |
</xsd:element> |
| 105 |
<xsd:element name="builder" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"> |
| 106 |
<xsd:annotation> |
| 107 |
<xsd:documentation>The string identifying the builder of the component.</xsd:documentation> |
| 108 |
</xsd:annotation> |
| 109 |
</xsd:element> |
| 110 |
<xsd:element name="build_date" type="oval-sc:EntityItemIntType" minOccurs="0" maxOccurs="1"> |
| 111 |
<xsd:annotation> |
| 112 |
<xsd:documentation>The build date of the component, specified in milliseconds since the Epoch (midnight, January 1, 1970 GMT).</xsd:documentation> |
| 113 |
</xsd:annotation> |
| 114 |
</xsd:element> |
| 115 |
</xsd:sequence> |
| 116 |
</xsd:extension> |
| 117 |
</xsd:complexContent> |
| 118 |
</xsd:complexType> |
| 119 |
</xsd:element> |
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
<xsd:element name="xml_show_item" substitutionGroup="oval-sc:item"> |
| 124 |
<xsd:annotation> |
| 125 |
<xsd:documentation>Stores the result of the application of an XPATH query applied to the JunOS configuration data provided by the execution of a specific show command, which has been piped to "display xml".</xsd:documentation> |
| 126 |
</xsd:annotation> |
| 127 |
<xsd:complexType> |
| 128 |
<xsd:complexContent> |
| 129 |
<xsd:extension base="oval-sc:ItemType"> |
| 130 |
<xsd:sequence> |
| 131 |
<xsd:element name="subcommand" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"> |
| 132 |
<xsd:annotation> |
| 133 |
<xsd:documentation>The name of a SHOW sub-command to be tested.</xsd:documentation> |
| 134 |
</xsd:annotation> |
| 135 |
</xsd:element> |
| 136 |
<xsd:element name="xpath" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"> |
| 137 |
<xsd:annotation> |
| 138 |
<xsd:documentation>An XPATH 1.0 expression that should be evaluated against the XML data resulting from the XML show subcommand.</xsd:documentation> |
| 139 |
</xsd:annotation> |
| 140 |
</xsd:element> |
| 141 |
<xsd:element name="value_of" type="oval-sc:EntityItemAnySimpleType" minOccurs="0" maxOccurs="unbounded"> |
| 142 |
<xsd:annotation> |
| 143 |
<xsd:documentation>The result of the evaluation of the XPATH expression against the XML data returned from the XML show subcommand.</xsd:documentation> |
| 144 |
</xsd:annotation> |
| 145 |
</xsd:element> |
| 146 |
</xsd:sequence> |
| 147 |
</xsd:extension> |
| 148 |
</xsd:complexContent> |
| 149 |
</xsd:complexType> |
| 150 |
</xsd:element> |
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
<xsd:complexType name="EntityItemJunosReleaseTypeType"> |
| 155 |
<xsd:annotation> |
| 156 |
<xsd:documentation>The EntityItemJunosReleaseTypeType complex type defines the different values that are valid for the release_type entity of a system_metric state. These values describe the release type specified in the raw version string.</xsd:documentation> |
| 157 |
</xsd:annotation> |
| 158 |
<xsd:simpleContent> |
| 159 |
<xsd:restriction base="oval-sc:EntityItemStringType"> |
| 160 |
<xsd:enumeration value="R"> |
| 161 |
<xsd:annotation> |
| 162 |
<xsd:documentation>Indicates a normal release.</xsd:documentation> |
| 163 |
</xsd:annotation> |
| 164 |
</xsd:enumeration> |
| 165 |
<xsd:enumeration value="S"> |
| 166 |
<xsd:annotation> |
| 167 |
<xsd:documentation>Indicates a service release.</xsd:documentation> |
| 168 |
</xsd:annotation> |
| 169 |
</xsd:enumeration> |
| 170 |
<xsd:enumeration value="B"> |
| 171 |
<xsd:annotation> |
| 172 |
<xsd:documentation>Indicates a beta release.</xsd:documentation> |
| 173 |
</xsd:annotation> |
| 174 |
</xsd:enumeration> |
| 175 |
<xsd:enumeration value="X"> |
| 176 |
<xsd:annotation> |
| 177 |
<xsd:documentation>Indicates a release of the SRX branch.</xsd:documentation> |
| 178 |
</xsd:annotation> |
| 179 |
</xsd:enumeration> |
| 180 |
<xsd:enumeration value=""> |
| 181 |
<xsd:annotation> |
| 182 |
<xsd:documentation>The empty string value is permitted here to allow for empty elements associated with error conditions.</xsd:documentation> |
| 183 |
</xsd:annotation> |
| 184 |
</xsd:enumeration> |
| 185 |
</xsd:restriction> |
| 186 |
</xsd:simpleContent> |
| 187 |
</xsd:complexType> |
| 188 |
</xsd:schema> |