Public bug reported:

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>
      <CHECKSUM>1</CHECKSUM>
      <DATELASTLOGGEDUSER>Fri Jul  7 15:08</DATELASTLOGGEDUSER>
      <DEFAULTGATEWAY>192.168.1.2</DEFAULTGATEWAY>
      <DESCRIPTION>x86_64/00-00-23 20:58:16</DESCRIPTION>
      <DNS>192.168.1.1/192.168.1.1</DNS>
      <IPADDR></IPADDR>

While googling, found this:
http://www.linuxquestions.org/questions/linux-software-2/ocs-inventory-ip-address-of-clients-shows-blank-on-web-page-4175537702/

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://forums.fedoraforum.org/showthread.php?t=282415

Not sure what's deprecated about a perfectly functioning utility, but
ifconfig appears to call the HWaddr/MAC "ether" now.

Somewhat sanitized logfile attached.

** Affects: ocsinventory-server
     Importance: Undecided
         Status: New

** Affects: ubuntu
     Importance: Undecided
         Status: New

** Attachment added: "Output of 'ocsinventory-agent --debug --logfile=ocs.log'"
   https://bugs.launchpad.net/bugs/1703023/+attachment/4910992/+files/ocs.log

** Also affects: ubuntu
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1703023

Title:
  ocsinventory-agent not sending IP address, Debian 9 (stretch)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ocsinventory-server/+bug/1703023/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to