Audiovox P965 Ficha Técnica Página 174

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 280
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 173
RouterOS PHP class
171
Add new section alias of type to configuration update with comma delimeted group keys and list of default_key.
See RouterOSParser::section function.
section firewall-filter /ip/firewall/filter addset_order
section wireless-wds /interface/wireless/wds addset name disabled=no
disable [alias] [alias2]...
Remove section from configuration update.
disable firewall-filter queue-tree
[cmd-name] [arg1] [arg2]...
Execute user defined function with args.
my_first_function 192.168.10.1 192.168.10.254
To perform automatic update updater has to know what type of data to expect. Proper section type has to be
specified.
addset - add, set or remove items (where .id is specified for an item) in unspecified order (ie. /queue/tree,
/queue/types...)
addset_order - add, set or remove items where order of items matters(ie. /ip/firewall/filter, /queue/simple,
/ip/dns/static...)
set - only set items (where .id is specified for an item), don't remove or add an new one (ie. /interface,
/queue/interface...)
value - only set variables (where are values not items) (ie. /ip/firewall/connection/tracking, /ip/dns)
public $logs = array();
Array of logs from section update.
public $showIgnored = FALSE;
Whatever to show in logs items which found to be "ignore" or "pass".
public $currentContext;
Information about current processed line (can be accessed from user php functions).
function error($message)
DIE execution with specified error message.
function define($key, $value = FALSE)
Define or undefine script variable: %key%
function variable($key)
Get value of script variable: %key%
function replace($value)
Replace string using script variables
$parser->define('var', 'test-of-var');
$parser->replace('string of variable: %var%');
"string of variable: test-of-var"
function config($cmd, $line)
Vista de página 173
1 2 ... 169 170 171 172 173 174 175 176 177 178 179 ... 279 280

Comentários a estes Manuais

Sem comentários