Logging and debug commands in switches

1- Brocade FCX switches

# show logging

SSH@core1(config)# logging

buffered
cli-command   logging cli commands entered from every session
console       send a copy of logging output to console
enable
facility
host
on
persistence

difference between term mon and logging    https://learningnetwork.cisco.com/thread/12880

Difference between terminal monitor and logging console
http://networking-forum.com/viewtopic.php?f=33&t=20528&start=10

# (no) logging console: Logging is used to start the logging process but it does not show it until you use terminal monitor under a telnet/ssh session, it only shows it under a console session by default.

# (no) terminal monitor: Terminal monitor is used to display debuging/logging in a terminal session telnet/ssh

Some debug examples

# debug ipv6 ospf nsm

# terminal monitor

# debug destination

# show debug

# no debug all

# show who

#show default values

2- HP ProCurve switches:

Switch40# debug

all                   Display all debug messages.

arp-protect           Display Dynamic ARP Protection messages.

destination           Select destination for debug messages.

dhcp-snooping         Display all DHCP Snooping messages.

dynamic-ip-lockdown   Display Dynamic IP Lockdown messages.

event                 Display event log messages.

lldp                  Display LLDP information.

Switch40# debug destination

logging               Send debug messages to syslog server.

session               Print debug messages to terminal.

 

Switch40# show debug

Debug Logging

Destination:

Logging —

208.x.x.x

Facility = user

Enabled debug types:

event

Switch40(config)# logging facility

kern

user

mail

daemon

auth

syslog

lpr

news

uucp

sys9

sys10

sys11

sys12

sys13

sys14

cron

local0

local1

local2

local3

local4

local5

Switch40# show logging -r

3- Dell switches

Switch44#show logging

Logging is enabled

Logging protocol version: 1

Console Logging: Level warnings. Messages : 5 logged, 29965 ignored

Monitor Logging: disabled

Buffer Logging: Level informational. Messages : 27459 logged, 2511 ignored

File Logging: Level emergencies. Messages : 0 logged, 29970 ignored

Switch Auditing : enabled

CLI Command Logging: enabled

Web Session Logging : disabled

SNMP Set Command Logging : disabled

Logging facility level : local7

Syslog Server Details:

208.x.x.x: Level informational. Messages : 47 dropped

0 Messages dropped due to lack of resources

Buffer Log:

<189>1 Nov  4 10:46:25.850-5:00 Switch44-1 CMDLOGGER[emWeb]: cmd_logger_api.c(83) 29970 %% CLI:50.100.194.10:admin:en

Switch44#debug ?

aaa                      Configure AAA debug flags.

arp                      Configure ARP debug flags.

authentication           Configure debug traces for authentication manager.

auto-voip                Configure Auto VoIP debug flags.

bfd                      Configure BFD debug flags.

clear                    Clear all debug flags.

console                  Enable/disable session display of debug trace output.

crashlog                 Crashlog operation.

dcbx                     Configure DCBX debug flags.

dhcp                     Configure DHCPv4 client debug flags.

dot1ag                   Configure dot1ag debug flags.

dot1x                    Configure dot1x debug flags.

dynamic                  Configure dynamic port flags.

exception                Displays Full Memory Dump supported features.

igmpsnooping             Configure IGMP snooping debug flags.

ip                       Configure IP debug flags.

ipv6                     Configure IPv6 debug flags.

isdp                     Debug ISDP packets.

lacp                     Configure LACP debug flags.

mldsnooping              Configure MLD snooping debug flags.

ospf                     Configure OSPF debug flags.

ospfv3                   Configure OSPFv3 debug flags.

ping                     Configure ping debug flags.

rip                      Configure RIP debug flags.

sflow                    Configure sflow debug flags.

spanning-tree            Configure spanning-tree debug flags.

tacacs                   Configure TACACS+ debug flags.

transfer                 Enable/disable transfer related debug output.

udld                     Debug UDLD packets.

vpc                      Configures VPC debug flags.

vrrp                     Turn on vrrp debug trace.

Switch44#show debugging

logging protocol 1

logging cli-command

logging 208.x.x.x