cancel
Showing results for 
Search instead for 
Did you mean: 

TrafficScript + VirtualServer Listing

SOLVED
Highlighted
New Contributor

TrafficScript + VirtualServer Listing

Hi

Is there a way I can easily see the TrafficScript name plus the VirtualServers that are using it?

Thanks

Kerry

2 REPLIES
Contributor

Re: TrafficScript + VirtualServer Listing

Do you need to script it?

If you don't, the Config Summary page might do the trick: /apps/zxtm/index.fcgi?section=Config%20Summary

If you do, I would use zcli and those commands:


admin@127.0.0.1 > VirtualServer.getVirtualServerNames


[ VS1, VS2 ]




admin@127.0.0.1 > VirtualServer.getRules "VS1"


[ { enabled:      1,


    name:          "SECURITY - Block TRACE+TRACK requests",


    run_frequency: only_first },


  { enabled:      1,


    name:          "VS1 Rule",


    run_frequency: only_first } ]




admin@127.0.0.1 > VirtualServer.getRules "VS2"


[ { enabled:      1,


    name:          "SECURITY - Block TRACE+TRACK requests",


    run_frequency: only_first },


  { enabled:      1,


    name:          "VS2 Rule",


    run_frequency: only_first } ]



New Contributor

Re: TrafficScript + VirtualServer Listing

Zcli option was exactly what I required, thank you

Kerry