Skip to content

Instantly share code, notes, and snippets.

@piotch piotch/on_prem_test.sh
Last active Oct 30, 2018

Embed
What would you like to do?
#!/bin/bash
# execute on target machine
# send the result to onpremise-support@toucantoco.com
echo
echo "-- system"
cat /etc/os-release
echo
echo "-- env"
env
echo
echo "-- python"
python --version
echo
echo "-- sudoer"
sudo -l
## TODO utiliser os-release pour choisir quel package on check
echo
echo "-- dpkg"
sudo apt-get check
echo
echo "-- yum"
sudo yum check
echo
echo "-- network"
function n {
nmap -p 80,443 "$1";
}
n get-package.toucantoco.com
n galaxy.ansible.com
n pypi.org
n pypi.python.org
n www.python.org
n files.pythonhosted.org
n repo.mongodb.org
n www.mongodb.org
n deb.nodesource.com # (for Debian OS family only)
n rpm.nodesource.com # (for RedHat OS family only)
n github.com
n codeload.github.com
n raw.githubusercontent.com
n keyserver.ubuntu.com # (for Debian OS family only)
n registry.npmjs.com
n registry.npmjs.org
n nodesecurity.io
n s3.amazonaws.com
n bower.herokuapp.com
n registry.yarnpkg.com
n nodejs.org
n storage.googleapis.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.