Changeset 141
- Timestamp:
- Jan 21, 2009, 10:16:47 AM (16 years ago)
- Location:
- system
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
system
- Property svn:ignore
-
old new 1 1 nohup.out 2 statistic
-
- Property svn:ignore
-
system/generators/traffic_shaping_routerboard.php
r124 r141 113 113 echo("\n"); 114 114 } 115 print_r($Commands);115 //print_r($Commands); 116 116 $Commands = addslashes(implode(';', $Commands)); 117 117 $Command = '/usr/bin/ssh -l admin-ssh -i /root/.ssh/id_dsa '.$Router.' "'.$Commands.'"'; 118 //echo($Command."\n");118 echo($Command."\n"); 119 119 exec($Command, $Output); 120 120 //array_pop($Output); -
system/traffic-flow.php
r111 r141 7 7 $Commands[] = '/ip firewall filter {:foreach i in=[find] do={:put (\"src-address=\".[get \$i src-address].\" dst-address=\".[get \$i dst-address].\" bytes=\".[get \$i bytes])}}'; 8 8 $Commands = implode(';', $Commands); 9 $Command = '/usr/bin/ssh -l admin-ssh -i /root/.ssh/id_dsa rt-hajda- 5"'.$Commands.'"';9 $Command = '/usr/bin/ssh -l admin-ssh -i /root/.ssh/id_dsa rt-hajda-0 "'.$Commands.'"'; 10 10 echo($Command."\n"); 11 11 //echo('Output: '.shell_exec($Command));
Note:
See TracChangeset
for help on using the changeset viewer.