Network Management

 View Only
Expand all | Collapse all

Configure a ReadOnly User for DevOops to read config changes

This thread has been viewed 31 times
  • 1.  Configure a ReadOnly User for DevOops to read config changes

    Posted Mar 08, 2023 12:42 AM

    Dear Friends, 

    I would like set up a user that can be used to Read Only Any config change so DevOops can get config change from the switch. Should I use the command

    snmpv3 user username auth md5 password to create Read Only User? 

    Thanks a lot,

    ML



  • 2.  RE: Configure a ReadOnly User for DevOops to read config changes

    Posted Mar 08, 2023 09:46 AM

    Hello,

    If I understood correctly, you are trying to create a SNMPv3 Read Only user. Which type of device (AOS-S/Procurve, AOS-CX, Comware) are you asking about?



    ------------------------------
    Justin Guse
    ------------------------------



  • 3.  RE: Configure a ReadOnly User for DevOops to read config changes

    Posted Mar 08, 2023 10:23 PM

    Hi @jguse, 

    Yes, I am saying our ArubaOS Switch, you are correct, I meant SNMPv3 readonly user. is this the right way to do it? How do you specify the permission? Would it affect Radius remote management login? 

    Thanks

    ML




  • 4.  RE: Configure a ReadOnly User for DevOops to read config changes

    Posted Mar 09, 2023 09:18 AM
    Edited by jguse Mar 09, 2023 09:19 AM

    Hello,

    With SNMPv3 read or read-write typically depends on the privilege you assign to the group which the user is part of. Below is an example from AOS-S switch output for the group where you can see the different options shown (bold options are probably the ones you want to consider for read only):

    Switch# snmpv3 group ?
     commanagerr           Community with manager and restricted write access.
     commanagerrw          Community with manager and unrestricted write access.
     comoperatorr          Community with operator and restricted write access.
     comoperatorrw         Community with operator and unrestricted write access.
     managerauth           Require authentication, can access all objects.
     managerpriv           Require privacy and authentication, can access all objects.
     operatorauth          Requires authentication, limited access to objects.
     operatornoauth        No authentication required, limited access to objects.

    You could configure it like:

    snmpv3 user readonly auth sha authpass

    snmpv3 group operatorauth user "readonly" sec-model ver3

    EDIT: No, SNMPv3 will not affect remote user login on the switch via RADIUS etc.

    ------------------------------
    Justin Guse
    ------------------------------



  • 5.  RE: Configure a ReadOnly User for DevOops to read config changes

    Posted Mar 13, 2023 11:03 PM

    Did you mean snmpv3 group OperatorNoAuth user "readonly" sec-model ver3 ? Thanks




  • 6.  RE: Configure a ReadOnly User for DevOops to read config changes

    Posted Mar 13, 2023 11:24 PM

    Also, @jguse would operatornoauth have access to read all config on switch? 

    Thanks,
    ML




  • 7.  RE: Configure a ReadOnly User for DevOops to read config changes

    Posted Mar 14, 2023 11:36 AM

    Hello,

    The commands:

    snmpv3 group OperatorAuth user "readonly" sec-model ver3

    and

    snmpv3 group OperatorNoAuth user "readonly" sec-model ver3

    ...are almost the same. The difference is that NoAuth will not require the user to have an 'authentication' password - so you will not need to configure 'snmpv3 user readonly auth sha authpass' and instead 'snmpv3 user readonly' will be sufficient.

    For your second question, yes, it should have access to all readable configurations on the switch.



    ------------------------------
    Justin Guse
    ------------------------------



  • 8.  RE: Configure a ReadOnly User for DevOops to read config changes

    Posted Mar 15, 2023 12:26 AM

    Thank a lot, do I need to add Privacy Protocol for this purpose? what does it do? 




  • 9.  RE: Configure a ReadOnly User for DevOops to read config changes

    Posted Mar 16, 2023 04:42 AM

    I would strongly recommend enabling privacy for SNMPv3, it provides data encryption to the SNMP traffic.



    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 10.  RE: Configure a ReadOnly User for DevOops to read config changes

    Posted Mar 16, 2023 06:37 PM

    Hi @Herman Robers Seems SNMPv3 user is not working in our case. Our developer needs to use a user who can access SSH (better to read only), how can I configure this user? a local user with a certain permission? 

    Thanks

    ML




  • 11.  RE: Configure a ReadOnly User for DevOops to read config changes

    Posted Mar 15, 2023 02:21 AM

    Also, @jguemes , when we are using powershell script to ssh in read the config and copy to DevOps, it did not work with the Readonly user, but works with admin user. Is there any special permission I should give to ReadOnly user? ManagerAuth? 

    Thanks

    ML