Script to have Mikrotik generate and forward an SNMP string?

If I have a cable modem → Mikrotik setup can I use my Mikrotik to send a reboot command via SNMP?

I know the SNMP walk I need to generate. Not sure if the Mikrotik can support this though.

SNMP String that I need the Mikrotik to generate and forward upstream:

snmpset -v[version of snmp] -c private [cm ip] 1.3.6.1.2.1.69.1.1.3.0 i 1

Even better, can the Mikrotik run the SNMP string based on whether or not an IP is responding to ping?