Make a 100+ Server Inventory in 30 minutes

  • 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.

  • @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

  • 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.

  • 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.

  • 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.

  • 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

  • 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.

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

  • 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

  • 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.


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

  • olsosoft (6/22/2010)


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

    Thanks, will try.

  • 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

  • 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.


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

  • 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

  • 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 44 (of 44 total)

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