Running config question

in CCNA & CCENT
Happy Black Friday:
So I was looking in my running config for something (can't remember) and a question popped into my head: For each one of the exclamation points, is there a specific line of output that maps to the location, and if so, can you remove those exclamation points if you do not have the configuration enable/set up that maps to that location? I google this but I guess It either doesn't exist or I am not wording my question correctly.
Thanks,
So I was looking in my running config for something (can't remember) and a question popped into my head: For each one of the exclamation points, is there a specific line of output that maps to the location, and if so, can you remove those exclamation points if you do not have the configuration enable/set up that maps to that location? I google this but I guess It either doesn't exist or I am not wording my question correctly.
Thanks,
0
Comments
Not sure about that but on a different note, learned this yesterday
Router#show run linenum
Building configuration...
Current configuration : 689 bytes
1 : !
2 : version 12.4
3 : service timestamps debug datetime msec
4 : service timestamps log datetime msec
5 : no service password-encryption
6 : !
7 : hostname Router
8 : !
9 : boot-start-marker
10 : boot-end-marker
11 : !
12 : !
13 : no aaa new-model
14 : memory-size iomem 5
15 : !
16 : !
17 : ip cef
18 : !
19 : !
20 : !
21 : !
--More--
Allows you to work with a remote user to find exact portion of the config, or allows you to look at a changed config easier.
and also this one, so it scrolls off the screen for easy copy, instead of page breaks....
Router#terminal length 0
Router#show run
Building configuration...
Current configuration : 713 bytes
!
version 12.4
service timestamps debug datetime ms
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Serial0/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end
Router#
Quest for 11K pages read in 2011
Page Count total to date - 1283
This is good. Look at lines 1,6,8,11-12,15-16, and 18-21. Is there a way to know what exactly matches up to the position? Like you see how line 2 says version 12.4, I assuming in most ios' there is a line of code that says Display version number at position (or line ) 2. I want to know like if there is away to limit what you see to only the lines with information on them. Like if I have nothing on positions (or lines) 18-21 why should I have to see them? Can't I just cut them out of view?
I also want to know what positions (or lines) line up with what displayed stat or configuration item.
Take a look at my running config
There are a large amount of lines that are just blank I would like to know what fills them.
Also something interesting to note about that command is that it only numbers the stuff after "current configuration". Interesting.
IDK maybe I am not making sense, I have been listening to dethklok all morning lol.
sh run all
Cuz I have a tiny screen Im working on. And what do you mean they don't map to another location?
all the config file is a text file that gets submitted to the parser so the parser can input it all during boot up and when you enter config mode. If you have a tiny screen why are you looking at the whole config why not just grep only the stuff you need
you da man.....
Quest for 11K pages read in 2011
Page Count total to date - 1283
If I could give you rep, I would. That is EXACTLY what I meant.
Dead on. I knew it had to be some kind of pipe modifier but I don't think I would have found it anytime soon.
When I log in to my router, I am going to set that command to run using the autocommand command. Awesome. Awesome. Awesome.
At the time I was looking at several things and rather than just run several commands, I needed to see the whole running config.
you learn something new everyday
Courses: Real World Red Team Attacks- AppSec Cali 2019 (complete), Active Directory Attacks for Red and Blue Teams Advanced Edition - BlackHat,
Certs: SLAE, Certified Red Team Professional - Pentester Academy (in progress), Certified Red Team Expert - Pentester Academy
show run int <interface number>
ex, sh run int fa0/1
interface FastEthernet0/1
ip address 192.168.1.1 255.255.255.0
ip virtual-reassembly
ip route-cache flow
duplex auto
speed auto
end
Allows you to see just the configuration for a relevant interface
show interface description
Shows the configured descriptions of all interfaces
dorne#sh int description
Interface Status Protocol Description
Fa0/0 up up Vlan2 Gateway
Se0/0 down down LabUplink
Fa0/1 up up Vlan3 Gateway
Fa1/0 up up ComcastUplink
And of course, these can be combined with the include and exclude pipes. For example, on our aggregate switches.. they take 45 switches each, and ofttimes the only thing I know is the name of the access layer switch. So if I need to add a vlan to a trunk for an access switch, and I know the name of the access switch, I could do the following -
sh int description | include access01 (where access01 would be the name of the switch in the description)
agg2.atl#sh int description | include access023
GigabitEthernet 0/23 YES up up access023.atl:6.3.9
That would tell me which port I need to edit to add the vlan to the trunk
sh run | sec is awesome
I use this command everyday to find the names of ints that relate to various tunnels. I do that so I can find the physical port that the tunnel rides on, if the log file is to big of a pain to parse through. I also use it to find cids so I can call provides and let em know whats up.