I set up an automated backup job as follows:
config system auto-script
edit "backup"
set interval 604800
set repeat 0
set start auto
set script "execute backup config management-station Weekly-Cloud-Backup"
next
end
When I run this script, it fails with:
########## script name: backup ##########
========== #1, 2016-08-03 13:48:38 ==========
FBCNC-FGT90D $ execute backup config management-station Weekly-Cloud-Backup
Mapping boot device /dev/sdb to /dev/sg1
Checking spareblock on /dev/sg1...
SCSI Status: Good
Plane No Spare Block Counts
1 1534
2 1534
Current admin user is not super_admin.
Command fail. Return code -37
Any idea on how to make this work?
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Silly question to ask I know....but is the account you are executing it from a super_admin as it requires?
Mike Pruett
I can run the command below from the cli under my account just fine.
execute backup config management-station Weekly-Cloud-Backup
But if it runs as part of the auto-script, it fails.
So I don't know if those scripts are run as a system user, or a low permission user account.
In case anyone is interested, I opened a ticket with support about this and this is a know bug.
Will be resolved in 5.4.2
Any update on this? I am experiencing the exact same issue/error.
My unit has been updated to 5.4.2 but still not working..?
With 60D running 5.4.3:
This from the cli interface with super_admin level user.
XXXXXXXXXX # exec auto-script start WeeklyBak
Script WeeklyBak is already running.
XXXXXXXXXXX # exec auto-script status
<Enter>
XXXXXXXXXXXX # exec auto-script status
WeeklyBak <-- running, size: 242
XXXXXXXXXXXX # exec auto-script result
Please specify script name.
XXXXXXXXXXXX # exec auto-script result WeeklyBak
Script WeeklyBak output:
########## script name: WeeklyBak ##########
========== #1, 2017-02-10 16:00:21 ==========
XXXXXXXXXXXX $ execute backup config management-station Weekly-Cloud-Backup
Current admin user is not super_admin.
Command fail. Return code -37
Also here is the relevant configuration:
show system auto-script WeeklyBackup config system auto-script edit "WeeklyBackup" set interval 604800 set repeat 0 set start auto set script "execute backup config management-station Weekly-Cloud-Backup" next end
I've been trying to get this same auto-script working for a couple weeks now also.
Even on 5.4.4 build 1117, still failing.
I have Ticket #1987327 open with support, last update is this will be fixed in 5.6.0 but no ETA on the release...
Thanks for providing the tick# Mark,
-N
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1527 | |
1020 | |
749 | |
443 | |
209 |
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.