netdisco / netdisco

A web-based network management tool.
http://netdisco.org/
BSD 3-Clause "New" or "Revised" License
665 stars 78 forks source link

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

Open jrbinks opened 5 months ago

jrbinks commented 5 months ago

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 commented 5 months ago

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

abdalawood commented 2 months ago

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

rc9000 commented 2 months ago

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