Ignore:
Timestamp:
Apr 5, 2009, 3:54:46 PM (16 years ago)
Author:
george
Message:
  • Přidáno: Možnost registrace podsítí pro klienty.
  • Upraveno: Skripty pro generování nastavení routerů byly upraveny pro podporu tabulky NetworkSubnet.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/system/netwatch_import.php

    r168 r187  
    11<?php
     2
    23include_once('../global.php');
    34
    4 $UserName = 'admin-ssh';
    55$Config['Web']['ShowErrors'] = 1;
    66
    7 $DbResult3 = $Database->query('SELECT DISTINCT (`DHCP`) FROM `NetworkSubnet`');
     7$DbResult3 = $Database->query('SELECT DISTINCT (`DHCP`) FROM `NetworkSubnet` WHERE `Member` = 0');
    88while($Router = $DbResult3->fetch_assoc())
    99{
     
    1111  $Commands[] = '/tool netwatch print terse';
    1212  $Commands = implode(';', $Commands);
    13   $Command = '/usr/bin/ssh -l '.$UserName.' -i generators/id_dsa '.$Router['DHCP'].' "'.$Commands.'"';
     13  $Command = '/usr/bin/ssh -l '.$Config['MainRouter']['UserName'].' -i generators/id_dsa '.$Router['DHCP'].' "'.$Commands.'"';
    1414  //echo($Command."\n");
    1515  $Output = '';
Note: See TracChangeset for help on using the changeset viewer.