ONES Orchestration Agent Installation

On the ONES Application server, go to ONES-3.0/ones_fm_agent

root@ones-application:~$ cd /ONES-3.0/ones_fm_agent

Installation (Agent Install on multiple switches at the same time)

  • Enter device details (Management IP, Username, Password ) in device_info.csv

root@ones-application:/ONES-3.0/ones_fm_agent:~$ vi device_info.csv

ip,user,passwd
10.4.4.61,admin,YourPaSsWoRd
10.4.4.62,admin,YourPaSsWoRd
...
...
...
  • Save the file

  • Execute the installation script

Supported Deployment Methods

All these supported methods can be implemented by a single script

  1. Installation: install FMCLI

  2. uninstallation: Uninstall FMCLI

  3. installresetconfig: Install FMCLI and reset the configuration

  4. upgrade: Upgrade FMCLI to the latest version

  5. install_withQOS: Install FMCLI and enable QoS feature

  6. installresetconfig_withQOS: Install FMCLI, reset the configuration, and enable QoS feature

Installation

root@ones-application:/ONES-3.1/ones_fm_agent:~$ ./deploy_fmcli.sh

root@ones-application:/ONES-3.1/ones_fm_agent# ./deploy_fmcli.sh

Available options for FMCLI installation:
1) install
   - Install FMCLI
2) uninstall
   - Uninstall FMCLI
3) installresetconfig
   - Install FMCLI and reset the configuration
4) upgrade
   - Upgrade FMCLI to the latest version
5) install_withQOS
   - Install FMCLI and enable QoS feature
6) installresetconfig_withQOS
   - Install FMCLI, reset the configuration, and enable QoS feature

Please enter your choice (1-6) to proceed with the FMCLI installation: 1

Installer will proceed with FMCLI-install ...

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:latest' is loaded.
469077cbff8b9f424c6ec6e46272788451c4714cf742eb42ee94771b0f8bd944

Docker container 'agent_installer' is running.
CONTAINER ID   IMAGE                             COMMAND     CREATED         STATUS                  PORTS     NAMES
469077cbff8b   avizdock/agent_installer:latest   "python3"   2 seconds ago   Up Less than a second             agent_installer

Docker container 'ones-fm' is running.
Update success for 10.20.3.14
Update success for 10.20.3.16
Ignore below Error if Installing Agent via docker installer

ones-fm container is not running

Operation = install
##### params = {'ip': '10.20.3.14', 'passwd': 'YourPaSsWoRd', 'user': 'admin', 'server_ip': '172.17.0.2', 'fm_port': None} #####
##### params = {'ip': '10.20.3.16', 'passwd': 'YourPaSsWoRd', 'user': 'admin', 'server_ip': '172.17.0.2', 'fm_port': None} #####
###############Connecting to switch###############
###############Connecting to switch###############
<paramiko.client.SSHClient object at 0x7e52a08862b0>
Connection to switch 10.20.3.14 successfull.....................
/home/ones_fm_agent
<paramiko.client.SSHClient object at 0x7e52a0886670>
Connection to switch 10.20.3.16 successfull.....................
/home/ones_fm_agent
Creating work directory  on the device 10.20.3.14........
Work Directory ones-fm_1726039311_4128287 created successfully on the device 10.20.3.14 .............
Copying FMCLI_Installer.py to directory ones-fm_1726039311_4128287 on the device 10.20.3.14 .............
Creating work directory  on the device 10.20.3.16........
Work Directory ones-fm_1726039311_510445 created successfully on the device 10.20.3.16 .............
Copying FMCLI_Installer.py to directory ones-fm_1726039311_510445 on the device 10.20.3.16 .............
Debug command used:: sudo ls ones-fm_1726039311_4128287/FMCLI_Installer.py
The file 'ones-fm_1726039311_4128287/FMCLI_Installer.py' copy success on the device.
Copying FMCLI_Installer.py to directory ones-fm_1726039311_4128287 successful on the device 10.20.3.14 .............
Copying fmcli-app.tgz to directory ones-fm_1726039311_4128287 on the device 10.20.3.14 .............
Debug command used:: sudo ls ones-fm_1726039311_510445/FMCLI_Installer.py
The file 'ones-fm_1726039311_510445/FMCLI_Installer.py' copy success on the device.
Copying FMCLI_Installer.py to directory ones-fm_1726039311_510445 successful on the device 10.20.3.16 .............
Copying fmcli-app.tgz to directory ones-fm_1726039311_510445 on the device 10.20.3.16 .............
Debug command used:: sudo ls ones-fm_1726039311_4128287/fmcli-app.tgz
The file 'ones-fm_1726039311_4128287/fmcli-app.tgz' copy success on the device.
Copying fmcli-app.tgz to directory ones-fm_1726039311_4128287 successful on the device 10.20.3.14 .............
Debug command used:: sudo ls ones-fm_1726039311_510445/fmcli-app.tgz
The file 'ones-fm_1726039311_510445/fmcli-app.tgz' copy success on the device.
Copying fmcli-app.tgz to directory ones-fm_1726039311_510445 successful on the device 10.20.3.16 .............
File '/usr/lib/frr/frr-reload.py' exists in container 'bgp'
Skip scp as File: /usr/lib/frr/frr-reload.py exits inside bgp container
File '/usr/lib/frr/frr-reload.py' exists in container 'bgp'
Skip scp as File: /usr/lib/frr/frr-reload.py exits inside bgp container

#################### Installing FMCLI on the device 10.20.3.14 ######################

