napalm-automation-community / napalm-s350

NAPALM driver for Cisco SMB switches (SF3xx, SF5xx, SG3xx, SG5xx).
Apache License 2.0
16 stars 13 forks source link

get_config does not work - "% Unrecognized command" #64

Closed smalldatach closed 3 years ago

smalldatach commented 3 years ago

Environment

Python version ('python3 --version'): 3.8.5

Steps to Reproduce

  1. napalm --user napalm --vendor s350 --debug 10.40.0.30 call get_config

Expected Behavior

2020-11-19 13:09:44,003 - napalm - DEBUG - get_facts - Successful 2020-11-19 13:09:44,003 - napalm - DEBUG - method - Calling with args: (<napalm_s350.s350.S350Driver object at 0x7fc28d01da30>, 'get_config'), {} 2020-11-19 13:09:44,004 - napalm - DEBUG - get_config - Attempting to resolve method 2020-11-19 13:09:44,004 - napalm - DEBUG - get_config - Attempting to call method with kwargs: {} 2020-11-19 13:09:47,084 - napalm - DEBUG - get_config - Response { "startup": "% Unrecognized command", "running": "% Unrecognized command", "candidate": "" } 2020-11-19 13:09:47,085 - napalm - DEBUG - method - Successful 2020-11-19 13:09:47,085 - napalm - DEBUG - close - Calling with args: (<napalm_s350.s350.S350Driver object at 0x7fc28d01da30>,), {} 2020-11-19 13:09:51,291 - napalm - DEBUG - close - Successful 2020-11-19 13:09:51,292 - napalm - DEBUG - post_connection_tests - Calling with args: (<napalm_s350.s350.S350Driver object at 0x7fc28d01da30>,), {}

qaxi commented 3 years ago

Hi, can you login to the switch and try run those commands terminal datadump show startup-config show running-config show running-config detailed

Do you get your configuration?

If not, does your user have sufficient priviledges?

smalldatach commented 3 years ago

thanks for the hint! at the sg350 series you can not modify the privilege modes e.g. adding possibility to run "show startup-config". on the calalyst switches you can... so you must set the privilege level for the napalm user to 15 (admin rights...). not nice but i dont found an other way...

qaxi commented 3 years ago

I sopouse it solved the problem, am I right?