mirror of
https://gitlab.com/manzerbredes/paper-lowrate-iot.git
synced 2025-05-06 11:43:57 +00:00
Add analysis script
This commit is contained in:
parent
1ab4a6a97a
commit
7c9410246f
23 changed files with 171289 additions and 4 deletions
2
g5k/recordEnergy.sh
Normal file → Executable file
2
g5k/recordEnergy.sh
Normal file → Executable file
|
@ -9,7 +9,7 @@ nodeName="$2"
|
|||
outputFile="$5"
|
||||
wattmeter=$(curl -s https://api.grid5000.fr/stable/sites/lyon/clusters/${clusterName}/nodes/${nodeName}.json | jq -r '.sensors.power.via.pdu[0].uid')
|
||||
port=$(curl -s https://api.grid5000.fr/stable/sites/lyon/pdus/${wattmeter}.json | jq -r '.ports|to_entries|map(select(.value=="'${nodeName}'"))[0].key')
|
||||
energyEntry=$(( 5 + port) # Define the entry in the CSV that correspond to the correct energy value
|
||||
energyEntry=$(( 5 + port )) # Define the entry in the CSV that correspond to the correct energy value
|
||||
|
||||
if [ -z $wattmeter ] || [ -z $port ]
|
||||
then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue