How to export revision list via CLI ?

Author
vladyslaw
New Member
  • Total Posts : 5
  • Scores: 0
  • Reward points: 0
  • Joined: 2019/07/22 22:54:03
  • Status: offline
2019/08/14 02:24:23 (permalink)
0

How to export revision list via CLI ?

Hi all, 
 
I have two FortiGates 600C that working in cluster (Active-Passive)
FG1 Master
FG2 Slave 
 
Now we had some configuration failure during a maintenance and FG2 became a master.
Now we want to export revision list files that stored on FG1 and I don't have an access to it via Web GUI, only via CLI,
 
When I go to Web GUI it takes me to FG2 because he is a master now and I can see revision config list that stored on this appliance via admin -> Configuration -> Revisions. and there I can manage them and export via Save,
 
But I don't have Web GUI access to FG1, only via CLI, I can see the list with command "execute revision list config" and cant find a way to export and compare these files,
 
Please assist
#1

4 Replies Related Threads

    Seppel
    Silver Member
    • Total Posts : 92
    • Scores: 12
    • Reward points: 0
    • Joined: 2004/06/22 14:02:34
    • Location: Switzerland
    • Status: offline
    Re: How to export revision list via CLI ? 2019/08/14 05:11:30 (permalink)
    0
    hi
    I do not know if an export of a specific revision is possible. but what you could do, assign a free interface to an ip from a free range and then use a computer directly via gui to access your node 1. then you can download the revision on the gui. for the future, it might be useful to configure a management vlan, so you can connect direct on the gui of each member.
     
    regards

    Fortigate 500E HA
    Fortimail 200
    Fortimanager
    FortiEMS
    FortiSandbox 1000D
    FortiSwitch Network
    Some other Models in use :-)
    ----------------------------------------------------
    FCSE
    ----------------------------------------------------
    #2
    vladyslaw
    New Member
    • Total Posts : 5
    • Scores: 0
    • Reward points: 0
    • Joined: 2019/07/22 22:54:03
    • Status: offline
    Re: How to export revision list via CLI ? 2019/08/14 05:15:32 (permalink)
    0
    Seppel, thanks for response,
     
    We don't have physical access to appliance and must perform this action remotely, 
     
    :(
    #3
    emnoc
    Expert Member
    • Total Posts : 5209
    • Scores: 339
    • Reward points: 0
    • Joined: 2008/03/20 13:30:33
    • Location: AUSTIN TX AREA
    • Status: offline
    Re: How to export revision list via CLI ? 2019/08/14 06:39:53 (permalink)
    0
    IMHO your wasting your time. I the FGt 2x where in a HA and you cfg unit1 the changes are sent to unit2 , nothing to compare.
     
    if you had a hardware failure and unit2 become active , than it has the most current change and will sync the cfg when unit1 is re-introduce into a HA cluster.
     
    Again no need to sync anything, the master is just that ...."the master" regardless if it was unit1 and then unit2 or reverse.
     
    And if you suspect cfg sync run  "diag sys ha cluster-csum" the checksum should match on both units
     
    Ken Felix
    post edited by emnoc - 2019/08/14 06:42:14

    PCNSE,  NSE , Forcepoint ,  StrongSwan Specialist
    #4
    orani
    Bronze Member
    • Total Posts : 59
    • Scores: 1
    • Reward points: 0
    • Joined: 2019/07/11 12:54:18
    • Location: Athens
    • Status: offline
    Re: How to export revision list via CLI ? 2019/08/14 21:51:33 (permalink)
    0
    You can also reboot the FGT2 to make FGT1 master again and access the web gui.
    #5
    Jump to:
    © 2019 APG vNext Commercial Version 5.5