cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10047
Views
1
Helpful
7
Replies

IOS XR command history and session history

jalalyounus
Level 1
Level 1

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

7 Replies 7

Vadim Zhovtanyuk
Cisco Employee
Cisco Employee

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

thanks a lot, that was exactly what I was looking for

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.

 

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

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.

 

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

Hi Smilstea ,

Thanks a lot .  I really appreciated your help.

 

Thanks,

Pourya

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: