Forum Discussion

Patrickbbbb's avatar
Patrickbbbb
Icon for Nimbostratus rankNimbostratus
Nov 17, 2020

Extract virtuals without a ASM policy

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

  • 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.

  • 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.