Created on 09-16-2024 09:18 PM Edited on 09-17-2024 10:50 AM By Stephen_G
Description | This article describes how to use FortiManager TCL script to get FortiGate interface details. This is helpful when the FortiGate interface mode is non-static (DHCP/PPPoE) and FortiManager device database shows IP address 0.0.0.0 instead of the actual IP address. |
Scope | FortiManager, FortiGate. |
Solution |
Follow the initial steps from this article on how to enable and run TCL scripts in FortiManager: Technical Tip: How to use TCL script...existing route
proc do_cmd {cmd} { array set typeintf {} ;# Initialize the type array
Note: This script only fetches the interface name, VDOM, mode, type and IP address. This can be modified to fetch any other detail of the interfaces or details depending on any condition.
Related documents: |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.