Using ONES Telemetry Agent

On the NCP Controller:

  • Navigate the installation directory cd ncp-rx.x.x-en1/ones_t_agent

  • Edit device inventory file vi device_info.csv and add your inventory

The valid region types are predefined keywords: superspine, spine, leaf, and tor, each representing a specific role within the network hierarchy

device_info.csv
ip,user,passwd,layer,region,azid,brickid,rackid
"10.4.2.12","admin","YourPaSsWoRd","leaf","NYK",1,1,1
"10.4.2.13","admin","YourPaSsWoRd","leaf","NYK",1,1,1
  • Run ./ones_agent_parallel_installer.sh to initiate the ONES Agent installation on SONiC switches

aviz@server:~/ncp/ncp-rx.x.x-onprem/ones_t_agent$ ./ones_agent_parallel_installer.sh
Does the ONES-agent is integrated with SONiC NOS? (yes/no): no
Do you want to add only Collector IP for auto-discovery and skip the agent installation ?(yes/no): no
Enter the ip address of collectors to auto-discover. Do not enter more than 2. Eg - 10.1.1.10,10.2.2.5 : 10.4.4.11
Do you want to restrict access only to provided collector ip?
Note: Providing Yes will restrict access to agent only with the provided collector IP Address
Enter Yes/No: No
468025bd9c12: Loading layer [==================================================>]   2.56kB/2.56kB

<...>

Deployment of ones-agent to switch 10.4.4.61 is successful
agent_installer

Docker agent_installer has been stopped
agent_installer

Docker agent_installer has been removed
Untagged: avizdock/agent_installer:latest
Deleted: sha256:6604bbec1feedd9169ea6cca598650bf2f1fe659ae587e9637f80adabe877eeb
Deleted: sha256:4754441bc1128ca32bd0085e2a366e111b4882359cdebc92560d243a671f33e3
Deleted: sha256:c803c23f2ec84e2601fa5e5d954b1cbf406167ae057d7200e9d2f61ba1f402fa
Deleted: sha256:f9279b9fbc87fee822c69ea9cacc2f9d9a10d9c54bbc21732205684ea3bcf0b1
Deleted: sha256:27ea50b3cb2914caa5f99e5268ba0b47e15fb7c490275f560c54e400162e2cc3

Docker  image has been removed

aviz@server:~/ncp/ncp-rx.x.x-onprem/ones_t_agent$

More details about the ONES Telemetry Agent can be found here.

Last updated

Was this helpful?