Logic Machine Forum
How to read system infos - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: How to read system infos (/showthread.php?tid=4188)



How to read system infos - SigmaTec - 12.08.2022

Hi all,

is there any way to read system informations of LM himself, as 
- @IP
- MAC address
and so on

Have a good end of week.


RE: How to read system infos - admin - 12.08.2022

Use this:
Code:
require('ifinfo')
ip = ifinfo().eth0.inetaddr
mac = io.readfile('/sys/class/net/eth0/address'):trim()
log(ip, mac)



RE: How to read system infos - SigmaTec - 12.08.2022

Thank's Admin !


RE: How to read system infos - Dré - 12.08.2022

maybe this is also something you are looking for?

https://forum.logicmachine.net/showthread.php?tid=2304&pid=14638#pid14638


RE: How to read system infos - SigmaTec - 14.08.2022

(12.08.2022, 16:42)Dré Wrote: maybe this is also something you are looking for?

https://forum.logicmachine.net/showthread.php?tid=2304&pid=14638#pid14638

Very intersesting ! Thank's Dré.