<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hi,</p>
<p><br>
</p>
<p>Thanks for the help. "get system status" also produces the line:</p>
<p></p>
<div>DCPGFW1 # get system status</div>
<div><some other lines here><br>
Current HA mode: a-p, master<br>
Cluster uptime: 37 days, 10 hours, 14 minutes, 55 seconds<br>
System time: Tue Aug  1 10:35:45 2017</div>
<div><br>
</div>
<div>FYI I removed the ! from the line (<span>next if (/^\s*Cluster uptime:/);</span>) but I get a mail with the following:</div>
<div><br>
</div>
<div><font face="Times New Roman"></font>
<p style="margin:0cm 0cm 0pt"><span lang="EN-NZ"><font face="Calibri"><span style=""> 
</span>#FIPS-CC mode: disable</font></span></p>
<font face="Times New Roman"></font>
<p style="margin:0cm 0cm 0pt"><span lang="EN-NZ"><font face="Calibri"><span style=""> 
</span>#Current HA mode: a-p, master</font></span></p>
<font face="Times New Roman"></font>
<p style="margin:0cm 0cm 0pt"><span lang="EN-NZ"><font face="Calibri">- #Cluster uptime: 35 days, 20 hours, 37 minutes, 22 seconds</font></span></p>
<font face="Times New Roman"></font>
<p style="margin:0cm 0cm 0pt"><span lang="EN-NZ"><font face="Calibri">+ #Cluster uptime: 37 days, 10 hours, 16 minutes, 50 seconds</font></span></p>
<font face="Times New Roman"></font></div>
<p><br>
</p>
<p></p>
<p>Thanks again.</p>
<p><br>
</p>
<p><br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> heasley <heas@shrubbery.net><br>
<b>Sent:</b> 31 July 2017 21:47:43<br>
<b>To:</b> Ryan<br>
<b>Cc:</b> rancid-discuss@shrubbery.net<br>
<b>Subject:</b> Re: [rancid] Fortigate Cluster uptime</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Sun, Jul 30, 2017 at 09:26:18AM +0000, Ryan:<br>
> Hi All,<br>
> <br>
> <br>
> Sorry to mail this out but I have searched through a number of groups and cant find anything that actually works. I recently upgraded my Fortinet FW cluster and, unfortunately, the config status displays a new line, "Cluster uptime", from the "get system
 ha status" cli. e.g.<br>
> <br>
<br>
rancid does not use that command.  it uses only get system status.  is that<br>
command including this output now or have you changed your distribution?<br>
<br>
>   !Virtual domains status: 1 in NAT mode, 0 in TP mode<br>
> <br>
>   !Virtual domain configuration: disable<br>
> <br>
>   !FIPS-CC mode: disable<br>
> <br>
>   !Current HA mode: a-p, master<br>
> <br>
> - !Cluster uptime: 35 days, 19 hours, 40 minutes, 13 seconds<br>
> <br>
> + !Cluster uptime: 35 days, 20 hours, 40 minutes, 13 seconds<br>
> <br>
>   !Branch point: 1449<br>
> <br>
>   !Release Version Information: GA<br>
> <br>
> <br>
> The "Cluster uptime" means that I get an updated FW version mailed to me every hour of the day. I have tried a number of things to resolve this including:<br>
> <br>
> <br>
>   1.  I updated the fnrancid file with the below but both attempts failed:<br>
> <br>
> <br>
> sub GetConf {<br>
>     print STDERR "    In GetConf: $_" if ($debug);<br>
> <br>
>     while (<INPUT>) {<br>
>         tr/\015//d;<br>
>         next if /^\s*$/;<br>
>         last if (/$prompt/);<br>
> <br>
>         # System time is fortigate extraction time<br>
>         next if (/^\s*!System time:/);<br>
>         # remove occurrances of conf_file_ver<br>
>         next if (/^#?conf_file_ver=/);<br>
> <br>
> <br>
> # First think I tried<br>
> <br>
> #remove occurances of Cluster Uptime<br>
>         next if (/^\s*!Cluster uptime:/);<br>
<br>
no !.<br>
<br>
> <br>
> # next thing I tried.<br>
> <br>
>         #if (/^\s*!Cluster uptime:/) {<br>
>         #    ProcessHistory("","","","","","#$_");<br>
>         #    next;<br>
>         #}<br>
> <br>
> <br>
> 2. I tried other options e.g. writing something similar to the cycling password but I am afraid I reached the end of my skillset.<br>
> <br>
> 3. Finally I thought my Rancid server is pretty old 2.3.6 so I built a new rancid server (3.3.0) using Ubuntu 16.04 and updated the fnrancid again without success.<br>
> <br>
> <br>
> Two questions if I may:<br>
> <br>
>   1.  Anyone know how I can ignore the Cluster uptime line?<br>
>   2.  If I move to using the new server is there a way to export the CVS history on the old server and import it on the new?<br>
> <br>
> <br>
> Thanks in advance! Your help is appreciated!<br>
> <br>
> <br>
> Cheers,<br>
> <br>
<br>
> _______________________________________________<br>
> Rancid-discuss mailing list<br>
> Rancid-discuss@shrubbery.net<br>
> <a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><br>
<br>
</div>
</span></font>
</body>
</html>