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/netwatch_import.php

    r208 r213  
    88while($Router = $DbResult3->fetch_assoc())
    99{
     10  echo($Router['DHCP']."\n");
    1011  $Commands = array();
    1112  $Commands[] = '/tool netwatch print terse';
    1213  $Commands = implode(';', $Commands);
    13   $Command = '/usr/bin/ssh -l '.$Config['MainRouter']['UserName'].' -i generators/id_dsa '.$Router['DHCP'].' "'.$Commands.'"';
     14  $Command = '/usr/bin/ssh -o ConnectTimeout=5 -l '.$Config['MainRouter']['UserName'].' -i generators/id_dsa '.$Router['DHCP'].' "'.$Commands.'"';
    1415  //echo($Command."\n");
    1516  $Output = '';
Note: See TracChangeset for help on using the changeset viewer.