Export racks with Utilization?

291 views
Skip to first unread message

Michael Van

unread,
Mar 2, 2017, 9:46:49 AM3/2/17
to NetBox
Hi,

How can i export rack with Utilization for my report?

Jeremy Stretch

unread,
Mar 2, 2017, 2:29:52 PM3/2/17
to Michael Van, NetBox
You can do this by creating a custom export template in the admin UI. Go to Extras > Export templates and select the "rack" content type. Enter the code below:

{% for rack in queryset %}Rack: {{ rack.name }}, Utilization: {{ rack.get_utilization }}%
{% endfor %}

(Obviously, you can expand this to include additional data.)

Then, go to the rack list and you should have a dropdown option under the "export" button at top right with the name of the template you created.

Jeremy

On Thu, Mar 2, 2017 at 9:46 AM, Michael Van <nqva...@gmail.com> wrote:
Hi,

How can i export rack with Utilization for my report?

--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to netbox-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/7f05c5c2-b92c-4a59-a390-a7147547f2c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Van

unread,
Mar 5, 2017, 9:59:05 PM3/5/17
to NetBox
Hi,

I can export rack. But, can I show number of device in this report?

Regards
Reply all
Reply to author
Forward
0 new messages