Generic_SNMPv3.xml

Version 2

    This looks for various SNMPv3 lines in the config, then provides a way to add them if they are not already there.

     

    milstateit@mil.wa.gov had asked about a simple way to add his SNMPv3 settings to his device configs.

    Scripting noob question

     

    This report was made simply as an example, to show a different way to complete a task.

     

    This simple compliance report looks through the last running config, for all devices, for an entire block of code:

     

    snmp-server group "groupname" v3 priv read "readview" write "writeview"

    snmp-server user "user" "groupname" v3 auth md5 "password" priv aes 256 "password"

    snmp-server view "readview" iso included

    snmp-server view "writeview" iso included

    snmp-server host "IP" version 3 priv "user"

    snmp-server enable traps

     

     

    If this block of config is not found, the report will off to add it by doing the following:

     

    configure terminal

    snmp-server group "groupname" v3 priv read "readview" write "writeview"

    snmp-server user "user" "groupname" v3 auth md5 "password" priv aes 256 "password"

    snmp-server view "readview" iso included

    snmp-server view "writeview" iso included

    snmp-server host "IP" version 3 priv "user"

    snmp-server enable traps

    end

    copy run start

     

     

    -Will