How to Document Servers with SYDI – Part 1 of 3

by patrick.ogenstad on October 18, 2006

Having written SYDI from scratch, I know it inside and out. Unfortunately I don’t think I’ve managed to communicate how SYDI works in an efficient way. The readme file included in SYDI is far from perfect. While people in this line of business can usually figure out how it works, others will just ignore reading the manual anyway. In this how-to I will go through the basics of how SYDI-Server works and then describe how I use SYDI-Server.

Getting the Software

You probably have the software already, but just in case. Download it from the SYDI website, or if you love this site and don’t want to leave it no matter what: you can download it from here. This guide is written for SYDI-Server 2.0, if there is a newer version when you read this, don’t worry; it should be useful anyway. Just be sure to check the changelog.txt file for new features.

Unzip the file to your target directory.

Running SYDI in default mode

To see what the software does, open a command prompt and navigate to your sydi directory. This step requires you to have Microsoft Word installed on your computer. Type the command:

cscript.exe sydi-server.vbs [enter]

A message box appears and asks you which host you want to target, the default is localhost. You can select another host if you have administrative access on that machine. Though for now, just press enter.

In the command prompt window you will now see that SYDI starts to gather information about your machine. Soon a Word document is created and SYDI writes the information gathered into the document.

Take a look at the document. Not all this information will be relevant to you and you can remove the parts you don’t want by reading further. Close Word, or save the file it if you want to.

The Options

To view the available options use the help command (-h):

cscript.exe sydi-server.vbs -h [enter]

Options in five categories will be listed; Gathering, Output, Word, XML and Other. In reality there are only two, Gathering and Output.

Gathering the Information

Breaking down the gathering option we have five different arguments -w for WMI options, -r for Registry options and -u and -p for username and password if you want to connect to a different user. Finally we have the -t option where you specify which host you want to target against.

Looking closer at the -w argument from the help menu (-h) you could see that SYDI defaults to using -wabefghipPqrsSu, meaning everything gathered from the WMI providers will be included.

You cannot remove everything from the report, but let’s create a document without all the extra information. Run:

cscript.exe sydi-server.vbs -w [enter]

As you can see the report created is much shorter than the previous one. We have removed the optional WMI providers, but we still have the basic ones and the information coming from the Registry.

To choose which options you want, just check the help menu and see what they mean. If we want to add Bios Information, Printers and Services we would run:

cscript.exe sydi-server.vbs -wbps [enter]

This way you can pick and choose the options you want. The Registry switch works the same way. For an even smaller report you can run:

cscript.exe sydi-server.vbs -w -r [enter]

Now you can add the registry options that you want. Please note though that a lot of the “Computer Roles” are gathered from the Windows Components, so if you want these roles you must have the Windows Components in your report (-rc).

Using the -t option removes the message box asking you which host you want to target. A few examples of using the -t switch:

cscript.exe sydi-server.vbs -tServer1
cscript.exe sydi-server.vbs -tDC1
cscript.exe sydi-server.vbs -tWebServer
cscript.exe sydi-server.vbs -t192.168.0.10

The user and password options should work as you would expect them to, if they don’t: report the bug to me :)

Word Options

As you’ve seen, sydi-server defaults to writing output to Word. The reason for this is so that you can get a quick overview of what the script can collect without having to do any tricks. Having said that, I only use the Word option to get a quick view of a machine, later I throw away the document. I always use the XML format which I later convert to a Word document, more on that later. Even though you won’t use the Word options much we’ll just take a quick look at them to see what you can do, it won’t be a total waste as a few of the options are used by another script called ss-xml2word.vbs.

-b is for the border of the tables created in the document. As you might have noticed there isn’t any borders by default (when you print the document). You can use all borders you have installed in Word. To test it, type:

cscript.exe sydi-server.vbs -b”Table Contemporary” [enter]

-f is if you want different font sizes, the default font size for the text is 12. To change it, use:

cscript.exe sydi-server.vbs -f8

-d tells SYDI not to display Word until the entire report is written. Using the -d option makes the process go faster. Also if you want to save the file (-o option, more on that later), you might not want to see Word at all. For example if you are running a scheduled task you don’t want a GUI to be loaded.

-n will remove all the text inside the brackets, such as “Logical location: [provide info: Server VLAN 2]“. This way you won’t have a bad conscience about not completing the documentation. :) But as I have already stated, the whole idea of sydi-server writing directly to word is obsolete. If you start changing the document after it is created and want to run SYDI again your changes will be lost, or you will have to cut and paste them to the new document. There is a way around this though (hint: continue reading!).

-T This is if you want to specify a corporate Word Template file (.dot), which enables you to choose which fonts you want to have as well as their size. This way you can get your “look and feel” in the document.

Read Part 2
Read Part 3

Tags: , , , ,

{ 1 trackback }

Review: Script Your Documentation Instantly at Nerhood Weblog
05.11.07 at 8:03 pm

{ 26 comments… read them below or add one }

1 Graycat 10.18.06 at 8:23 pm

Awesome! many thanks for putting this together, Patrick. Any chance of rolling it all together into a word doc for download / distribution? or shall I stop being a cheeky bugger and copy and paste it myself? (with your permission, of course) :)

Tim/.

2 Patrick Ogenstad 10.21.06 at 11:10 am

Tim, I don’t have any immediate plans on distributing a Word document. If you want one for yourself, you are free to copy and past (or write a script that does this :) )

