Completed

Codigo Php O Exe Para Reiniciar Un Router Automaticamente.

Published on the May 14, 2015 in IT & Programming

About this project

Open

Necesito un codigo que al ejecutarlo este me reinicie el Router.

Es algo sencillo y de poco tiempo.

El router es un CISCO EPC3825.

Para ver el codigo fuente seria necesario entrar por TEAMVIEWER y ver el codigo necesario para realizar el trabajo.

Adjunto un codigo que esta por terminar .. Pero no funciona . Por si alguien quiere hacerse una idea.

Gracias.

<?Php
$login = array(
    "username_login" => "admin",
    "password_login" => "cisco"
);

$c = curl_init();

curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($c, CURLOPT_COOKIESESSION, 1);
curl_setopt($c, CURLOPT_COOKIEJAR, "cookie.txt");
curl_setopt($c, CURLOPT_COOKIEFILE, "cookie.txt");

curl_setopt($c, CURLOPT_POST, 1);
curl_setopt($c, CURLOPT_URL, "http://192.168.0.1/Docsis_system.asp");
curl_setopt($c, CURLOPT_POSTFIELDS, $login);

curl_exec($c);

$confirm = array(
    "devicerestrat_Password_check" => "cisco"
);

curl_setopt($c, CURLOPT_POST, 1);
curl_setopt($c, CURLOPT_URL, "http://192.168.0.1/Devicerestart.asp");
curl_setopt($c, CURLOPT_POSTFIELDS, $confirm);

curl_exec($c);

curl_close($c);
?>

Category IT & Programming
Is this a project or a position? I don’t know yet
I currently have Not applicable
Required availability As needed
Experience in this type of projects No (I haven’t managed this kind of project before)

Delivery term: May 16, 2015

Skills needed