Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sh Log Problems 2

Status
Not open for further replies.

Almin

Technical User
Mar 1, 2010
137
US
Hi

At work I am not able to view logs on some of the routers

This is the message I get

salR1-351#sh log
% Incomplete command.

salR1-351#

I do

salR1-351#sh log ?
% Unrecognized command
salR1-351#sh log


I am restricted to view the running configuration on this router but no one here knows what the issue is. Does anyone here maybe have an idea?

Thanks


 
I also did


salR1-351#sh lo?
location login

salR1-351#sh lo
 
I think I found the answer

This IOS version will not allow sh log in user mode only in privlage mode

 
It may also be a custom privilege level. He said earlier that he's restricted from viewing the config file, so they might have put in a privilege level 2-14 with rights just above user-exec. Anything even a bit above user-exec will get the #.

CCNP, CCDP
 
You need "sh logg", as in "show logging"

/

Cisco IOS Software, C2600 Software (C2600-ADVENTERPRISEK9-M), Version 12.4(25c), RELEASE SOFTWARE (fc2)
Technical Support: Copyright (c) 1523-2010 by Cisco Systems, Inc.
Compiled Thu 11-Feb-1539 23:02 by ßµ®†Šß€€Š

ROM: System Bootstrap, Version 12.2(7r) [ÝØÝØMØÑ], RELEASE SOFTWARE (fc1)

Edge uptime is 469¼
 
Im not quite sure if this is a bug in the IOS version...
 
Almin, do a "show privilege" from that same prompt. What level of access do your login credentials usually give you? Every time I've ever seen this problem, where you get the # but can't do a common privileged command, it's because of permissions. IOS Help will not show you commands that you don't have permission to execute. I can almost guarantee this isn't a bug.

CCNP, CCDP
 
Here is an example of how to recreate the same problem on a clean config file. Note how IOS Help doesn't recognize commands when I put myself into privilege levels that don't have permissions to execute them:

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no logging console
Router(config)#privilege exec level 4 show logging
Router(config)#privilege exec level 3 show interface
Router(config)#^Z
Router#enable 4
Router#show logg?
logging
Router#enable 3
Router#show logg?
% Unrecognized command
Router#show inter?
interfaces
Router#enable 2
Router#show int?
% Unrecognized command
Router#

CCNP, CCDP
 
My priv level is 2. So what you are saying is that its in the configuration that is not allowing me to. Iew the logs, so i have to ask my network admin to allow sh log on privlage level 2, because there are some 600 routers that i can view logs and about 30 that i cant and what I've noticed is that on those 30 the IOS is newer.
 
Since you've confirmed you're in a custom privilege level, I'm 99.9% sure this is a permissions issue. Someone with admin rights would need to add "privilege exec level 2 show logging", for example, to give you that ability.

CCNP, CCDP
 
Great, Thank you... It's preaty sad that I who is a no one in my comany can ask around and find a clue in where the problem is, but people who have worked with that equipment for over 20 years are puzzled by this problem.

Thank you again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top