Usage : sysnet [OPTIONS]
-s, --system print system informations
-n, --network print network informations
-a, --all print all informations
-v, --version print version
Sysnet is a tool which recover system & network informations. This tool supports Linux, OS X Windows & iOS
If you run sysnet with -s
argument it prints some system informations about your processor and your operating system.
User : mathieu
Operating System : Linux
version : 3.16.0-4-686-pae
architecture : i686
Disk usage of / : 3352797184
Free space in / : 2452209664
Total : 1510039552
To recover network informations such as IPv6 address or all interfaces on a machine, I used an awesome library : ifaddrs.h
.
Specialy a function called getifaddrs
that creates a linked list of structures describing the network interfaces of the local system.
Instead of ifconfig
, you don't have to run sysnet as root on Debian.
hostname: debian-dev
lo
address: 127.0.0.1
netmask: 255.0.0.0
eth0
address: 192.168.72.140
netmask: 255.255.255.0
IPv6 lo
address: ::1
IPv6 eth0
address: fe80::20c:29ff:fe08:74f8%eth0
Here is a demo of sysnet running on GNU/Linux Debian 8.5.
- Linux
- macOS
- Windows
- iOS 9
The TODO list is here
I wrote a Makefile to build sysnet run make
& sudo make install
to build and install
Make sure you have GCC installed
By default, the install directory is /usr/bin/
, you can change it by modifying INSTALL_DIR
variable in the Makefile
Tool developed by @matteyeux