# show system adminExecute a custom script on a managed FortiSwitch unit from the FortiGate.
# config system admin
edit "admin"
set accprofile "super_admin"
set password ENC AK1D81TRKaQlvte2V1ggzzyD7glETgGBlzaCFZw=
next
end
# config switch-controller custom-command2) Push the commands to the FortiSwitches: (the serial number is the FortiSwitch(s) serial number).
(custom-command) edit <command-name>
new entry 'command-name' added
(command-name) set command "config system admin %0a edit <username> %0a set accprofile super_admin %0a set password <password> %0a next %0a end %0a"
(command-name) next
(custom-command) end
# config switch-controller managed-switchTo verify if the change is pushed to the FortiSwitch:
(managed-switch) edit S124EF591------9
(S124EF591------9) config custom-command
(custom-command) # edit 1
new entry '1' added
(2) set command-name <command-name>
(2) next
(custom-command) end
# show system adminNote.