Script-Filter: $Vendor eq "Cisco" and $sysDescr like /NX-OS/ ######################################################################## Action: Get SNMP Community Action-Commands: SET: $UpdateMade = "no" SET: $UserG = "no" SET: $UserO = "no" SET: $UserE = "no" sho run | inc snmp-server Output-Triggers: New SNMP Remove User G Remove User O ########################################################################## Trigger: New SNMP Trigger-Template: snmp-server community E.* Trigger-Commands: SET: $UserE = "yes" ########################################################################## Trigger: Remove User G Trigger-Template: snmp-server community g.* Trigger-Commands: SET: $UserG = "yes" ########################################################################## Trigger: Remove User O Trigger-Template: snmp-server community 0.* Trigger-Commands: SET: $UserO = "yes" ######################################################################### Action: Fix SNMP Action-Commands:{$UserE = "yes"} conf t Action-Commands:{$UserE = "yes" and $UserO = "yes"} no snmp-server 0 group vdc-operator SET: $UpdateMade = "yes" Action-Commands:{$UserE = "yes" and $UserG = "yes"} no snmp-server g group vdc-operator SET: $UpdateMade = "yes" ######################################################################### Action: End and Write Memory Action-Commands: {$UpdateMade eq "yes"} end copy run start