What did you think of the ss-xml2word script?

3 mo 03.05.07 at 8:27 pm

This is a very useful and extremelly easy to use tool. Thanks Patrick for creating something that it actually helps a network administrator. I will tell my colleagues about this cool gem…Thanks again

4 Michael Wilton 10.17.07 at 9:46 pm

An excellent tool and a great “How To” – thank you very much.

Just a tip – it might pay to note that the tool writes to the ‘currently active’ Word document window so if you open a Word doc while it is writing it will start spitting the output into that doc :-) .

Thanks!

5 Jarl 07.20.08 at 5:48 pm

How about an output to Wiki code?

6 jennifer 10.22.08 at 7:04 pm

what level of access rights do you need to run this…we are thiking of giving this as a task for our Graduate Assistant

thanks…awesome program…we LOVE it here

7 Pete Wood 11.10.08 at 4:24 pm

amazing….

wiki code would be the icing on the cake..

thank you…

8 Roberto 12.11.08 at 9:36 pm

Great tool, I can not believe what it does. I will start documenting all my servers right now.

9 Roberto 12.11.08 at 9:37 pm

Thank you very much for such a great tool!!!

10 Jason 01.27.09 at 9:32 am

Hey,
This is a great tool. However, I just wanted to find out if I can ues this over a network from a Vista Ultimate machine to Windows NT Server 4.0 to get information from the Server? I am in the process of rolling over from NT Server to SBS 2003. Thanks.

11 Patrick Ogenstad 01.28.09 at 9:23 pm

Jason – NT4 isn’t really supported but some parts work. Though you have to install the WMI provider for NT4. If you do a search on Microsofts download site you should find it.

12 Kevin 03.18.09 at 9:46 pm

Patrick
Thanks for your hard work. Network documentation is difficult enough and it can become expensive. Thanks for this tool. It makes life easier.

Kevin

13 Milton Bliss 05.04.09 at 6:05 am

This tool is fabulous, thank you for creating it. Most machines create a 23 page document, two machines create a 230 page document. About 200 pages of startup commands. Where are startup commands created, the registry? Where should I investigate. to try to understand what is happening?

14 Patrick Ogenstad 05.05.09 at 7:01 pm

Milton – They might be under the default user account in the registry. Some vendors like IBM can have quite a few startup commands…

15 Don B 05.15.09 at 4:45 pm

Fantastic work. Accomplished in minutes what would have been hours worth of tedious work. THANK YOU!

D.

16 Dan Ryan 06.14.09 at 5:04 pm

Patrick,
This a great tool and will make short work of documenting my desktop lab environment. Though I am not getting the credentials promt I was expecting. So far it only works localy. What I get in the command promt when attempting to run on a remote host is “access denied”. Should I get a promte or should that be in the command line also?
Thanks.

17 Doug Brescia 06.18.09 at 3:32 am

Patrick,
I just wanted to take the opportunity to chime in and say thank you for creating this tool. I had finally decided to the bite bullet and tackle the task of documenting the network. I found this tool and your site doing a web search. The initial results and flexibility of this tool are going to make a tedious (but necessary) task tolerable.

18 Dale 07.16.09 at 2:50 pm

Good morning,
I have a question in regards to running the “SYDI” script. I’m able to run the “SYDI” script using the following syntax “cscript.exe sydi-server.vbs -tLANOPPS -uxxxx –pxxxxxxx” and retrieve all the data.

My question is how to run the script to automatically dump the information as a (.doc or .xls) can you please provide me with the proper syntax I’ve tried using the help but I’m not quite understanding all the switches.

By the way Great script.

Thanks,

19 Jim 08.10.09 at 7:23 pm

How do you gather harddrive and partition Info?

20 Patrick 08.12.09 at 8:14 pm

Don B and Doug Brescia Thanks :)

Dan Ryan There is no authentication prompt, you can run it with a user who has access or use the -u and -p parameters.

Dale Perhaps this page can help you: ss-xml2word.vbs

Jim If you run the script locally and don’t have administrative access the disk information won’t show up.

21 Randy 09.16.09 at 3:27 pm

Is there a way to also add what Programs are installed, could be as simple as listing whats on the Start – All Programs menu. And also all Scheduled Tasks?

22 Andy.T. 10.14.09 at 4:19 pm

Excellent tool. I was wondering though, as I need to check all of my companies PC’s around europe to see which are or are not ok to use Windows 7 all i need is the first bit of information listed under hardware plateform. Is there any way to get this to only return that information and none of the rest?

Thanks in advance.

23 Andy.T. 10.14.09 at 4:25 pm

Also one more question,,,can this be used to get information from multiple machines at the same time???

Thanks

24 Patrick 10.15.09 at 8:05 pm

Andy – Take a look at this site for how to get a more compact report:
http://sydiproject.com/howto/limiting-the-length-of-a-sydi-report/

Concerning running the script against multiple machines. Continue reading the rest of this guide and you’ll find out.

25 Dave Kawula 11.25.09 at 10:21 am

You should look at the Microsoft Assessment and Planning tool 5.0 — MAP 5.0 — It will give you a comprehensive report on which machines can take Windows 7.

Dave Kawula
Principal Consultant
TriCon Technical Services Inc.

26 Alcides Romeu 01.05.10 at 12:01 pm

This is a very good tool im impressing how this generate the report…
thanks for that and i hope that you keep working on it…

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>