Modify device SNMP passwords using automation

更新时间:
复制 MD 格式

You can use automation to configure and modify the basic settings of network devices. This process improves efficiency and reduces errors. Automation templates include device templates and user templates. Device templates are specific to device manufacturers and models and encapsulate operations that are performed directly on the devices.

Modify a device SNMP community string using an automation template

The following steps describe how to create an automation template to configure the SNMP community string on a Ruijie switch.

  1. Identify the commands to automate. For example, the following commands configure the SNMP community string on a Ruijie switch. The process is to first enter Enable mode. The engine automatically handles the password to prevent it from being exposed in the template. Then, you enter Config mode, configure the SNMP community string, exit Config mode, and save the configuration.

    enable
    config
    snmp-server community public ro
    end
    write
  2. Add a device template to encapsulate these commands.

  3. When adding a script, you must specify it at the vendor level. However, if a vendor's instructions vary by model, you must specify the script at the model level.

  4. You can edit and publish the template.

  5. Validate the template on a specific device by running a real-time task. You can view the command output in real time.