ocsinventory-agent not sending IP address, Debian 9 (stretch)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OCS Inventory: Server |
Invalid
|
Undecided
|
Unassigned | ||
Ubuntu |
Invalid
|
Undecided
|
Unassigned | ||
ocsinventory-agent (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Not sure if this is a bug with ocsinventory-agent or the net-tools package, so apologies if this is the wrong place to report this.
Ocsinventory unified agent for UNIX, Linux and MacOSX (2.0.5) (not installed from source, deb repository install)
Linux $HOSTNAME 4.9.0-3-686-pae #1 SMP Debian 4.9.30-2+deb9u1 (2017-06-18) i686 GNU/Linux
Noticed that my Debian 9/Ubuntu 16.10/17.04 clients aren't reporting the IP address to the web interface (showing in OCSReports). Ran the following command:
ocsinventory-agent --debug --logfile=ocs.log
Noticed the following in the [debug] section:
[Fri Jul 7 15:17:57 2017][debug] Section HARDWARE has changed since last inventory
[Fri Jul 7 15:17:57 2017][debug] Missing value(s): MAC-address . I will send this inventory to the server BUT important value(s) to identify the computer are missing
[Fri Jul 7 15:17:58 2017][debug] sending XML
[Fri Jul 7 15:17:58 2017][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
Looked for IPADDR tags, found the following (addresses have been changed):
<HARDWARE>
<
<
<
<
<
<
While googling, found this:
http://
Doesn't work. ocsinventory-agent doesn't have any issue finding ifconfig, it's in the path (/sbin/), hence:
[Fri Jul 7 16:45:45 2017][debug] - ifconfig found
[Fri Jul 7 16:45:45 2017][debug] - ifconfig found
Observed that ifconfig in Debian 9 (stretch)Ubuntu 16/17 no longer provides the HWaddr information, which, I'm not sure if this is relevant to the debug message from earlier regarding the MAC address, but it seems so.
Interestingly enough found this in regards to the missing HWaddr info:
http://
Not sure what's deprecated about a perfectly functioning utility, but ifconfig appears to call the HWaddr/MAC "ether" now.
Somewhat sanitized logfile attached.
Changed in ubuntu: | |
status: | New → Invalid |
Changed in ocsinventory-agent (Ubuntu): | |
status: | New → Invalid |
Launchpad is not used anymore. Please go on github and try the latest version of OCS.