<p>How can I find the version of the 'sriov' cni plugin installed on a Kubernetes cluster?</p>
<p>I've tried the commands below but they fail.</p>
<pre><code>/opt/cni/bin# ./sriov --version
{
    &quot;code&quot;: 4,
    &quot;msg&quot;: &quot;required env variables [CNI_COMMAND] missing&quot;
}
</code></pre>

ss3071
<p>The CNI Protocol parameters are passed to the plugins via OS environment variables.</p>
<p>CNI_COMMAND: indicates the desired operation; ADD, DEL, CHECK, GC, or VERSION.
Refer: <a href="https://github.com/containernetworking/cni/blob/main/SPEC.md#version-probe-plugin-version-support" rel="nofollow noreferrer">https://github.com/containernetworking/cni/blob/main/SPEC.md#version-probe-plugin-version-support</a></p>
<p>So the following command worked.</p>
<pre><code>/opt/cni/bin# export CNI_COMMAND=VERSION; ./sriov --version
{&quot;cniVersion&quot;:&quot;1.0.0&quot;,&quot;supportedVersions&quot;:[&quot;0.1.0&quot;,&quot;0.2.0&quot;,&quot;0.3.0&quot;,&quot;0.3.1&quot;,&quot;0.4.0&quot;,&quot;1.0.0&quot;]}
</code></pre>
