Changeset 239 for trunk/system/queues_import.php
- Timestamp:
- Aug 2, 2009, 10:28:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/queues_import.php
r161 r239 1 1 <?php 2 include_once(' global.php');2 include_once('../global.php'); 3 3 4 4 $Config['Web']['ShowErrors'] = 1; 5 5 6 include _once('routerboard.php');6 include('routerboard.php'); 7 7 8 8 $Routerboard = new Routerboard($Config['MainRouter']['HostName'], $Config['MainRouter']['UserName'], $Config['MainRouter']['Password']); 9 $QueueTree = $Routerboard->GetList('/queue tree', array('bytes', 'rate', 'parent', 'packet-mark', 'name')); 10 print($QueueTree); 9 $Routerboard->PrivateKey = 'generators/id_dsa'; 10 print_r($Routerboard->ListUpdate(array('tool', 'netwatch'), array('host', 'comment'), array())); 11 //print_r($Routerboard->Execute('ip address {:foreach i in=[find] do={:put "address=".[get $i address]." network=".[get $i network])}}')); 12 //print_r($Routerboard->GetItem('system ntp client print')); 11 13 12 14 ?>
Note:
See TracChangeset
for help on using the changeset viewer.