Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I check what OS my servers are running?

share|improve this question

closed as too broad by kasperd, Khaled, peterh, Andrew Schulman, Ward Jul 5 '15 at 3:59

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

By reading the documentation you made when setting them up. – Lucas Kauffman Jul 23 '12 at 21:21
That depends on what OS your server is running. – kasperd Jul 4 '15 at 7:36
If you are ssh-ing on them, it is some unix. An uname -a command says what you want. If you are rdesktopping on it, it is a windows, so win/E, right click on "My Computer", and... – peterh Jul 4 '15 at 15:47
up vote 6 down vote accepted

On Windows servers, you can have some info with the "srvinfo" command

On linux, try "uname -ra"

share|improve this answer
or "lsb_release -a" on Linux, too. – weeheavy Jan 12 '11 at 13:44
msinfo32 works on just about every version of Windows for the last decade; the uname command works on almost all *nix platforms. – Chris S Jan 12 '11 at 13:46
On Linux cat /etc/issue will give you more details about the distribution. There are also some special files: SUSE: /etc/SuSE-release, RedHat: /etc/redhat-release. – Christian Jan 12 '11 at 14:13
cool - did not know about srvinfo – August Jan 12 '11 at 15:00
Srv info is also useful for getting the server's uptime by the way – Florent Courtay Jan 12 '11 at 15:40

Not the answer you're looking for? Browse other questions tagged or ask your own question.