DX NetOps

 View Only
  • 1.  convert ip device to genSNMP via restapi ?

    Posted Nov 27, 2015 09:04 AM

    Helo all;

     

    Is it possible to covert existing IP Device to generic snmp device via restapi ? I know put mothod is updating existing model in restapi,

     

    I have only this example,

     

    restful/model/0x111111?attr=0x10009&val=123

     

    but how can I change model type handle 0x10290 (Pingable) to 0x3d0002 (Gen snmp) ?

     

    Regards.



  • 2.  Re: convert ip device to genSNMP via restapi ?

    Posted Nov 27, 2015 09:13 AM

    You can't 'convert' icmp models to genSnmp ones.

     

    In my experience, if you create a new device with the same name/ip as an existing Pingable model, it will delete the ICMP model and create an SNMP based one.

     

    I can't remember if it had to be that same name AND ip. I think it might be same IP only.

     

    Regards,


    Frank



  • 3.  Re: convert ip device to genSNMP via restapi ?
    Best Answer

    Broadcom Employee
    Posted Nov 29, 2015 09:31 PM

    I did test in the lab.

    1. Create pingable model

    2. Use RestClient to send the following using POST method

          http://<OneClickIP>:8181/spectrum/restful/model?commstring=public&port=161&retry=3&timeout=3000&ipaddress=<IP of SNMP device>

    3. Spectrum will destroy the pingable model and create SNMP capable model



  • 4.  Re: convert ip device to genSNMP via restapi ?

    Posted Nov 30, 2015 05:54 AM

    Thanks Sangtoki,

     

    Doesn't need to add model handle in  post request , only send  post with ip is enough ?

     

    Regards.



  • 5.  Re: convert ip device to genSNMP via restapi ?

    Posted Nov 30, 2015 06:02 AM

    You don't send the model handle. The response from the REST API will provide the model Handle of the new model.

     

    The response will contain something like:

     

    response" error="Success"><model mh="0x000000"/>

     

    Regards,


    Frank