This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

How to read system infos
#1
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.
Reply
#2
Use this:
Code:
require('ifinfo')
ip = ifinfo().eth0.inetaddr
mac = io.readfile('/sys/class/net/eth0/address'):trim()
log(ip, mac)
Reply
#3
Thank's Admin !
Reply
#4
maybe this is also something you are looking for?

https://forum.logicmachine.net/showthrea...8#pid14638
Reply
#5
(12.08.2022, 16:42)Dré Wrote: maybe this is also something you are looking for?

https://forum.logicmachine.net/showthrea...8#pid14638

Very intersesting ! Thank's Dré.
Reply


Forum Jump: