Quick-Config: Logging

Aus NetWiki
Wechseln zu: Navigation, Suche

Logging

Archive Log

Configure archiving and optionally log commands to syslog:

archive
 log config 
  logging enable
  notify syslog
  exit
alias exec sal show archive log config all provisioning

Archive Config

Configure archiving of configs to TFTP server:

archive
 path tftp://192.168.10.1/archive 

archive config

show archive
show archive config differences



Logging

  • Logging to the console and or buffer might be disabled in the lab. Verify with the show run all | i logging command.
  • Show timestamps (on by default) on debug messages with the service timestamps debug datetime command.
  • Show timestamps (on by default) on log messages with the service timestamps log datetime command.
  • Show sequence numbers (off by default) on log messages with the service sequence-numbers command.


Enable logging:

logging console guaranteed 
logging buffered 8192 debugging 
logging console debugging 
logging monitor debugging 
logging on

History

show run all | i history show history

Reset history:

term history 0
term history 10