<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On 17 Jun 2007, at 20:24, john heasley wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV>Fri, Jun 15, 2007 at 04:11:13PM +0200, Neil Orley:</DIV> <BLOCKQUOTE type="cite"><DIV>Hello,</DIV><DIV><BR></DIV><DIV>I've just commmented in this line 266 in the clogin file, and now it seems</DIV><DIV>to work fine with the ERX1440 :</DIV> </BLOCKQUOTE><DIV><BR></DIV><DIV>Could you provide more information? What is the actually output of the</DIV><DIV>dir command?</DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>For me the problem is in both the commands "show env all" and "dir".</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I have been seeing diffs like this for a long time. The differences for "show env all" are:-</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> ! power: A ok, B ok</DIV><DIV>- ! *** srp redundancy: mode is file-system-synchronization auto-sync</DIV><DIV>+ ! srp redundancy: mode is file-system-synchronization auto-sync</DIV><DIV> ! enabled, switch-on-error enabled</DIV><DIV>- ! out of sync (file system)</DIV><DIV>+ ! in sync</DIV><DIV> ! slots: ok</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> ! power: A ok, B ok</DIV><DIV> ! srp redundancy: mode is file-system-synchronization auto-sync</DIV><DIV> ! enabled, switch-on-error enabled</DIV><DIV>- ! in sync</DIV><DIV>+ ! sync in progress</DIV><DIV> ! slots: ok</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> ! power: A ok, B ok</DIV><DIV> ! srp redundancy: mode is high-availability, state active</DIV><DIV> ! auto-sync enabled, switch-on-error enabled</DIV><DIV>- ! sync in progress</DIV><DIV>+ ! in sync</DIV><DIV> ! slots: ok</DIV><DIV> ! online: 0 1 7 11 13</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>And for "dir" are:-</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- !Flash: *** Active/standby file systems are not synchronized. ***</DIV><DIV>- !Flash: Active System Controller:</DIV><DIV>+ !Flash: active/standby file systems are synchronized</DIV><DIV> !Flash: unshared in</DIV><DIV> !Flash: file size size date (GMT) use</DIV><DIV> !Flash: --------------------- --------- --------- ------------------- ---</DIV><DIV> !Flash: XXXXXXXXXXXXXXXXXXXXX 296984 296984 09/30/2005 03:55:22 !</DIV><DIV>@@ -107,9 +106,8 @@</DIV><DIV> !Flash: XXXXXXXXXXXXXXXXXXXXX 154139239 137984153 07/29/2005 03:21:34 !</DIV><DIV> !Flash: XXXXXXXXXXXXXXXXXXXXX 154263057 138107971 09/30/2005 03:52:32 !</DIV><DIV> !Flash: XXXXXXXXXXXXXXXXXXXXX 91388 91388 09/30/2005 03:55:50</DIV><DIV> !Flash: Capacity = 1025482752, Bytes Free = 660847516, Reserved = 68157440</DIV><DIV>- !Flash: Standby System Controller file system is currently unavailable.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- !Flash: *** Active/standby file systems are being synchronized. ***</DIV><DIV>+ !Flash: Active/standby file systems are synchronized.</DIV><DIV> !Flash: unshared</DIV><DIV> !Flash: file size size date (GMT)</DIV><DIV> !Flash: ---------------------------- --------- --------- -------------------</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- !Flash: Active/standby file systems are synchronized.</DIV><DIV>- !Flash: unshared in</DIV><DIV>- !Flash: file size size date (GMT) use</DIV><DIV>- !Flash: ------------------------ --------- --------- ------------------- ---</DIV><DIV>- !Flash: disk0:reboot.hty 10624 10624 02/16/2007 04:36:36</DIV><DIV>- !Flash: disk0:system.log 171 171 02/16/2007 04:26:18</DIV><DIV>- !Flash: disk0:XXXXXXXXXX.rel 123538358 122344440 01/26/2007 12:45:58</DIV><DIV>- !Flash: disk0:XXXXXXXXXX.rel 117722882 116528964 02/16/2007 04:02:28 !</DIV><DIV>- !Flash: standby-disk0:reboot.hty 14144 14144 02/16/2007 04:33:00</DIV><DIV>- !Flash: standby-disk0:system.log 882 882 01/29/2007 08:18:20</DIV><DIV>- !Flash: Disk capacity</DIV><DIV>- !Flash: -------------</DIV><DIV>- !Flash: Capacity Free Reserved</DIV><DIV>- !Flash: Device (bytes) (bytes) (bytes)</DIV><DIV>- !Flash: -------------- ---------- --------- --------</DIV><DIV>- !Flash: disk0: 1047674880 756345387 68157440</DIV><DIV>- !Flash: standby-disk0: 1047674880 756218546 68157440</DIV><DIV>+ !Flash: *** Active/standby file systems are being synchronized. ***</DIV><DIV>+ !Flash: unshared in</DIV><DIV>+ !Flash: file size size date (GMT) use</DIV><DIV>+ !Flash: -------------------- --------- --------- ------------------- ---</DIV><DIV>+ !Flash: disk0:reboot.hty 10624 10624 02/16/2007 04:36:36</DIV><DIV>+ !Flash: disk0:system.log 171 171 02/16/2007 04:26:18</DIV><DIV>+ !Flash: disk0:XXXXXXXXXX.rel 123538358 122344440 01/26/2007 12:45:58</DIV><DIV>+ !Flash: disk0:XXXXXXXXXX.rel 117722882 116528964 02/16/2007 04:02:28 !</DIV><DIV>+ !Flash: Disk capacity</DIV><DIV>+ !Flash: -------------</DIV><DIV>+ !Flash: Capacity Free Reserved</DIV><DIV>+ !Flash: Device (bytes) (bytes) (bytes)</DIV><DIV>+ !Flash: ------ ---------- --------- --------</DIV><DIV>+ !Flash: disk0: 1047674880 756345387 68157440</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I have stopped the uninteresting diffs by making chahges to jerancid as below.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>In sub DirSlotN making the following string compare case insensitive obviously helps. As at some point Juniper changed the case in the active/standby text.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> return(-1) if (/active\/standby/i && /not sync/);</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>In sub ShowEnv these changes have worked for me, it may not be the best way of doing this.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>sub ShowEnv {</DIV><DIV> print STDERR " In ShowEnv: $_" if ($debug);</DIV><DIV> my $autoSyncEna = 0; # assume auto-sync is disabled</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> while (<INPUT>) {</DIV><DIV> tr/\015//d;</DIV><DIV> last if (/^$prompt/);</DIV><DIV> next if (/^(\s*|\s*$cmd\s*)$/);</DIV><DIV> next if (/^Please wait/i);</DIV><DIV> return(-1) if (/command authorization failed/i);</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> # is autoSync enabled? </DIV><DIV> $autoSyncEna =1 if (/enabled, switch-on-error enabled/); # fileSync mode (text has wrapped)</DIV><DIV> $autoSyncEna =1 if (/auto-sync enabled/); # HA mode</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> # fail if the RP is amid the auto-sync process</DIV><DIV> return(-1) if (($autoSyncEna == 1) && (/out of sync \(file system\)/)); # fileSync mode</DIV><DIV> return(-1) if (($autoSyncEna == 1) && (/sync in progress/)); # HA mode</DIV><DIV># return(-1) if (/auto-sync enabled/ && !/in sync/);</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The last line in the above output is commented as it is not valid on my ERX's as "in sync" and "auto-sync enabled" appear on multiple lines or split across multiple lines (you can see that in the above diff's).</DIV><BR><BLOCKQUOTE type="cite"></BLOCKQUOTE></DIV><DIV>These changes appear to have stopped the uninteresting diffs for me.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>HTH</DIV><DIV>Mark</DIV><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV class="MsoNormal"><SPAN style=""><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-style-span" style="font-family: Courier; "><SPAN class="Apple-style-span" style="font-family: Courier; "><SPAN class="Apple-style-span" style="font-family: Courier; ">-- </SPAN></SPAN></SPAN></FONT><O:P></O:P></SPAN></DIV><DIV class="MsoNormal"><SPAN style=""><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-style-span" style="font-family: Courier; "><SPAN class="Apple-style-span" style="font-family: Courier; "><SPAN class="Apple-style-span" style="font-family: Courier; ">| Mark Loveley B</SPAN></SPAN></SPAN><SPAN class="Apple-style-span" style="font-family: Courier; "><SPAN class="Apple-style-span" style="font-family: Courier; "><SPAN class="Apple-style-span" style="font-family: Courier; ">roadband Solutions for</SPAN></SPAN></SPAN></FONT><O:P></O:P></SPAN></DIV><DIV class="MsoNormal"><SPAN style=""><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-style-span" style="font-family: Courier; "><SPAN class="Apple-style-span" style="font-family: Courier; "><SPAN class="Apple-style-span" style="font-family: Courier; ">| Network Engineer home and business</SPAN></SPAN></SPAN></FONT><O:P></O:P></SPAN></DIV><DIV class="MsoNormal"><SPAN style=""><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-style-span" style="font-family: Courier; "><SPAN class="Apple-style-span" style="font-family: Courier; "><SPAN class="Apple-style-span" style="font-family: Courier; ">| PlusNet PLC @<A href="http://www.plus.net">www.plus.net</A></SPAN></SPAN></SPAN></FONT></SPAN></DIV><DIV class="MsoNormal"><SPAN style=""><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-style-span" style="font-family: Courier; "><SPAN class="Apple-style-span" style="font-family: Courier; "><SPAN class="Apple-style-span" style="font-family: Courier; ">| Registered Office: Internet House, 2 Tenter Street, Sheffield, S1 4BY</SPAN></SPAN></SPAN></FONT><O:P></O:P></SPAN></DIV><DIV class="MsoNormal"><SPAN style=""><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-style-span" style="font-family: Courier; "><SPAN class="Apple-style-span" style="font-family: Courier; "><SPAN class="Apple-style-span" style="font-family: Courier; ">| Registered in England no: 3279013</SPAN></SPAN></SPAN></FONT><O:P></O:P></SPAN></DIV><DIV class="MsoNormal"><SPAN style=""><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-style-span" style="font-family: Courier; "><SPAN class="Apple-style-span" style="font-family: Courier; "><SPAN class="Apple-style-span" style="font-family: Courier; ">+ ------------ PlusNet - The smarter way to broadband ----------------+</SPAN></SPAN></SPAN></FONT></SPAN></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN></SPAN></SPAN> </DIV><BR></BODY></HTML>