obtaining mac addresses with python bindings and in general
"Noah Gift" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I apologize in advance for double posting. I posted this to snmp-coders mistakenly: 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-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