cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9002
Views
0
Helpful
3
Replies

History of commands / Syslog

Spinu Viorel
Level 1
Level 1

Hello,

I am using router 1812

1) How can I find what commands have been entered on a router?

2) How can I log all these commands to a file / syslog?

3) How can I find, let's say, the last 10 login attempts?

thank u

2 Accepted Solutions

Accepted Solutions

ata
Level 1
Level 1

Hi,

1.)Enter the command show history

2.)configure logging x.x.x.x where x= IP-Addr. of your file / or syslog server

3.)configure logging userinfo, where the user has than to change his Login from disable to enable Modus.

View solution in original post

michael.leblanc
Level 4
Level 4

Consider the following:

To enable logging of user information, and the counting of various types of syslog messages:

logging count

logging userinfo

Note: Use "show logging count" to derive benefit of "logging count".

To regulate and log user logins (failed and successful):

login block-for 120 attempts 4 within 120

login on-failure log

login on-success log

To log configuration changes via syslog:

archive

log config

logging enable

notify syslog

hidekeys

Edit: For some reason the post is displayed differently than I pasted it. The four commands under "archive" are sub commands and should be shown as indented.

logging origin-id hostname

logging source-interface

logging

View solution in original post

3 Replies 3

ata
Level 1
Level 1

Hi,

1.)Enter the command show history

2.)configure logging x.x.x.x where x= IP-Addr. of your file / or syslog server

3.)configure logging userinfo, where the user has than to change his Login from disable to enable Modus.

boath answers helped me a lot...

I have another question...

sh history - shows me the commands entered, but if I logout and then login , history is empty; can I do something about that, like in linux, the history file keeps your commnads there even if u do a relogin. I hope u understand what I want to say.

thanku again

michael.leblanc
Level 4
Level 4

Consider the following:

To enable logging of user information, and the counting of various types of syslog messages:

logging count

logging userinfo

Note: Use "show logging count" to derive benefit of "logging count".

To regulate and log user logins (failed and successful):

login block-for 120 attempts 4 within 120

login on-failure log

login on-success log

To log configuration changes via syslog:

archive

log config

logging enable

notify syslog

hidekeys

Edit: For some reason the post is displayed differently than I pasted it. The four commands under "archive" are sub commands and should be shown as indented.

logging origin-id hostname

logging source-interface

logging

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: