Saturday, September 18, 2010

Search a string in Cisco IOS

Suppose you have enabled static routing in your router.Now you have to disable it.So you have to find basically every ip route statement and manually put a no before it.That can be a long task.

Cisco Trainer Jeremy Cioara showed a fantastic technique to find every line in sh run output where ip route is present.

sh run | include ip route(that’s the string)

so now you get all the ip route statement and in teraterm you just select the text and right click the text will be pasted.

So conclusion

Long live Cisco guru Jeremy Cioara.

No comments:

Post a Comment