Last active
October 30, 2018 22:51
-
-
Save piotch/86a31c9a0ce678d10f325b66a619a231 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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