Menu

Changing WANem settings without using the UI

Help
Liam Jolly
2010-08-26
2013-02-03
  • Liam Jolly

    Liam Jolly - 2010-08-26

    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

     
  • buzzLightYear

    buzzLightYear - 2010-08-26

    I think is should be possible. You need to figure out a way to invoke the commands that WANem executes for the setting changes

     
  • Liam Jolly

    Liam Jolly - 2010-08-26

    Thanks for the quick response. Don't suppose you have any suggestions as to where I could begin please?

     
  • buzzLightYear

    buzzLightYear - 2010-08-26

    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)

     
  • Liam Jolly

    Liam Jolly - 2010-08-26

    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

     

Log in to post a comment.