OCSInventory-NG / OCSInventory-Server

Communication server of OCS Inventory
http://www.ocsinventory-ng.org/
GNU General Public License v2.0
353 stars 140 forks source link

Hostname are truncated to 15chars #266

Closed dust63 closed 1 year ago

dust63 commented 4 years ago

Operating system : Cent OS 7

Server informations Perl version : 5.16.3 Mariadb : 10.3.12

Server installation method ( Only one choice ) RPM Package Install SH Manual installation OCS Inventory informations Ocs server version : 2.7

Problem's description If the hostaname lenght is more than 15chars the hostname is truncated.

gillesdubois commented 4 years ago

Hi @dust63 ,

Is that a displaying problem or database data are also truncated ?

Regards, Gilles.

dust63 commented 3 years ago

Yes it's also truncated in database.

dust63 commented 3 years ago

I think the problem come from the agent that send the netbios name instead of the hostname. If you type hostname in cmd, you have full hostname not truncated to 15chars. Do I need to close this issue and reopen one on windows agent project ?

charleneauger commented 1 year ago

Hi,

This bug has been fixed. Please see the windows agent PR : https://github.com/OCSInventory-NG/WindowsAgent/pull/258

Regards, Charlene