Changeset 187 for trunk/system/netwatch_import.php
- Timestamp:
- Apr 5, 2009, 3:54:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/netwatch_import.php
r168 r187 1 1 <?php 2 2 3 include_once('../global.php'); 3 4 4 $UserName = 'admin-ssh';5 5 $Config['Web']['ShowErrors'] = 1; 6 6 7 $DbResult3 = $Database->query('SELECT DISTINCT (`DHCP`) FROM `NetworkSubnet` ');7 $DbResult3 = $Database->query('SELECT DISTINCT (`DHCP`) FROM `NetworkSubnet` WHERE `Member` = 0'); 8 8 while($Router = $DbResult3->fetch_assoc()) 9 9 { … … 11 11 $Commands[] = '/tool netwatch print terse'; 12 12 $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.'"'; 14 14 //echo($Command."\n"); 15 15 $Output = '';
Note:
See TracChangeset
for help on using the changeset viewer.