Share via


2.1 OSInfo Service

The OSInfo Service is a service in the Internet gateway device (IGD). Its service description is specified as follows, in the UPnP Template Language as defined in [UPNPARCH1.1] section 2.6.

  
 <?xml version="1.0"?>
 <scpd xmlns="urn:schemas-upnp-org:service-1-0">
   <specVersion>
     <major>1</major>
     <minor>0</minor>
   </specVersion>
   <actionList>
    <action>
       <name>MagicOn</name>
     </action>
   </actionList>
   <serviceStateTable>
     <stateVariable>
       <name>OSMajorVersion</name>
       <dataType>i4</dataType>
     </stateVariable>
     <stateVariable>
       <name>OSMinorVersion</name>
       <dataType>i4</dataType>
     </stateVariable>
     <stateVariable>
       <name>OSBuildNumber</name>
       <dataType>i4</dataType>
     </stateVariable>
     <stateVariable>
       <name>OSMachineName</name>
       <dataType>string</dataType>
     </stateVariable>
   </serviceStateTable>
 </scpd>

The following action is defined in the service description above:

MagicOn: A placeholder action created solely to provide a properly formed UPnP service description. The MagicOn action provides no functionality and always returns success.

The following state variables are defined in the service description above:

OSMajorVersion: The major version of the operating system.

OSMinorVersion: The minor version of the operating system.

OSBuildNumber: The build number of the operating system.

OSMachineName: The computer name of the Internet gateway device.