BALENA COMMANDS
MAC Address:
ifconfig eth0
Public IP/WAN
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
ffmpeg -hide_banner -rtsp_transport tcp -i {rtsp_url} -vcodec copy -an -f flv - > /dev/null