views:

31

answers:

1

hi,

i need to find out what are the details of the processor the server has. i need to know which kind of processor, type of OS, RAM etc. i've got a reply from one webhosting company: "This is a shared hosting server, it is a dual processor (quad core xeon 2.8) 16Gb ram, mirrored 300GB SAS15k drives"

how can i get those details on other servers without the webhosting company telling me?

thanks, yishai

+2  A: 

You need SSH access. If it's paid hosting, then most probably they will give you SSH access. From there, you can input these commands:

OS: uname -arv

CPU: cat /proc/cpuinfo

MEMORY: cat /proc/meminfo

HDD: df

Take NOTE that this only works for UNIX type OS.

EDIT: For ASP.NET

Just like phpinfo(); in PHP.

<html>
    <head>
        <title></title>
    </head>
    <body>
   @ServerInfo.GetHtml()
    </body>
</html>
Ruel
Almost all of this information can be gotten at without SSH access from most servers that allow you to run arbitrary scripts in any sufficiently powerful language.
Wooble
thanks for the answer, sorry, it was a very good answer until i reached the last sentence :), i am using asp.net (time to edit the tags) is there a possible way to do so with asp.net? thanks
yishai
hi wooble, which script do i need to run to get this information? how can i use the script in my website? thanks
yishai
Hi, sorry about that, I've edited my answer.
Ruel
thanks, where do i use this code? in the web.config?
yishai
create a new file in your web root directory, and open it in your browser.
Ruel
hi, i've created a file in the root dir called spec.htm and enter the content you offered but i only get the code in my browser and it doesn't run it.
yishai