Scanning proxies for KVM Access

prashusoa
Participant I

I have created one KVM under Environment level. Suppose i want to find out that, in how many proxies this KVM has been implemented. Is there any way to find out globally?? Note: I didn't want to check in each and every proxy.

1 3 219
3 REPLIES 3

Not applicable

As per I know, there is no such option to get how many proxies using the KVM.

You can download all proxies in an Unix system. and then can do grep to find the count.

Thanks for the response Priyadarshi

I didn't want to check in each and every proxy.

I don't know a way to do what you want, without checking every proxy.

The good news is, there are existing tools that can help you. For example, here is a nodejs script that can scan proxies for KVM access. It does not recurse into shared flows. But it wouldn't be difficult to extend in that direction, if you want that.

If you don't want to use that script you can write your own. The logic you need to implement is:

for each proxy

for each revision of that proxy

for each policy in that revision

is it a KVM policy, and does it access the specific KVM you are looking for?

if so, remember this policy/proxy/revision


The script I cited above follows that logic. It includes a couple of enhancements to that logic. It can optionally:

  • filter the list of proxies to check, looking only at those proxies that match a particular regex
  • limit the search only to the latest revision of the filtered proxies
  • check for a particular KVM scope