Timeline for How can I reliably get the operating system's name?
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 18, 2016 at 18:53 | comment | added | Parthian Shot |
it also prints the kernel version which is really the only thing you need But... that's the whole point of this question. If that was really all you needed, you could just use uname -a. The kernel is an important part of an operating system, but it's not the entire operating system. Filesystem layout and userland utilities (e.g. package manager) matter.
|
|
| Nov 13, 2014 at 16:51 | history | edited | xpros | CC BY-SA 3.0 |
added 34 characters in body
|
| Nov 13, 2014 at 16:44 | history | edited | xpros | CC BY-SA 3.0 |
added 26 characters in body
|
| Nov 13, 2014 at 16:42 | comment | added | terdon♦ |
Sounds good but could you please edit your answer and explain where we can find it. It's not int he Debian repos for example. Also, please explain what it gives that uname -a doesn't and how it can tell me the name of the distribution which is what this question is about. Anyway, even assuming it can return this info, seeing as it's a non-standard utility and needs to be installed, I'm not sure it would be useful here. The idea is to log on to a remote system and find out the OS (including distribution if it's Linux).
|
|
| Nov 13, 2014 at 16:35 | history | edited | xpros | CC BY-SA 3.0 |
added 74 characters in body
|
| Nov 13, 2014 at 16:30 | comment | added | xpros | snmpwalk is a Linux command line utility. It doesn't just print "Linux" it also prints the kernel version which is really the only thing you need. If SNMP is configured on your other hosts, whether it is UNIX, BSD, OSX, snmpwalk will work as it is a standard (v1|v2c|v3), and it will even work across the water on Windows hosts as well. See also snmpget or snmpgetnext. | |
| Nov 13, 2014 at 14:52 | comment | added | terdon♦ |
What's snpwalk? Where can I find it? Also, that just prints "Linux", no distribution information (which is what I want, uname can give me Linux). Does it work on non-Linux OSs? On UNIX say, or BSD or OSX?
|
|
| Nov 13, 2014 at 14:34 | history | answered | xpros | CC BY-SA 3.0 |