Just to confirm....is this location info visible in the iDRAC console itself? That is, you have gone into the iDRAC and set it and it's visible in the UI?
If you _just_ set it, be sure you have manually kicked off an inventory cycle to be sure it has gotten pulled from the iDRAC.
Yes, I have filled in the information in iDRAC, performed an inventory and it is visible in the UI. Currently I have a workaround where i created a custom report in OME to include device location information. I then query the report via the API and am able to collect the information that way. Ideally I'd like to get the info without having to rely on the report.
DELL-Rob C
3 Apprentice
•
2.8K Posts
0
February 19th, 2018 08:00
Hi there and thanks for the post.
Can you see if this might help?
/api/DeviceService/Devices(Id)/InventoryDetails('deviceLocation')
I think this info is part of the InventoryDetails (all the inventory details) or you can use the above for just the location info.
You must first use the devices api to first get the device id to use in these apis. There is no way to get this for all devices at once.
Hope this helps,
Rob
Shazbot1
6 Posts
0
February 20th, 2018 10:00
Rob,
I have actually already tried that and I only get back an integer labeled "Id". It does not contain datacenter, room, aisle, etc.
DELL-Rob C
3 Apprentice
•
2.8K Posts
1
February 20th, 2018 11:00
No problem. Glad it's working.
(Clever idea to try the custom report anyway :) )
Will pass word on rack slot.
Rob
DELL-Rob C
3 Apprentice
•
2.8K Posts
0
February 20th, 2018 11:00
Ok.
Just to confirm....is this location info visible in the iDRAC console itself? That is, you have gone into the iDRAC and set it and it's visible in the UI?
If you _just_ set it, be sure you have manually kicked off an inventory cycle to be sure it has gotten pulled from the iDRAC.
Thx
Rob
Shazbot1
6 Posts
0
February 20th, 2018 11:00
Rob,
My apologies. I was able to get the information with the URI you provided, I was targeting the wrong device. Thanks again and sorry for the confusion.
FYI,
I have noticed is that the info that i fill in for rack slot is not populating in OME.
Shazbot1
6 Posts
0
February 20th, 2018 11:00
Rob,
Yes, I have filled in the information in iDRAC, performed an inventory and it is visible in the UI. Currently I have a workaround where i created a custom report in OME to include device location information. I then query the report via the API and am able to collect the information that way. Ideally I'd like to get the info without having to rely on the report.
DELL-Rob C
3 Apprentice
•
2.8K Posts
0
February 20th, 2018 11:00
Ok, thanks for this additional detail. I have passed this along to the right folks for review.
Regards,
Rob