Howto decode an arp entry to hex

2007-07-04 Thread Bernard
Hi, When I try to get the arp table from any type of device (oid 1.3.6.1.2.1.4.22.1.3) with the snmp_util module, it returns the 6 character, instead of the hex byte value. How can I convert a 6 byte word into the hex equivalent like 00:0a:8b:bd:62:8a. Any help greatly appreciated

Re: Howto decode an arp entry to hex

2007-07-04 Thread Tom Phoenix
On 7/4/07, Bernard [EMAIL PROTECTED] wrote: When I try to get the arp table from any type of device (oid 1.3.6.1.2.1.4.22.1.3) with the snmp_util module, it returns the 6 character, instead of the hex byte value. How can I convert a 6 byte word into the hex equivalent like 00:0a:8b:bd:62:8a.

Re: Howto decode an arp entry to hex

2007-07-04 Thread Bernard
Tom, Many thanks, works great. Bernard Tom Phoenix wrote: On 7/4/07, Bernard [EMAIL PROTECTED] wrote: When I try to get the arp table from any type of device (oid 1.3.6.1.2.1.4.22.1.3) with the snmp_util module, it returns the 6 character, instead of the hex byte value. How can I convert

Re: Howto decode an arp entry to hex

2007-07-04 Thread John W. Krahn
Bernard wrote: Hi, Hello, When I try to get the arp table from any type of device (oid 1.3.6.1.2.1.4.22.1.3) with the snmp_util module, it returns the 6 character, instead of the hex byte value. How can I convert a 6 byte word into the hex equivalent like 00:0a:8b:bd:62:8a. $ perl