Get current connection on Ansible module : bigip_node

Hello all.

I’m trying to use bigip_node, bigip_facts module on ANSIBLE 2.2. I succeed to control a node to Forced offline (only active connections allowed).

After that, I want to check number of current connection the node, because of waiting for next work. How can I have the value of it?

I found a answer of Python iControl below. But I fail to find it on any ansible module.

Thanks for reading.

Hi Hidehara,

You can use tmsh show sys connection command using raw module

- name: "Get active connection on specific server"
  raw: "tmsh show sys connection ss-server-addr 192.168.1.12"
  delegate_to: localhost

Thanks

Syed Nazir

Hi Syed Nazir

Thanks for great answer.

I didn’t imagine that accessing tmsh shell with raw module.

I’ll try to do that.

Regards

is there any way to do same thing using chef recipe ?

Hi All,

After an year , reopening thread , from the above query we will be able to find the no of connection when 0 need to disable , how to do that ?

thanks in advance

I have struggled with this for sometime, I have not had success with the tmsh commands giving the proper output that will reflect 0 connections. Are there any modules that do this directly?

ajayrah, did you ever find a working reliable solution?