Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

CLI search for which ports are open

I have a question in reguards to CLI.  Is there a way to do a search on a service much like in ASDM for what access rules would include a particular port OR IP including "any" rules?  ASDM is able to do this search and I find it saves a lot of time when I get the question "What ports are open for 192.168.1.1?"  It normally even includes the "any" rules.

  • Firewalling
1 REPLY
VIP Green

CLI search for which ports are open

You could use the following command:

show run access-list | in any

just switch out any for a value you would like to search for in the access list

--
Please remember to rate and select a correct answer

-- Please remember to rate and select a correct answer
141
Views
0
Helpful
1
Replies