The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 06-25-2008
incredible incredible is offline Forum Advisor  
Registered User
  
 

Join Date: May 2008
Location: s'pore
Posts: 2,126
Sun Management Center agent logs often have log entries that contain SNMP Engine IDs. The engine ID would look like

0:0:4:da:40:81:9e:e5:df:0:a1:0

The way to determine the target’s IP address from engine id is as follows. Take the 6th, 7th, 8th and 9th fields of the engine id. From the above example, take 0:0:4:da:40:81:9e:e5:df:0:a1:0. This string 81:9e:e5:df represents the IPv4 address of the SNMP entity, e.g. 129.158.229.223. Take each field as a Hex number and compute the corresponding number for the IPv4 address.

The next two fields represent the port number of the SNMP entity. Take 0:a1 from 0:0:4:da:40:81:9e:e5:df:0:a1:0 and compute the numeric port number, treating the entire number as a (max) 4 digit Hex number. In this case, this amouts to 161, the standard SNMP agent port number.