Creating an XML File to Load

In this topic:

Sample NetConfig XML

XML Format

Manage Computers

You can create your own XML file similar to the NetConfig.xml provided with Spector 360 and use it to populate the Manage Computers computer list (see Loading a Computer List).

The Control Center uses the NetConfig.xml file to store the list of computers. Each computer that you have added appears in this file next to a  <computer> tag. The Control adds a <data> tag to hold information it has received from communication with the computer: operating system, OS version, system root.

You must have Microsoft’s msxml3.dll in your System32 directory. This should not be a problem, since it installs with Internet Explorer 5 (IE5) or greater, Windows 2000, and XP Pro installations.

Sample NetConfig XML

The following is an example NetConfig.xml file. If you create a text file containing simple tags like these, the Control Center will add the necessary <data> tags.

<?xml version="1.0" ?>

<resources>

<group name="GROUPA">

<domain name="DOMAIN1">

<computer name="JOHN *">

</computer>

<computer name="*DELL">

</computer>

<computer name=”PETE">

</computer>

</domain>

</group>

<group name="GROUPB">

<domain name="DOMAIN2">

</domain>

</group>

</resources>

XML Format

NetConfig.xml uses the following XML elements to specify computers on the network to discover and display in the Control Center. The file defines each group, the domain within the group, and computers within the domain. The "name" attribute is required for each group, domain, and computer tag or the tag will be ignored.   

The computer name must exactly match the Windows computer name:
<computer name="PETE">

A wildcard character * (asterisk) can be used as either a prefix or a suffix to the name to reduce the number of computer entries in the file.  For example, <computer name=JOHN*> will discover and track all computers with names starting with JOHN in the domain (JOHNB, JOHND, JOHNJ). The tag <computer name=*XP> will discover and track all computers with names ending in XP (JOHN_XP, MARYXP, TESTXP).  A computer tag cannot contain a prefix and a suffix wildcard in the same name attribute or it will be ignored.

Related Topics