Community discussions

MikroTik App
 
pospisil
just joined
Topic Author
Posts: 1
Joined: Mon Mar 14, 2016 11:22 pm

Extracting value after s in SNMP script

Mon Mar 14, 2016 11:43 pm

Hi, is there a way to extract a value of number after s in SNMP script?
This is example script on wiki: snmpset -c public -v 1 192.168.0.0 1.3.6.1.4.1.14988.1.1.8.1.1.3.X s 1
 
User avatar
sigmasquared
just joined
Posts: 24
Joined: Tue Sep 04, 2012 2:55 pm
Location: South Africa

Re: Extracting value after s in SNMP script

Sat Jun 09, 2018 6:34 pm

Also very keen on this. I'm trying to switch a guest wifi interface on and off from Home Assistant, I can write to the SNMP but it gets rather clumsy as it's a toggle without feedback. If the SNMP value could be passed to a variable in the script I could use proper payloads to affect the script.

Who is online

Users browsing this forum: No registered users and 25 guests