Debian Codegraph @

schemas/oval/5.11.2/junos-system-characteristics-schema.xsd

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3 xmlns:oval-sc="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5"
4 xmlns:junos-sc="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#junos"
5 xmlns:sch="http://purl.oclc.org/dsdl/schematron"
6 targetNamespace="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#junos"
7 elementFormDefault="qualified" version="5.11">
8 <xsd:import namespace="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5" schemaLocation="oval-system-characteristics-schema.xsd"/>
9 <xsd:annotation>
10 <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>
11 <xsd:documentation>This schema was originally developed by David Solin at jOVAL.org. The OVAL Schema is maintained by the 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.cisecurity.org.</xsd:documentation>
12 <xsd:appinfo>
13 <schema>Junos System Characteristics</schema>
14 <version>5.11.1:1.1</version>
15 <date>11/30/2016 09:00:00 AM</date>
16 <terms_of_use>Copyright (c) 2016, Center for Internet Security. All rights reserved. The contents of this file are subject to the terms of the OVAL License located at https://oval.cisecurity.org/terms. 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>
17 <sch:ns prefix="oval-sc" uri="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5"/>
18 <sch:ns prefix="junos-sc" uri="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#junos"/>
19 <sch:ns prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance"/>
20 </xsd:appinfo>
21 </xsd:annotation>
22 <!-- ====================================================================== -->
23 <!-- ======================= JUNOS XML CONFIG ITEM ====================== -->
24 <!-- ====================================================================== -->
25 <xsd:element name="xml_config_item" substitutionGroup="oval-sc:item">
26 <xsd:annotation>
27 <xsd:documentation>Stores information about the existence of a particular XPATH query result from the JunOS XML config file.</xsd:documentation>
28 </xsd:annotation>
29 <xsd:complexType>
30 <xsd:complexContent>
31 <xsd:extension base="oval-sc:ItemType">
32 <xsd:sequence>
33 <xsd:element name="xpath" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
34 <xsd:annotation>
35 <xsd:documentation>An XPATH 1.0 expression that was evaluated against the XML config file.</xsd:documentation>
36 </xsd:annotation>
37 </xsd:element>
38 <xsd:element name="value_of" type="oval-sc:EntityItemAnySimpleType" minOccurs="0" maxOccurs="unbounded">
39 <xsd:annotation>
40 <xsd:documentation>The result of the evaluation of the XPATH expression against the XML config file.</xsd:documentation>
41 </xsd:annotation>
42 </xsd:element>
43 </xsd:sequence>
44 </xsd:extension>
45 </xsd:complexContent>
46 </xsd:complexType>
47 </xsd:element>
48 <!-- ==================================================================== -->
49 <!-- ========================== JUNOS SHOW ITEM ======================= -->
50 <!-- ==================================================================== -->
51 <xsd:element name="show_item" substitutionGroup="oval-sc:item">
52 <xsd:annotation>
53 <xsd:documentation>Stores the resulting configuration data provided by the execution of a specific show command.</xsd:documentation>
54 </xsd:annotation>
55 <xsd:complexType>
56 <xsd:complexContent>
57 <xsd:extension base="oval-sc:ItemType">
58 <xsd:sequence>
59 <xsd:element name="subcommand" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
60 <xsd:annotation>
61 <xsd:documentation>The name of the SHOW sub-command.</xsd:documentation>
62 </xsd:annotation>
63 </xsd:element>
64 <xsd:element name="value" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
65 <xsd:annotation>
66 <xsd:documentation>The value returned from by the specified SHOW sub-command. This may consist of multiple lines of information.</xsd:documentation>
67 </xsd:annotation>
68 </xsd:element>
69 </xsd:sequence>
70 </xsd:extension>
71 </xsd:complexContent>
72 </xsd:complexType>
73 </xsd:element>
74 <!-- ======================================================================= -->
75 <!-- ======================== JUNOS VERSION ITEM ========================= -->
76 <!-- ======================================================================= -->
77 <xsd:element name="version_item" substitutionGroup="oval-sc:item">
78 <xsd:annotation>
79 <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>
80 </xsd:annotation>
81 <xsd:complexType>
82 <xsd:complexContent>
83 <xsd:extension base="oval-sc:ItemType">
84 <xsd:sequence>
85 <xsd:element name="component" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
86 <xsd:annotation>
87 <xsd:documentation>The name of the JunOS component whose version should be retrieved.</xsd:documentation>
88 </xsd:annotation>
89 </xsd:element>
90 <xsd:element name="raw_value" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
91 <xsd:annotation>
92 <xsd:documentation>The raw release version string for the component, e.g., 12.2R6.1 or 12.1X44-D10.4.</xsd:documentation>
93 </xsd:annotation>
94 </xsd:element>
95 <xsd:element name="major" type="oval-sc:EntityItemIntType" minOccurs="0" maxOccurs="1">
96 <xsd:annotation>
97 <xsd:documentation>The part of the release version of the component corresponding to the year in which the release occurred. For example, the major value for 12.2R6.1 would be '12'.</xsd:documentation>
98 </xsd:annotation>
99 </xsd:element>
100 <xsd:element name="minor" type="oval-sc:EntityItemIntType" minOccurs="0" maxOccurs="1">
101 <xsd:annotation>
102 <xsd:documentation>The part of the release version of the component corresponding to the quarter in which the release occurred. For example, the minor value for 12.2R6.1 would be '2'.</xsd:documentation>
103 </xsd:annotation>
104 </xsd:element>
105 <xsd:element name="type" type="junos-sc:EntityItemJunosReleaseTypeType" minOccurs="0" maxOccurs="1">
106 <xsd:annotation>
107 <xsd:documentation>The release type embedded in the version of the component. For example, the type value for 12.2R6.1 is 'R'.</xsd:documentation>
108 </xsd:annotation>
109 </xsd:element>
110 <xsd:element name="build" type="oval-sc:EntityItemIntType" minOccurs="0" maxOccurs="1">
111 <xsd:annotation>
112 <xsd:documentation>The build number of the component's version. For example, the revision for 12.2R6.1 has a build number of '6'; 12.1X44-D10.4 has a build number of '44'.</xsd:documentation>
113 </xsd:annotation>
114 </xsd:element>
115 <xsd:element name="maintenance_release" type="oval-sc:EntityItemIntType" minOccurs="0" maxOccurs="1">
116 <xsd:annotation>
117 <xsd:documentation>A maintenance_release value can appear in an R-type service release or an X-type release (where it takes the value of the D-number). For example, version 14.2R3-S4.5 has a maintenance_release of '4'. For version 10.4S4.2, the maintenance_release entity would have a status of 'does not exist'. For version 12.1X44-D10.4, the maintenance_release entity value would be '10'.</xsd:documentation>
118 </xsd:annotation>
119 </xsd:element>
120 <xsd:element name="spin" type="oval-sc:EntityItemIntType" minOccurs="0" maxOccurs="1">
121 <xsd:annotation>
122 <xsd:documentation>The spin number of the component. For example, 12.2R6.1 has a spin value of '1'; 12.1X44-D10.4 has a spin value of '4'.</xsd:documentation>
123 </xsd:annotation>
124 </xsd:element>
125 <xsd:element name="build_date" type="oval-sc:EntityItemIntType" minOccurs="0" maxOccurs="1">
126 <xsd:annotation>
127 <xsd:documentation>The build date of the component, specified in milliseconds since the Epoch (midnight, January 1, 1970 GMT).</xsd:documentation>
128 </xsd:annotation>
129 </xsd:element>
130 </xsd:sequence>
131 </xsd:extension>
132 </xsd:complexContent>
133 </xsd:complexType>
134 </xsd:element>
135 <!-- ======================================================================= -->
136 <!-- ======================= JUNOS XML SHOW ITEM ========================= -->
137 <!-- ======================================================================= -->
138 <xsd:element name="xml_show_item" substitutionGroup="oval-sc:item">
139 <xsd:annotation>
140 <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>
141 </xsd:annotation>
142 <xsd:complexType>
143 <xsd:complexContent>
144 <xsd:extension base="oval-sc:ItemType">
145 <xsd:sequence>
146 <xsd:element name="subcommand" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
147 <xsd:annotation>
148 <xsd:documentation>The name of a SHOW sub-command to be tested.</xsd:documentation>
149 </xsd:annotation>
150 </xsd:element>
151 <xsd:element name="xpath" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
152 <xsd:annotation>
153 <xsd:documentation>An XPATH 1.0 expression that should be evaluated against the XML data resulting from the XML show subcommand.</xsd:documentation>
154 </xsd:annotation>
155 </xsd:element>
156 <xsd:element name="value_of" type="oval-sc:EntityItemAnySimpleType" minOccurs="0" maxOccurs="unbounded">
157 <xsd:annotation>
158 <xsd:documentation>The result of the evaluation of the XPATH expression against the XML data returned from the XML show subcommand.</xsd:documentation>
159 </xsd:annotation>
160 </xsd:element>
161 </xsd:sequence>
162 </xsd:extension>
163 </xsd:complexContent>
164 </xsd:complexType>
165 </xsd:element>
166 <!-- =============================================================================== -->
167 <!-- =============================================================================== -->
168 <!-- =============================================================================== -->
169 <xsd:complexType name="EntityItemJunosReleaseTypeType">
170 <xsd:annotation>
171 <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>
172 </xsd:annotation>
173 <xsd:simpleContent>
174 <xsd:restriction base="oval-sc:EntityItemStringType">
175 <xsd:enumeration value="R">
176 <xsd:annotation>
177 <xsd:documentation>Indicates a normal release.</xsd:documentation>
178 </xsd:annotation>
179 </xsd:enumeration>
180 <xsd:enumeration value="I">
181 <xsd:annotation>
182 <xsd:documentation>Indicates an internal release.</xsd:documentation>
183 </xsd:annotation>
184 </xsd:enumeration>
185 <xsd:enumeration value="F">
186 <xsd:annotation>
187 <xsd:documentation>Indicates a feature release.</xsd:documentation>
188 </xsd:annotation>
189 </xsd:enumeration>
190 <xsd:enumeration value="S">
191 <xsd:annotation>
192 <xsd:documentation>Indicates a service release.</xsd:documentation>
193 </xsd:annotation>
194 </xsd:enumeration>
195 <xsd:enumeration value="B">
196 <xsd:annotation>
197 <xsd:documentation>Indicates a beta release.</xsd:documentation>
198 </xsd:annotation>
199 </xsd:enumeration>
200 <xsd:enumeration value="X">
201 <xsd:annotation>
202 <xsd:documentation>Indicates an exception release (e.g., every release of the SRX branch so far).</xsd:documentation>
203 </xsd:annotation>
204 </xsd:enumeration>
205 <xsd:enumeration value="">
206 <xsd:annotation>
207 <xsd:documentation>The empty string value is permitted here to allow for empty elements associated with error conditions.</xsd:documentation>
208 </xsd:annotation>
209 </xsd:enumeration>
210 </xsd:restriction>
211 </xsd:simpleContent>
212 </xsd:complexType>
213 </xsd:schema>