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
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)
Please log in to answer
Posted by:
dchristian
13 years ago
Posted by:
clementa
13 years ago
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
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
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.
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.
so that the conversation will remain readable.