DX NetOps

  • 1.  How do I use the CLI to add a model which only does SNMP v2c?

    Posted May 16, 2018 07:22 PM

    I can use the 'create model ip=10.1.1.1 comm=public' command to add my Juniper devices to Spectrum. The Nokia 7750SR routers in our network however ignore SNMP v1 and only respond to SNMP v2c. In the GUI that's not an issue because there is a control to select the SNMP version. But the command line tool doesn't have an analogous option. Is there a global setting somewhere to tell Spectrum to prefer v2c? Thanks in advance.



  • 2.  Re: How do I use the CLI to add a model which only does SNMP v2c?
    Best Answer

    Broadcom Employee
    Posted May 16, 2018 07:30 PM

    Use comm=#v2/public for your string.

     

    -Rob

     

    Sent from my BlackBerry Priv



  • 3.  Re: How do I use the CLI to add a model which only does SNMP v2c?

    Posted May 16, 2018 07:36 PM

    Rob,

     

    that worked like a charm. Thanks for the quick reply!

     

    -David Mitchell



  • 4.  Re: How do I use the CLI to add a model which only does SNMP v2c?

    Posted May 17, 2018 03:28 AM

    I highly suggest you use REST instead of CLI if that's feasible. That being said, the format of SNMP Community you can use is described here: Manually Model an SNMPv3 Device - CA Spectrum - 10.2 to 10.2.3 - CA Technologies Documentation (for v2 and v3 - use #v1/ or nothing if you want v1).



  • 5.  Re: How do I use the CLI to add a model which only does SNMP v2c?

    Posted May 17, 2018 02:04 PM

    Christophe,

     

    if I end up doing anything more sophisticated I will almost certainly adopt the REST API. In this particular case I was just trying to add a pile of devices to a development instance to get up and running quickly and the CLI was sufficient for that. Thanks,

     

    -David