Is Fortinet/Fortigate support broken?
See original GitHub issue- OSX 10.11.6
- Python 3.6.0
- Netmiko 1.2.8
- FortiGate-1500D v5.4.3,build1111,161220 (GA)
This is my example script:
#!/usr/bin/env python
# coding=utf-8
"""
Fortinet Fortigate Test
"""
import logging
from netmiko import ConnectHandler
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger('global')
devices = []
ips = ["10.10.10.1"]
for ip in ips:
fortinet = {
'device_type': 'fortinet',
'ip': ip,
'username': 'admin',
'password': 'xxxxx'
}
devices.append(fortinet)
for device in devices:
net_connect = ConnectHandler(**device)
output = net_connect.send_command('config global')
output = net_connect.send_command('diagnose hardware deviceinfo nic')
print(output)
Attached is a debug log.
After the config global
command is issued by my script (not the one built into netmiko, the initial get system status
seem to work, but as you can see I didn’t issue that) the console prompt is returned but not detected and falls into an endless loop of DEBUG:netmiko:read_channel:
, as a result the diagnose hardware deviceinfo nic
doesn’t execute.
Does anyone else see the same?
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
FortiCare Technical Support and Services - Fortinet
FortiCare Technical Support Service is a per-device support service, and it provides customers access to over 1,400 experts to ensure efficient and effective ......
Read more >Fortinet-tech-support - Reddit
Fortinet upgrade and user fortigate-tech-support created ... A glowing commendation for all to see Suffering from a broken heart 3
Read more >Fortinet FortiGate 100F - security appliance - with 5 years ...
* Accidental Damage Service excludes theft, loss, and damage due to fire, flood or other acts of nature, or intentional damage. Customer must...
Read more >How to fix broken Fortigate firmware / No firmware using TFTP ...
How to fix broken Fortigate firmware / No firmware using TFTP to flash firmware from the boot menu.
Read more >Fortinet FortiGate-50E 1 Year Unified (UTM) Protection (24x7 ...
Buy Fortinet FortiGate-50E 1 Year Unified (UTM) Protection (24x7 FortiCare Plus ... New/Renewal License for FortiGate-60E; Fortinet designed support and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, that’s all fixed now.
As you suggested, I did need to update my test script.
For the future reference of others, final debug attached - test_fortinet.debuglog-otherFW-3.txt - and updated script below.
@ktbyers Thank you.
= )
I only commented on it because someone w a similar issue had already commented. I only used Pv2 because I was in a hurry and my Pv3 was gen’ing an error w the import netmiko statement. I was in a hurry and moved on. I did briefly look for you email because the post was so old, I wasn’t sure that you’d actually respond. I didn’t find it after looking very briefly and moved on to the post. Sorry Kirk.
I think I found the solution to my problem by adding the 'expect_string = ‘[#?$]’ syntax to my send_command tuple.
Is there a class you offer w just the Netmiko, Paramiko stuff?
On Wed, Feb 9, 2022, 12:00 PM Kirk Byers @.***> wrote: