SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Make a 100+ Server Inventory in 30 minutes


Make a 100+ Server Inventory in 30 minutes

Author
Message
Stanley Chan
Stanley Chan
SSC-Enthusiastic
SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)

Group: General Forum Members
Points: 112 Visits: 301
Android (6/10/2010)
Nice process. Would you happen to know how to either automatically populate the batch file with a listing of server names instead of manually (we have close to 200 servers and the list changes frequently) or have the batch file written to draw from another file which contains the list of servers (txt, csv, etc. format)?

Thanks,
Android


Android,

For the first round, I do it with network scanner like 'IPScan' (which takes less than a minute to scan a class C subnet), it can retrieve the host name and export to a text file. Then I will put the host name into Excel to generate all the command lines, and finally put it into a batch file.
Stanley Chan
Stanley Chan
SSC-Enthusiastic
SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)

Group: General Forum Members
Points: 112 Visits: 301
@Ashish (6/10/2010)
There is no information of hard disk size in this command.

Is there any other o/s command which can give you the current hard disk sizes?


Ashish,

This tool do not get hard disk size.
You can do it by wmic command.

Please check the link:
http://www.robvanderwoude.com/files/diskspc_xp.txt
stephen.burke
stephen.burke
Grasshopper
Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)

Group: General Forum Members
Points: 19 Visits: 99
MAPS from Microsoft is the best way to record all such info in a database for you, plus a ncie report and excel spreadsheet.

In order to produce the inventory it scans the network and identifies SQL Server installs, versions, OS details, disk space etc etc.
gnace
gnace
Grasshopper
Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)

Group: General Forum Members
Points: 11 Visits: 260
There are database ways of getting most of the information you need. I'd rather stick to one tool if I can. If you're administering your servers from a central management SQL Server you should be able to make connections using linked servers. Once your linked servers are set up properly, querying data from your remotes machines is fairly easy. Your list of servers will be found in the sysservers view/table. Cursor through them and make use of the SERVERPROPERTY function, and the sys.dm_os_sys_info and sysconfigures views using dynamic sql . This will obtain most of the information you need. You can insert this into a table in a management database and SELECT as needed. The only real difficulty I had was retrieving some of this information for SQL Server 2000, but routinely populating a user table locally on these servers with xp_msver got me that information. I grant that using SYSTEMINFO is an easy way of getting the information into usable spreadsheet format, but I still think taking the time to create your queries is a more versatile option. Just having the linked servers allows you to pull so much other data too. I pull job info, login info, database property info, user info, etc.
sean-653091
sean-653091
Old Hand
Old Hand (323 reputation)Old Hand (323 reputation)Old Hand (323 reputation)Old Hand (323 reputation)Old Hand (323 reputation)Old Hand (323 reputation)Old Hand (323 reputation)Old Hand (323 reputation)

Group: General Forum Members
Points: 323 Visits: 68
Just to clarify, this doesn't seem to be in all versions of XP. If you're not on XP Professional (is anyone other than me stuck with XP Home?) try using msinfo32.exe instead. it has a /report option which will give you something similar.
Sqlchicken
Sqlchicken
Mr or Mrs. 500
Mr or Mrs. 500 (573 reputation)Mr or Mrs. 500 (573 reputation)Mr or Mrs. 500 (573 reputation)Mr or Mrs. 500 (573 reputation)Mr or Mrs. 500 (573 reputation)Mr or Mrs. 500 (573 reputation)Mr or Mrs. 500 (573 reputation)Mr or Mrs. 500 (573 reputation)

Group: General Forum Members
Points: 573 Visits: 671
Steve Jones - Editor (6/10/2010)
If you want to use Powershell here, I found a cool script from SQL Chicken: http://sqlchicken.com/2010/06/powershell-i-heart-you/


Woot! Thanks for the shout-out Steve! Big thanks to Stanley though, very cool base script/issue to work on and learn PowerShell with.

=============================================================
/* Backups are worthless, Restores are priceless */

Get your learn on at SQL University!
Follow me on Twitter | Connect on LinkedIn
My blog: http://sqlchicken.com
My book: Pro Server 2008 Policy-Based Management
Stanley Chan
Stanley Chan
SSC-Enthusiastic
SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)

Group: General Forum Members
Points: 112 Visits: 301
stephen.burke (6/14/2010)


MAPS from Microsoft is the best way to record all such info in a database for you, plus a ncie report and excel spreadsheet.

In order to produce the inventory it scans the network and identifies SQL Server installs, versions, OS details, disk space etc etc.



Stephen,

I use MAPS too, MAPS is a great inventory tool too.
However, it does not take the pagefiles size and hotfix installed.
olsosoft
olsosoft
SSC Rookie
SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)

Group: General Forum Members
Points: 32 Visits: 22
You could also use a free program like SpiceWorks which does this and a lot more...
Sqlchicken
Sqlchicken
Mr or Mrs. 500
Mr or Mrs. 500 (573 reputation)Mr or Mrs. 500 (573 reputation)Mr or Mrs. 500 (573 reputation)Mr or Mrs. 500 (573 reputation)Mr or Mrs. 500 (573 reputation)Mr or Mrs. 500 (573 reputation)Mr or Mrs. 500 (573 reputation)Mr or Mrs. 500 (573 reputation)

Group: General Forum Members
Points: 573 Visits: 671
olsosoft (6/22/2010)
You could also use a free program like SpiceWorks which does this and a lot more...




Riddler
If you kill'im, he won't learn nothin'!


=============================================================
/* Backups are worthless, Restores are priceless */

Get your learn on at SQL University!
Follow me on Twitter | Connect on LinkedIn
My blog: http://sqlchicken.com
My book: Pro Server 2008 Policy-Based Management
Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (218K reputation)SSC Guru (218K reputation)SSC Guru (218K reputation)SSC Guru (218K reputation)SSC Guru (218K reputation)SSC Guru (218K reputation)SSC Guru (218K reputation)SSC Guru (218K reputation)

Group: General Forum Members
Points: 218803 Visits: 41998
stephen.burke (6/14/2010)


MAPS from Microsoft is the best way to record all such info in a database for you, plus a ncie report and excel spreadsheet.

In order to produce the inventory it scans the network and identifies SQL Server installs, versions, OS details, disk space etc etc.



Have you got a link for that?

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search