update Cerbo and Venus quick update script
This commit is contained in:
parent
c37880a3b0
commit
324e6f7688
|
@ -1,52 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
username='root'
|
|
||||||
root_password='salidomo'
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
|
|
||||||
echo -e "\n============================ Deploy ============================\n"
|
|
||||||
#10.2.2.36 and 10.2.4.96 are Cerbo with fork usb0
|
|
||||||
ip_addresses_usb0=("10.2.2.118" "10.2.4.155" "10.2.3.244" "10.2.4.127")
|
|
||||||
ip_addresses_usb1=("10.2.0.179" "10.2.1.241" )
|
|
||||||
|
|
||||||
|
|
||||||
for ip_address in "${ip_addresses_usb0[@]}"; do
|
|
||||||
|
|
||||||
ssh "$username"@"$ip_address" "cd /opt/victronenergy/serial-starter && echo '$root_password' | ./stop-tty.sh ttyUSB0"
|
|
||||||
|
|
||||||
# scp "dbus-fzsonick-48tl.py" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
|
||||||
# scp "dbus-fzsonick-48tl.py" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
|
||||||
# scp "aggregator.py" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
|
||||||
# scp "aggregator.py" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
|
||||||
scp "start.sh" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
|
||||||
scp "start.sh" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
|
||||||
|
|
||||||
ssh "$username"@"$ip_address" "cd /opt/victronenergy/serial-starter && echo '$root_password' | ./start-tty.sh ttyUSB0"
|
|
||||||
|
|
||||||
|
|
||||||
echo "Deployed and ran commands on $ip_address"
|
|
||||||
done
|
|
||||||
|
|
||||||
for ip_address in "${ip_addresses_usb1[@]}"; do
|
|
||||||
|
|
||||||
ssh "$username"@"$ip_address" "cd /opt/victronenergy/serial-starter && echo '$root_password' | ./stop-tty.sh ttyUSB1"
|
|
||||||
|
|
||||||
# scp "dbus-fzsonick-48tl.py" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
|
||||||
# scp "dbus-fzsonick-48tl.py" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
|
||||||
# scp "aggregator.py" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
|
||||||
# scp "aggregator.py" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
|
||||||
scp "start.sh" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
|
||||||
scp "start.sh" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
|
||||||
|
|
||||||
ssh "$username"@"$ip_address" "cd /opt/victronenergy/serial-starter && echo '$root_password' | ./start-tty.sh ttyUSB1"
|
|
||||||
|
|
||||||
|
|
||||||
echo "Deployed and ran commands on $ip_address"
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
username='root'
|
||||||
|
root_password='salidomo'
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
battery_file_path="./CerboReleaseFiles/dbus-fzsonick-48tl"
|
||||||
|
echo -e "\n============================ Deploy ============================\n"
|
||||||
|
# Berger 10.2.2.36 and Polycom 10.2.4.96 are Cerbo with fork usb0
|
||||||
|
# ip_addresses_usb0=("10.2.2.118" "10.2.4.155" "10.2.3.244" "10.2.4.127" "10.2.2.36" "10.2.4.96")
|
||||||
|
ip_addresses_usb0=("10.2.2.118" "10.2.4.155" "10.2.3.244" "10.2.4.127")
|
||||||
|
ip_addresses_usb1=("10.2.0.179" "10.2.1.241" )
|
||||||
|
|
||||||
|
|
||||||
|
for ip_address in "${ip_addresses_usb0[@]}"; do
|
||||||
|
|
||||||
|
ssh "$username"@"$ip_address" "cd /opt/victronenergy/serial-starter && echo '$root_password' | ./stop-tty.sh ttyUSB0"
|
||||||
|
|
||||||
|
scp "${battery_file_path}/start.sh" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
||||||
|
scp "${battery_file_path}/start.sh" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
||||||
|
|
||||||
|
ssh "$username"@"$ip_address" "cd /opt/victronenergy/serial-starter && echo '$root_password' | ./start-tty.sh ttyUSB0"
|
||||||
|
|
||||||
|
|
||||||
|
echo "Deployed and ran commands on $ip_address"
|
||||||
|
done
|
||||||
|
|
||||||
|
for ip_address in "${ip_addresses_usb1[@]}"; do
|
||||||
|
|
||||||
|
ssh "$username"@"$ip_address" "cd /opt/victronenergy/serial-starter && echo '$root_password' | ./stop-tty.sh ttyUSB1"
|
||||||
|
|
||||||
|
scp "${battery_file_path}/start.sh" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
||||||
|
scp "${battery_file_path}/start.sh" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
||||||
|
|
||||||
|
ssh "$username"@"$ip_address" "cd /opt/victronenergy/serial-starter && echo '$root_password' | ./start-tty.sh ttyUSB1"
|
||||||
|
|
||||||
|
|
||||||
|
echo "Deployed and ran commands on $ip_address"
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,60 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
username='root'
|
|
||||||
root_password='salidomo'
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
|
|
||||||
echo -e "\n============================ Deploy ============================\n"
|
|
||||||
#10.2.2.36 and 10.2.4.96 are Cerbo with fork usb0
|
|
||||||
ip_addresses_usb0=("10.2.0.155" "10.2.1.97" "10.2.0.104" "10.2.1.159" "10.2.0.224" "10.2.0.209" "10.2.0.227" "10.2.2.36" "10.2.4.96")
|
|
||||||
ip_addresses_usb1=("10.2.1.35")
|
|
||||||
|
|
||||||
|
|
||||||
for ip_address in "${ip_addresses_usb0[@]}"; do
|
|
||||||
|
|
||||||
ssh "$username"@"$ip_address" "cd /opt/victronenergy/serial-starter && echo '$root_password' | ./stop-tty.sh ttyUSB0"
|
|
||||||
|
|
||||||
# scp "dbus-fzsonick-48tl.py" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
|
||||||
# scp "dbus-fzsonick-48tl.py" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
|
||||||
# scp "aggregator.py" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
|
||||||
# scp "aggregator.py" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
|
||||||
scp "start.sh" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
|
||||||
scp "start.sh" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
|
||||||
# scp "signals.py" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
|
||||||
# scp "signals.py" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
|
||||||
# scp "service/run" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/service"
|
|
||||||
# scp "service/run" "root@"$ip_address":/data/dbus-fzsonick-48tl/service"
|
|
||||||
|
|
||||||
ssh "$username"@"$ip_address" "cd /opt/victronenergy/serial-starter && echo '$root_password' | ./start-tty.sh ttyUSB0"
|
|
||||||
|
|
||||||
|
|
||||||
echo "Deployed and ran commands on $ip_address"
|
|
||||||
done
|
|
||||||
|
|
||||||
for ip_address in "${ip_addresses_usb1[@]}"; do
|
|
||||||
|
|
||||||
ssh "$username"@"$ip_address" "cd /opt/victronenergy/serial-starter && echo '$root_password' | ./stop-tty.sh ttyUSB1"
|
|
||||||
|
|
||||||
# scp "dbus-fzsonick-48tl.py" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
|
||||||
# scp "dbus-fzsonick-48tl.py" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
|
||||||
# scp "aggregator.py" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
|
||||||
# scp "aggregator.py" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
|
||||||
scp "start.sh" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
|
||||||
scp "start.sh" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
|
||||||
# scp "signals.py" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
|
||||||
# scp "signals.py" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
|
||||||
# scp "service/run" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/service"
|
|
||||||
# scp "service/run" "root@"$ip_address":/data/dbus-fzsonick-48tl/service"
|
|
||||||
|
|
||||||
ssh "$username"@"$ip_address" "cd /opt/victronenergy/serial-starter && echo '$root_password' | ./start-tty.sh ttyUSB1"
|
|
||||||
|
|
||||||
|
|
||||||
echo "Deployed and ran commands on $ip_address"
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,56 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
username='root'
|
||||||
|
root_password='salidomo'
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
battery_file_path="./VenusReleaseFiles/dbus-fzsonick-48tl"
|
||||||
|
venus_release_file_path="./VenusReleaseFiles"
|
||||||
|
echo -e "\n============================ Deploy ============================\n"
|
||||||
|
# Berger 10.2.2.36 and Polycom 10.2.4.96 are Cerbo with fork usb0
|
||||||
|
# Grundmann 10.2.0.155 failed with ssh"
|
||||||
|
# Wiest 10.2.0.209 failed with ssh"
|
||||||
|
# Buecheler 10.2.0.224 failed with ssh"
|
||||||
|
# ip_addresses_usb0=("10.2.1.97" "10.2.0.104" "10.2.1.159" "10.2.0.227" "10.2.2.36" "10.2.4.96" "10.2.0.224" "10.2.0.155" "10.2.0.209")
|
||||||
|
ip_addresses_usb0=("10.2.1.97" "10.2.0.104" "10.2.1.159" "10.2.0.227" "10.2.2.36" "10.2.4.96")
|
||||||
|
ip_addresses_usb1=("10.2.1.35")
|
||||||
|
|
||||||
|
|
||||||
|
for ip_address in "${ip_addresses_usb0[@]}"; do
|
||||||
|
|
||||||
|
ssh "$username"@"$ip_address" "cd /opt/victronenergy/serial-starter && echo '$root_password' | ./stop-tty.sh ttyUSB0"
|
||||||
|
|
||||||
|
# scp "${battery_file_path}/start.sh" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
||||||
|
# scp "${battery_file_path}/start.sh" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
||||||
|
scp "${venus_release_file_path}/rc.local" "root@"$ip_address":/data/"
|
||||||
|
scp "${venus_release_file_path}/PageChargingStrategy.qml" "root@"$ip_address":/opt/victronenergy/gui/qml"
|
||||||
|
scp "${venus_release_file_path}/PageChargingStrategy.qml" "root@"$ip_address":/data/"
|
||||||
|
|
||||||
|
ssh "$username"@"$ip_address" "cd /opt/victronenergy/serial-starter && echo '$root_password' | ./start-tty.sh ttyUSB0"
|
||||||
|
|
||||||
|
|
||||||
|
echo "Deployed and ran commands on $ip_address"
|
||||||
|
done
|
||||||
|
|
||||||
|
for ip_address in "${ip_addresses_usb1[@]}"; do
|
||||||
|
|
||||||
|
ssh "$username"@"$ip_address" "cd /opt/victronenergy/serial-starter && echo '$root_password' | ./stop-tty.sh ttyUSB1"
|
||||||
|
|
||||||
|
# scp "${battery_file_path}/start.sh" "root@"$ip_address":/opt/victronenergy/dbus-fzsonick-48tl/"
|
||||||
|
# scp "${battery_file_path}/start.sh" "root@"$ip_address":/data/dbus-fzsonick-48tl/"
|
||||||
|
scp "${venus_release_file_path}/rc.local" "root@"$ip_address":/data/"
|
||||||
|
scp "${venus_release_file_path}/PageChargingStrategy.qml" "root@"$ip_address":/opt/victronenergy/gui/qml"
|
||||||
|
scp "${venus_release_file_path}/PageChargingStrategy.qml" "root@"$ip_address":/data/"
|
||||||
|
|
||||||
|
|
||||||
|
ssh "$username"@"$ip_address" "cd /opt/victronenergy/serial-starter && echo '$root_password' | ./start-tty.sh ttyUSB1"
|
||||||
|
|
||||||
|
|
||||||
|
echo "Deployed and ran commands on $ip_address"
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue