snmp will not return a mac address

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
genasea
Posts: 28
Joined: Wed Sep 25, 2002 6:00 pm

snmp will not return a mac address

Post by genasea »

When doing an SNMP test, I am unable to get HM to return a mac address value either in the 'Reply' field, or when pressing the 'get current value' button (the returned 'value' field is blank).

An example snmp get that should return a mac address is:

1.3.6.1.2.1.2.2.1.6.x (where x is the value of an interface (NIC) on a server.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Problem - SNMP protocol does not have special data type to represent MAC addresses, it uses Octet String type. However MAC address stored not like any other text string...
I can change decoding method for this specific OID but its not universal solution :-(
....

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Ok. There is solution at www.ks-soft.net/download/hm447d.zip
Now if retrieved OCTET STRING contains some unprintable characters, HostMonitor displays sequences formatted %XX where XX is a hexadecimal code of a character (byte).
E.g. in case of MAC address" 00:40:69:2F:50:08" HostMonitor will show "%00%40%69%2F%50%08"

Regards
Alex
Post Reply