On May 7, 2008, at 10:49 AM, rpatrick wrote:
What is the best way to pull a report with the following inventory data on all devices?

Tag #
Serial #
Rack #

Also, we might need to add more OS information (HW Make/Model, OS Make/Model).

You can do this with a custom device report. The only missing part is the tag. This isn't an exposed property or method on devices by default. So you'll have to make it one!

First: Make a getHWTag method for devices.
        1. Go to http://yourzenoss:8080/zport/dmd/Devices/manage
2. Choose "Script (Python)" from the drop-down in the upper-right and click Add
        3. Set the Id to "getHWTag"
        4. Click Add and Edit
        5. Erase the default contents and replace with "return context.hw.tag"
        6. Save

Now: Create your custom device report.
        1. Go to Reports -> Custom Device Reports
        2. Choose "Add Device Report" from the Reports menu
        3. Call it "Inventory - Devices" or whatever makes sense to you
        4. Setup the report as follows:
                Sort Column = getId
                Columns =
                        getId
                        getHWTag
                        getHWSerialNumber
                        rackSlot

                Column Names =
                        Device
                        Tag
                        Serial #
                        Rack Slot
        5. Save

Click on the Report tab to see your report.
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to