#Is there a way to track CID?

1 messages · Page 1 of 1 (latest)

frank fable
#

I know there is a private API/cli but you cannot use the "statistics" command. Is there an equivalent API command for this command: "set diag; statistics show -object cid -instance cid -raw true" ? Basically I use this from ssh currently to track the connection count per node since we keep hitting the MaxCID limit of 105468

polar apex
#

hi @raymo, Not sure if you use Harvest or not, but it can collect CID metrics via ZapiPerf. RestPerf does not have this object available. We can open an ONTAP RFE to include cid metrics via RestPerf if that's interesting.

curl -s 'http://127.0.0.1:14001/metrics' | rg ^cid
cid_in_use{cluster="umeng-aff300-01-02",datacenter="dc-1",node="umeng-aff300-02"} 192
cid_in_use{cluster="umeng-aff300-01-02",datacenter="dc-1",node="umeng-aff300-03"} 186

FWIW, it's also possible to collect those metrics via REST private CLI like so, replace $ip, $user, $pass with your values.

curl -sk -u $user:$pass 'https://$ip$/api/private/cli' --data '{ "input": "set -showseparator \"!\" -showallfields true -rows 0 diagnostic -confirmations off; statistics show -object cid -raw -counter in_use|node_name|instance_name|instance_uuid" }'

frank fable
#
  "error": {
    "message": "invalid operation",
    "code": "3"
  }

I'll continue to play with it, thanks for the other ideas!

#

And yes I do use Harvest with restperf since zapi is deprecated

polar apex
#

there was an extra $ on the ip, try the following without the extra $
curl -sk -u $user:$pass 'https://$ip/api/private/cli' --data '{ "input": "set -showseparator \"!\" -showallfields true -rows 0 diagnostic -confirmations off; statistics show -object cid -raw -counter in_use|node_name|instance_name|instance_uuid" }'