Template:Networking rut2 9 modbus custom register block: Difference between revisions
Template:Networking rut2 9 modbus custom register block (view source)
Revision as of 10:52, 29 September 2020
, 29 September 2020no edit summary
No edit summary |
No edit summary |
||
Line 28: | Line 28: | ||
|RUTX10= | |RUTX10= | ||
<pre> | <pre> | ||
#!/bin/ash | #!/bin/ash | ||
while true | while true | ||
do | do | ||
date > /tmp/regfile #where data will be stored | date > /tmp/regfile #where data will be stored | ||
df {{!}} awk 'NR==3 {print $3}' >> /tmp/regfile | df {{!}} awk 'NR==3 {print $3}' >> /tmp/regfile | ||
df {{!}} awk 'NR==4 {print $3}' >> /tmp/regfile | df {{!}} awk 'NR==4 {print $3}' >> /tmp/regfile | ||
sleep 5 | sleep 5 | ||
done | done | ||
</pre> | </pre> | ||
|RUTX08= | |RUTX08= | ||
<pre> | <pre> | ||
#!/bin/ash | #!/bin/ash | ||
while true | while true | ||
do | do | ||
date > /tmp/regfile #where data will be stored | date > /tmp/regfile #where data will be stored | ||
df {{!}} awk 'NR==3 {print $3}' >> /tmp/regfile | df {{!}} awk 'NR==3 {print $3}' >> /tmp/regfile | ||
df {{!}} awk 'NR==4 {print $3}' >> /tmp/regfile | df {{!}} awk 'NR==4 {print $3}' >> /tmp/regfile | ||
sleep 5 | sleep 5 | ||
done | done | ||
</pre> | </pre> | ||
| | | | ||
Line 76: | Line 76: | ||
{{#switch:{{{name}}} | {{#switch:{{{name}}} | ||
|RUTX10= | |RUTX10= | ||
<pre> | |||
Wed Jun 17 15:11:29 EEST 2020 | |||
69 | |||
27 | |||
</pre> | |||
|RUTX08= | |RUTX08= | ||
<pre> | |||
Wed Jun 17 15:11:29 EEST 2020 | |||
69 | |||
27 | |||
</pre> | |||
| | | | ||
<pre> | |||
Wed Jun 17 15:11:29 EEST 2020 | |||
-69 | |||
27 | |||
</pre> | |||
}} | }} | ||