linux agent reports only active networks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OCS Inventory: Unified Unix Agent |
Fix Released
|
Medium
|
mortheres |
Bug Description
Ocsinventory-
This can really limit reporting on WLAN & Ethernet connections
I am using the following minor changes to /lib/Ocsinvento
:88
- if ($line =~ /^$/ && $description && $ipaddress) {
+ if ($line =~ /^$/ && $description && $macaddr) {
:154
- $description = $driver = $ipaddress = $ipgateway = $macaddr = $pcislot = $status = $type = $virtualdev = undef;
+ $description = $driver = $ipaddress = $ipmask = $ipgateway = $macaddr = $pcislot = $status = $type = $virtualdev = undef;
I've modified line 154 as the ipmask was not being cleared between reading interfaces. This just meant that if an interface did not have an ipmask (ie. no IP) it could take on a mask of another interface
Thanks,
Michael
Changed in ocsinventory-unix-agent: | |
status: | Fix Committed → Fix Released |
Hi,
Thanks a lot for your report and patch. Your patch has been integrated at revision 986 http:// bazaar. launchpad. net/~ocsinvento ry-dev/ ocsinventory- unix-agent/ trunk/revision/ 986 .
Kind regards,
--
Guillaume