Hey guys! Probably a daft question but is it possible for someone to change WANem settings without using the web UI? I ask because I'm looking at writing a script that involves different WANem settings.
Thanks,
Liam
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I do not know which settings you want to change but look at the php files that get called after hitting the "Apply" button on the respective settings page (Basic or Advanced)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I did as you suggested using Firebug and it looks like I can achieve the affect I wanted by using curl changing the param I highlighted in bold.
For future reference I used;
curl -d "btnApply=Apply settings&txtBandwidth1=512&txtBandwidthAuto1=Other&txtDelay1=0&txtDest1=any&txtPort1=any&txtSrc1=any" http://TestBox/WANem/index-basic.php
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey guys! Probably a daft question but is it possible for someone to change WANem settings without using the web UI? I ask because I'm looking at writing a script that involves different WANem settings.
Thanks,
Liam
I think is should be possible. You need to figure out a way to invoke the commands that WANem executes for the setting changes
Thanks for the quick response. Don't suppose you have any suggestions as to where I could begin please?
I do not know which settings you want to change but look at the php files that get called after hitting the "Apply" button on the respective settings page (Basic or Advanced)
Thanks for your help flossuser.
I did as you suggested using Firebug and it looks like I can achieve the affect I wanted by using curl changing the param I highlighted in bold.
For future reference I used;
curl -d "btnApply=Apply settings&txtBandwidth1=512&txtBandwidthAuto1=Other&txtDelay1=0&txtDest1=any&txtPort1=any&txtSrc1=any" http://TestBox/WANem/index-basic.php