Hi,

Thank you for this good solution Bart. However I have found this perl script can only work with "eth" interfaces. Here is my customization for vlan and wlan types:

[code]
...
25. my $waitFor = 15;
my $type = '';
...
35. send_log('5',"using temp file $tempFile");

if($interface =~ /eth/) {
$type = 'eth';
}
elsif($interface =~ /vlan/) {
$type = 'vlan';
}
else {
$type = 'wlan';
}

37. #
...
43. $row =~ /($type\d\.?\d*)\s+Link encap:Ethernet\s+HWaddr\s+([\d\:\A-Fa-f]+)\s*/;
[/code]

John