Read the values from snmp oid's

Hello Everybody

At the moment i'm working on my Policy for SNMP Monitoring and we have the problem that the hostname is saved in different variables in every trap so that i can't use for example variable5  ($5) to read out the hostname, so my question is there a possibility to read out one specific oid ?

for example in every trap the i become is in the oid .1.3.6.1.4.1.12124.1.1.1 the hostname written

Related CI:  $.1.3.6.1.4.1.12124.1.1.1 

does this work?

Sincerly

Tags:

  • 0  

    Hello Besnik,

    I am afraid your question is lacking a context. Are you dealing with traps from all vendors/devices or only specific ones like one you posted (Isilon)? Is hostname in your question is the same like a trap source? In V2c traps the trap source (IP address) is kept in UDP header, not in trap PDU. If you have an access to UDP header in your policy you can get that IP and resolve to hostname. The common for all devices Mib-2 does not really provide OID for hostname. It does provide IP address table where all IPs are listed. Generic traps like LinkUp/down do not provide hostname. Most of traps are private, vendor specific. They may or not include hostname as a trap varbind (OID). For each device you would need to check a private mib with trap definitions to see if a hostname is included in any trap. If your project is related to NNMi there may be some other options to get a hostname via NNMi functionality.

    Best regards,

    Sergey Pankratov

  • 0  

    I am afraid I misunderstood your question. Yes, reference using OID like $.1.3.6.1.4.1.12124.1.1.1  is valid. For more details launch URL

    https://nnmi-server-name/nnmDocs_en/htmlHelp/itom/Network_Node_Manager_i_2022.11/IncidentMessageParameters.html or go to Configuration/Incidents/SNMP Trap Configurations, open any trap, and under Basics click 'here' in "For information about troubleshooting Incidents, click here.". Find the section "Valid Parameters for Configuring Incident Messages"