Device Inventory Asset Tag not searchable through main search bar #2545

Closed
opened 2025-12-29 18:19:50 +01:00 by adam · 4 comments
Owner

Originally created by @alexandrebgallant on GitHub (Apr 24, 2019).

Environment

  • Python version: 3.6.7
  • NetBox version: 2.5.10

Proposed Functionality

Kudos to Netbox!

I created many devices, mainly Cisco switches in netbox. I'm currently doing a revamp of the inventory system also and checking if what's on the floor matches what's in the current inventory.
I added within a device in Netbox some inventory, mainly Stacking Module for the Cisco Switches. Each Stacking Module has an asset tag. I'm trying to search with the main search bar the asset tag of the inventory Item, but nothing is returned. If I search for the device itself, the parent, it returns the device obviously.

Use Case

Being able to search for every asset tag within Netbox should be a default feature imo. There is even a validation that no asset tag shouldn't be the same, even with Inventory items.

Thanks for taking time to check if it's possible to do!

Originally created by @alexandrebgallant on GitHub (Apr 24, 2019). <!-- NOTE: This form is only for proposing specific new features or enhancements. If you have a general idea or question, please post to our mailing list instead of opening an issue: https://groups.google.com/forum/#!forum/netbox-discuss NOTE: Due to an excessive backlog of feature requests, we are not currently accepting any proposals which significantly extend NetBox's feature scope. Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.6.7 * NetBox version: 2.5.10 <!-- Describe in detail the new functionality you are proposing. Include any specific changes to work flows, data models, or the user interface. --> ### Proposed Functionality Kudos to Netbox! I created many devices, mainly Cisco switches in netbox. I'm currently doing a revamp of the inventory system also and checking if what's on the floor matches what's in the current inventory. I added within a device in Netbox some inventory, mainly Stacking Module for the Cisco Switches. Each Stacking Module has an asset tag. I'm trying to search with the main search bar the asset tag of the inventory Item, but nothing is returned. If I search for the device itself, the parent, it returns the device obviously. <!-- Convey an example use case for your proposed feature. Write from the perspective of a NetBox user who would benefit from the proposed functionality and describe how. ---> ### Use Case Being able to search for every asset tag within Netbox should be a default feature imo. There is even a validation that no asset tag shouldn't be the same, even with Inventory items. Thanks for taking time to check if it's possible to do!
adam closed this issue 2025-12-29 18:19:51 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 26, 2019):

Device components such as inventory items are not included in the global search view to avoid excessive overhead and extraneous search results. You can search inventory items using the dedicated search at /dcim/inventory-items/ or via the API at /api/dcim/inventory-items/?q=foo.

@jeremystretch commented on GitHub (Apr 26, 2019): Device components such as inventory items are not included in the global search view to avoid excessive overhead and extraneous search results. You can search inventory items using the dedicated search at `/dcim/inventory-items/` or via the API at `/api/dcim/inventory-items/?q=foo`.
Author
Owner

@aventrax commented on GitHub (Dec 23, 2019):

This is not working for me, https://netbox.local/api/dcim/inventory-items/?q=cespite reports 0 results but I have an item with asset_tag=cespite001. Instead, if with the full name, it reports 1 result.

This is not what is expected as #2166

I'm on latest netbox 2.6.9

@aventrax commented on GitHub (Dec 23, 2019): This is not working for me, https://netbox.local/api/dcim/inventory-items/?q=cespite reports 0 results but I have an item with asset_tag=cespite001. Instead, if with the full name, it reports 1 result. This is not what is expected as #2166 I'm on latest netbox 2.6.9
Author
Owner

@DanSheps commented on GitHub (Dec 24, 2019):

@aventrax

Please open a separate issue for this using the template. This appears to affect both API and Gui. It will be a similar fix to #2166 which only dealt with devices I believe

@DanSheps commented on GitHub (Dec 24, 2019): @aventrax Please open a separate issue for this using the template. This appears to affect both API and Gui. It will be a similar fix to #2166 which only dealt with devices I believe
Author
Owner

@aventrax commented on GitHub (Dec 24, 2019):

Opened #3788

@aventrax commented on GitHub (Dec 24, 2019): Opened #3788
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2545