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

root@aviz:/home/aviz/ones-1765601873-onprem/ones_t_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 agent installation and other parameters in devices_info.csv ? (Yes/No): Yes
Enter the ip address of all collectors to auto-discover. Do not enter more than 2. Eg - 10.1.1.10,10.2.2.5: 1.1.1.1,1.1.1.2
Collector IPs accepted: 1.1.1.1,1.1.1.2
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

Installing ONES Telemetry Agent
......................................................
Docker image 'avizdock/agent_installer' is loaded.
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': '192.168.1.12', 'user': 'admin', 'passwd': 'Cisco123', 'layer': 'Leaf', 'region': 'Nyk', 'type': 'Sonic', 'fabricid': 'Dc', 'groupid': '1', 'azid': '1', 'brickid': '1', 'rackid': '1', 'installation_instance': 1, 'agentip': '192.168.1.12', 'collectorip': '1.1.1.1,1.1.1.2', 'restrict_collector_ip': 'no', 'password_authentication': 'no'}]

Skipping agent installation........
Adding Collector IP for auto-discovery...........
############### Connecting to switch with IP 192.168.1.12 ###############

Docker agent_installer has been stopped

Docker agent_installer has been removed

Docker avizdock/agent_installer image has been removed

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

Last updated