Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Easy One

Author  Topic 

scottpt
Posting Yak Master

186 Posts

Posted - 2005-03-21 : 13:19:59
I need sql to pull
1) Physical memory
2) Drive Sizes
3) # of cpus
4) speed of cpus.

Need this so I can document our 80 servers quickly. I have them all linked so I can run the query from one machine to pull the data.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-03-21 : 13:41:36
Not an easy one for SQL Server...You are going to have to read the registry for this information via xp_regread. You can get free space of drives from xp_fixeddrives. For number of CPUs, HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager. For other information though, you'll have to search to find out where it is stored.

You should be using a package to gather this information for you and not SQL Server. Do you not have monitoring tools that can provide this information?

Tara
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2005-03-21 : 13:55:54
What kind of servers are these? Most server provide a reporting functionality for this. It will let you, from a central location, pull this information for all servers in the enterprise. HP, DELL, IBM, etc all support this. In addition, you can then export the information.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

scottpt
Posting Yak Master

186 Posts

Posted - 2005-03-22 : 09:17:28
We have multiple vendors. MOstly Compaq, but also have IBM, HP and Dell
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2005-03-22 : 10:05:11
All of the named vendors have this ability. There's no reason to write anything for this. Have you looked at MOM?

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

scottpt
Posting Yak Master

186 Posts

Posted - 2005-03-23 : 09:52:02
xp_msver N'PhysicalMemory'
go
xp_msver N'ProcessorCount'
Go to Top of Page
   

- Advertisement -