Дерево страниц
Перейти к концу метаданных
Переход к началу метаданных

logging

Switch to logging configuration mode.

Syntax
logging
Parameters

The command does not contain any parameters.

Privilege group
config-logging
Command mode

CONFIG

Example
LTP-16N(configure)# logging

file size

Set the system log size.

Syntax
file size <VALUE>
no file size
Parameters

<VALUE> — log size in bytes, range of values [1000-300000].

Default value
3000000
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# file size 20000

permanent

Configuring the saving of syslog files to non-volatile memory.

Syntax
[no] permanent
Parameters

The command does not contain any parameters.

Default value
Disabled
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# permnanent

remote server

Configuring syslog server address to which the logs will be sent. It is possible to specify up to three servers with unique IP addresses.

Syntax
remote server ip <IP> [PORT]
no remote server ip <IP>
Parameters
  • <IP> — IP address specified as AAA. BBB. CCC. DDD, where each part takes the value [0..255];
  • [PORT] — port, may take values [1-65535].
Default value
  • <IP> — not specified;
  • [PORT] — 514.
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# remote server ip 192.168.100.5 port 1000

remote loglevel

Setting the log level to be sent to the syslog server.

Syntax
remote loglevel <LOGLEVEL>
no remote loglevel
Parameters

<LOGLEVEL> — logging level. Values: [ critical | error | warning | notice | info | debug ].

Default value
notice
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# remote loglevel debug

console loglevel

Setting the logging level for console connection.

Syntax        
console loglevel <LOGLEVEL>
no console loglevel
Parameters

<LOGLEVEL> — logging level. Values: [ critical | error | warning | notice | info | debug ].

Default value
notice
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# console loglevel debug

file loglevel

Setting the log level for syslog file.

Syntax
file loglevel <LOGLEVEL>
no file loglevel
Parameters

<LOGLEVEL> — logging level. Values: [ critical | error | warning | notice | info | debug ].

Default value
notice
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# file loglevel debug

kernel

Setting the log level for kernel.

Syntax
kernel loglevel <LOGLEVEL>
no kernel loglevel
Parameters

<LOGLEVEL> — logging level. Values: [ critical | error | warning | notice | info | debug ].

Default value
notice — for module and all submodules
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# kernel loglevel debug

module cli

Setting the log level for CLI module.

Syntax
module cli [SUBMODULE] loglevel <LOGLEVEL>
no cli [SUBMODULE] loglevel
Parameters
  • [SUBMODULE] — name of the submodule for which the logging will be changed. Values: [ ipc | cfgdb | hash | log ];
  • <LOGLEVEL> — logging level. Values: [ critical | error | warning | notice | info | debug ].
Default value
notice — for module and all submodules
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# module cli loglevel debug
LTP-16N(logging)# module cli ipc loglevel debug 

module dna

Setting the log level for DNA module.

Syntax
module dna [SUBMODULE [PORT-ID]] loglevel <LOGLEVEL>
no dna [SUBMODULE [PORT-ID]] loglevel
Parameters
  • [SUBMODULE] — name of the submodule for which the logging will be changed. Value: [pon-port | conf-task | olt | ont | bcm-api | tools | loglib | cfgdb ];
  • [PORT-ID] — interface index for the pon-port and ont submodules:
    • pon-port — value <1-16>. With capability to set ranges and/or enumerations.
    • ont — value <1-16/1-128>. The first number is the port index, the second is the ONT index. With capability to set ranges and/or enumerations.
  • <LOGLEVEL> — logging level. Values: [ critical | error | warning | notice | info | debug ].
Default value
notice — for module and all submodules
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# module dna loglevel debug
LTP-16N(logging)# module dna ont 1/1-5,10 loglevel debug 

module fsm-pon

Setting the log level for FSM module.

Syntax
module fsm-pon [SUBMODULE] loglevel <LOGLEVEL>
no fsm-pon [SUBMODULE] loglevel
Parameters
  • [SUBMODULE] — name of the submodule for which the logging will be changed. Values: [ main-queue | callback-queue | info-queue | timers | task-queue | omci | listener | cfgdb ];
  • <LOGLEVEL> — logging level. Values: [ critical | error | warning | notice | info | debug ].
Default value
notice — for module and all submodules
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# module fsm-pon loglevel debug
LTP-16N(logging)# module fsm-pon timers loglevel debug 

module igmp

Setting the log level for IGMP module.

Syntax
module igmp [SUBMODULE] loglevel <LOGLEVEL>
no igmp [SUBMODULE] loglevel
Parameters
  • [SUBMODULE] — name of the submodule for which the logging will be changed. Values: [ main-task | conf-task | cfgdb | msg-queue | timers ];
  • <LOGLEVEL> — logging level. Values: [ critical | error | warning | notice | info | debug ].
Default value
notice — for module and all submodules
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# module igmp loglevel debug
LTP-16N(logging)# module igmp conf-task loglevel debug 

module logmgr

Setting the log level for log-mgr module.

Syntax
module logmgr [SUBMODULE] loglevel <LOGLEVEL>
no logmgr [SUBMODULE] loglevel
Parameters
  • [SUBMODULE] — name of the submodule for which the logging will be changed. Values: [ cfgdb ];
  • <LOGLEVEL> — logging level. Values: [ critical | error | warning | notice | info | debug ].
Default value
notice — for module and all submodules
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# module logmgr loglevel debug
LTP-16N(logging)# module logmgr cfgdb loglevel debug 

module lldp

Setting the log level for lldp module.

Syntax
module lldp [SUBMODULE] loglevel <LOGLEVEL>
no lldp [SUBMODULE] loglevel
Parameters
  • [SUBMODULE] — name of the submodule for which the logging will be changed. Values: [ cfgdb | task | timers | queue ];
  • <LOGLEVEL> — logging level. Values: [ critical | error | warning | notice | info | debug ].
Default value
notice — for module and all submodules
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# module lldp loglevel debug
LTP-16N(logging)# module lldp cfgdb loglevel debug

module usermgr

Setting the log level for user-mgr module.

Syntax
module usermgr [SUBMODULE] loglevel <LOGLEVEL>
no usermgr [SUBMODULE] loglevel
Parameters
  • [SUBMODULE] — name of the submodule for which the logging will be changed. Values: [ cfgdb ];
  • <LOGLEVEL> — logging level. Values: [ critical | error | warning | notice | info | debug ].
Default value
notice — for module and all submodules
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# module usermgr loglevel debug
LTP-16N(logging)# module usermgr cfgdb loglevel debug 

module dhcp

Setting the log level for DHCP module.

Syntax
module dhcp [SUBMODULE] loglevel <LOGLEVEL>
no dhcp [SUBMODULE] loglevel
Parameters
  • [SUBMODULE] — name of the submodule for which the logging will be changed. Values: [ cfgdb | task | timers | queue ];
  • <LOGLEVEL> — logging level. Values: [ critical | error | warning | notice | info | debug ].
Default value
notice — for module and all submodules
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# module dhcp loglevel debug
LTP-16N(logging)# module dhcp cfgdb loglevel debug

module snmp

Setting the log level for SNMP module.

Syntax
module dhcp [SUBMODULE] loglevel <LOGLEVEL>
no dhcp [SUBMODULE] loglevel
Parameters
  • [SUBMODULE] — name of the submodule for which the logging will be changed. Values: [ cfgdb | ipc | custom-layer ];
  • <LOGLEVEL> — logging level. Values: [ critical | error | warning | notice | info | debug ].
Default value
notice — for module and all submodules
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# module snmp loglevel debug
LTP-16N(logging)# module snmp ipc loglevel debug

module pppoe

Setting the log level for PPPoE module.

Syntax
module pppoe [SUBMODULE] loglevel <LOGLEVEL>
no pppoe [SUBMODULE] loglevel
Parameters
  • [SUBMODULE] — name of the submodule for which the logging will be changed. Values: [ cfgdb | queue | task ];
  • <LOGLEVEL> — logging level. Values: [ critical | error | warning | notice | info | debug ].
Default value
notice — for module and all submodules
Privilege group
config-logging
Command mode

LOGGING

Example
LTP-16N(logging)# module pppoe loglevel debug
LTP-16N(logging)# module pppoe ipc loglevel debug



  • Нет меток