I have an issue with the command snmpset ..... that line does not execute and then the function snmpset runs again. If I run the snmpwalk command it works fine but I have tr