Manually update hosts

General support for the Pi-Star System
Post Reply
N6VL
Posts: 22
Joined: Mon Sep 10, 2018 3:52 am

Manually update hosts

Post by N6VL »

Somewhere in the past few days I found a terminal command to update the hosts without running the full update. But I didn't put it in my notes. I'm fairly certain it was in this forum or perhaps the group on Facebook.

de Steve N6VL
KN2TOD
Posts: 313
Joined: Sun Nov 11, 2018 6:36 pm

Re: Manually update hosts

Post by KN2TOD »

Code: Select all

rpi-rw; sudo bash /usr/local/sbin/HostFilesUpdate.sh
SV1SSL
Posts: 2
Joined: Fri Sep 27, 2024 3:11 pm

Re: Manually update hosts

Post by SV1SSL »

from last update hostfile
missing BM_Greece_2021 2021 81.4.104.120 p2ssw1rd 62031
KN2TOD
Posts: 313
Joined: Sun Nov 11, 2018 6:36 pm

Re: Manually update hosts

Post by KN2TOD »

I do not know how the host files are derived. My assumptions is that they are sourced from Brandmeister and thus this is a question better answered by them.

But the more important question is why is it missing from BM's inventory: is this a new master and thus an oversight on their part? Or is the 2021 master currently under test, provisional or embargoed for some reason? Or are there problems with their internal update processes? Or hosting problems, perhaps?

In the meantime, you can set your system to automatically append your needed entry to the regular, nightly host file by adding a line to the DMR_Hosts.txt addendum file in the \root directory:

Code: Select all

rpi-rw
sudo sed -i '$a BM_2021_Greece\t\t\t2021\t2021.master.brandmeister.network\tp2ssw1rd\t62031' /root/DMR_Hosts.txt
sudo cat /root/DMR_Hosts.txt  # to view the results
Note: I would specify the general hostname name in the entry rather than a specific IP address, as that address can change over time for various reasons.

----

FWIW: while 2021 can be ping'ed, it does not appear to be functional:

Code: Select all

═$:  ping 2021.master.brandmeister.network
PING 2021.master.brandmeister.network (81.4.104.120) 56(84) bytes of data.
64 bytes from dmr.dv4gr.eu (81.4.104.120): icmp_seq=1 ttl=50 time=111 ms
64 bytes from dmr.dv4gr.eu (81.4.104.120): icmp_seq=2 ttl=50 time=110 ms
64 bytes from dmr.dv4gr.eu (81.4.104.120): icmp_seq=3 ttl=50 time=109 ms
64 bytes from dmr.dv4gr.eu (81.4.104.120): icmp_seq=4 ttl=50 time=108 ms

--- 2021.master.brandmeister.network ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 108.183/109.452/110.645/1.116 ms

              :
I: 2024-10-27 19:22:52.667 DMR Network Parameters
I: 2024-10-27 19:22:52.667     Type: Direct
I: 2024-10-27 19:22:52.667     Remote Address: 2021.master.brandmeister.network
I: 2024-10-27 19:22:52.667     Remote Port: 62031
I: 2024-10-27 19:22:52.667     Local Address: 
I: 2024-10-27 19:22:52.667     Local Port: 0
I: 2024-10-27 19:22:52.667     Jitter: 700ms
I: 2024-10-27 19:22:52.667     Slot 1: enabled
I: 2024-10-27 19:22:52.667     Slot 2: enabled
I: 2024-10-27 19:22:52.667     Mode Hang: 10s
I: 2024-10-27 19:22:52.682 Info Parameters
             :
I: 2024-10-27 19:22:53.511 Interfaces Info
I: 2024-10-27 19:22:53.511     IPv4: lo:127.0.0.1
I: 2024-10-27 19:22:53.511     IPv4: eth0:192.168.1.124
I: 2024-10-27 19:22:53.511     Default interface is : eth0
I: 2024-10-27 19:22:53.511     IP to show: eth0:192.168.1.124
I: 2024-10-27 19:22:53.623 MMDVMHost-20240210_PS4 is running
E: 2024-10-27 19:23:03.736 DMR, Login to the master has failed, retrying network ...
M: 2024-10-27 19:23:03.736 DMR, Opening DMR Network
User avatar
MW0MWZ
Site Admin
Posts: 1506
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: Manually update hosts

Post by MW0MWZ »

KN2TOD wrote: Sun Oct 27, 2024 9:35 am I do not know how the host files are derived. My assumptions is that they are sourced from Brandmeister and thus this is a question better answered by them.
Quite so, the BM hosts come from the BM API.
Andy

73 de MW0MWZ
http://pistar.uk
Post Reply