Configuring Event Logging


Event log messages in Netvisor ONE covers events related to the system, protocols (STP, TCP, LLDP, LACP, IGMP), and TACACS+, among others. By default, system, port, LLDP, and TACACS+ events are logged. You can add or remove log events by using the log-event-settings-modify command.


log-event-settings-modify

Modify log event settings.

Specify one or more of the following options:

system|no-system

Enable or disable system event logging. Enabled by default

port|no-port

Enable or disable port event logging. Enabled by default.

tcp|no-tcp

Enable or disable TCP event logging.

stp|no-stp

Enable or disable STP event logging.

igmp|no-igmp

Enable or disable IGMP event logging.

lldp|no-lldp

Enable or disable LLDP event logging.

lacp|no-lacp

Enable or disable LACP event logging.

tacacs|no-tacacs

Enable or disable TACACS+ event logging.Enabled by default.

mld|no-mld

Enable or disable MLD event logging.

mroute|no-mroute

Enable or disable mroute event logging.

vport|no-vport

Enable or disable vPort event logging.

lacp-port-event|no-lacp-port-event

Enable or disable LACP port event logging.


For instance, to enable logging of STP events, use the following command:

 

CLI (network-admin@Leaf1) > log-event-settings-modify stp

 

To display log event settings, use the log-event-settings-show command:


CLI (network-admin@Leaf1) > log-event-settings-show

switch:          Leaf1

system:          on

port:            on

tcp:             off

stp:             on

igmp:            off

lldp:            on

lacp:            off

tacacs:          on

mld:             off

mroute:          off

vport:           off

lacp-port-event: off


Displaying Event Log Information


To view event log information, run the command log-event-show.

 

log-event-show

Display event log information.

Specify between zero to two of the following options:


start-time date/time: yyyy-mm-ddThh:mm:ss

Specify the start time for the log file.

end-time date/time: yyyy-mm-ddThh:mm:ss

Specify the end time for the log file.

duration duration: #d#h#m#s

Specify the duration of the log file.

Specify any of the following parameters to view the information related to those parameters:

program program-string

Specify the program that generates log messages.

pid pid-number

Specify the product ID generating the log messages.

name name-string

Specify the message name.

code code-number

Specify the message code.

level critical|error|warn|note|info

Specify the severity level of event log messages.

event-type system|port|tcp|stp|igmp|lldp|lacp|vdp|ecp|evb|ptp|storage|tacacs|mld|mroute|vport|lacp-port-event

Specify one among the options as the log event type.

vnet vnet-name

Specify the associated VNET.

remote_switch node name

Specify the name of the remote switch.

client-pid client-pid-number

Specify the client product ID.

client-addr ip-address

Specify the client IP address.

port port-number

Specify the port number.

vlan vlan-id

Specify the VLAN ID as a value between 2 and 4092.

bd bridge-domain name

Specify the bridge domain.

vxlan vxlan-id

Specify the VXLAN ID.

count number 1..50000

Specify the number of events to be displayed in a range from 1 to 50000.

starting-point starting-point-number

Specify the starting point of the log audit.

length length-number

Specify the length of the log audit.

reverse|no-reverse

Use this option to enable or disable displaying the messages in reverse order.


For example:


CLI (network-admin@Leaf1) >log-event-show count 3

category time                       name    code level event-type port message

-------- -------------------------- ------- ---- ----- ---------- ---- -------

event    2013-06-04,13:12:18.304740 port_up 62   info  port       62   up

event    2013-06-04,13:12:18.304740 port_up 62   info  port       50   up

event    2013-06-04,13:12:18.304740 port_up 62   info  port       10   up


north
    keyboard_arrow_up
    keyboard_arrow_down
    description
    print
    feedback
    support
    business
    rss_feed
    south