########################################################################### ## Export of Script: PS Training SNMP v2 ## Script-Level: 3 ## Script-Category: Uncategorized ########################################################################### Script: PS Training SNMP v2 Script-Description: 'Configured our SNMP Standards- Rip and Reload' Script-Filter: $vendor eq "Cisco" and $sysdescr like /IOS/ ######################################################################## Action: Show SNMP Action-Commands: SET: $updatemade = "no" sh run | inc snmp-server #snmp-server community public RO #snmp-server community infoblox RW #snmp-server community sifbaksh RO Output-Triggers: Parse Output ######################################################################## Trigger: Parse Output Trigger-Variables: $snmpcom string Trigger-Template: snmp-server community [[$snmpcom]] Trigger-Commands: { $updatemade eq "no"} DEBUG:config t SET: $updatemade = "yes" Trigger-Commands: DEBUG:no snmp-server community $snmpcom ########################################### Action: Add New Community and Save Action-Commands: DEBUG:snmp-server community infoblox RW DEBUG:end DEBUG:copy run start \r