-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
I'm trying to do scp on ´"device_type": "aruba_os"` but getting the following error:
File "/mnt/d/xxx/python/netmiko/venv/lib/python3.13/site-packages/netmiko/scp_functions.py", line 123, in file_transfer
with TransferClass(**scp_args) as scp_transfer:
~~~~~~~~~~~~~^^^^^^^^^^^^
File "/mnt/d/xxx/python/netmiko/venv/lib/python3.13/site-packages/netmiko/ssh_dispatcher.py", line 587, in FileTransfer
raise ValueError(
...<2 lines>...
)
ValueError: Unsupported SCP device_type: currently supported platforms are:
arista_eos
arista_eos_ssh
ciena_saos
ciena_saos_ssh
cisco_asa
cisco_asa_ssh
cisco_ios
cisco_ios_ssh
cisco_nxos
cisco_nxos_ssh
cisco_xe
cisco_xe_ssh
cisco_xr
cisco_xr_ssh
dell_os10
dell_os10_ssh
extreme_exos
extreme_exos_ssh
juniper_junos
juniper_junos_ssh
linux
linux_ssh
mikrotik_routeros
mikrotik_routeros_ssh
nokia_sros
nokia_sros_ssh
ubiquiti_edgerouter
ubiquiti_edgerouter_ssh
It looks like aruba_os has a mapping to ArubaOsFileTransfer: https://github.com/ktbyers/netmiko/blob/develop/netmiko/ssh_dispatcher.py#L347 so i guess it should work?
Code
from netmiko import ConnectHandler, file_transfer
import getpass
passwd = getpass.getpass('Enter your password: ')
my_device = {
"device_type": "aruba_os",
"host": "aruba_os_controller",
"username": "admin",
"password": passwd,
}
source_file = "configbackup.tar.gz"
destination_file = "configbackup.tar.gz"
direction = "get"
file_system = 'flash:'
connection = ConnectHandler(**my_device) # unpacking the dictionary
transfer_dict = file_transfer(
connection,
source_file=source_file,
dest_file=destination_file,
file_system=file_system,
direction=direction,
overwrite_file=True,
)
connection.disconnect()
print(transfer_dict)I've tested various other examples, but always get the same error.
I'm not shure if it is just me or a bug?
Environment
- Python 3.13.5
- netmiko 4.6.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels