Balena Cloud commands

Balena Cloud commands

Here are the current commands I have for Balena Cloud (from Colt). You should always be using the Host OS for all of these commands EXCEPT speedtest-cli. Speedtest-cli command should be used in the video terminal. 

BALENA COMMANDs

MAC Address:
ifconfig eth0

Public IP/WAN
wget http://ipecho.net/plain -O - -q ; echo

Ping a device on the network 
ping -c 3 ip address

Traceroute a device on the network
traceroute ip address

Check for an open port
telnet 192.168.xxx.xxx 64998

IP Network Scanner
is_alive_ping()
{
ping -c 1 -w 1 $1 > /dev/null
[ $? -eq 0 ] && echo $i ,Alive
}

for i in 12.17.18.{1..254}
do
is_alive_ping $i &
done

Check Communication Between Edge & Commander
curl -k https://192.168.31.11/cgi-bin/CGILink?cmd=vAppInfo

BALENA COMMANDS

MAC Address:
ifconfig eth0

Public IP/WAN
wget http://ipecho.net/plain -O - -q ; echo

Ping a device on the network
ping -c 3 10.10.2.200

Traceroute a device on the network
traceroute (ip address)

Check for an open port
telnet 192.168.xxx.xxx 64998

IP Network Scanner
is_alive_ping()
{
  ping -c 1 -w 1 $1 > /dev/null
  [ $? -eq 0 ] && echo $i ,Alive
}

for i in 192.168.0{1..254}
do
is_alive_ping $i &
done

Check Communication Between Edge & Commander

Add IP to an EDGE:

so this first
nmcli con mod "Wired connection 1" +ipv4.addresses "10.1.10.133/24"

Then this

To remove an IP:
nmcli con mod "Wired connection 1" -ipv4.addresses "10.1.10.133/24"

Then this:
nmcli con up "Wired connection 1" && reboot

nmcli device wifi list
nmcli device wifi connect 'INVICTA-DEV' password 'Storeswifi3306*'
nmcli g status
nmcli con up 'WIFI SSID'

Lists the available wifi networks. You should see the one provided by the client.
Connects the pi to that wifi network as a secondary network.
Confirms connectivity status.

Changing Edge IP:

nmcli con mod "Wired connection 1" ipv4.method manual ipv4.addresses '10.96.10.60/24'

nmcli con mod "Wired connection 1" ipv4.gateway '10.96.10.1'

nmcli con mod "Wired connection 1" ipv4.dns '8.8.8.8'

nmcli con mod "Wired connection 1" ipv4.method manual

nmcli con up "Wired connection 1" && reboot

ffprobe rtsp://admin:Woodfin8178@10.10.37.125:554/chID=1&streamType=sub

ffmpeg -hide_banner -rtsp_transport tcp -i {rtsp_url} -vcodec copy -an -f flv - > /dev/null