BroControl unable to recognize ifconfig output in some locales

Description

Since recently, ifconfig in debian show ip address starting with "adr" and not "addr" as before and so when using ''BroCtl check'' in a local cluster configuration, it doesn't work and you get the error : "Error: must run broctl only on manager node broctl check"

Environment

Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux Debian Jessie

Activity

Show:
Daniel Thayer
November 19, 2015, 3:58 PM

I've just updated to debian 8.2, and I cannot reproduce this problem. What does
the output of "/sbin/ifconfig -a" look like on your system?

Nicolas Merle
November 19, 2015, 9:50 PM

eth0 Link encap:Ethernet HWaddr 00:22:19:5a:65:7d
inet adr:192.168.102.238 Bcast:192.168.102.255 Masque:255.255.255.0
adr inet6: fe80::222:19ff:fe5a:657d/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3432444 errors:0 dropped:0 overruns:0 frame:0
TX packets:3434353 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:302265646 (288.2 MiB) TX bytes:848376555 (809.0 MiB)

eth1 Link encap:Ethernet HWaddr 00:22:19:5a:65:7f
inet adr:192.168.103.200 Bcast:192.168.103.255 Masque:255.255.255.0
UP BROADCAST RUNNING NOARP PROMISC MULTICAST MTU:1500 Metric:1
RX packets:16163355404 errors:0 dropped:85 overruns:0 frame:0
TX packets:8297 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:13468131399162 (12.2 TiB) TX bytes:3867134 (3.6 MiB)

eth2 Link encap:Ethernet HWaddr 00:15:17:b2:5f:d8
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interruption:16 Mémoire:fc3e0000-fc400000

eth3 Link encap:Ethernet HWaddr 00:15:17:b2:5f:d9
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interruption:17 Mémoire:fc3a0000-fc3c0000

eth0.111 Link encap:Ethernet HWaddr 00:22:19:5a:65:7d
inet adr:192.168.111.238 Bcast:192.168.111.255 Masque:255.255.255.0
adr inet6: fe80::222:19ff:fe5a:657d/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2940 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:92 (92.0 B) TX bytes:286263 (279.5 KiB)

lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:65514313 errors:0 dropped:0 overruns:0 frame:0
TX packets:65514313 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:168200729284 (156.6 GiB) TX bytes:168200729284 (156.6 GiB)

Daniel Thayer
November 21, 2015, 2:16 AM

Try running this command:
LANG=C /sbin/ifconfig -a

Does the output contain "inet addr:"
and "inet6 addr:" (instead of "inet adr:"
and "adr inet6:")?

Daniel Thayer
November 25, 2015, 6:23 PM

Branch "topic/dnthayer/ticket1511" in the broctl git repo fixes this issue.

Nicolas Merle
November 25, 2015, 6:41 PM

Sorry for not responding earlier, I missed the previous notification. As you said, adding the LANG=C is showing the addr field. But as I have seen, you are already on it so thanks for your help

Assignee

Justin Azoff

Reporter

Nicolas Merle

Labels

External issue ID

None

Components

Fix versions

Affects versions

Priority

Normal
Configure