IP Power 9258 Perl Control Script

So I’ve recently purchased a IP Power 9258 in order to reset my flaky cable modem (thanks Time Warner for blaming my network gear and not yours)  automatically.  So since I’m programmatically checking to see if my internet is up (BTW pinging your dyndns address is a great way to check if your internet is up)  I needed a way to programmatically set the power state of various ports on the IP Power 9258.


You will need to modify the script to set your own ip username and password.  As well as you may need to install Perl Telnet module (“apt-get install libnet-telnet-cisco-perl” on Ubuntu)


perl setpower.pl -p 1 -s 0

Where -p option is your port (1,2,3 or 4), and -s option is power state 1 for On, 0 for Off.

Tags: , , , , , ,

This entry was posted on Friday, November 11th, 2011 at 9:39 am and is filed under OSS, Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Responses to “IP Power 9258 Perl Control Script”

kamal August 23rd, 2013 at 3:29 am

Would you be able to send me thisscript. Also i am looking for playing around with device on ubuntu. Do you have any instructions on how to get it working with ubuntu

Mattthew McKenzie June 9th, 2015 at 3:45 pm

It is worth noting that depending upon the age of the stock, some IP9258’s may need a firmware upgrade for telnet control.
At least IP9258FW_20100920151002_V1.60.bin

Leave a Reply