Changeset 187 for trunk/system/generators/netwatch.php
- Timestamp:
- Apr 5, 2009, 3:54:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/generators/netwatch.php
r171 r187 3 3 include_once('../../global.php'); 4 4 5 $UserName = 'admin-ssh'; 6 7 $DbResult3 = $Database->query('SELECT DISTINCT (`DHCP`) FROM `NetworkSubnet`'); 5 $DbResult3 = $Database->query('SELECT DISTINCT (`DHCP`) FROM `NetworkSubnet` WHERE `Member` = 0'); 8 6 while($Router = $DbResult3->fetch_assoc()) 9 7 { … … 23 21 } 24 22 $Commands = implode(';', $Commands); 25 $Command = '/usr/bin/ssh -l '.$ UserName.' -i id_dsa '.$Router['DHCP'].' "'.$Commands.'"';23 $Command = '/usr/bin/ssh -l '.$Config['MainRouter']['UserName'].' -i id_dsa '.$Router['DHCP'].' "'.$Commands.'"'; 26 24 //echo($Command."\n"); 27 25 $Output = '';
Note:
See TracChangeset
for help on using the changeset viewer.