#!/bin/sh
sleep 10

dstr=`date +%Y%m%d_%H:%M:%S`

get_data(){
    name=`echo $1   | grep -Eo "$2[^,]+" |  cut -f2 -d \ `
    echo $name
}

arch_read=`./CLI_client arch read`
sn=$(get_data "$arch_read" "sn")

data=`brctl showmacs br0`
#echo $dstr,$sn,$data| nc freedpi.cn 8093
