Information on command result [Документация VAS Experts]

This is an old revision of the document!


5 Information on command result

For all parameters except of list

Result processing … a/b/c/d/e

 The symbolic names are indicated in parenthesis:
   a - total records
   b - records successfully processed
   c - some server's error occurred
   d - the attribute(s) was set already
   e - the attribute was not set (meaningful on removal)
 

Example (the first run):

 fdpi_ctrl load --service 1,2,3 --cidr 192.168.0.0/19
 Autodetected fastdpi params : dev='lo', port=29001
 connecting 127.0.0.1:29001 ...
 ---------------------------------
 Result processing CIDR=192.168.0.0/19 : 8192/8192/0/0/0

Example (the second run: the attribute already set):

 fdpi_ctrl load --service 1,2,3 --cidr 192.168.0.0/19
 Autodetected fastdpi params : dev='lo', port=29001
 connecting 127.0.0.1:29001 ...
 ---------------------------------
 Result processing CIDR=192.168.0.0/19 : 8192/0/0/8192/0
 

For 'list' parameter

Result processing … a/b/c

 The symbolic names are indicated in parenthesis:
   a - total records
   b - the attribute was set (in this case it is a service)
   c - the attribute was not set
   

Example:

 fdpi_ctrl list --service --cidr 192.168.0.0/19
  A lot of output lines. The last lines are:
 192.168.31.249 1,2,3 (0x7)
 192.168.31.250 1,2,3 (0x7)
 192.168.31.251 1,2,3 (0x7)
 192.168.31.252 1,2,3 (0x7)
 192.168.31.253 1,2,3 (0x7)
 192.168.31.254 1,2,3 (0x7)
 192.168.31.255 1,2,3 (0x7)
 ---------------------------------
 Result processing CIDR=192.168.0.0/19 : 8192/8192/0
 
 **Для параметра profile**

Создание профиля
Result processing … a/b/c/d

 В скобках указаны символические обозначения :
   a - всего
   b - успешно
   c - внутренняя ошибка ( надо смотреть fastdpi_alert.log )
   d - профиль уже существует ( в нашем случае для услуги 4 есть профиль a41 с такими хаоактеристиками )

Пример (первый запуск):

 fdpi_ctrl load profile --service 4  --profile.name a41 --profile.json '{ "url_list" : "http://mysite.ru/myfile.bin" , "redirect" : "http://mysite.ru/block", "federal" : true }'
  Autodetected fastdpi params : dev='em1', port=29000
  connecting 5.200.43.18:29000 ...
  ================================
  ------------------
  1/1/0/0

Пример (повторный запуск):

  fdpi_ctrl load profile --service 4  --profile.name a41 --profile.json '{ "url_list" : "http://mysite.ru/myfile.bin" , "redirect" : "http://mysite.ru/block", "federal" : true }'
  Autodetected fastdpi params : dev='em1', port=29000
  connecting 5.200.43.18:29000 ...
  ================================
  ------------------
  1/0/0/1
  

Пример (если для услуги не может быть задан профиль):

  fdpi_ctrl load profile --service 3  --profile.name a31 --profile.json '{ "url_list" : "http://mysite.ru/myfile.bin" , "redirect" : "http://mysite.ru/block", "federal" : true }'
  Autodetected fastdpi params : dev='em1', port=29000
  connecting 5.200.43.18:29000 ...
  ================================
  hvers=0x3, hcmd=16 : bad profile (name or parameters), error code ecode=4
      ierr_code=1 (service can't have profile)
      

Удаление профиля
Result processing … a/b/c/d/e

  a - всего
  b - успешно
  c - профиль не найден
  d - профиль используется ( т.е. есть абоненты для которых задана услуга с этим профилем )
  e - внутренняя ошибка ( надо смотреть fastdpi_alert.log )
  

Пример (удаление профиля):

  fdpi_ctrl  del profile --service 4  --profile.name a41
  Autodetected fastdpi params : dev='em1', port=29000
  connecting 5.200.43.18:29000 ...
  ================================
  ------------------
  1/1/0/0/0
  

Пример (повтор команды удаления профиля):

  fdpi_ctrl  del profile --service 4  --profile.name a41
  Autodetected fastdpi params : dev='em1', port=29000
  connecting 5.200.43.18:29000 ...
  ================================
  ------------------
  1/0/1/0/0