<reponame>frepkovsky/pyhpecw7
#encoding=utf-8
from pyhpecw7.features import mac
from pyhpecw7.comware import HPCOM7  

username = 'test'  
password = '<PASSWORD>'  
port = 830  
hostname = '192.168.3.11' 

device_args = dict(host=hostname, username=username,password=password, port=port)
device = HPCOM7(**device_args)
device.open()

macTable = mac.MacUnicastTable(device)
macTableList = macTable.getMacList()

for mac in macTableList:
    print(mac)

#encoding=utf-8
from pyhpecw7.features import mac
from pyhpecw7.comware import HPCOM7  

username = 'test'  
password = '<PASSWORD>'  
port = 830  
hostname = '192.168.3.11' 

device_args = dict(host=hostname, username=username,password=password, port=port)
device = HPCOM7(**device_args)
device.open()

macTable = mac.MacUnicastTable(device)
macTableList = macTable.getMacList()

for mac in macTableList:
    print(mac)
#encoding=utf-8