Hi,
   The version I am using is net-snmp 5.1.2 my agent is a proxy agent
   The version of the agent in the card is UCD-snmp 4.2.3

below is the code snippet.
cVal contains the result returned by the agent in string form, cVal is 

static u_char cVal[100];

fLog("COLUMN_IPNETTOMEDIAPHYSADDRESS in string form is %s\n", cVal);
snmp_set_var_typed_value(var, ASN_OCTET_STR,
                        (u_char *) cVal,
                         strlen(cVal)*sizeof(u_char)
                         );

The fLog output is as follows

COLUMN_IPNETTOMEDIAPHYSADDRESS in string form is 00 00 5E 00 01 01

the snmpgetnext output is as follows
Request:
snmpgetnext -v2c -c public 10.0.15.11:2002
IP-MIB::ipNetToMediaPhysAddress

Response:
IP-MIB::ipNetToMediaPhysAddress.32.10.0.26.58 = STRING:
30:30:20:30:30:20:35:45:20:30:30:20:30:31:20:30:31


On Thu, 2004-11-04 at 19:09, Robert Story wrote:
> On 04 Nov 2004 10:38:14 +0530 Sasikumar wrote:
> SB>    I am having doubt how net-snmp handles PhyAddress and MacAddress.
> SB> Below are the results which, I got after issuing
> SB> snmpgetnext/snmpget(net-snmp)
> SB> 
> SB> IP-MIB::ipNetToMediaPhysAddress.33.10.0.25.1 = STRING:
> SB> 30:30:20:30:32:20:41:35:20:32:43:20:31:32:20:37:45
> 
> Hmm.. that's obviously the ASCII version of the address. It should be raw hex.
> What this query to a net-snmp agent, or another device? 
> 
> What version are you using? 
> 



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to