I am currently working on a small Ansible project. We are currently using XIQ to access various ERS and VSP devices from Extreme Networks. This is being phased out as the license costs are far too high. With Ansible, I have already managed to access the VSP using a module (community.network.voss). However, I am having trouble executing CLI commands on devices running BOSS (Baystack Operating System Switching), such as the ERS3626GTS-PWR+. Unfortunately, I have not found a module for this; is there one that I might be overlooking? The goal is simply to execute CLI commands on the devices.
I have tried using ansible.builtin.ssh which resulted in the following error message:
fatal: [X.X.X.X]: FAILED! => {âmsgâ: ânetwork os ansible.builtin.ssh is not supportedâ}
But I may have missed the modules youâve listed. Iâll give them a try once I arrive at work.
Yes I can SSH to the devices, they have a normal CLI which you can access via SSH. Maybe there is a problem in my Inventory.ini since thats the place where I defined the network os which then uses the ansible.builtin.ssh
Hello to all, I habe the same issue with the BOSS based Switches. Has anyone found a solution on this?
As far as Iâve figured out, itâs due to the command pass from Ansible to sshpass. Ansible is passing a shell call that canât work because no shell is present. The shell call is as follows: â/bin/sh -c â"âââecho ~RW && sleep 0âââ"ââ
Does anyone have any idea how to disable this shell call?
Regards and many thanks in Advance for your support
Rolf
Hello, does anyone have an idea to solve the problem?
The ping module behaves the same way. In addition to the âshow clockâ argument, a shell call is passed.
sudo -H -S -n -u root /bin/sh -c â"âââecho BECOME-SUCCESS-kimxyplsdcwnvuwrtjfsymyvmgniumwn ; show clockâââ"â'-
Is there a way to prevent this shell call?
so looks like the default connection plugin attempts to run commands via /bin/sh -c, which doesnât exist on BOSS.
I think this behavior might driven by ansible_shell_type and ansible_shell_executable, which are used in the ConnectionBase class to load the appropriate shell plugin via get_shell_plugin().So If you donât know the CLI binary path or donât want Ansible to wrap commands at all, I believe we can try to prevent Ansible from using any shell at all:
may be something like this would work