06-26-2012 11:33 PM
i search a CLI Command for EX-Switche, with that i can search for one a description und get the hole config auf the interface.
When i use " | grep " and so on i get only the single line where the search word will be find.
Thanks for help
Solved! Go to Solution.
06-27-2012 03:56 AM - edited 06-27-2012 02:41 PM
For finding lines in the configuration you can use the match keyword from the operations mode.
ex>show configuration | match string
This will return all lines with the "string" on them.
06-27-2012 04:32 AM
thanks for your answer, but i search a command where i can see the complete configuration from the interface, where the word/text will be find that i search for.
06-27-2012 02:48 PM
Sorry, I didn't get what you were after. I don't think you can see this with just a match on the description.
I'm thinking your best bet would be a two step process. Use this first match to get the interface number.
ex> show configuration | display set | match description
Then use this second match to see all the confirguration associated with the interface number
ex>show configuration | display set | match 0/0/2
The display set function pulls the configuration as single lines with the set commands rather than in the spread out hierarchical display. This will put hte interface number on all the paramter lines so you can see all the interface settings.
07-16-2012 06:17 AM