<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.emailquote, li.emailquote, div.emailquote
{mso-style-name:emailquote;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:1.0pt;
margin-bottom:.0001pt;
border:none;
padding:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Just ran into this as well when I upgraded my clusters. I was wondering if this change has been added to the distribution. Probably be a good time for me to upgrade Rancid if it has been.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks. <o:p></o:p></p>
<p class="MsoNormal">Chris<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Rancid-discuss <rancid-discuss-bounces@shrubbery.net> on behalf of Ryan <merlin_rbs@hotmail.com><br>
<b>Date: </b>Wednesday, August 2, 2017 at 5:45 AM<br>
<b>To: </b>heasley <heas@shrubbery.net><br>
<b>Cc: </b>"rancid-discuss@shrubbery.net" <rancid-discuss@shrubbery.net><br>
<b>Subject: </b>Re: [rancid] Fortigate Cluster uptime<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div id="x_divtagdefaultwrapper">
<p><a name="_MailOriginalBody"><span style="font-size:12.0pt;color:black">Thanks! That worked. I had the "cluster uptime" line located in the wrong place. moving it to the location you showed (Line 184 in the script) sorted it out.<o:p></o:p></span></a></p>
<p><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#212121"> next if (/^FortiClient application signature package:/);<br>
+ # Cluster uptime<br>
+ next if (/^\s*Cluster uptime:/);<br>
<br>
ProcessHistory("","","","#$_");<br>
}</span></span><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:12.0pt;color:black"><o:p></o:p></span></span></p>
<p><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></span></p>
<p><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#212121">Cheers!</span></span><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:12.0pt;color:black"><o:p></o:p></span></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="mso-bookmark:_MailOriginalBody">
<hr size="2" width="98%" align="center">
</span></div>
<div id="x_divRplyFwdMsg">
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><b><span style="color:black">From:</span></b></span><span style="mso-bookmark:_MailOriginalBody"><span style="color:black"> heasley <heas@shrubbery.net><br>
<b>Sent:</b> 01 August 2017 17:58:21<br>
<b>To:</b> Ryan<br>
<b>Cc:</b> heasley; rancid-discuss@shrubbery.net<br>
<b>Subject:</b> Re: [rancid] Fortigate Cluster uptime</span></span><span style="mso-bookmark:_MailOriginalBody">
<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:10.0pt">Mon, Jul 31, 2017 at 10:39:40PM +0000, Ryan:<br>
> Hi,<br>
> <br>
> <br>
> Thanks for the help. "get system status" also produces the line:<br>
<br>
Index: bin/fnrancid.in<br>
===================================================================<br>
--- bin/fnrancid.in (revision 3719)<br>
+++ bin/fnrancid.in (working copy)<br>
@@ -188,6 +188,8 @@<br>
next if (/^\s*Extended DB: .*/);<br>
next if (/^\s*IPS-DB: .*/);<br>
next if (/^FortiClient application signature package:/);<br>
+ # Cluster uptime<br>
+ next if (/^\s*Cluster uptime:/);<br>
<br>
ProcessHistory("","","","#$_");<br>
}<br>
<br>
> DCPGFW1 # get system status<br>
> <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<br>
> <br>
> FYI I removed the ! from the line (next if (/^\s*Cluster uptime:/);) but I get a mail with the following:<br>
> <br>
> <br>
> #FIPS-CC mode: disable<br>
> <br>
> #Current HA mode: a-p, master<br>
> <br>
> - #Cluster uptime: 35 days, 20 hours, 37 minutes, 22 seconds<br>
> <br>
> + #Cluster uptime: 37 days, 10 hours, 16 minutes, 50 seconds<br>
> <br>
> <br>
> Thanks again.<br>
> <br>
> <br>
> <br>
> ________________________________<br>
> From: heasley <heas@shrubbery.net><br>
> Sent: 31 July 2017 21:47:43<br>
> To: Ryan<br>
> Cc: rancid-discuss@shrubbery.net<br>
> Subject: Re: [rancid] Fortigate Cluster uptime<br>
> <br>
> 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>
> > </span></span><a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:10.0pt">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</span></span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:10.0pt"><br>
> </span></span><span style="font-size:10.0pt"><o:p></o:p></span></p>
</div>
</div>
</body>
</html>