Description | This article describes how to enable private-data-encryption in FortiOS from FortiManager with a TCL script. |
Scope | FortiOS, FortiManager. |
Solution |
Currently, FortiManager does not natively support enabling the private-data-encryption setting on FortiOS. It must be done on the managed FortiGate, which can become daunting if the number of managed devices is high. To activate the feature on multiple devices using FortiManager, a TCL script can be used.
Pre-requisite: Ensure TCL scripting is enabled on the FortiManager:
config system admin setting set show_tcl_script enable end
Afterwards, perform the following actions:
#! set substring "hexadecimal numbers):" proc do_cmd {cmd} { do_cmd "config sys global" if {[string match *$substring* $output]} { #The key has to be inserted twice
Select 'Run Script' and execute it on the required device(s). The script log should show a similar output to the following:
-------Executing time: Fri Aug 30 18:12:32 2024----------- FGT (global) # FGT (global) #
In the FortiGate, private-data-encryption should be enabled:
sh
In FortiManager, AutoUpdate should have created a new revision under Configuration Revision History. |
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 2025 Fortinet, Inc. All Rights Reserved.