knwminus wrote: » 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,
miller811 wrote: » 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--
Trinity(config)#do sh run Building configuration... Current configuration : 982 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname Trinity ! boot-start-marker boot-end-marker ! enable secret 5 $1$lzxt$oBc51zTPq1wwCiljbr3y4. ! no aaa new-model ip cef ! ! ! ! ip domain name Nospoon.com login on-success log ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ip ssh time-out 74 ip ssh authentication-retries 2 ! ! ! ! ! interface Loopback1 ip address 5.5.5.5 255.255.255.255 ! interface FastEthernet0 no ip address shutdown speed auto ! interface Serial0 description connection to the Matrix ip address 192.168.1.2 255.255.255.252 shutdown no fair-queue ! ! ! no ip http server no ip http secure-server ! ! ! ! control-plane ! ! ! ! ! ! ! ! banner motd ^C This is a white rabbit. Second only to him. Strong. fierce. Love. ^C ! line con 0 logging synchronous terminal-type monitor line aux 0 line vty 0 4 logging synchronous login terminal-type monitor transport input telnet ssh ! end Trinity(config)#do sh run linenum Building configuration... Current configuration : 982 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 Trinity 8 : ! 9 : boot-start-marker 10 : boot-end-marker 11 : ! 12 : enable secret 5 $1$lzxt$oBc51zTPq1wwCiljbr3y4. 13 : ! 14 : no aaa new-model 15 : ip cef 16 : ! 17 : ! 18 : ! 19 : ! 20 : ip domain name Nospoon.com 21 : login on-success log 22 : ! 23 : ! 24 : ! 25 : ! 26 : ! 27 : ! 28 : ! 29 : ! 30 : ! 31 : ! 32 : ! 33 : ! 34 : ! 35 : ! 36 : ! 37 : ! 38 : ! 39 : ip ssh time-out 74 40 : ip ssh authentication-retries 2 41 : ! 42 : ! 43 : ! 44 : ! 45 : ! 46 : interface Loopback1 47 : ip address 5.5.5.5 255.255.255.255 48 : ! 49 : interface FastEthernet0 50 : no ip address 51 : shutdown 52 : speed auto 53 : ! 54 : interface Serial0 55 : description connection to the Matrix 56 : ip address 192.168.1.2 255.255.255.252 57 : shutdown 58 : no fair-queue 59 : ! 60 : ! 61 : ! 62 : no ip http server 63 : no ip http secure-server 64 : ! 65 : ! 66 : ! 67 : ! 68 : control-plane 69 : ! 70 : ! 71 : ! 72 : ! 73 : ! 74 : ! 75 : ! 76 : ! 77 : banner motd ^C This is a white rabbit. Second only to him. Strong. fierce. Love. ^C 78 : ! 79 : line con 0 80 : logging synchronous 81 : terminal-type monitor 82 : line aux 0 83 : line vty 0 4 84 : logging synchronous 85 : login 86 : terminal-type monitor 87 : transport input telnet ssh 88 : ! 89 : end
kryolla wrote: » you can also look at the default values when doing a sh run but I forgot the exact command
kryolla wrote: » why do you want to get rid of exclamation point and no it doesn't map to another location.
knwminus wrote: » Cuz I have a tiny screen Im working on. And what do you mean they don't map to another location?
ColbyNA wrote: » If you don't want to see the lines with !, just do "sh run | exc !". Am I understanding you right?
kryolla wrote: » 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
Forsaken_GA wrote: » 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