Hot!Auto Backup using Security Fabric/Automation Problems

Author
nbctcp
Silver Member
  • Total Posts : 98
  • Scores: 4
  • Reward points: 0
  • Joined: 2015/03/05 04:48:26
  • Location: Indonesia
  • Status: offline
2020/02/18 14:10:00 (permalink) 6.2
0

Auto Backup using Security Fabric/Automation Problems

HW INFO:
-FGT80d OS 6.2.3
 
GOALS:
1. email show result

PROBLEMS:
only half output being emailed
only until
===
config system replacemsg mail "partial"
end
config system re
===
I think this is because timeout when show result haven't finished
 
CONFIGS:
config system console
     set output standard
end
config system automation-trigger
    edit "FGT2.BAK"
        set trigger-type scheduled
        set trigger-frequency hourly
        set trigger-minute 48
    next
end
config system automation-action
    edit "FGT2-BAK"
        set action-type cli-script
        set required enable
        set script "show"
    next
    edit "FGT2.BAK_email"
        set action-type email
        set email-to "user@gmail.com"
        set email-subject "FGT2.BAK"
        set email-body "%%results%%"
    next
end
 
 
post edited by nbctcp - 2020/02/18 14:11:15
#1

1 Reply Related Threads

    anteopta
    New Member
    • Total Posts : 7
    • Scores: 0
    • Reward points: 0
    • Joined: 2020/09/18 02:05:52
    • Status: offline
    Re: Auto Backup using Security Fabric/Automation Problems 2020/09/29 05:48:38 (permalink)
    0
    simular problem
    i use automation to automate the config backup and send an email with %%results%% to myselfe.
     
    For some reason the FortiGate does not execute the script, it only writes the comand in the comandline and nothing else.
    I know it writes the comand from the email with %%results%%, and if i look in the FTP-Server, no backup can be found.
    a layer 8 problem can be excluded as (meaning: no, i did not write the comand wrong as)
    1. the comandline would tell me
    2. i executed the comand by hand, it worked, and copied it into the script field.
     
    it happens on 60E, 80E and 100E, but i also have 60E and 100E where it works, so i don't think it is a problem with the model.
    #2
    Jump to:
    © 2020 APG vNext Commercial Version 5.5