<div dir="ltr"><div>Isn't time travel fun. :)</div><div><br></div><div>Some time ago I noticed my systems had not received the extnodes file in a very long time because the rc.updatenodelist script was hung up on one of the servers that was having a problem. So I modified the wget line in the /etc/rc.d/rc.updatenodelist script.</div>
<div>I added the "-t 2 -T 8" to the line and that seems to let it more easily skip over the server that is not working correctly. </div><br><div>$WGET -q -t 2 -T 8 -O /tmp/rpt_extnodes-temp http://$i.$TOPDOMAIN/cgi-bin/<a href="http://nodes.pl">nodes.pl</a><br>
</div><div><br></div><div>Seems to be lots better since then. Even when there were 2 of the 4 servers that were having issues, my system with the modified script still kept getting the updated extnodes file, while my friends system without the change was not getting the updated extnodes file.</div>
<div>Chuck, WB9UUS</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Dec 7, 2013 at 12:16 PM, Tim Sawyer <span dir="ltr"><<a href="mailto:tim.sawyer@mac.com" target="_blank">tim.sawyer@mac.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="margin:0px;font-family:Monaco">Corey,</div><div style="margin:0px;font-family:Monaco">
<br></div><div style="margin:0px;font-family:Monaco">Your wget command puts the Allstar node list file in a temporary staging area/name. So it won’t actually update your node list immediately, if at all. The actual nodes list lives at /var/lib/asterisk/rpt_extnodes.</div>
<div style="margin:0px;font-family:Monaco"><br></div><div style="margin:0px;font-family:Monaco">Normally the script rc.updatesnodelist will always be running (ps aux | grep updatenodelist) so it shouldn’t be necessary to use the script below. But for troubleshooting it may be useful. </div>
<div style="margin:0px;font-family:Monaco"><br></div><div style="margin:0px;font-family:Monaco">Here is a modified version of rc.updatesnodelist. Put this in a file, mark it executable and run it. </div><div style="margin:0px;font-family:Monaco">
<br></div><div style="margin:0px;font-family:Monaco">#! /bin/sh</div><div style="margin:0px;font-family:Monaco;min-height:16px"><br></div><div style="margin:0px;font-family:Monaco">TOPDOMAIN=<a href="http://allstarlink.org" target="_blank">allstarlink.org</a></div>
<div style="margin:0px;font-family:Monaco">SUBDOMAINS="nodes1 nodes2 nodes3"</div><div style="margin:0px;font-family:Monaco">FILEPATH=/var/lib/asterisk</div><div style="margin:0px;font-family:Monaco">WGET=`which wget` </div>
<div style="margin:0px;font-family:Monaco;min-height:16px"><br></div><div style="margin:0px;font-family:Monaco">for i in $SUBDOMAINS; do</div><div style="margin:0px;font-family:Monaco"> res=0</div><div style="margin:0px;font-family:Monaco">
while [ $res -eq 0 ]; do</div><div style="margin:0px;font-family:Monaco"> $WGET -O $FILEPATH/rpt_extnodes-temp <a href="http://$i.$TOPDOMAIN/cgi-bin/nodes.pl" target="_blank">http://$i.$TOPDOMAIN/cgi-bin/nodes.pl</a></div>
<div style="margin:0px;font-family:Monaco"> res=$?</div><div style="margin:0px;font-family:Monaco"> if [ $res -eq 0 ]; then</div><div style="margin:0px;font-family:Monaco"> /bin/chmod 700 $FILEPATH/rpt_extnodes-temp</div>
<div style="margin:0px;font-family:Monaco"> /bin/mv -f $FILEPATH/rpt_extnodes-temp $FILEPATH/rpt_extnodes</div><div style="margin:0px;font-family:Monaco"> echo "Retrieved node list from $i.$TOPDOMAIN"</div>
<div style="margin:0px;font-family:Monaco"> date</div><div style="margin:0px;font-family:Monaco"> #sleep 600</div><div style="margin:0px;font-family:Monaco"> exit 0</div><div style="margin:0px;font-family:Monaco">
else</div><div style="margin:0px;font-family:Monaco"> echo "Problem retrieving node list from $i.$TOPDOMAIN, trying another server";</div><div style="margin:0px;font-family:Monaco"> sleep 30</div>
<div style="margin:0px;font-family:Monaco"> fi</div><div style="margin:0px;font-family:Monaco"> done</div><div style="margin:0px;font-family:Monaco">done</div><div style="margin:0px;font-family:Monaco"><br></div>
<div style="margin:0px;font-family:Monaco"><br></div><div style="margin:0px;font-family:Monaco">Or you could just issue the following wget command. Note the host is nodes1 where the above script will try nodes1, nodes2 and nodes3.</div>
<div style="margin:0px;font-family:Monaco"><div style="margin:0px">/usr/bin/wget -O /var/lib/asterisk/rpt_extnodes <a href="http://nodes1.allstarlink.org/cgi-bin/nodes.pl" target="_blank">http://nodes1.allstarlink.org/cgi-bin/nodes.pl</a></div>
<div style="margin:0px"><br></div><div style="font-family:Verdana"></div></div><div>
<span style="border-collapse:separate;border-spacing:0px"><span style="line-height:normal;text-indent:0px;border-collapse:separate;letter-spacing:normal;font-variant:normal;text-transform:none;font-style:normal;white-space:normal;font-family:Verdana;font-weight:normal;word-spacing:0px"><div style="word-wrap:break-word">
--<br>Tim<br>:wq</div></span></span>
</div>
<br><div><div><div class="h5"><div>On Apr 4, 2011, at 1:24 PM, Corey Dean <<a href="mailto:n3fe@repeater.net" target="_blank">n3fe@repeater.net</a>> wrote:</div><br></div></div><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family:Verdana;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<div><div class="h5"><div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">TO add to this I can see my node trying to register. I will look at another node 27362 after it has downloaded the rpt-extnodes file and my 2340 does not show up… This just started today… Any clues? Sorry about all the emails… I am just trying to figure this out…<u></u><u></u></span></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></div><div><div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0in 0in">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif"><span> </span><a href="mailto:app_rpt-users-bounces@ohnosec.org" style="color:purple;text-decoration:underline" target="_blank">app_rpt-users-bounces@ohnosec.org</a><span> </span>[<a href="mailto:app_rpt-users-bounces@ohnosec.org" style="color:purple;text-decoration:underline" target="_blank">mailto:app_rpt-users-bounces@ohnosec.org</a>]<span> </span><b>On Behalf Of<span> </span></b>Corey Dean<br>
<b>Sent:</b><span> </span>Monday, April 04, 2011 3:36 PM<br><b>To:</b><span> </span><a href="mailto:app_rpt-users@ohnosec.org" style="color:purple;text-decoration:underline" target="_blank">app_rpt-users@ohnosec.org</a><br>
<b>Subject:</b><span> </span>Re: [App_rpt-users] Registration issues<u></u><u></u></span></div></div></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><u></u> <u></u></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Same here. My node hasn’t been able to get the updated list for hours now. I manually issued the command on my node (which is registered to the system). An hour later it is still sitting here…<u></u><u></u></span></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">/usr/bin/wget -q -O /tmp/rpt_extnodes-temp<span> </span><a href="http://nodes3.allstarlink.org/cgi-bin/nodes.pl" style="color:purple;text-decoration:underline" target="_blank">http://nodes3.allstarlink.org/cgi-bin/nodes.pl</a><u></u><u></u></span></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I have also seen this on at least 2 other nodes in the last month or so as well… The only way we can get by it is to add the info into rpt.conf<u></u><u></u></span></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Corey N3FE<u></u><u></u></span></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></div>
<div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0in 0in"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif"><span> </span><a href="mailto:app_rpt-users-bounces@ohnosec.org" style="color:purple;text-decoration:underline" target="_blank">app_rpt-users-bounces@ohnosec.org</a><span> </span>[<a href="mailto:app_rpt-users-bounces@ohnosec.org" style="color:purple;text-decoration:underline" target="_blank">mailto:app_rpt-users-bounces@ohnosec.org</a>]<span> </span><b>On Behalf Of<span> </span></b>Randy Ballard<br>
<b>Sent:</b><span> </span>Monday, April 04, 2011 3:16 PM<br><b>To:</b><span> </span><a href="mailto:app_rpt-users@ohnosec.org" style="color:purple;text-decoration:underline" target="_blank">app_rpt-users@ohnosec.org</a><br>
<b>Subject:</b><span> </span>[App_rpt-users] Registration issues<u></u><u></u></span></div></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><u></u> <u></u></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
My nodes 27365 and 27751 both on same server is showing on the status page but not showing in the rpt_extnodes on other nodes im using standard port 4569. <br clear="all"><br>we have been seeing this with several nodes in our group over past month or so of coarse if we define in the rpt file we can connect but would be nice if it was registering.<u></u><u></u></div>
<div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><u></u> <u></u></div></div><div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
sometimes it may show up in a few hours or a day generally a reboot and its gone again<u></u><u></u></div></div><div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><u></u> <u></u></div>
</div><div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">Thanks for any help in advance<u></u><u></u></div></div><div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<u></u> <u></u></div></div><div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><u></u> <u></u></div></div><div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
73<u></u><u></u></div></div><div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">Randy KB3HJC<u></u><u></u></div></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<br>--<span> </span><br>This message was scanned and is believed to be clean.<span> </span><br><a style="color:purple;text-decoration:underline">Click here to report this message as spam.</a><u></u><u></u></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<br>--<span> </span><br>This message was scanned and is believed to be clean.<span> </span><br><a style="color:purple;text-decoration:underline">Click here to report this message as spam.</a><u></u><u></u></div></div></div>
</div><div class="im">_______________________________________________<br>App_rpt-users mailing list<br><a href="mailto:App_rpt-users@ohnosec.org" style="color:purple;text-decoration:underline" target="_blank">App_rpt-users@ohnosec.org</a><br>
<a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" style="color:purple;text-decoration:underline" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a><br></div></div></blockquote>
</div><br></div><br>_______________________________________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@ohnosec.org">App_rpt-users@ohnosec.org</a><br>
<a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a><br>
<br></blockquote></div><br></div></div>