Make a 100+ Server Inventory in 30 minutes

  • Stanley Chan

    Mr or Mrs. 500

    Points: 560

    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

    Mr or Mrs. 500

    Points: 560

    @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

    SSC Enthusiast

    Points: 109

    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

    SSC Rookie

    Points: 47

    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

    Old Hand

    Points: 389

    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.

  • Jorge Segarra

    SSCrazy

    Points: 2561

    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

    Mr or Mrs. 500

    Points: 560

    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

    SSC Veteran

    Points: 226

    You could also use a free program like SpiceWorks which does this and a lot more...

  • Jorge Segarra

    SSCrazy

    Points: 2561

    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

    SSC Guru

    Points: 997212

    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.
    "Change is inevitable... change for the better is not".
    "Dear Lord... I'm a DBA so please give me patience because, if you give me strength, I'm going to need bail money too!"

    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Stanley Chan

    Mr or Mrs. 500

    Points: 560

    olsosoft (6/22/2010)


    You could also use a free program like SpiceWorks which does this and a lot more...

    Thanks, will try.

  • Stanley Chan

    Mr or Mrs. 500

    Points: 560

    Jeff Moden (6/22/2010)


    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?

    MAPS full name is "Microsoft assessment and planning toolkit",

    You can download it from "http://go.microsoft.com/fwlink/?LinkId=158988".

    it will also install sql server express as a repository.

    Ref:

    http://technet.microsoft.com/en-us/library/bb977556.aspx

  • Jeff Moden

    SSC Guru

    Points: 997212

    Stanley Chan (6/23/2010)


    Jeff Moden (6/22/2010)


    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?

    MAPS full name is "Microsoft assessment and planning toolkit",

    You can download it from "http://go.microsoft.com/fwlink/?LinkId=158988".

    it will also install sql server express as a repository.

    Ref:

    http://technet.microsoft.com/en-us/library/bb977556.aspx%5B/quote%5D

    I just did a quick glance at the Ref URL above. Very cool... thanks for posting the link, Stanley.

    --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.
    "Change is inevitable... change for the better is not".
    "Dear Lord... I'm a DBA so please give me patience because, if you give me strength, I'm going to need bail money too!"

    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • texas1236

    SSC Enthusiast

    Points: 198

    I worked on a similar solution to collect Windows and SQL Server inventory by gathering scripts from your posts and other SQL Family and released it as a free tool at http://crazydba.com. The tool uses powershell to grab data from all servers and stores it in SQL tables and can be viewed using SSRS reports. Can you please check it and give me any suggestions to improve it?

    Thnx

  • frane.borozan

    SSC Veteran

    Points: 227

    Hey there,

    Can you try https://www.sqldockit.com/[/url] and contact me if you like it? 🙂

    We have developed tool that you just deploy, click load and basically it discovers all the servers in your domain automagically. We had an issue in our own environment where we have several hunder servers, growing every day and that was getting out of control so we developed a tool to help us with that. And part of the tool we made free (for DEV and SQL express servers).

Viewing 15 posts - 31 through 45 (of 45 total)

You must be logged in to reply to this topic. Login to reply