Novell Home

IPMGMT-XML-DTD-LATEST

From Developer Community

DTD specification for application scripts

DTD for appconf.xml

IP ADDRESS MANAGEMENT(LINUX) XML INTERFACE


DTD

 <?xml version="1.0" encoding=" ISO-8859-1"?>
 <!ELEMENT Name (#PCDATA)>
<!ELEMENT Description (#PCDATA)>
<!ELEMENT GlobalPolicy(#PCDATA)>
<!ELEMENT AppInfo (Name, Description,GlobalPolicy?)>
<!ELEMENT SubcomponentDescription (#PCDATA)>
<!ELEMENT LocalPolicy (#PCDATA)>
<!ELEMENT ContextInformation (#PCDATA)>
<!ELEMENT AddressType (#PCDATA)>
<!ELEMENT IPaddress (#PCDATA)>
<!ELEMENT AddressCategory (#PCDATA)>
<!ELEMENT Portnum (#PCDATA)>
<!ELEMENT Protocol (#PCDATA)>
<!ELEMENT AddressPortDescription (#PCDATA)>
<!ELEMENT IPaddressInfo(AddressPortDescription?,SubcomponentDescription?, LocalPolicy?,ContextInformation?,AddressType, AddressCategory, IPaddress,InterFaceName?, Protocol, Portnum, ConfigurationFilePath?)>
<!ELEMENT Handler (#PCDATA)>
<!ELEMENT InterFaceName (#PCDATA)>
<!ELEMENT DaemonPath (#PCDATA)>
<!ELEMENT ConfigurationFilePath (#PCDATA)>
<!ELEMENT ConfigStatus (#PCDATA)>
<!ELEMENT AdminInfo(DaemonPath,ConfigStatus,Handler)>
<!ELEMENT ApplicationIPConfig (AppInfo, IPaddressInfo+, AdminInfo)>
<!ELEMENT SystemIPPortConfig (ApplicationIPConfig+)>
 

SAMPLE XML FILE


<?xml version="1.0" encoding=" ISO-8859-1"?>
<SystemIPPortConfig>
<ApplicationIPConfig>
 <AppInfo>
          <Name>Apache</Name>
        <Description>Example for Apache.xml</Description>
 </AppInfo>
<IPaddressInfo>
             <ContextInformation>0.0.0.0:83</ContextInformation>
             <AddressType>IPv4</AddressType>
             <AddressCategory>2</AddressCategory>
             <IPaddress>0.0.0.0</IPaddress>
             <Protocol>TCP</Protocol>
             <Portnum>84</Portnum>
             <ConfigurationFilePath>/etc/apache2/httpd.conf</ConfigurationFilePath>
</IPaddressInfo>
<IPaddressInfo>
             <ContextInformation>0.0.0.0:442</ContextInformation>
             <AddressType>IPv4</AddressType>
             <AddressCategory>2</AddressCategory>
             <IPaddress>0.0.0.0</IPaddress>
             <Protocol>TCP</Protocol>
             <Portnum>443</Portnum>
             <ConfigurationFilePath>/etc/apache2/listen.conf</ConfigurationFilePath>
</IPaddressInfo>
<IPaddressInfo>
             <ContextInformation>0.0.0.0:80</ContextInformation>
             <AddressType>IPv4</AddressType>
             <AddressCategory>2</AddressCategory>
             <IPaddress>0.0.0.0</IPaddress>
             <Protocol>TCP</Protocol>
             <Portnum>81</Portnum>
             <ConfigurationFilePath>/etc/apache2/listen.conf</ConfigurationFilePath>
</IPaddressInfo>
<AdminInfo>
    <DaemonPath>/usr/sbin/httpd2 -f /etc/apache2/httpd.conf -k start</DaemonPath>
    <ConfigStatus>Started Fine:</ConfigStatus>
    <Handler>/etc/opt/novell/ipmgmt/apache2/appconf.xml</Handler>
</AdminInfo>
</ApplicationIPConfig>
</SystemIPPortConfig >

--Anoop Kumar P

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.