Forum Discussion

Alexander_Slink's avatar
Alexander_Slink
Icon for Altostratus rankAltostratus
Jun 15, 2017

Icall, get availability status of gtm virtual server.

Hello everyone,

I have an iCall script which checks the status of DNS VS and if the VS is offline the script will do something. Now I trying to check the status via next command:

[tmsh::get_field_value [lindex [tmsh::get_status "/gtm server /Common/server virtual-servers { /Common/some_vs }"] 0]  "status.availability-state"]
But this command return the status of DNS server, not DNS VS. How I can take the status only DNS VS? Help needed!

Thanks.