- Send network information to a remote server or file
- Show local network information
# Show local network information
netinfo show
## Show send preload
netinfo show -p
# Send local network information to a file
netinfo send file -filepath="./home.json"
## Send local network information to a file and encrypt the file
netinfo send file -filepath="./home.json" -encryption_key="admin123"
## Loop sending local network information to a file and encrypt the file
netinfo send file -filepath="./home.json" -encryption_key="admin123" -interval="5m"
# Send local network information to s3 server
netinfo send s3 -endpoint="https://s3.amazonaws.com" -access_key_id="admin" -secret_access_key="adminadmin" -bucket="storage" -object_path="home.json"
## Send local network information to minio s3 server
netinfo send s3 -endpoint="http://192.168.1.185:9000" -path_style -access_key_id="admin" -secret_access_key="adminadmin" -bucket="storage" -object_path="home.json"
## Send local network information to minio s3 server and encrypt the file
netinfo send s3 -endpoint="http://192.168.1.185:9000" -path_style -access_key_id="admin" -secret_access_key="adminadmin" -bucket="storage" -object_path="home.json" -encryption_key="admin123"
## Loop Send local network information to minio s3 server and encrypt the file
netinfo send s3 -endpoint="http://192.168.1.185:9000" -path_style -access_key_id="admin" -secret_access_key="adminadmin" -bucket="storage" -object_path="home.json" -encryption_key="admin123" -interval="5m"
# Send local network information to webdav server
netinfo send webdav -endpoint="http://192.168.1.2/" -filepath="/dav/home.json"
## Send local network information to webdav server and encrypt the file
netinfo send webdav -endpoint="http://192.168.1.2/" -filepath="/dav/home.json" -encryption_key="admin123"
## Loop Send local network information to webdav server and encrypt the file
netinfo send webdav -endpoint="http://192.168.1.2/" -filepath="/dav/home.json" -encryption_key="admin123" -interval="5m"# system is linux(debian,redhat linux,ubuntu,fedora...) and arch is amd64
curl -Lo /usr/local/bin/netinfo https://github.com/unix755/netinfo/releases/latest/download/netinfo-linux-amd64
chmod +x /usr/local/bin/netinfo
# system is freebsd and arch is amd64
curl -Lo /usr/local/bin/netinfo https://github.com/unix755/netinfo/releases/latest/download/netinfo-freebsd-amd64
chmod +x /usr/local/bin/netinfocurl -Lo "/etc/systemd/system/netinfo.service" "https://github.com/unix755/netinfo/raw/main/configs/systemd/netinfo_sender_webdav.service"
systemctl enable netinfo.service && systemctl restart netinfo.service && systemctl status netinfo.service
curl -Lo "/etc/systemd/system/netinfo.timer" "https://github.com/unix755/netinfo/raw/main/configs/systemd/netinfo_sender.timer"
systemctl enable netinfo.timer && systemctl restart netinfo.timer && systemctl status netinfo.timercurl -Lo "/etc/init.d/netinfo" "https://github.com/unix755/netinfo/raw/main/configs/openrc/netinfo_sender_webdav"
chmod +x /etc/init.d/netinfo
rc-update add netinfo && rc-service netinfo restart && rc-service netinfo statusmkdir /usr/local/etc/rc.d/
curl -Lo "/usr/local/etc/rc.d/netinfo" "https://github.com/unix755/netinfo/raw/main/configs/rc.d/netinfo_sender_webdav"
chmod +x /usr/local/etc/rc.d/netinfo
service netinfo enable && service netinfo restart && service netinfo statuscurl -Lo "/etc/init.d/netinfo" "https://github.com/unix755/netinfo/raw/main/configs/init.d/netinfo_sender_webdav"
chmod +x /etc/init.d/netinfo
service netinfo enable && service netinfo restart && service netinfo statusgit clone https://github.com/unix755/netinfo.git
cd netinfo
export CGO_ENABLED=0
go build -v -trimpath -ldflags "-s -w"git clone https://github.com/unix755/netinfo.git
cd netinfo
export GOOS=linux
export GOARCH=mipsle
export GOMIPS=softfloat
export CGO_ENABLED=0
go build -v -trimpath -ldflags "-s -w"- GPL-3.0 License
- See
LICENSEfor details