VS and pool stats for SCP/SSH VS are not updated.
I've migrated our users to use a SCP (port 22) on a virtual server. After migration I am checking if users are connecting, etc. The stats don't seem to update much so I inserted an iRule and that picks up many CLIENT_ACCEPTED and CLIENT_CLOSED. While the iRule stats are good to have, I would prefer to know existing client connections for current and max but those numbers don't increase. I did a test SCP and SSH to the VIP and even after I connect the stats don't increase.
Here is my statistics output (removed name/IP references for security): VIRTUAL ADDRESS UNIT 1 | ARP enable | (cur, max, limit, tot) = (0, 19, 0, 23076) | (pkts,bits) in = (1.510M, 9.250G), out = (1.274M, 5.888G) +-> VIRTUAL myscp_22 SERVICE 22 | PVA acceleration none | (cur, max, limit, tot) = (0, 17, 0, 3390) | (pkts,bits) in = (1.483M, 9.235G), out = (1.228M, 5.849G) | requests (total) = 0 +-> RULE myscp_log +-> CLIENT_ACCEPTED 3345 total 0 fail 0 abort +-> CLIENT_CLOSED 3351 total 0 fail 0 abort +-> SERVER_CONNECTED 3335 total 0 fail 0 abort +-> POOL myscp_22 LB METHOD round robin MIN/CUR ACTIVE MEMBERS 0/2 | (cur, max, limit, tot) = (0, 18, 0, 3330) | (pkts,bits) in = (1.712M, 9.334G), out = (1.189M, 5.822G) +-> POOL MEMBER myscp_22/xx:22 active,up | | session enabled priority 1 ratio 1 | | (cur, max, limit, tot) = (0, 9, 0, 1673) | | (pkts,bits) in = (418354, 2.003G), out = (299391, 1.357G) | | requests (total) = 0 +-> POOL MEMBER myscp_22/xx:22 active,up | session enabled priority 1 ratio 1 | (cur, max, limit, tot) = (0, 9, 0, 1657) | (pkts,bits) in = (1.294M, 7.331G), out = (889905, 4.465G) | requests (total) = 0
My rule: rule myscp_log { when CLIENT_ACCEPTED { set vip [IP::local_addr]:[TCP::local_port] }
when SERVER_CONNECTED { set client "[IP::client_addr]:[TCP::client_port]" set node "[IP::server_addr]:[TCP::server_port]" log connection info log local0.info "Client $client -> VIP: $vip -> Node: $node" }
when CLIENT_CLOSED { log connection info log local0.info "Client $client -> VIP: $vip -> Node: $node" } }
Any help is appreciated. Thanks.