Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
rwpatterson
Valued Contributor III

What Is My Version

To answer that question, simply put the first line of your backup file into the attached script.

 

[link]http://fortinet.camerabob.com/WhatIsMyVersion.cgi[/link]

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
4 REPLIES 4
emnoc
Esteemed Contributor III

http://socpuppet.blogspot.com/2015/10/fortigate-configuration-files-backups.html

 

The 1st lines in  enc or non is very crucial

 

;)

 

 

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
rwpatterson
Valued Contributor III

No doubt, but to just get the "version.MR number.patch" information, that can all be gleaned from just the first line. We aren't going to be restoring or auditing with this simple script. Nice link you posted above, by the way. Thank you.

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
Toshi_Esumi
Esteemed Contributor III

Looks like with 5.6 they started adding the patch number (the third number of the version) into the first line, so you don't have to translate from the build number. I haven't checked 6.0 though. <5.4.8>

#config-version=FGT60D-5.04-FW-build1183-180115:opmode=0:vdom=0:user=radius-admin

<5.6.5>

#config-version=FGT60E-5.6.5-FW-build1600-180620:opmode=0:vdom=1:user=admin

rwpatterson
Valued Contributor III

toshiesumi wrote:

Looks like with 5.6 they started adding the patch number (the third number of the version) into the first line, so you don't have to translate from the build number. I haven't checked 6.0 though. <5.4.8>

#config-version=FGT60D-5.04-FW-build1183-180115:opmode=0:vdom=0:user=radius-admin

<5.6.5>

#config-version=FGT60E-5.6.5-FW-build1600-180620:opmode=0:vdom=1:user=admin

Dangit! I guess I really should get with the times....

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
Labels
Top Kudoed Authors