Skip to content

Instantly share code, notes, and snippets.

@bpmct
Last active June 24, 2019 18:52
Show Gist options
  • Save bpmct/106e35a85db23c936b81d7292d7c7e98 to your computer and use it in GitHub Desktop.
Save bpmct/106e35a85db23c936b81d7292d7c7e98 to your computer and use it in GitHub Desktop.
Raspberry Pi Report
#!/bin/bash
GROUP=""
URL=""
IPADDRESS=$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')
HOSTNAME=$(hostname)
curl ${URL}ping.php?hostname=${HOSTNAME}&ip=${IPADDRESS}8&group=${GROUP}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment