cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
281
Views
0
Helpful
2
Replies

Cannot grep Hostnames

normanzhang
Level 1
Level 1

I'm running Firewall Version 6.3(4) on PIX-515. For some reason I cannot grep hostnames starting with "H_". Is there something that I'm missing?

# sh run | grep 10.0.0.1

name 10.0.0.1 H_MYBOX

# sh run | grep H_MYBOX

# sh run | grep MYBOX

name 10.0.0.1 H_MYBOX

2 Replies 2

bbaley
Level 3
Level 3

i think it may be have a problem with the host name having the sign "_", so you can check by changing name with out the symbol and try to test it.

You are absolutely right. I got around this by adding "\" before "_".