03-15-2012 01:08 AM
Hi;
Is there a way to find out what commands were issued by an administrator during a log in session on ASR 9000?
How could i get a complete hisory of the login session on ios xr.
regards
03-15-2012 01:32 AM
Hi Jalal,
you can use the command
show cli history det
Example:
RP/0/RP1/CPU0:Router#sh cli history det
No. Username Line Client Time Command
---- --------------- --------------- -------------------- -------------------------------- -------
1 hfr vty1 config Mon Feb 6 10:19:54.567 2012 CET class-map QOS_GROUP_1
2 hfr vty1 config Mon Feb 6 10:20:01.245 2012 CET match qos-group 1
3 hfr vty1 config Mon Feb 6 10:20:06.520 2012 CET exit
4 hfr vty1 config Mon Feb 6 10:20:22.027 2012 CET policy-map DATA_TO_VIPNET
5 hfr vty1 config Mon Feb 6 10:20:29.439 2012 CET class QOS_GROUP_1
6 hfr vty1 config Mon Feb 6 10:20:59.916 2012 CET police rate percent 50
7 hfr vty1 config Mon Feb 6 10:21:09.207 2012 CET conform-action transmit
8 hfr vty1 config Mon Feb 6 10:21:14.651 2012 CET exceed-action drop
9 hfr vty1 config Mon Feb 6 10:21:16.576 2012 CET exit
10 hfr vty1 config Mon Feb 6 10:21:18.382 2012 CET exit
11 hfr vty1 config Mon Feb 6 10:21:42.249 2012 CET policy-map fcavalie
12 hfr vty1 config Mon Feb 6 10:21:47.098 2012 CET class class-default
.....
HTH
/vadim
08-10-2017 09:07 PM
thanks a lot, that was exactly what I was looking for
11-24-2017 01:33 AM
Dear Vadim Zhovtanyuk
Thanks alot For your Guidence. How can I change the size cli History detail and brief size ?Which command change this size?
I know the default size is 500 for the brief option of the command. The default size is 1000 for the detail option of the command but I don't know how can specify size of that.
11-27-2017 09:25 AM
You can increase the size with the command 'service cli history size', note that once the history is over say 1000 you cannot decrease the history size to anything below the current history size without turbobooting the router. So if you have 4000 entires and your current CLI history is set to 5000 then the lowest you could change the history size to is 4000.
Thanks,
Sam
12-01-2017 09:22 AM
Dear smilstea
Thanks a lot for your response that was exactly what I want. And I'm So appreciate for your notation.
I have another question .
Beacuse I want increase cil history counts where is saved "show cli history detail" command and How can find it . I use "describe show cli history detail" command but it shows source file for using this command, saved in disk0.
12-12-2017 08:15 AM
The describe command will tell where the executable is, not where the commands logged are stored. CLI history is stored here: harddisk:/clihistory/commands
Thanks,
Sam
12-12-2017 09:54 AM
Hi Smilstea ,
Thanks a lot . I really appreciated your help.
Thanks,
Pourya
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide