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

ASA with configuration containing "_" or "-" characters

Hi Everyone

Does anyone know if there is a known bug in ASA related to Object-Groups/Names/Access-Lists with a "Dash" _ or "minus" - inside it?

Ex: WINDOWS_SERVERS, FROM-OUTSIDE

I have noticed that no configuration is displayed with the command:

show run | include ......

if the include-statement contains a "_" nothing is displayed.

if the include-statement contains a "-" the whole config is displayed.

Are the "_" or "-" special characters with special meanings? or is this just a bug?

Best Regards

Jarle Steffensen

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: ASA with configuration containing "_" or "-" characters

"_" is indeed a special character, to match only on _ you can escape it with "\" :

asa# sh run | i test\_

object-group network test_3

access-list test_4 extended permit ip any any

For "-" I don't see a problem in 8.0.4.8:

asa# sh run | i test-

object-group network test-2

access-list test-1 extended permit ip any any

What ASA version do you use, and what is the exact include command?

1 REPLY
Cisco Employee

Re: ASA with configuration containing "_" or "-" characters

"_" is indeed a special character, to match only on _ you can escape it with "\" :

asa# sh run | i test\_

object-group network test_3

access-list test_4 extended permit ip any any

For "-" I don't see a problem in 8.0.4.8:

asa# sh run | i test-

object-group network test-2

access-list test-1 extended permit ip any any

What ASA version do you use, and what is the exact include command?

116
Views
0
Helpful
1
Replies