Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect remote cluster OS via SSH #16

Open
seonghobae opened this issue Jan 14, 2018 · 0 comments
Open

Detect remote cluster OS via SSH #16

seonghobae opened this issue Jan 14, 2018 · 0 comments
Assignees

Comments

@seonghobae
Copy link
Owner

seongho@onmyway:~$ cat /etc/os-release | grep NAME
NAME="Ubuntu"
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
[root@s3 ~]# cat /etc/os-release | grep NAME
NAME="CentOS Linux"
PRETTY_NAME="CentOS Linux 7 (Core)"
CPE_NAME="cpe:/o:centos:centos:7"

Maybe, system('cat /etc/os-release | grep NAME') helps do this.

@seonghobae seonghobae self-assigned this Jan 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant