How would I go about creating a custom XML Report Layout?

Here is what I want to do. Run a report that only exports the Serial Number and the Workstation name. I'm good with this part. Easy.

My problem is how I want the report to be exported. It needs to be text and only contain the following:

serialnumber = workstationname

Is there a way to edit the report layout so that the only items listed is the serial number, a space, an equal sign, a space and finally the workstation name as inventoried by the KBOX.

This text file will be used in a post install task to rename the workstation using the command wsname /RDF:"reportexport.txt" /DFK:$SERIALNUM

Andy Clement
0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


Why don't you use the mysql concat function to return the report in that format (serialnumber = workstationname)?

Export it to a csv, copy into a text file and call it a day.
Answered 04/19/2011 by: dchristian
Red Belt

Please log in to comment
I'd like for it to be all automatic.

I've got technical people at over 120+ sites reimaging workstations daily and they don't always get the workstation named correctly.

The way I have it working now is a workstation gets reimaged and the last post installation task is a vb script that prompts for the computer name, reboots the PC and then joins the PC to our active directory.

The way I would like for it to work is for all human intervention to be removed when it comes to renaming a workstation and joining it to the domain.

1. Schedule on the kbox the export of a specific sites serial numbers and workstation names to a text file using the sites name (ie tuckerhsdb.txt).
2. When a workstation is reimaged have a post install task that looks at the IP address the workstation, (this will determine the workstations site), then will use whatever namedb.txt file that has been exported for that site.
3. Reboot the PC and add it to the domain.

I'm using a modified version of this rename and join to domain script found here:

To be honest the mysql stuff is all gobbledygook to me. I'll figure it out eventually. Just was wondering if there was an easier way to do the report layout. Thanks for the concat function info. Googling it now.

Answered 04/20/2011 by: clementa
Senior Yellow Belt

Please log in to comment
Hey Andy,

You can do the custom layout stuff with jasper reports iReport ( i think that's what its called).

That's what the KBOX is currently using behind the scenes to generate the layout.

Its possible but it'll be MUCH easier to just return the report in that format using SQL.

If it helps, your going to want to join MACHINE and MACHINE_NIC together.

Post your SQL and i'll help if you get stuck.
Answered 04/22/2011 by: dchristian
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity