文件操作 - DSUConfig.xsd
返回文件管理
返回主菜单
删除本文件
文件: /opt/dell/dsu/DSUConfig.xsd
编辑文件内容
<?xml version="1.0" encoding="utf-8"?> <!-- - XML Schema for representing information about Dell System Update configuration paramters - Last Updated: 2021/26/08 - Version 1.4 following changes - * Added ssh key connect to remote system - Version 1.3 following changes - * Added proxy element for connecting to remote system - Version 1.2 following changes - * Moved rSystemType under RemoteSystem node - Version 1.1 following changes - * Added rSystemType attributte - * Added REDFISH protocol in ExecProto and FileProto - * Added UseiDRACPassThrough in RemoteSystem --> <xs:schema targetNamespace="DSUConfiguration" xmlns="http://downloads.dell.com/catalog/DSUConfig.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcn="DSUConfiguration" elementFormDefault="qualified" version="1.3"> <xs:complexType name="RepositoryType"> <xs:sequence> <xs:element name="RepoLocation"> <xs:complexType> <xs:annotation> <xs:documentation>Defines the type for representing Repository location</xs:documentation> </xs:annotation> <xs:attribute name="IP" type="xs:string" use="optional"/> <xs:attribute name="Directory" type="xs:string" use="optional"/> <xs:attribute name="Timeout" type="xs:string" use="optional"/> <xs:attribute name="CertPath" type="xs:string" use="optional"/> <xs:attribute name="UseLatestDSU" use="optional"> <xs:simpleType> <xs:annotation> <xs:documentation>Defines the possible values for UseLatestDSU</xs:documentation> </xs:annotation> <xs:restriction base="xs:token"> <xs:enumeration value="True"/> <xs:enumeration value="False"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> </xs:element> <xs:element name="Authentication" type="dcn:AuthenticationType" minOccurs="0" /> </xs:sequence> <xs:attribute name="Type" use="optional"> <xs:simpleType> <xs:annotation> <xs:documentation>Defines the possible types of repositories for Type attribute</xs:documentation> </xs:annotation> <xs:restriction base="xs:token"> <xs:enumeration value="YUM"/> <xs:enumeration value="APT"/> <xs:enumeration value="REPOSITORY"/> <xs:enumeration value="OSNATIVE"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:complexType name="AuthenticationType"> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="Username" type="xs:string" use="optional"/> <xs:attribute name="Password" type="xs:string" use="optional"/> <xs:attribute name="SshKeyFileName" type="xs:string" use="optional"/> <xs:attribute name="Passphrase" type="xs:string" use="optional"/> <xs:attribute name="OrderID" type="xs:string" use="optional"/> <xs:attribute name="ExecPort" type="xs:integer" use="optional"/> <xs:attribute name="FilePort" type="xs:integer" use="optional"/> <xs:attribute name="Domain" type="xs:string" use="optional"/> <xs:attribute name="Type" use="optional"> <xs:simpleType> <xs:annotation> <xs:documentation>Defines the possible types for supported Authentication</xs:documentation> </xs:annotation> <xs:restriction base="xs:token"> <xs:enumeration value="PLAIN"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="Token" type="xs:string" use="optional"/> <xs:attribute name="ExecProto" use="optional"> <xs:simpleType> <xs:annotation> <xs:documentation>Defines the possible types of Execution protocols supported for connecting to remote system</xs:documentation> </xs:annotation> <xs:restriction base="xs:token"> <xs:enumeration value="SSH"/> <xs:enumeration value="WMI"/> <xs:enumeration value="REDFISH"/> <xs:enumeration value="DEFAULT"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="FileProto" use="optional"> <xs:simpleType> <xs:annotation> <xs:documentation>Defines the possible types of File protocols used for transferring files to remote system</xs:documentation> </xs:annotation> <xs:restriction base="xs:token"> <xs:enumeration value="SCP"/> <xs:enumeration value="WMI"/> <xs:enumeration value="HTTPS"/> <xs:enumeration value="HTTP"/> <xs:enumeration value="FTP"/> <xs:enumeration value="TFTP"/> <xs:enumeration value="REDFISH"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:complexType name="ApplySequenceType"> <xs:annotation> <xs:documentation>Defines the type for representing ApplySequence</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="Sequence" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Defines the type for representing specific sequence</xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Category" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="Value" type="xs:string" use="required"/> <xs:attribute name="OrderID" type="xs:string" use="required"/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="Type" use="required"> <xs:simpleType> <xs:annotation> <xs:documentation>Defines the possible apply orders for Type attribute.</xs:documentation> </xs:annotation> <xs:restriction base="xs:token"> <xs:enumeration value="ApplyFirst"/> <xs:enumeration value="ApplyLast"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="ProxyType"> <xs:annotation> <xs:documentation>Defines the type for representing proxy information</xs:documentation> </xs:annotation> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="URL" type="xs:string" use="optional"> <xs:annotation> <xs:documentation> The proxy URL for connecting to internet </xs:documentation> </xs:annotation> </xs:attribute> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="DSUConfig"> <xs:annotation> <xs:documentation>Defines the type for representing DSU Configuration</xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Repository" type="dcn:RepositoryType" minOccurs="0"> <xs:annotation> <xs:documentation>Defines the type for representing a update reposiotry for DSU</xs:documentation> </xs:annotation> </xs:element> <xs:element name="ApplySequence" type="dcn:ApplySequenceType" minOccurs="0"> <xs:annotation> <xs:documentation>Defines the type for representing ApplySequence</xs:documentation> </xs:annotation> </xs:element> <xs:element name="AuthenticationSequence" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element name="Authentication" type="dcn:AuthenticationType" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Proxy" type="dcn:ProxyType" minOccurs="0"> <xs:annotation> <xs:documentation>Defines the type for representing proxy information used for connecting to internets</xs:documentation> </xs:annotation> </xs:element> <xs:element name="RemoteSystem" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element name="System" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name="Repository" type="dcn:RepositoryType" minOccurs="0"/> <xs:element name="AuthenticationSequence" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element name="Authentication" type="dcn:AuthenticationType" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ApplySequence" type="dcn:ApplySequenceType" minOccurs="0"/> <xs:element name="UseiDRACPassThrough" minOccurs="0"> <xs:annotation> <xs:documentation>Defines the type for using the iDRAC USB-NIC Passhthrough.</xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Authentication" type="dcn:AuthenticationType" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="Name" type="xs:string" use="optional"/> <xs:attribute name="Address" type="xs:string" use="required"/> <xs:attribute name="AddressType"> <xs:simpleType> <xs:annotation> <xs:documentation>Defines the possible values for AddressType</xs:documentation> </xs:annotation> <xs:restriction base="xs:token"> <xs:enumeration value="IPV4"/> <xs:enumeration value="IPV6"/> <xs:enumeration value="FQDN"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="LogFile" type="xs:string" use="optional"/> <xs:attribute name="rSystemType" use="optional"> <xs:simpleType> <xs:annotation> <xs:documentation>Defines the possible types operating system on remote system.</xs:documentation> </xs:annotation> <xs:restriction base="xs:token"> <xs:enumeration value="Windows"/> <xs:enumeration value="Linux"/> <xs:enumeration value="iDRAC"/> <xs:enumeration value="MSM"/> <xs:enumeration value="CMC"/> <xs:enumeration value="OS10"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件