This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from fortigate_api import Fortigate | |
| import base64 | |
| from datetime import datetime | |
| import inotify.adapters | |
| import inotify.constants | |
| import requests | |
| #Wildcard cert file location | |
| CERT_FILE = "" | |
| #Key file location |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # get basic system informaton (including version) | |
| get system status | |
| # overview of hardware interfaces | |
| get system interface physical | |
| # details of a single network interface, | |
| get hardware nic <nic-name> | |
| # kind of hidden command to see more interface stats such as errors |