Hey all, I’m trying to write a script to disable dhcp and pppoe. However, everytime I run the script I either get an error like ‘input does not match any value of item name’ or I do not receive an error but the actions are not carried out? Any ideas here?
/system script set 0 source={/interface pppoe-server server disable 0\n/ip dhcp-server disable 0}
Print command? I can’t find one in the manual and I get error message about it not being valid when I try to use it (I’m using ver 2.8.18). Do you mean the PUT command?
I’ve tried that too, no error messages are logged, but the action is not performed when I run the script any ideas here? I think scripting is broken or something. Here is what I’m trying (using the put command).
The item numbers in console are assigned by print command, therefore it is not possible to reference items by item number from scripts. You could try the following:
/system script set 0 source={/interface pppoe-server server disable 0\n/ip dhcp-server disable [/ip dhcp-server find]}
or reference the item by name, exempli gratia/ip dhcp-server disable dhcp1.
That works for the DHCP but not for the pppoe-server ;( pppoe server entires have service-names and not just plain names. Any ideas would be greatly appreciated!