I followed the instruction on install ops agent
but I cannot find how to correctly run the following cmd
sudo bash add-google-cloud-ops-agent-repo.sh --also-install \
--version=MAJOR_VERSION.*.*
You would need to replace the MAJOR_VERSION.*.*
with the specific version that you would like to install
However, for GPU enabled Instances, there is a specific respository and installation of the GPU-enabled version of the Ops Agent. Do note that this feature is still in preview.
You can install the GPU-enabled version of the Ops Agent by running the following command:
curl -sSO https://dl.google.com/cloudagents/add-google-cloud-ops-agent-repo.sh
sudo REPO_SUFFIX=20230214-1.1.1 bash add-google-cloud-ops-agent-repo.sh --also-install