pty error for Net/OpenSSH.pm when trying to use SSHCollector helper for ArubaOS-CX arp
I'd thought that https://github.com/netdisco/netdisco/discussions/869 would help me along while the outstanding issues pulling the arp table via SNMP are contemplated (which tickets I cannot now find).
But when I try that, I get:
[18165] 2024-07-03 21:11:08 debug -> Cannot open a pty at /home/netdisco/perl5/lib/perl5/Net/OpenSSH.pm line 985.
[18165] 2024-07-03 21:11:08 debug â¬
(error) Cannot open a pty at /home/netdisco/perl5/lib/perl5/Net/OpenSSH.pm line 985.
and of course there is no useful outcome.
Config is along the lines of
- tag: ssharuba
driver: cli
platform: Aruba
only: 'group:arubaosx_model'
username: xxx
password: xxx
ssh_master_opts:
- "-T"
- "-o"
- "StrictHostKeyChecking=no"
I would also quibble that the module should be renamed to SSHCollector/Platform/ArubaOSCX.pm to match the SNMP/Info module name, since that is what it is intended for; as the last comment in that discussion notes it doesn't work for ArubaOS (wireless controllers) as the show arp output is formatted differently.
Software Version App::Netdisco 2.76.5 SNMP::Info 3.970.1
Found the arp issue: https://github.com/netdisco/snmp-info/issues/452
the maintainer informed that this tool is discontinued, or am I wrong?
https://metacpan.org/dist/App-Netdisco/view/bin/netdisco-sshcollector
use device_auth
@abdalawood this only concerns the separate bin/netdisco-sshcollector script that is now integrated into the netdisco core. If you configure ssh like shown in the snippet in the device_auth doc or jrbinks' example the feature is mostly alive and well (except for this issue unfortunately).
according to google AI (!) this is most likely an issue on the "server" side - that is, the Aruba device. unfortunately I guess this Aruba module in Netdisco works for some Aruba devices but not others?
happy to try implementing a very targeted solution in python using our new python ssh client, see if it makes a difference. can you share the very specific model and vendor setting for the target device, and also the working arp command? in a new ticket, please :)
To note I wrote a new module for pulling the arp cache via SSHCollector for the ArubaOS-CX platform, as noted on https://github.com/netdisco/netdisco/discussions/869.