[ninux-dev] [SNMP] About MAC address

LuX lux at ninux.org
Tue Apr 22 20:53:31 CEST 2014


Il giorno 22/apr/2014, alle ore 18:51, Alessandro Bucciarelli <bucciarelli.alessandro at gmail.com> ha scritto:
> 
> Interrogando il device SNMP con quell'oid restituisce il MAC address nel formato giusto  (e.g 0:27:22:17:8b:12), mentr invece interrogandolo tramite netengine, che usa la libreria pysnmp torna un formato molto strano (e.g \x00\'"\x17\x8b\x12) a cui tra l'altro mancano 2 bytes.

Perdonate la risposta al volo, (sto con uno smartphone), ipotesi:
..e se \x00\'"\x17\x8b\x12 fosse solo la conversione byte-a-byte in ASCII di   0:27:22:17:8b:12 ?

Non ho sottomano una tabella ASCII per verificare, ma ad occhio sembra:

0 --> \x00
27 --> '
22 --> "
17 --> \x17
8b --> \x8b
12 --> \x12

Ma forse ho preso un granchio.
Meglio che torno a dormire :)

--
LuX
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ml.ninux.org/pipermail/ninux-dev/attachments/20140422/9dc35a18/attachment-0001.html>


More information about the ninux-dev mailing list