Reconnect to wireless network with network-manager through command line
I'm wondering is there a way to re-connect/connect to a wireless network with network manager through the command line.
basicly i use a php script to monitor active IP addresses on my wireless router... however the router(netgear) seems to dislike it if you access it too often and claims the user name and password r invalid after a while... so the easy work around is just to reconnect to the router ie: click the wireless icon, then click on my wireless network. network manager then disconnects and then re-connects to the wireless. and the router allows access again.
i was wondering would it be possible to replicate this via the command line? so i can get the script to re-connect to the wireless wen it gets refused access... so it doesn't require my interaction.
i tried looking for network manager command line info(dont even know if it has a cli), but all my searches threw up stuff about configuring network manager through command line and peoples issues with not being able to connect etc. and nothing on commands available etc. i did get the sinking feeling it doesnt hav a cli and i would have to use another method, but beggers cant b choosers,,,
"Those who make peaceful protest impossible make violent revolution inevitable"