try this
LAN_MAC=$(ifconfig $LAN_IFACE | grep HWaddr | awk '{print $5}')
NODE_ID=$(echo $LAN_MAC|tr -d
ok I try it, it seems that will be good soon
After try it, I execute this command
echo $NODE_ID
and this is the result
00156DADCC00 06156DADCC00 0A156DADCC00 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 00156DAECC00 00-15-6D-AD-CC-00-00-00-00-00-00-00-00-00-00-00
after I try
echo $NODE_ID | awk '{print $5}'
and this is the result
00156DAECC00
I try this script
## Determine nodo_id for the first time. Then it could be changed.
LAN_MAC=$(ifconfig eth0 | grep HWaddr | awk '{print $5}') NODE_ID=$(echo $LAN_MAC| awk -F: '{print $1$2$3$4$5$6}')
it works fine !!!
Helene Gauthier