Динамическое изменение скорости: с помощью php и netgraph генерирование скрипта для шелла

Динамическое изменение скорости: с помощью php и netgraph с генерирование скрипта для шелла

Данный скрипт извлекает данные из базы:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
-- phpMyAdmin SQL Dump
-- version 3.1.2
-- http://www.phpmyadmin.net
--
-- Хост: localhost
-- Час створення: Лис 19 2010 р., 18:36
-- Версія сервера: 5.0.67
-- Версія PHP: 5.2.9
 
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
 
--
-- БД: `freenibs`
--
 
-- --------------------------------------------------------
 
--
-- Структура таблиці `speed_counter`
--
 
CREATE TABLE IF NOT EXISTS `speed_counter` (
  `ip` INT(50) NOT NULL, 
  `all_last` BIGINT(20) NOT NULL,
  `in_last` BIGINT(20) NOT NULL,
  `out_last` BIGINT(20) NOT NULL,
  `time_last` BIGINT(20) NOT NULL,
  `all_speed` FLOAT(20,2) NOT NULL,
  `in_speed` FLOAT(20,2) NOT NULL,
  `out_speed` FLOAT(20,2) NOT NULL,
  `in_load` FLOAT(20,2) NOT NULL,
  `out_load` FLOAT(20,2) NOT NULL,
  `interface` VARCHAR(12) NOT NULL,
  `speed_car_in` BIGINT(20) NOT NULL,
  `speed_car_out` BIGINT(20) NOT NULL,
  `gid` INT(11) NOT NULL,
  `user` VARCHAR(200) NOT NULL,
  `uid` INT(11) NOT NULL,
  UNIQUE KEY `ip` (`ip`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 
--
-- Дамп даних таблиці `speed_counter`
--
 
INSERT INTO `speed_counter` VALUES(2130706433, 8524023, 1510526, 7013497, 1290175807, 3854.30, 1231.33, 2622.97, 696.95, 1393.66, '', 104857600, 104857600, 14, '278d14kv49', 878);

данным скриптом:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
$link = mysql_connect('10.1.1.1', 'db_test', 'test');
if (!$link) {
        die('Could not connect: ' . mysql_error());
}
/*  */
mysql_select_db("db_test");
$q="SELECT *
FROM `speed_counter` WHERE `interface` LIKE 'ng%' "; 
//Я извлекаю из базы freenibs поэтому исключаю пакеты так " AND `gid` in ('14','29','19','11','21')"
$result = mysql_query($q);
$num_rows = mysql_num_rows($result);
$ifconfig='/sbin/ifconfig';
$ng='/usr/sbin/ngctl';
 
 
$ip="1.1.1.1";
$speed_in=20000;
$speed_out=20000;
$speed_in_ua=5000;
$speed_out_ua=5000;
$int="ng73";
$state=FALSE;
$count=0;
 
 
if($num_rows>0){
echo '#!/bin/sh'."\n";
        while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
                $int=$row['interface'];
 
                $speed_in=$row['speed_car_in'];
                $speed_out=$row['speed_car_out'];
                if($speed_in>4396000){
                        $cbs_in=intval($speed_in/8);
                        $ebs_in=$cbs_in*2;
                        //перепутал ИН и АУТ
                        //      $cbs_in=ceil($speed_in*3/16);
                        //      $ebs_in=$cbs_in*2;
                }else{
                        $cbs_in=intval($speed_in/8);
                        $ebs_in=$cbs_in*2;
 
                }
         if($speed_out>4396000){
                $cbs_out=intval($speed_out/8);
                //      $cbs_out=ceil($speed_out*3/16);
                $ebs_out=$cbs_out*2;
        }else{
                $cbs_out=intval($speed_out/8);
                $ebs_out=$cbs_out*2;
 
        }
            echo ''.$ng.' msg '.$int.':inet.0-0-m setconf "{ upstream={ cbs='.$cbs_in.' ebs='.$ebs_in.' cir='.$speed_in.' greenAction=1 yellowAction=1 redAction=2 mode=2 }  downstream={ cbs='.$cbs_out.' ebs='.$ebs_out.' cir='.$speed_out.' greenAction=1 yellowAction=1 redAction=2 mode=2 } }"'."\n";
            echo ''.$ng.' msg '.$int.':inet.0-0-mi setconf "{ upstream={ cbs='.$cbs_in.' ebs='.$ebs_in.' cir='.$speed_in.' greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs='.$cbs_out.' ebs='.$ebs_out.' cir='.$speed_out.' greenAction=1 yellowAction=1 redAction=2 mode=2 } }"'."\n";
            echo ''.$ng.' msg '.$int.':inet.1-0-m setconf "{ upstream={ cbs='.$cbs_in.' ebs='.$ebs_in.' cir='.$speed_in.' greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs='.$cbs_out.' ebs='.$ebs_out.' cir='.$speed_out.' greenAction=1 yellowAction=1 redAction=2 mode=2 } }"'."\n";
            echo ''.$ng.' msg '.$int.':inet.1-0-mi setconf "{ upstream={ cbs='.$cbs_in.' ebs='.$ebs_in.' cir='.$speed_in.' greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs='.$cbs_out.' ebs='.$ebs_out.' cir='.$speed_out.' greenAction=1 yellowAction=1 redAction=2 mode=2 } }"'."\n";
 
 
 
        }
}
 
 
?>

Уже сгенереные значения и формирует shell-скрипт.
Например:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/usr/sbin/ngctl msg ng168:inet.0-0-m setconf "{ upstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 }  downstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng168:inet.0-0-mi setconf "{ upstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng168:inet.1-0-m setconf "{ upstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng168:inet.1-0-mi setconf "{ upstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng129:inet.0-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 }  downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng129:inet.0-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng129:inet.1-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng129:inet.1-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng65:inet.0-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 }  downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng65:inet.0-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng65:inet.1-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng65:inet.1-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng204:inet.0-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 }  downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng204:inet.0-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng204:inet.1-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng204:inet.1-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng96:inet.0-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 }  downstream={ cbs=2558976 ebs=5117952 cir=20471808 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng96:inet.0-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=2558976 ebs=5117952 cir=20471808 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng96:inet.1-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=2558976 ebs=5117952 cir=20471808 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng96:inet.1-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=2558976 ebs=5117952 cir=20471808 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng57:inet.0-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 }  downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng57:inet.0-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng57:inet.1-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng57:inet.1-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng201:inet.0-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 }  downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng201:inet.0-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng201:inet.1-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng201:inet.1-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng109:inet.0-0-m setconf "{ upstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 }  downstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng109:inet.0-0-mi setconf "{ upstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng109:inet.1-0-m setconf "{ upstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng109:inet.1-0-mi setconf "{ upstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng3:inet.0-0-m setconf "{ upstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 }  downstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng3:inet.0-0-mi setconf "{ upstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng3:inet.1-0-m setconf "{ upstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng3:inet.1-0-mi setconf "{ upstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=1310720 ebs=2621440 cir=10485760 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng93:inet.0-0-m setconf "{ upstream={ cbs=1280000 ebs=2560000 cir=10240000 greenAction=1 yellowAction=1 redAction=2 mode=2 }  downstream={ cbs=1280000 ebs=2560000 cir=10240000 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng93:inet.0-0-mi setconf "{ upstream={ cbs=1280000 ebs=2560000 cir=10240000 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=1280000 ebs=2560000 cir=10240000 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng93:inet.1-0-m setconf "{ upstream={ cbs=1280000 ebs=2560000 cir=10240000 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=1280000 ebs=2560000 cir=10240000 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng93:inet.1-0-mi setconf "{ upstream={ cbs=1280000 ebs=2560000 cir=10240000 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=1280000 ebs=2560000 cir=10240000 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng122:inet.0-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 }  downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng122:inet.0-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng122:inet.1-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng122:inet.1-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng198:inet.0-0-m setconf "{ upstream={ cbs=1280000 ebs=2560000 cir=10240000 greenAction=1 yellowAction=1 redAction=2 mode=2 }  downstream={ cbs=1280000 ebs=2560000 cir=10240000 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng198:inet.0-0-mi setconf "{ upstream={ cbs=1280000 ebs=2560000 cir=10240000 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=1280000 ebs=2560000 cir=10240000 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng198:inet.1-0-m setconf "{ upstream={ cbs=1280000 ebs=2560000 cir=10240000 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=1280000 ebs=2560000 cir=10240000 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng198:inet.1-0-mi setconf "{ upstream={ cbs=1280000 ebs=2560000 cir=10240000 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=1280000 ebs=2560000 cir=10240000 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng176:inet.0-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 }  downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng176:inet.0-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng176:inet.1-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng176:inet.1-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng133:inet.0-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 }  downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng133:inet.0-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng133:inet.1-0-m setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"
/usr/sbin/ngctl msg ng133:inet.1-0-mi setconf "{ upstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } downstream={ cbs=13107200 ebs=26214400 cir=104857600 greenAction=1 yellowAction=1 redAction=2 mode=2 } }"

Leave a Comment

Ваш e-mail не будет опубликован. Обязательные поля помечены *

Загрузка...
Menu Title