OCSInventory-Server icon indicating copy to clipboard operation
OCSInventory-Server copied to clipboard

[FEATURE] Add hardware id in IPDiscover rest API data

Open dust63 opened this issue 4 years ago • 7 comments

Can you add the hardware id of the computer that made the discover on the ip discover api data.

[ [ "192.168.1.2", "AA:BB:CC:AA:BB:C1", "255.255.255.0", "192.168.1.128", "2020-08-26 14:30:15", "device1", TO ADD--> "56", ], [ "192.168.1.3", "AA:BB:CC:AA:BB:C2", "255.255.255.0", "10.128.111.128", "2020-06-25 21:26:31", "device2", TO ADD --> "56", ] ]

dust63 avatar Aug 31 '20 09:08 dust63

Hi,

I just have a question since OCS doesn't link IPDiscover with the computer that performed the scan. What are the advantages to do so ? To be honest I don't see why we should link these two information ?

Regards, Gilles.

gillesdubois avatar Sep 29 '20 09:09 gillesdubois

One goal would be able to inherit meta-data. For example the use of an asset, or its location, which could then be copied to all assets ipdiscovered by it.

cactux avatar Oct 13 '20 20:10 cactux

Like @cactux say. You can manage some operation with the data of the agent that discover the ips. For example: Gettings ips of the discover agent to know where the vlan are used to discover the ips.

dust63 avatar Oct 21 '20 13:10 dust63

Hi,

Indeed, can't argue what you are saying. In the mean time, we added the IPDiscover by tag, its not a accurate as having the hardware_id but still you can have more informations on where the data comes from. (of course you need to manage different tags)

I'll discuss this subject with our team and see if we can implement this easily.

Regards, Gilles.

gillesdubois avatar Oct 21 '20 15:10 gillesdubois

Hi @gillesdubois ,

I worked on this feature :) #270

thfiliol1 avatar Oct 26 '20 10:10 thfiliol1

@gillesdubois can you please integrate this feature on OCS ?

dust63 avatar Oct 27 '20 14:10 dust63

Hi @dust63 ,

Please check my anwser here : https://github.com/OCSInventory-NG/OCSInventory-Server/pull/270

Regards, Gilles.

gillesdubois avatar Oct 28 '20 10:10 gillesdubois