Discovering Riverbed devices

Rakesh16i
Kilo Expert

Hi,

I am looking for some help in discovering Riverbed Network devices. Please guide me if someone has acheived it.

Regards,

Rakesh

1 ACCEPTED SOLUTION

Ryan Zulli
ServiceNow Employee
ServiceNow Employee

From my experience - the Riverbed MIB is not that informative (I used the STEELHEAD-MIB from oidview.com)



However from an inventory perspective I was able to walk the following OIDs and create a meaningful CI.



here is a snippet ::



  new DiscoverySensor( {


    process: function(result) {


              var snmp = new SNMPResponse(result);


           


              var oid_serial = snmp.getOIDText('iso.org.dod.internet.private.enterprises.rbt.products.steelhead.system.serialNumber');


              var oid_version = snmp.getOIDText('iso.org.dod.internet.private.enterprises.rbt.products.steelhead.system.systemVersion');


              var oid_model = snmp.getOIDText('iso.org.dod.internet.private.enterprises.rbt.products.steelhead.system.model');



Hope this helps!


-Ryan


View solution in original post

20 REPLIES 20

jake_mckenna
ServiceNow Employee
ServiceNow Employee

If you are going to tackle this I would start here: SNMPClassifier.mov - YouTube on adding new classifiers and OIDs to the system to support the devices you have in your environment. You will most likely find yourself needing to create new identifiers and classifications and also adding a new MIB to the system. Below are some references to help you.



SNMP Probe - ServiceNow Wiki


Discovery identifiers


Device classification


Ryan Zulli
ServiceNow Employee
ServiceNow Employee

From my experience - the Riverbed MIB is not that informative (I used the STEELHEAD-MIB from oidview.com)



However from an inventory perspective I was able to walk the following OIDs and create a meaningful CI.



here is a snippet ::



  new DiscoverySensor( {


    process: function(result) {


              var snmp = new SNMPResponse(result);


           


              var oid_serial = snmp.getOIDText('iso.org.dod.internet.private.enterprises.rbt.products.steelhead.system.serialNumber');


              var oid_version = snmp.getOIDText('iso.org.dod.internet.private.enterprises.rbt.products.steelhead.system.systemVersion');


              var oid_model = snmp.getOIDText('iso.org.dod.internet.private.enterprises.rbt.products.steelhead.system.model');



Hope this helps!


-Ryan


natem
Giga Contributor

Hi Ryan,



Can you please share the full code for your sensor and how you setup the probe? I have CIs created for our SteelHeads by setting up an SNMP OID classifier, but want to try and get more information into the CI record that just the manufacturer and model. The MIB has been added and I restarted the MID Server... but I have never written a probe/sensor... so I'd like to have something to go off of to start.



Thanks!


Ryan Zulli
ServiceNow Employee
ServiceNow Employee

Hi Nathan,



First grab the STEELHEAD mib from here :: Free STEELHEAD-MIB SNMP MIB Download - Free MIB Download - Search MIBs - OiDViEW upload to the midserver, remembering to leave off the extension when attaching to the record, then restart the mid.



Create a new Probe with the following Attributes ::


Name - "SNMP - Riverbed"


Class - "snmp probe"


Stage - "Explore"


ECC Queue Topic - "SNMP"


ECC Queue Name - "SNMP - Riverbed"


Description - "<something meaningful here>"



Right click and save



Under the SNMP Fields related list, click new - and create a separate entry for each of the following OIDS



(each row has the same Command "walk")


iso.org.dod.internet.private.enterprises.rbt.products.steelhead.system.model


iso.org.dod.internet.private.enterprises.rbt.products.steelhead.system.serialNumber


iso.org.dod.internet.private.enterprises.rbt.products.steelhead.system.systemVersion



Click on the Sensors related list and click new ::



Name - "SNMP - Riverbed"


Reacts to Probe - "SNMP - Riverbed"


Description - "<something meaningful here>"



Script ::



new DiscoverySensor( {


    process: function(result) {


              var snmp = new SNMPResponse(result);


           


              var oid_serial = snmp.getOIDText('iso.org.dod.internet.private.enterprises.rbt.products.steelhead.system.serialNumber');


              var oid_version = snmp.getOIDText('iso.org.dod.internet.private.enterprises.rbt.products.steelhead.system.systemVersion');


              var oid_model = snmp.getOIDText('iso.org.dod.internet.private.enterprises.rbt.products.steelhead.system.model');


             


          // set the BC Serial#


          current.serial_number = oid_serial;


            current.model_id = discoModelMap(oid_model);


            current.short_description = oid_version;


    },


    type: 'DiscoverySensor'


});



Where discoModelMap is a script include ::



  function discoModelMap(modelInfo) {


      var ret = '';


      var modelGR = new GlideRecord('cmdb_hardware_product_model');


      modelGR.addQuery('display_name', modelInfo);


      modelGR.query();


      if (modelGR.next()) {


              ret = modelGR.sys_id;


      } else {


              modelGR.initialize();


              modelGR.model_number = modelInfo;


              modelGR.insert();


                  ret = modelGR.sys_id;


      }


      return ret;


}




I also took this a step further and created a new SNMP Classification for this type of device as such ::



Discovery Definition --> CI Classification --> SNMP (click new)



Name - "Wan Accelerator"


Table - "WAN Accelerator"



Right click and save



On Classification Script ::



  current.device_type="WAN Accelerator";



Under the SNMP OID Classifications related list click new ::



OID - "1.3.6.1.4.1.17163"


Operator - "starts with" (or if you have a more specific OID from the manufacturer you can use the complete OID and change Operator to "is"


Classifier - "WAN Accelerator"


Table - "WAN Accelerator"


Manafacturer - "Riverbed"


Model "Steelhead"



Back Under the Triggers Probes related list within the WAN Accelerator SNMP Classifier click Edit and add the following 2 probes ::


SNMP Identity


SNMP - Riverbed



Run a quick disco against one Steelhead device and ensure everything works!