hi everyone

i have configured snmp on my cisco switch.

i get the message :

iso. 126 = INTEGER: 49

where :
4091 is a vlan is mac address in decimical format
INTEGER: 49 is physical port number.

i want to log this information following format:

vlan = 4091 mac-address = 64:31:50:1b:40:7e port number = 9

i found net::mac for converting mac address dec to hex in perl and it worked.
but i can not do others .
anybody can help me ?