#################### Installing FMCLI on the device 10.20.3.16 ######################
####### Debug LOGS on the device 10.20.3.14 #######
fmcli-app/
fmcli-app/libhiredis.so.1.1.0
fmcli-app/fmcli.sh
fmcli-app/fmcli
fmcli-app/ip_validate
fmcli-app/fmcli.cli
fmcli-app/fmcli.version
fmcli-app/fmcli_read_db_schema
fmcli-app/fmclimain.service
fmcli-app/fmcli_composer_mapping.cfg
fmcli-app/fmcli_composer.py
fmcli-app/libcligen.so.6.2
cli
cli/fmcli-app-arm.tgz
cli/fmcli-app-amd.tgz
Extracting cli/fmcli-app-amd.tgz...
Installing Aviz-FMCLI ..........
Aviz-FMCLI installation successful........

Created symlink /etc/systemd/system/multi-user.target.wants/fmclimain.service → /etc/systemd/system/fmclimain.service.
/tmp/fmcliStartup.init

FM-Agent installed successfully on the device 10.20.3.14........
####### Deleting ones-fm_1726039311_4128287 dir on the device 10.20.3.14 #######
Deployment of FM-Agent to switch 10.20.3.14 is Completed
####### Debug LOGS on the device 10.20.3.16 #######
fmcli-app/
fmcli-app/libhiredis.so.1.1.0
fmcli-app/fmcli.sh
fmcli-app/fmcli
fmcli-app/ip_validate
fmcli-app/fmcli.cli
fmcli-app/fmcli.version
fmcli-app/fmcli_read_db_schema
fmcli-app/fmclimain.service
fmcli-app/fmcli_composer_mapping.cfg
fmcli-app/fmcli_composer.py
fmcli-app/libcligen.so.6.2
cli
cli/fmcli-app-arm.tgz
cli/fmcli-app-amd.tgz
Extracting cli/fmcli-app-amd.tgz...
Installing Aviz-FMCLI ..........
Aviz-FMCLI installation successful........

Created symlink /etc/systemd/system/multi-user.target.wants/fmclimain.service → /etc/systemd/system/fmclimain.service.
/tmp/fmcliStartup.init

FM-Agent installed successfully on the device 10.20.3.16........
####### Deleting ones-fm_1726039311_510445 dir on the device 10.20.3.16 #######
Deployment of FM-Agent to switch 10.20.3.16 is Completed
FMCLI install Result
{'10.20.3.14': 'PASS', '10.20.3.16': 'PASS'}
╒═════════╤════════════╤══════════════════╕
SL.No │ Device     │ install Result   │
╞═════════╪════════════╪══════════════════╡
110.20.3.14 │ PASS             │
├─────────┼────────────┼──────────────────┤
210.20.3.16 │ PASS             │
╘═════════╧════════════╧══════════════════╛
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:latest image has been removed

root@Switch:~$ sudo fmcli

root@Switch:~$ sudo fmcli 
fmcli# 

Uninstallation

root@ones-application:/ONES-3.0/ones_fm_agent:~$ ./deploy_fmcli.sh

Available options for FMCLI installation:
1) install
   - Install FMCLI
2) uninstall
   - Uninstall FMCLI
3) installresetconfig
   - Install FMCLI and reset the configuration
4) upgrade
   - Upgrade FMCLI to the latest version
5) install_withQOS
   - Install FMCLI and enable QoS feature
6) installresetconfig_withQOS
   - Install FMCLI, reset the configuration, and enable QoS feature

Please enter your choice (1-6) to proceed with the FMCLI installation: 2

Installer will proceed with FMCLI-uninstall ...

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:latest' is loaded.
f5922322cecfe27405c0dc2d62201b2145695eac1eeedd8e6d9acf20e6e55541

Docker container 'agent_installer' is running.
CONTAINER ID   IMAGE                             COMMAND     CREATED         STATUS                  PORTS     NAMES
f5922322cecf   avizdock/agent_installer:latest   "python3"   2 seconds ago   Up Less than a second             agent_installer

Docker container 'ones-fm' is running.
Update success for 10.20.3.14
Update success for 10.20.3.16
Ignore below Error if Installing Agent via docker installer

ones-fm container is not running

Operation = uninstall
##### params = {'ip': '10.20.3.14', 'passwd': 'YourPaSsWoRd', 'user': 'admin', 'server_ip': '172.17.0.2', 'fm_port': None} #####
###############Connecting to switch###############
##### params = {'ip': '10.20.3.16', 'passwd': 'YourPaSsWoRd', 'user': 'admin', 'server_ip': '172.17.0.2', 'fm_port': None} #####
###############Connecting to switch###############
<paramiko.client.SSHClient object at 0x73c327c662b0>
Connection to switch 10.20.3.14 successfull.....................
/home/ones_fm_agent
############### Uninstalling FM Agent ###############
<paramiko.client.SSHClient object at 0x73c327c66670>
Connection to switch 10.20.3.16 successfull.....................
/home/ones_fm_agent
############### Uninstalling FM Agent ###############
FMCLI uninstall Result
{'10.20.3.14': 'PASS', '10.20.3.16': 'PASS'}
╒═════════╤════════════╤════════════════════╕
SL.No │ Device     │ uninstall Result   │
╞═════════╪════════════╪════════════════════╡
110.20.3.14 │ PASS               │
├─────────┼────────────┼────────────────────┤
210.20.3.16 │ PASS               │
╘═════════╧════════════╧════════════════════╛
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:latest image has been removed

Installation with a config cleanup

using this process, Script will clear the base config like port--channel related config, IP related config, VXlan related config and more related configuration.

Using the same way user can choose other options to use FM agent

Last updated

Copyright © Aviz Networks, Inc.