Puts "The firmware is build# $status(build)." Puts "It is running version $status(version) of FortiOS." Puts "This machine is a $status(platform) platform." If $value dummy a(platform) a(version) a(build) Example: Save system status information in an array. The next script uses an array to store the FortiGate system information. Arrays allow you to easily manage information by storing multiple pieces of data under a variable name. Variables allow you to store information from the FortiGate device, and use it later in the script. This also means some of the commands normally found in Tcl are not used in FortiManager Tcl.ĭepending on the CLI commands you use in your Tcl scripts, you may not be able to run some scripts on some versions of FortiOS as CLI commands change periodically.īefore testing a new script on a FortiGate device, you should backup that device’s configuration and data to ensure it is not lost if the script does not work as expected. You do not have to know the location of the Tcl interpreter or environment variables to execute your scripts. To enable Tcl scripting, use the following CLI commands:įortiManager Tcl executes in a controlled environment. The samples will each focus on one of four areas: The sample scripts in this section will contain procedures that you can combine to use your scripts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |