Skip to content

Add host-info script

Andrew Newdigate requested to merge monitor-changes into master

A tiny script to help provide some visibility into the migration process.

Given a list of hosts, it will tell you the network owner of the resolved ip, the redirect, whether ports 22 and 443 are open etc.

$ bin/hostinfo staging.gitlab.com gstg.gitlab.com
HOST                NETWORK                REV                                       HTTPS  SSH  REDIRECT
staging.gitlab.com  Microsoft Corporation  40.84.60.110                              Yes    Yes  https://staging.gitlab.com/users/sign_in
gstg.gitlab.com     Google LLC             228.123.227.35.bc.googleusercontent.com.  Yes    Yes  -

or

$ bin/hostinfo gitlab.com gprd.gitlab.com
HOST             NETWORK                REV                                       HTTPS  SSH  REDIRECT
gitlab.com       Microsoft Corporation  gitlab.com.                               Yes    Yes  -
gprd.gitlab.com  Google LLC             151.145.231.35.bc.googleusercontent.com.  No     No   -

Merge request reports