Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Extract virtuals without a ASM policy

Patrickbbbb
Nimbostratus
Nimbostratus

Hello,

I would like to make an extract of all virtuals with no ASM policy. With the following command I can extract a virtuals with a policy:

list /ltm virtual recursive policies

and policy specific:

list /ltm virtual recursive one-line | grep <policy name>

What could I put after the grep to only show the virtuals without a ASM profile?

Thanks in advance.

Patrick

2 REPLIES 2

cjunior
Nacreous
Nacreous

Hello,

You could do a reverse lookup to check if "websecurity" isn't the profile list.

Because when a ASM policy is attached to a LTM policy and VS, a websecurity profile is attached as well.

list /ltm virtual recursive one-line |grep -v "websecurity"

Regards.

Patrickbbbb
Nimbostratus
Nimbostratus

With this command it still shows virtuals with a ASM policy. In ex. the asm_auto_l7 policy. I try to find only the virtuals with no policy at all on.