Forum Discussion

Nick_T_68319's avatar
Nick_T_68319
Icon for Nimbostratus rankNimbostratus
Oct 19, 2011

Syntax for disabling a GTM Virtual Server

I am just trying to write a script that will go through and disable a bunch of GTM virtual servers, but I can't quite figure out the syntax. I don't want to disable the GTM server, but the virtual servers under it.

 

 

I tried modify gtm server my_server virtual-servers modify { 192.168.1.10:http } disabled

 

 

 

but this command just disabled the whole GTM. How do i just disable 192.168.1.10:http? I am a bit new to tmsh

 

  • You're disabling my_server, not the whole GTM. A slight change in bracket location will help:

     

     

    modify gtm server my_server virtual-servers modify { 192.168.1.10:http disabled } }

     

     

     

  • When i run that command I get Syntax Error: properties must be enclosed in braces

     

  • sorry, forgot the inside backet there:

     

     

    modify gtm server my_server virtual-servers modify { 192.168.1.10:http { disabled } }