mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-07 00:48:01 +01:00
54 lines
1.5 KiB
Plaintext
54 lines
1.5 KiB
Plaintext
// Module included in the following assemblies:
|
|
|
|
// * observability/network_observability/netobserv_cli/netobserv-cli-install.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="network-observability-cli-install_{context}"]
|
|
= Installing the Network Observability CLI
|
|
Installing the Network Observability CLI (`oc netobserv`) is a separate procedure from the Network Observability Operator installation. This means that, even if you have the Operator installed from OperatorHub, you need to install the CLI separately.
|
|
|
|
[NOTE]
|
|
====
|
|
You can optionally use Krew to install the `netobserv` CLI plugin. For more information, see "Installing a CLI plugin with Krew".
|
|
====
|
|
|
|
.Prerequisites
|
|
* You must install the {oc-first}.
|
|
* You must have a macOS or Linux operating system.
|
|
|
|
.Procedure
|
|
|
|
. Download the link:https://mirror.openshift.com/pub/cgw/netobserv/latest/[`oc netobserv` file] that corresponds with your architecture. For example, for the `amd64` archive:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ curl -LO https://mirror.openshift.com/pub/cgw/netobserv/latest/oc-netobserv-amd64
|
|
----
|
|
. Make the file executable:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ chmod +x ./oc-netobserv-amd64
|
|
----
|
|
. Move the extracted `netobserv-cli` binary to a directory that is on your `PATH`, such as `/usr/local/bin/`:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ sudo mv ./oc-netobserv-amd64 /usr/local/bin/oc-netobserv
|
|
----
|
|
|
|
.Verification
|
|
|
|
* Verify that `oc netobserv` is available:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc netobserv version
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
Netobserv CLI version <version>
|
|
----
|