bb-Ricardo / netbox-sync

Sync objects from VMware or redfish sources to NetBox
MIT License
282 stars 65 forks source link

issue whit redfish collect data from dell idrac and import to vcenter host #375

Closed Edgar92y closed 6 months ago

Edgar92y commented 7 months ago

issue whit redfish collect data from dell idrac and import to vcenter host i found that serial number imported from vcenter source not match whit redfish source import from dell server in netbox esxi - serial number is asset tag not serial number and in redfish inventory data esxi serial from netbox match whit SKU (asset tag)

i change in code this and its fix my problem ,may be its can help you or there was an another solution

image

bb-Ricardo commented 7 months ago

Hi,

This is a bit strange. SKU stands for "Stock Keeping Unit" which should be equal with servers of the same model. The serial number is unambiguous.

Did you check the serial number on the machine and what the iDRAC states and what check_redfish shows?

Edgar92y commented 6 months ago

HI i checked serial number is correct , but infromation that taken via netbox-sync ,under esxi node is SKU number filled in serial number ,so for have auto fill idrac data whit esxi host there will need or serial number match or mannual write id of inventory right? i du small change in script for replace serial number whit sku if device is dell

image

image

bb-Ricardo commented 6 months ago

Hi,

Please try to set the option collect_hardware_asset_tag to false and try again. Also when syncing you can run it with -l DEBUG2 to what is parsed.

Edgar92y commented 6 months ago

result is same , for example whit hp servers ESXI - ILO, its work and get correct data ,and i have difference dell servers whit all of them same problem ,so my whit my change it works )

bb-Ricardo commented 6 months ago

Well, something in this software chain is not correct as an SKU is not a serial number.

But if it works for you, that is great.

For now I won't change the script as you seem to be the first user having this issue.

Meybe more useres experience this, then we should look into it and see what's going on.

Cheers Ricardo

Edgar92y commented 6 months ago

yes of course

I will actively use your plugins and if I find such problems, I will definitely let you know, I hope I won't bother you

bb-Ricardo commented 6 months ago

Ah, not at all, don't worry.

Yes, please keep me informed if you find anything.

What you could do if you interested in debugging: you can run it -l DEBUG3 and redirect the output to a file. Then check the file and see if you can find the actual server serial number in it. You could send me an output with the part either via email or screenshot, however you like.

If you can't find the actual server serial at all, then there seems to an issue with the vmware api. Also check the host details in the vcenter if it shows the correct serial.

Thank you.