MachDB XML Description

This is the spec on how I expect your XML to look.  If you meet the guidelines below, your XML will parse correctly and will be inserted into the DB.

Note: All nodes may be specified once, unless otherwise mentioned.  All fields have a 30 char limit unless otherwise mentioned.

Example here: host.xml

Of course, the standard stuff:
<?xml version="1.0"?>
Everything is under the 'host' node:
Hostname - this can be the FQDN or just the hostname.  It's up to you and how you want to get information out of the system later.
HWID - now, this one is important. There has to be a way to uniquely identify the hardware and it shouldn't change.  Since there are multiple ways to define this, I leave it up to you.  I recommend you use UUID, or the primary MAC address.  Either way, it's limited to 100 chars:
Memory - swap and RAM
CPU - You can only have one type of CPU in a host.  Is this a limitation for anyone?
Cache - int 6
Count - int 6
Name - char 100
Speed - int 6
unified_cache - int 1
 <name>Intel Pentium(R) 4</name>

Base Architecture:

  <kernel>Linux 2.6.9-55.0.2.EL</kernel>
OS Name.  Rather than get complicated and try to parse out the name, vendor, version and release of each OS out there, I went with a single field.  I figure regex matches in the UI will do the filtering better than complicated parsing that needs adjustment.
osname - char 100
  <osname>CentOS release 4.4 (Final)</osname4>

BIOS information:
<vendor>Phoenix Technologies, LTD</vendor>
<version>6.00 PG</version>
Chassis information:
asset_tag - char 50
serial - char 50
<type>Rack Mount Chassis</type>
<vendor>Dell Inc.</vendor>
serial - char 100
uuid - char 100
<name>PowerEdge 2950</name>
<vendor>Dell Inc.</vendor>
<version>Not Specified</version>
name - char 100
<version>PCB Version</version>
Network information.  Multiple can be specified.  IPv4 style addresses supported now, I will be adding IPv6 soon.
macaddr - char 18
interface - char 10
ipaddr, broadcast, netmask - char 16
Disks.  Multiple can be specified.
model - char 100
size - bigint 20 - this can be whatever you want, KB, MB, GB.  16 zettabyte limit when using KB
device - char 20

<model>Maxtor 7L300R0</model>
Filesystems.  Multiple can be specified.
device, mountpoint - char 50
size - bigint 20 - this can be whatever you want, KB, MB, GB.  16 zettabyte limit when using KB
type - char 10

Packages.  Multiple can be specified.  This is very basic, let me know if it is limiting.  I use RPM to get this information for my systems, but I'm sure apt or dpkg will do the trick for other systems. 
Name - char 100
PCI slots info.  I have this in the gather script, but don't do anything with it on the DB yet.  I haven't decided how this will work yet, whether or not it's relevant or useful.  Let me know your thoughts.  But for now, don't worry about using it or defining it too much.  Update: this will change in a future release to represent the PCI numerical ID's and will not have nodes for USB, IDE, etc.  Kindly ignore this for now while I'm working out how this will look.
<ide>Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)</ide>
<net>Intel Corporation 82541EI Gigabit Ethernet Controller (Copper)</net>
<usb>Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)</usb>
<video>ATI Technologies Inc Rage XL (rev 27)</video>

Any comments, please e-mail me and let me know.  I am always looking to improve this.