-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsnowagent.config.xsd
2575 lines (2449 loc) · 110 KB
/
snowagent.config.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:documentation>
Snow Inventory Agent Configuration Schema
</xs:documentation>
</xs:annotation>
<xs:element name="Configuration" type="Configuration"/>
<xs:complexType name="Configuration">
<xs:annotation>
<xs:documentation>
<![CDATA[
Root element of Snow inventory configuration file. <br/>
An element with minOccurs="0" that isn't presented in the xml file will have a Null value.
Every system shall have a default settings.xml file that decides what value should be the default if none is given.<br/>
The order the client should do this is to first read the default xml file and after that write over these values with the values in the users xml file.<br/>
> **Note:**<br/>
> All elements in the configuration file are case sensitive.
]]>
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="Agent">
<xs:annotation>
<xs:documentation>
<![CDATA[
<b>Required element.</b><br/>
Basic information about the agent deployment. Such as site and configuration name.
]]>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="SiteName" type="NotEmptyString" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
<b>Required element.</b><br/>
The name of the site that the agent belongs to. The site is used to identify the origin of the data files when transmitted to the server.
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ConfigName" type="NotEmptyString" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
<b>Required element.</b><br/>
Name of the configuration.
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Schedule" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element. **Only applicable to the Windows Agent.**<br />
Schedule tasks to run on a recurring interval.<br />
The element must be provided in the configuration for automatic scans to be performed.
]]>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Task" type="ScheduleTask" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>List of tasks that the client should perform. Can be empty.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="enabled" type="xs:boolean">
<xs:annotation>
<xs:documentation>
<![CDATA[
Acceptable values: `true`, `false`
]]>
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Meter" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element. **Only applicable to the Windows Agent.**<br/>
Metering rules.
]]>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Exclude" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.<br/>
Specifies what software should be excluded from scan.
]]>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Path" type="NotEmptyString" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.<br/>
Exclude software based on a set of simple string matching rules.
> **Example:**<br />
>
> - `*.dll` exclude all software that ends with the `.dll` extension<br />
> - `C:\Windows\*` exclude all software that is run from the `C:\Windows` directory<br />
>
<!-- -->
> **Note:**<br />
> Exclusions do not impact unconditional include paths.<br />
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Span" type="Span" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
<b>Required element.</b><br/>
Time span for metering.
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Occurance" type="MeterOccurance" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
<b>Required element.</b><br/>
List of days when metering should be done.
]]>
</xs:documentation>
</xs:annotation>
<xs:unique name="Weekday">
<xs:selector xpath="child::Weekday"/>
<xs:field xpath="."/>
</xs:unique>
</xs:element>
</xs:sequence>
<xs:attribute name="enabled" type="xs:boolean">
<xs:annotation>
<xs:documentation>
<![CDATA[
Acceptable values: `true`, `false` <br/>
]]>
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Software" minOccurs="0">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.
Defines what should be included in the clients next scan.
> **Note:**<br/>
> Software is included from the following locations by default in the Windows operating system:<br/>
>
> - Desktop<br/>
> - user profile<br/>
> - start menu<br/>
> - uninstall information<br/>
> - running processes<br/>
]]>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Include" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.<br/>
Specifies what software should be included in scan based on file system locations.
]]>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Path" type="SoftwareIncludePath" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
<![CDATA[
Each path is a search expression that is used to locate software based on the file system information.<br />
If no path is specified, software information from any locally attached (or mounted) disk will be included.<br />
> **Note:**<br />
> Unless any exclude paths have been specified a complete file system scan will take place. It could take a while, and impact system performance for the duration of the scan. <br />
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:unique name="Include_Path">
<xs:selector xpath="child::Path"/>
<xs:field xpath="."/>
</xs:unique>
</xs:element>
<xs:element name="IncludeCriteria" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.<br/>
Additional criteria that must be fulfilled for software to be included in the result.<br/>
For each type of criteria, at least one (if any) of the criterias must match.<br/>
For example, if multiple extensions have been specified it's enough if one extension matches but if extensions and manufacturers have both been specified there has to be at least one matching extension and manufacturer.
]]>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Manufacturer" type="NotEmptyString" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.**Only applicable to the Windows Agent.** May be specified multiple times. <br/>
If software is to be included, it must match at least one manufacturer filter.<br/>
> **Note:**<br/>
> The manufacturer criteria can only be applied if the manufacturer can be determined.
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="FileSystem" type="NotEmptyString" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element. **Only applicable to UNIX agent.** May be specified multiple times. <br/>
If scanning for software reaches a directory that is a mount point the scanning will not continue scanning the directory further if the file system isn't listed.<br/>
> **Example:**<br/>
> `jsf`
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="FileType" type="NotEmptyString" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element. May be specified multiple times. **Only applicable for the Windows & Unix Agent**<br/>
If software is to be included it must match one of the file types specified.<br/>
> **Example:**<br/>
>
> - Unix: `ELF*executable*`, as reported by the `file` command. Supports wildcard matching.<br/>
> - Windows: file extensions. Defaults are: `exe`, `wfd`, `wfi`, `wtd`, `sys2`, `lnk`
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:unique name="IncludeCriteria_FileSystem">
<xs:selector xpath="child::Filesystem"/>
<xs:field xpath="."/>
</xs:unique>
<xs:unique name="IncludeCriteria_Manufacturer">
<xs:selector xpath="child::Manufacturer"/>
<xs:field xpath="."/>
</xs:unique>
<xs:unique name="IncludeCriteria_FileType">
<xs:selector xpath="child::FileType"/>
<xs:field xpath="."/>
</xs:unique>
</xs:element>
<xs:element name="Exclude" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.<br/>
Specifies what software should be excluded from scan.
]]>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Path" type="NotEmptyString" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element. May be specified multiple times.<br/>
Exclude software based on a set of simple string matching rules.<br/>
> **Examples:**<br/>
>
> - `*.dll` exclude all software that ends with the `.dll` extension<br/>
> - `C:\Windows\*` exclude all software that is run from the `C:\Windows` directory<br/>
> - `/some/path/*` exclude software beneath the /some/path directory
<!-- -->
> **Note:**<br/>
> Exclusions do not impact unconditional include paths.
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="FileSystem" type="NotEmptyString" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element. May be specified multiple times. **Only applicable to the Linux and macOS Agent.**<br/>
Software exclusions based on the file system type.<br/>
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:unique name="Exclude_FileSystem">
<xs:selector xpath="child::Filesystem"/>
<xs:field xpath="."/>
</xs:unique>
<xs:unique name="Exclude_Path">
<xs:selector xpath="child::Path"/>
<xs:field xpath="."/>
</xs:unique>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Registry" minOccurs="0">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element. **Only applicable to the Windows Agent.**<br/>
Include additional information from the Windows Registry in the scan result.
> **Warning:**<br/>
> Using this will replace the default behaviour entirely. Utilizing the `Collect Custom Registry Keys` powershell extension is the preferred method.
]]>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Query" type="RegistryQuery" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Represents a registry query.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="enabled" type="xs:boolean">
<xs:annotation>
<xs:documentation>Acceptable values: `true`, `false`</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Logging" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.<br/>
Control the log output.
]]>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="MaxSize" type="xs:positiveInteger" minOccurs="0">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.<br/>
Maximum allowed file size of the log file in KiB.<br/>
Default:<br/>
- Windows/Linux/macOS: `2048`<br/>
- Unix: `16384`<br/>
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Level" type="LogLevel" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.<br/>
Specify log level. Each log level includes the preceeding log level.<br/>
Default: `error`
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Tag" type="LogTags" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.<br/>
Enable tagged log output. Tagged log output represents logging of a specific type or source and log independently of any log level set.<br/>
Some tags (such as the `metering` tag) are very verbose and should only be enabled during troubleshooting of any metering related issue.
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Syslog" minOccurs="0">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element. **Only applicable to the POSIX Agent.**<br/>
Control the syslog output.
]]>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Level" type="LogLevel" minOccurs="0">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.<br/>
Specify log level. Each log level includes the preceeding log level.<br />
Default: `error`
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Tag" type="LogTags" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.<br/>
Enable tagged log output. Tagged log output represents logging of a specific type or source and log independently of any log level set.<br/>
Some tags (such as the `metering` tag) are very verbose and should only be enabled during troubleshooting of any metering related issue.
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="enabled" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>
<![CDATA[
Acceptable value: true or false
Default: false
]]>
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:unique name="SyslogTags">
<xs:selector xpath="child::Tag"/>
<xs:field xpath="."/>
</xs:unique>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:unique name="LogTags">
<xs:selector xpath="child::Tag"/>
<xs:field xpath="."/>
</xs:unique>
</xs:element>
<xs:element name="Server" type="ServerSettings" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
<b>Required element.</b><br/>
Specify server endpoints. Each endpoint represents a possible path for the agent to the server.
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DropLocation" minOccurs="0">
<xs:annotation>
<xs:documentation>
<![CDATA[
A drop location can be a folder, HTTP endpoint or UNC file path and specifies an additional delivery location for scan results. Only used when the agent normally sends the result to the server.<br/>
> **Note:**<br/>
> Drop locations are not subject to retry policies, if a drop location does not receive the scan result (for any reason) the scan result will not be resent to that drop location at a later date.
]]>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element name="Network" type="Network" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Optional element. **Only applicable to the Windows Agent.** May be specified multiple times.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Path" type="NotEmptyString" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element. May be specified multiple times.
> **Example:**<br />
>
> - `\\server\folder`
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Endpoint" type="ServerEndpoint" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="Oracle" minOccurs="0">
<xs:annotation>
<xs:documentation>Information used in the SIOS component for Oracle database inventory.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Environment" type="Environment" minOccurs="0" maxOccurs="1">
<xs:unique name="Environment">
<xs:selector xpath="child::Item"/>
<xs:field xpath="@variable"/>
</xs:unique>
</xs:element>
<xs:element name="DefaultInstanceCredentials" type="UserCredentials" minOccurs="0">
<xs:annotation>
<xs:documentation>
<![CDATA[
Credentials used in all oracle scans if there is no specific credentials for a SID.
May be left out if automatic scan is used or instance specific credentials are entered.
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Oratab" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
Specifies the location of the Oratab file to be used to read ORACLE HOME from.
This setting is overridden by an OracleHome-element in the Instance-element.
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="InstancesWithConfiguration" type="Instances" minOccurs="0" maxOccurs="1"/>
<xs:element name="Include" minOccurs="0">
<xs:annotation>
<xs:documentation>List of what should be included in the Oracle database scan.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice>
<xs:element name="AllInstances" type="xs:boolean" default="true" minOccurs="0">
<xs:annotation>
<xs:documentation>
<![CDATA[
Control, if all instances should be found and scanned.<br />
Deafault: `true`
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Instance" type="OracleInstance" maxOccurs="unbounded"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="Exclude" minOccurs="0">
<xs:annotation>
<xs:documentation>List of what should be excluded from the Oracle database scan.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Instance" type="OracleInstance" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="enabled" type="xs:boolean">
<xs:annotation>
<xs:documentation>
<![CDATA[Acceptable values: `true`, `false`]]>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="debug" type="xs:boolean">
<xs:annotation>
<xs:documentation>
<![CDATA[
Determines if additional information is included in the snowpack for diagnostic purposes.<br/>
Acceptable values: `true`, `false`
]]>
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:unique name="Instance">
<xs:selector xpath="child::Include/child::Instance/child::SID | child::Exclude/child::Instance/child::SID"/>
<xs:field xpath="."/>
</xs:unique>
</xs:element>
<xs:element name="SystemSettings" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>System settings that override the default behavior of the agent. Use with care.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Setting" type="SystemSetting" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:unique name="SystemSetting">
<xs:selector xpath="child::Setting"/>
<xs:field xpath="@key"/>
</xs:unique>
</xs:element>
<xs:element name="Environment" minOccurs="0">
<xs:annotation>
<xs:documentation>Element containing control directives regarding environment data.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Ignore" type="NotEmptyString" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Used to specify an environment variable to ignore when gathering them from the environment. Name is case-sensitive.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:unique name="Ignore">
<xs:selector xpath="child::Ignore"/>
<xs:field xpath="."/>
</xs:unique>
</xs:element>
<xs:element name="SudoCommands" minOccurs="0">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element. **Only applicable to the UNIX Agent.**<br/>
List of commands that are allowed to be elevated to root using sudo.
]]>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Path" type="NotEmptyString" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
<![CDATA[
Path to command allowed to be elevated using sudo.<br/>
> **Example:**<br/>
>
> - `/usr/bin/file`
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:unique name="SudoPath">
<xs:selector xpath="child::Path"/>
<xs:field xpath="."/>
</xs:unique>
</xs:element>
</xs:all>
</xs:complexType>
<xs:simpleType name="NotEmptyString">
<xs:restriction base="xs:string">
<xs:minLength value="1" />
<xs:pattern value=".*[^\s].*" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="SHA256HashString">
<xs:restriction base="xs:string">
<xs:pattern value="sha256//[a-zA-z0-9+/=]{44}" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ServerSettings">
<xs:annotation>
<xs:documentation>
<![CDATA[
Specify server endpoints. Each endpoint represents a possible path for the agent to the server.<br/>
> **Note:**<br/>
> When establishing a connection to the server the agent simply choses an endpoint randomly from the list of available endpoints until each endpoint has been atempted at least once before giving up.<br/>
> The first endpoint that results in a successfull connection will be used for the remainder of the session.
]]>
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Endpoint" type="ServerEndpoint" minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
<![CDATA[
<b>Required element.</b> May be specified multiple times.<br/>
A server endpoint that the agent will use to connect to the server infrastructure.
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ServerEndpoint">
<xs:sequence>
<xs:element type="NotEmptyString" name="Address">
<xs:annotation>
<xs:documentation>
<![CDATA[
<b>Required element.</b><br/>
Specify the server URI in the following format: `scheme://hostname:port/`.<br/>
Supported URI schemes are `http` and `https`.
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Proxy" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.<br/>
Proxy settings to use for this endpoint. If proxy settings are not specified any proxy server support is explicitly disabled for this endpoint.
]]>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="NotEmptyString" name="Server" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
<b>Required element.</b><br/>
Specify the address for this proxy server.
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Credentials" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.<br/>
Credentials used to authenticate connection with HTTP proxy server.<br/>
> **Note:**<br/>
> Only basic authentication is supported.
]]>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="UserName" type="NotEmptyString"/>
<xs:element name="Password" type="xs:string">
<xs:annotation>
<xs:documentation>
<![CDATA[
> **Note:**<br/>
> Passwords needs to be provided in encrypted form.
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ClientCertificate" minOccurs="0">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.<br/>
The client certificate used to secure the connection between agent and server.
]]>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element name="FileName" type="NotEmptyString">
<xs:annotation>
<xs:documentation>
<![CDATA[
The file name of a client certificate to use, relative to the current installation location.
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:element name="Password" type="xs:string">
<xs:annotation>
<xs:documentation>
<![CDATA[
The password to use if the client certificate has been password protected.<br/>
> **Note:**<br />
> Passwords needs to be provided in encrypted form.
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element type="SHA256HashString" name="ServerPublicKeyHash" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
<![CDATA[
Base64-encoded sha256 hash of the Inventory server certificate public key. The string should start with `sha256//` <br/>
> **Example:**<br/>
>
> - `sha256//YhKJKSzoTt2b5FP18fvpHo7fJYqQCjAa3HWY3tvRMwE=`
]]>
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Environment">
<xs:sequence>
<xs:element name="Item" minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Specifies a single environment variable to be set.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="variable" type="NotEmptyString" use="required"/>
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="SoftwareIncludePath">
<xs:annotation>
<xs:documentation>
<![CDATA[
Each path is a search expression that is used to locate software based on the file system information.<br/>
<br/>
> **Example:**<br/>
>
> - `C:\Windows\*` matches all files located in the `C:\Windows` directory<br/>
> - `C:\Windows\*.log` matches all `.log` files located in the `C:\Windows` directory
]]>
</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="NotEmptyString">
<xs:attribute type="xs:boolean" name="recursive" use="optional">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.<br/>
Specifies whether to use the path to search recursively for files.<br/>
For example, when `recursive=true` the path `C:\Windows\*.log` matches all `.log` files located in the `C:\Windows` directory and all sub directories.<br />
Acceptable values: `true`, `false`<br />
Default: `false`
]]>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:boolean" name="unconditionally" use="optional">
<xs:annotation>
<xs:documentation>
<![CDATA[
Optional element.<br/>
Specifies whether to include the files found regardless of any exclusion filter.<br/>
Acceptable values: `true`, `false`<br/>
Default: `true`
]]>
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<!--xs:complexType name="SoftwareExcludePath">
<xs:simpleContent>
<xs:extension base="xs:string"></xs:extension>
</xs:simpleContent>
</xs:complexType-->
<xs:complexType name="OracleInstances">
<xs:annotation>
<xs:documentation>List of Oracle instances</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Instance" type="OracleInstance" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="OracleInstance">
<xs:annotation>
<xs:documentation>Defines the SID and can also contain credentials for the SID. You can also point to an Oracle home path.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element type="NotEmptyString" name="SID">
<xs:annotation>
<xs:documentation>**Required Element**</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Credentials" type="UserCredentials" minOccurs="0">
<xs:annotation>
<xs:documentation>Optional Element.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element type="NotEmptyString" name="OracleHome" minOccurs="0">
<xs:annotation>
<xs:documentation>Optional Element. Path to the Oracle home directory. Used if the scanner cannot find the path automatically.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Environment" type="Environment" minOccurs="0" maxOccurs="1"/>
<xs:element name="UnixUser" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Optional Element. **Only applicable to the Linux and Unix Agent.**</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="LogLevel">
<xs:annotation>
<xs:documentation>
<![CDATA[
The levels of logging in order of importance.
The Error, Warning and Info levels will be ordinary day to day logging while the Trace and Verbose are for debug and fault search.
]]>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="error"/>
<xs:enumeration value="warning"/>
<xs:enumeration value="info"/>
<xs:enumeration value="trace"/>
<xs:enumeration value="verbose"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="LogTags">
<xs:annotation>
<xs:documentation>The following is a complete list of supported tags:</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="privop"/>
<xs:enumeration value="metering"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Instances">
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="Instance" type="OracleInstance" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="UserCredentials">
<xs:sequence>
<xs:element name="UserName" type="NotEmptyString"/>
<xs:element name="Password" type="NotEmptyString"/>
</xs:sequence>
<xs:attribute name="UseTNS" type="xs:boolean" use="optional" default="false"/>
</xs:complexType>