Adding New Controller

ONES Agent configuration file allows user to add new collector(controller) after the agent installation if required

Overview

To redirect agent telemetry data to a different ONES collector without reinstalling the agent, simply re-run the script with the "Only controller IP addition" option enabled. This process automatically registers the device with the new ONES application and starts the telemetry data stream.

Note: The terms "collector" and "controller" are synonymous in this context. It is essential to note that the auto-discovery feature is limited to supporting just two controllers.

Update controller IP without installing agent

./ones_agent_parallel_installer.sh
Do you want to update the username/password for password authentication? (yes/no): no
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): yes
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.20.0.80
Do you want to restrict access only to the provided collector IP?
Note: Providing Yes will restrict access to agent only with the provided collector IP Address
Enter yes/no: No
Do you want to enable password authentication? (yes/no): no
e2ef8a51359d: Loading layer [==================================================>]  72.54MB/72.54MB
ae2d55769c5e: Loading layer [==================================================>]  7.401MB/7.401MB
3054512b6f71: Loading layer [==================================================>]  31.35MB/31.35MB
997b8e79e84f: Loading layer [==================================================>]   5.12kB/5.12kB
e6c5004ee77f: Loading layer [==================================================>]   11.7MB/11.7MB
867f2af1b281: Loading layer [==================================================>]   2.56kB/2.56kB
86fee8a2d43f: Loading layer [==================================================>]  31.45MB/31.45MB
4a2339f45f2a: Loading layer [==================================================>]   42.7MB/42.7MB
274d02d0f011: Loading layer [==================================================>]  1.421MB/1.421MB
Loaded image: avizdock/agent_installer:latest
Docker image 'avizdock/agent_installer' is loaded.
fc82d440ded45cb5002c6539c62daaeac6435c82a41078a356e943dad1ca6fc4
Docker container 'agent_installer' is running.
Selecting ‘Yes’ will exclusively initiate the day-2 deployment of the Ones-Agent,
involving a reconfiguration of the existing agent to establish communication with the specified collector(s).
Choosing ‘No’ will initiate the deployment of the Ones-Agent as an independent third-party container.
The default values for rackid, brickid, and azid are all set to 0.
[{'ip': '10.20.2.12', 'user': 'admin', 'passwd': 'YourPaSsWoRd', 'layer': 'Leaf', 'region': 'San_Jose_Lab', 'type': ackid': '1', 'installation_instance': 1, 'agentip': '10.20.2.12', 'collectorip': '10.20.0.80', 'restrict_collector_i

Agent installation skipped successfully........
Adding Collector IP for auto-discovery...........
###############Connecting to switch###############
Connection to switch 10.20.2.12 successful.....................
Copying conf file to tmp directory on the device 10.20.2.12 .............
Copying conf file to tmp directory successful on the device 10.20.2.12 .............
Collector ip successfully added to agent.conf on the device 10.20.2.12........
Docker container is up. Proceeding with collector registration.......
╒══════════════╤══════════╕
│ IP Address   │ Result   │
╞══════════════╪══════════╡
╘══════════════╧══════════╛
agent_installer

Docker agent_installer has been stopped
agent_installer

Docker agent_installer has been removed
Untagged: avizdock/agent_installer:latest
Deleted: sha256:180765aed1eba26b8d30d3bef983682a2b36a3507b7655c6e614f22dbbf80007
Deleted: sha256:7912382f54799a2f35358528c441af6bb745ba6fe6cb040a7be48347ff7e80a3
Deleted: sha256:fe33139b53a0b2b401d44f57a74ff789beb4a3a38792f80a793cc01611bab9e7
Deleted: sha256:38e2eba240dfe04c6d027aafc1954c84fc1eadeb3e4fd9d1e9a8ad7100686d7f
Deleted: sha256:53fdc4ec83b42d7060b4143da9ffbf9dd55e3bfa6fb4843bfacec19dcbd80e4b
Deleted: sha256:11b1633cb703032b065434387b48194f3e97a57aaddc61a31aa2918a1fd32780
Deleted: sha256:aa353210edce17d0370066fc6184cff9e2a9197884e6f43a0ad1fd32b630f8de
Deleted: sha256:b23b2f4af61d8cc745c6bea66be93bd59b97c3971c36466ae4ea345f52fdfc67
Deleted: sha256:b55ff4d1eb4dd15edbc9ffc15b1bd5771cd09c371b0e7c44cbcbd5c5f62ec76a
Deleted: sha256:e2ef8a51359d088511d34c725305c220294a1fcd5fe5e5dbe4d698c7239ce2c9

Docker avizdock/agent_installer image has been removed

Upon upgrading the Controller IP, it will automatically register with the new ONES

Last updated

Copyright © Aviz Networks, Inc.