I have two problems with finding Mac Addresses:

In the command line implementation

running both of these commands gives a HEX String:

snmpwalk -Os -c public -v 1 192.168.0.108 ipNetToMediaPhysAddress

snmpwalk -Os -c public -v 1 192.168.0.108 atPhysAddress

The output on both of these OID's will not give you the Mac address of the
host you used to query.  Does anyone know how to get that?  For example, in
this scenario I would get the Mac address of every IP address, but I would
not get the Mac Address of 192.168.0.108


using the bindings with Python I have another problem, not too big, more of
a question:

res = netsnmp.snmpwalk(var, Version= 1, DestHost = '192.168.0.108',
Community='public')

I get something like this back:

'\x00\x13F\x88\ny'

Is there a reason this isn't a HEX string by default?

Thanks,

Noah
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to