netmiko icon indicating copy to clipboard operation
netmiko copied to clipboard

Add FortiAnalyzer compatibility

Open Hyperion60 opened this issue 3 years ago • 8 comments

FortiAnalyzer CLI use '>' as prompt, but actual pattern doesn't read it.

Example of FortiAnalyzer CLI :

> get system status
System:
        Version:              FACVM v6.2.1-build0552,201030 (GA)
        Branch point:         0552
        Architecture:         64-bit
        Serial number:        FAC-VMTM21006510
        System time:          Thu Aug 11 18:29:39 2022 up 169 days,  2:14
        Disk Usage:           0 GB
        Disk Size:            57 GB

HA Status:
        Enabled:              No
        Node Type:
        Role:                 Disabled
        Status:               Disabled
        Cluster size:
        Heartbeat interface:
        Priority:
        Node-Specific Gateway:
        Peer:
>

Hyperion60 avatar Aug 12 '22 08:08 Hyperion60

I just tested, it works also with FortiAuthenticator and FortiManager

Hyperion60 avatar Aug 12 '22 10:08 Hyperion60

We are going to redo the Fortinet driver so I am going to wait on this until that is done.

ktbyers avatar Sep 01 '22 17:09 ktbyers

@Hyperion60 Are you still interested/willing to work on this issue?

ktbyers avatar May 19 '23 20:05 ktbyers

Yes

Hyperion60 avatar May 23 '23 10:05 Hyperion60

Hi, Same issue in FortiAuthenticator:

File "/home/dani/.local/lib/python3.8/site-packages/netmiko/base_connection.py", line 1368, in set_base_prompt raise ValueError(f"Router prompt not found: {repr(prompt)}") ValueError: Router prompt not found: '>'

dpinyol avatar May 28 '23 15:05 dpinyol

@Hyperion60 Can you run Netmiko config and show test suite against a FortiAnalyzer device using this code.

The test process is here.

https://github.com/ktbyers/netmiko/blob/develop/TESTING.md

@dpinyol Does the FortiAuthenticator work with the code referenced here?

ktbyers avatar May 30 '23 17:05 ktbyers

I could work on it from the end of the week. My job has the priority.

Hyperion60 avatar May 30 '23 20:05 Hyperion60

@Hyperion60 Let me know if you can post the Netmiko test output into this PR:

https://github.com/ktbyers/netmiko/blob/develop/TESTING.md

ktbyers avatar Oct 17 '23 19:10 ktbyers

PR is unfortunately no longer active...so closing.

ktbyers avatar May 03 '24 23:05 ktbyers