/build/static/layout/Breadcrumb_cap_w.png

Custom XML Report Layout

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

Thanks!
Andy Clement

0 Comments   [ + ] Show comments

Answers (3)

Posted by: dchristian 13 years ago
Red Belt
0
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.
Posted by: clementa 13 years ago
Senior Yellow Belt
0
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:
http://www.kace.com/support/kb/index.php?action=artikel&cat=54&id=763&artlang=en

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.

Andy
Posted by: dchristian 13 years ago
Red Belt
0
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