netdisco icon indicating copy to clipboard operation
netdisco copied to clipboard

pty error for Net/OpenSSH.pm when trying to use SSHCollector helper for ArubaOS-CX arp

Open jrbinks opened this issue 1 year ago • 3 comments

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

jrbinks avatar Jul 03 '24 21:07 jrbinks

Found the arp issue: https://github.com/netdisco/snmp-info/issues/452

jrbinks avatar Jul 03 '24 21:07 jrbinks

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 avatar Sep 04 '24 17:09 abdalawood

@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).

rc9000 avatar Sep 07 '24 15:09 rc9000

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 :)

ollyg avatar Apr 25 '25 18:04 ollyg

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.

jrbinks avatar Aug 24 '25 18:08 jrbinks