<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font style="" face="Tahoma">Bob,<br><br> Not exactly sure what your wanting but the following at the linux command prompt will save the stats to a file -<br><br>asterisk -rx "rpt stats 27225" > 27225stats<br><br>cat 27225stats<br><br>************************ NODE 27225 STATISTICS *************************<br><br>Selected system state............................: 0<br>Signal on input..................................: NO<br>System...........................................: ENABLED<br>Parrot Mode......................................: DISABLED<br>Scheduler........................................: ENABLED<br>Tail Time........................................: STANDARD<br>Time out timer...................................: ENABLED<br>Incoming connections.............................: ENABLED<br>Time out timer state.............................: RESET<br>Time outs since system initialization............: 0<br>Identifier state.................................: CLEAN<br>Kerchunks today..................................: 0<br>Kerchunks since system initialization............: 949<br>Keyups today.....................................: 4<br>Keyups since system initialization...............: 15773<br>DTMF commands today..............................: 0<br>DTMF commands since system initialization........: 89<br>Last DTMF command executed.......................: 329971<br>TX time today....................................: 00:01:53.172<br>TX time since system initialization..............: 70:17:18.962<br>Uptime...........................................: 456:34:43<br>Nodes currently connected to us..................: 28190, 29971, 28795<br>Autopatch........................................: ENABLED<br>Autopatch state..................................: DOWN<br>Autopatch called number..........................: N/A<br>Reverse patch/IAXRPT connected...................: DOWN<br>User linking commands............................: ENABLED<br>User functions...................................: ENABLED<br><br>You could make up a script to do this and then email the file somewhere. It could be done periodically by a cron job.<br><br>My lsnodes program also displays this status to a web page -<br><br><a href="http://crompton.com/hamradio/allstar/lsnodes.html" target="_blank">http://crompton.com/hamradio/allstar/lsnodes.html</a><br><br id="FontBreak"></font><b><font style="font-size:16pt;" size="4">73 Doug</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">WA3DSP</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">http://www.crompton.com/hamradio</font></b><font style="font-size:16pt;" size="4"><br></font><br><br><div><hr id="stopSpelling">From: kk6ecm@gmail.com<br>To: app_rpt-users@ohnosec.org<br>Date: Sat, 11 Jan 2014 20:46:26 -0800<br>Subject: [App_rpt-users] app_rpt statistics<br><br>




<style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {
font-size:12.0pt;
font-family:"Times New Roman";
}

.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {
color:blue;
text-decoration:underline;
}

.ExternalClass span.ecxMsoHyperlinkFollowed {
color:blue;
text-decoration:underline;
}

.ExternalClass p {
font-size:12.0pt;
font-family:"Times New Roman";
}

.ExternalClass span.ecxEmailStyle18 {
font-family:Arial;
color:navy;
}

.ExternalClass div.ecxSection1 {
}

--></style>





<div class="ecxSection1">

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">I’m looking for a way to capture and
e-mail repeater useage statistics. In searching through app_rpt.c, I found the
following. </span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;"> </span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">From app_rpt.c</span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">            myrpt->dailytxtime
= 0;</span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">            myrpt->totaltxtime
= 0;</span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">            myrpt->dailykeyups
= 0;</span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">            myrpt->totalkeyups
= 0;</span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">            myrpt->dailykerchunks
= 0;</span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">            myrpt->totalkerchunks
= 0;</span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">            myrpt->dailyexecdcommands
= 0;</span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">            myrpt->totalexecdcommands
= 0;</span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;"> </span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">My next questions is what is the form of
an rpt.conf stanza that could utilize these variables, capturing these
statistics?</span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;"> </span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">Is there a way of saving these statistics
to a log file, or perhaps a way to send by e-mail from the repeater to my
e-mail address? </span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;"> </span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">Thanks,</span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">Bob</span></font></p>

<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">kk6ecm</span></font></p>

</div>




<br>_______________________________________________
App_rpt-users mailing list
App_rpt-users@ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</div>                                     </div></body>
</html>