Adding OIDs to SNMP Probe and configuring Output

JBark
Tera Expert

So I added two OIDs to Discovery's SNMP System OIDs

SNow_OID_input_10102014.JPG

Ran a Discovery and saw those OIDs in the Discovery log

SNow_OID_disco_output_first_10102014.JPG

SNow_OID_disco_output_second_10102014.JPG

SNow_OID_disco_output_second6_10102014.JPG

 

I think Discovery is pulling the information I need, but I can't get it to output. I've tried creating a field in the form section, but I can't see how I associate that field with the OID. How do I get this to work? Thanks!

1 ACCEPTED SOLUTION

The solution was to create a new SNMP Sensor;



new DiscoverySensor({
process: function(result) {
  var snmp = new SNMPResponse(result);
  var oid_mib2 = 'iso.org.dod.internet.mgmt.mib-2.';
 
  var location = snmp.getOIDText(oid_mib2 + 'system.sysLocation');
  var contact = snmp.getOIDText(oid_mib2 + 'system.sysContact');


        current.u_system_contact = contact + '\n';
        current.u_system_location = location + '\n';
},      
              type: "DiscoverySensor"
});


View solution in original post

7 REPLIES 7

faisal_dadabhoy
Giga Expert

Sorry, should have explained better, see screen shot (please remember this temporary solution to see if you could discover and make sure to revert back)



"value" would be the IP address of your foundry switch that is also your source IP.



find_real_file.png


The solution was to create a new SNMP Sensor;



new DiscoverySensor({
process: function(result) {
  var snmp = new SNMPResponse(result);
  var oid_mib2 = 'iso.org.dod.internet.mgmt.mib-2.';
 
  var location = snmp.getOIDText(oid_mib2 + 'system.sysLocation');
  var contact = snmp.getOIDText(oid_mib2 + 'system.sysContact');


        current.u_system_contact = contact + '\n';
        current.u_system_location = location + '\n';
},      
              type: "DiscoverySensor"
});


faisal_dadabhoy
Giga Expert

This is very good. Thanks for sharing the script