0
edits
Changes
Initial page
==Supported host attributes==
'''!!! This requires WPKG 1.2 or higher !!!'''
Below find a table of supported host attributes.
{| border="1"
!Attribute !! Description !! Example content collected by WPKG
|-
|hostname || the name of the host || hostname="satellite"
|-
|os || the operating system || os="microsoft windows 7 home premium, , sp1, 6.1.7601"
|-
|architecture || the processor architecture || architecture="x64"
|-
|ipaddresses || all active IP addresses || ipaddresses="10.0.0.2,192.168.56.1"
|-
|domainname || the domain the host belongs to || domainname="wpkg.org"
|-
|groups || all groups the host belongs to || groups="design,office"
|-
|lcid || the language of the operating system || lcid="c07"
|}
==Where to use them==
Below find a table of where you can use these attributes.
{| border="1"
!File !! Node !! Example
|-
|rowspan="2" | hosts.xml || host || <host name="..." proifile-id="..." os="..." ... />
|-
| variable || <variable name="..." value="..." os="..." ... />
|-
|rowspan="2" | profiles.xml || package || <package package-id="..." os="..." ... />
|-
| variable || <variable name="..." value="..." os="..." ... />
|-
|rowspan="5" | packages.xml || variable || <variable name="..." value="..." os="..." ... />
|-
| install || <install cmd="..." os="..." />
|-
| upgrade || <upgrade cmd="..." os="..." />
|-
| downgrade || <downgrade cmd="..." os="..." />
|-
| remove || <remove cmd="..." os="..." />
|}
==Detailed descriptions==
All attributes are matched using regular expressions.
The collected information is added to the <wpkg/> node of the wpkg.xml file, which allows reporting tools to apply the extended matching too.
===hostname===
This contains the name of the system, which is also contained in the Windows environment variable %COMPUTERNAME%.
===os===
This contains the full description of the operations system, which consists of the following parts:
* OS-caption
* OS-description
* CSD-version (usually the service pack)
* OS-version
===architecture===
This contains the processor architecture of the current operating system.
Below find a table of possible values.
{| border="1"
!Value !! Description
|-
|x86 || Intel x86 compatible 32-bit architecture
|-
|x64 || AMD64 compatible 64-bit architecture
|-
|ia64 || Itanium compatible 64-bit architecture
|}
Notice that a 32-bit Windows version installed on a 64-bit capable CPU is still flagged as 32-bit.
===ipaddresses===
This contains all currently active IP addresses of the system or an empty string, if no network adapter is currently active.
===domainname===
This contains the name of the domain the system belongs to or an empty string, if it is not a domain member.
===groups===
This contains the names of all groups the system belongs to or an empty string, if it is not a member of any group.
===lcid===
This contains the language identifier of the operating system, for a list of possible values visit [http://www.microsoft.com/globaldev/reference/lcid-all.mspx Locale IDs Assigned by Microsoft].
[[category:Documentation]]
'''!!! This requires WPKG 1.2 or higher !!!'''
Below find a table of supported host attributes.
{| border="1"
!Attribute !! Description !! Example content collected by WPKG
|-
|hostname || the name of the host || hostname="satellite"
|-
|os || the operating system || os="microsoft windows 7 home premium, , sp1, 6.1.7601"
|-
|architecture || the processor architecture || architecture="x64"
|-
|ipaddresses || all active IP addresses || ipaddresses="10.0.0.2,192.168.56.1"
|-
|domainname || the domain the host belongs to || domainname="wpkg.org"
|-
|groups || all groups the host belongs to || groups="design,office"
|-
|lcid || the language of the operating system || lcid="c07"
|}
==Where to use them==
Below find a table of where you can use these attributes.
{| border="1"
!File !! Node !! Example
|-
|rowspan="2" | hosts.xml || host || <host name="..." proifile-id="..." os="..." ... />
|-
| variable || <variable name="..." value="..." os="..." ... />
|-
|rowspan="2" | profiles.xml || package || <package package-id="..." os="..." ... />
|-
| variable || <variable name="..." value="..." os="..." ... />
|-
|rowspan="5" | packages.xml || variable || <variable name="..." value="..." os="..." ... />
|-
| install || <install cmd="..." os="..." />
|-
| upgrade || <upgrade cmd="..." os="..." />
|-
| downgrade || <downgrade cmd="..." os="..." />
|-
| remove || <remove cmd="..." os="..." />
|}
==Detailed descriptions==
All attributes are matched using regular expressions.
The collected information is added to the <wpkg/> node of the wpkg.xml file, which allows reporting tools to apply the extended matching too.
===hostname===
This contains the name of the system, which is also contained in the Windows environment variable %COMPUTERNAME%.
===os===
This contains the full description of the operations system, which consists of the following parts:
* OS-caption
* OS-description
* CSD-version (usually the service pack)
* OS-version
===architecture===
This contains the processor architecture of the current operating system.
Below find a table of possible values.
{| border="1"
!Value !! Description
|-
|x86 || Intel x86 compatible 32-bit architecture
|-
|x64 || AMD64 compatible 64-bit architecture
|-
|ia64 || Itanium compatible 64-bit architecture
|}
Notice that a 32-bit Windows version installed on a 64-bit capable CPU is still flagged as 32-bit.
===ipaddresses===
This contains all currently active IP addresses of the system or an empty string, if no network adapter is currently active.
===domainname===
This contains the name of the domain the system belongs to or an empty string, if it is not a domain member.
===groups===
This contains the names of all groups the system belongs to or an empty string, if it is not a member of any group.
===lcid===
This contains the language identifier of the operating system, for a list of possible values visit [http://www.microsoft.com/globaldev/reference/lcid-all.mspx Locale IDs Assigned by Microsoft].
[[category:Documentation]]