Ignore:
Timestamp:
May 10, 2009, 12:30:09 PM (16 years ago)
Author:
george
Message:

Opraveno: Skripty pro generování nastavení směrovačů.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/system/generators/dhcp_routerboard.php

    r208 r213  
    77while($Subnet = $DbResult->fetch_assoc())
    88{
    9   //print_r($Subnet);
     9  echo($Subnet['DHCP']);
    1010  $I = explode('.', $Subnet['AddressRange']);
    1111  $I = $I[2];
     
    1818  }
    1919  $Commands = implode(';', $Commands);
    20   $Command = '/usr/bin/ssh -l '.$Config['MainRouter']['UserName'].' -i id_dsa '.$Subnet['DHCP'].' "'.$Commands.'"';
     20  $Command = '/usr/bin/ssh -o ConnectTimeout=5 -l '.$Config['MainRouter']['UserName'].' -i id_dsa '.$Subnet['DHCP'].' "'.$Commands.'"';
    2121  //echo($Command."\n");
    2222  $Output = '';
Note: See TracChangeset for help on using the changeset viewer.