[arm-allstar] BBB and Private Node

Doug Crompton doug at crompton.com
Fri Aug 1 08:18:31 EST 2014


Ron,

ls -ls /var/log/asterisk/astdb.txt

140 -rw-r--r-- 1 root root 141907 Aug  1 03:03 /var/log/asterisk/astdb.txt

73 Doug
WA3DSP
http://www.crompton.com/hamradio


Date: Fri, 1 Aug 2014 07:31:58 -0400
From: rwenig at verizon.net
To: arm-allstar at hamvoip.org
Subject: Re: [arm-allstar] BBB and Private Node


  
    
  
  
    Doug,

    

    Just for curiosity sake, I ran the stat command on astdb.txt and the
    last change was 6/26.  This is the date I created the node.  Is
    there a better way to check when it is being updated.

    

    73, Ron NY3J  

    

    [root at ny3j local]# stat astdb.txt

      File: âastdb.txtâ

      Size: 120871          Blocks: 240        IO Block: 4096   regular
    file

    Device: b302h/45826d    Inode: 3390        Links: 1

    Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/   
    root)

    Access: 2014-08-01 07:04:06.329608350 -0400

    Modify: 2013-12-24 10:51:06.000000000 -0500

    Change: 2014-06-26 23:01:02.615384162 -0400

     Birth: -

    [root at ny3j local]#

    

    On 8/1/2014 2:15 AM, Doug Crompton
      wrote:

    
    
      
      That is correct. The
          cron entry is -

          

          03 03 * * * cd /etc/asterisk/local; ./astdb.php

          

          and the astdb.php file snipet -

          

          // Save the data

          $db = "/var/log/asterisk/astdb.txt";

          if (! $fh = fopen($db, 'w')) {

              die("Cannot open $db.");

          }

          

          

          It is stored there because it is a temp file system. It does
          not write to the SD card. lsnodes reads the file from there.
        

        I recommend that you randomly
            change the time on the cron entry so the database doesn't
            get hammered by everyone at the same time!

        

        73 Doug

          WA3DSP

          http://www.crompton.com/hamradio

        

        

        
          From: malgood at gmail.com

          To: w6reb at hammradio.us; arm-allstar at hamvoip.org

          Date: Fri, 1 Aug 2014 11:39:34 +0800

          Subject: Re: [arm-allstar] BBB and Private Node

          

          
          
          
            Hi
             
            Check
                  the file located in /var/log/asterisk 
                  I think that this is the actual file that is updated
                  and used.
             
            Mal
            VK6MT
             
            
              
                    
                  
              From:
                    arm-allstar-bounces at hamvoip.org
                    [mailto:arm-allstar-bounces at hamvoip.org] On Behalf Of w6reb

                    Sent:
                    Friday, 1 August 2014 11:27
                    AM

                    To:
                    arm-allstar at hamvoip.org

                    Subject:
                    Re: [arm-allstar] BBB and
                    Private Node
            
             
            
              
                                    
I’ve
                      been watching the   etc/asterisk/local/astdb.txt  
                      for
                      about a week now. I haven’t seen it Update once.
                      Cron seems OK. Permissions
                      seems right. But what’s more puzzling is the fact
                      I can’t even force an Update.
                      I’ve got two BBB doing the same thing. Obviously
                      it operator error some place.
              
            
          
          

          _______________________________________________
          arm-allstar mailing list
          arm-allstar at hamvoip.org
          http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
          Visit the BBB web page -
          http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/
      
      

      
      

      _______________________________________________

arm-allstar mailing list
arm-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar

Visit the BBB web page - http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/

    
    

  


_______________________________________________

arm-allstar mailing list
arm-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar

Visit the BBB web page - http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/ 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20140801/85e961a0/attachment.html>


More information about the arm-allstar mailing list