Restart airport router via command line

airportNetwork

Is there any way to restart an apple router via the commandline?

Problem: My airport express starts to "give out" every day or so. I usually have to unplug it for a couple of seconds and then plug it back in. By "give out" I mean it isn't connected to the network and is flashing a yellow light. So, I'm looking for an automatic way to restart the express. I've looked into snmp and it doesn't seem like there's a way to send commands, it's only for stats it seems.

To clarify:

I do not care using Command line, or any other means of remotely resetting the router.

Best Answer

It's not possible to access the Airport Express from the command line.

If you want to dig into SNMP and are comfortable with Java, you can look at the code for the latest version of the Linux version of Airport Utility on Ubuntu Launchpad.