Warning: Constant ABSPATH already defined in /customers/0/c/e/ogenstad.net/httpd.www/wp-config.php on line 24 Warning: Cannot modify header information - headers already sent by (output started at /customers/0/c/e/ogenstad.net/httpd.www/wp-config.php:24) in /customers/0/c/e/ogenstad.net/httpd.www/wp-includes/rest-api/class-wp-rest-server.php on line 1673 Warning: Cannot modify header information - headers already sent by (output started at /customers/0/c/e/ogenstad.net/httpd.www/wp-config.php:24) in /customers/0/c/e/ogenstad.net/httpd.www/wp-includes/rest-api/class-wp-rest-server.php on line 1673 Warning: Cannot modify header information - headers already sent by (output started at /customers/0/c/e/ogenstad.net/httpd.www/wp-config.php:24) in /customers/0/c/e/ogenstad.net/httpd.www/wp-includes/rest-api/class-wp-rest-server.php on line 1673 Warning: Cannot modify header information - headers already sent by (output started at /customers/0/c/e/ogenstad.net/httpd.www/wp-config.php:24) in /customers/0/c/e/ogenstad.net/httpd.www/wp-includes/rest-api/class-wp-rest-server.php on line 1673 Warning: Cannot modify header information - headers already sent by (output started at /customers/0/c/e/ogenstad.net/httpd.www/wp-config.php:24) in /customers/0/c/e/ogenstad.net/httpd.www/wp-includes/rest-api/class-wp-rest-server.php on line 1673 Warning: Cannot modify header information - headers already sent by (output started at /customers/0/c/e/ogenstad.net/httpd.www/wp-config.php:24) in /customers/0/c/e/ogenstad.net/httpd.www/wp-includes/rest-api/class-wp-rest-server.php on line 1673 Warning: Cannot modify header information - headers already sent by (output started at /customers/0/c/e/ogenstad.net/httpd.www/wp-config.php:24) in /customers/0/c/e/ogenstad.net/httpd.www/wp-includes/rest-api/class-wp-rest-server.php on line 1673 Warning: Cannot modify header information - headers already sent by (output started at /customers/0/c/e/ogenstad.net/httpd.www/wp-config.php:24) in /customers/0/c/e/ogenstad.net/httpd.www/wp-includes/rest-api/class-wp-rest-server.php on line 1673 {"id":67,"date":"2006-10-18T19:11:39","date_gmt":"2006-10-18T18:11:39","guid":{"rendered":"http:\/\/ogenstad.net\/2006\/10\/18\/how-to-document-servers-with-sydi-part-2-of-3\/"},"modified":"2015-03-23T16:59:08","modified_gmt":"2015-03-23T15:59:08","slug":"how-to-document-servers-with-sydi-part-2-of-3","status":"publish","type":"post","link":"https:\/\/ogenstad.net\/2006\/10\/18\/how-to-document-servers-with-sydi-part-2-of-3\/","title":{"rendered":"How to Document Servers with SYDI – Part 2 of 3"},"content":{"rendered":"

The Output Options<\/strong><\/p>\n

SYDI has two output options; one for saving the report and another to choose which format to use.<\/p>\n

-o Output to file, specify a path and filename and use quotation marks if there’s a space in the path. Remember to give your file an .xml extension if you’re using the XML format and a .doc extension for the Word format.<\/p>\n

-e This is to choose the export format, the default is -ew (Word), to change to XML use -ex.<\/p>\n

To create an XML report you would use:<\/p>\n

cscript.exe sydi-server.vbs -oServer1.xml -ex [enter]<\/p>\n

This will create an XML file that you can open in a browser.<\/p>\n

XML Options<\/strong><\/p>\n

You might have noticed that the XML file you created didn’t look that great when viewed in your favorite browser. The reason is that you’re just looking at the raw XML file.<\/p>\n

To view a style sheet, use the -s option. I generally use the -sh option which uses the html style sheet included in SYDI. For advanced users there is a -st option where you can specify a style sheet you have created on your own.<\/p>\n

Lets test it again:<\/p>\n

cscript.exe sydi-server.vbs -oServer1.xml -ex -sh [enter]<\/p>\n

In order to view this file with a browser you will need the serverhtml.xsl and sydi-html-styles.xsl to be located in the same directory. These files are in the XML subdirectory of SYDI-Server. Copy the Server1.xml file you just created to that directory and open the file in a browser. Alternatively you can copy all of these files to another directory.<\/p>\n

What Other Options do you have?<\/strong><\/p>\n

To be honest, you don’t have that many. The options that are left are -v to check the version of your script; this will check the SYDI website and see if a later version is available (I might remove this option).<\/p>\n

The last option is -d for debug, if something fails to run as you expect it might be because of a bug in SYDI. The -d option is useful to troubleshoot these scenarios.<\/p>\n

What if You Have More Than One computer?<\/strong><\/p>\n

So you want to run SYDI against multiple computers, it’s easy enough to write a batch file that does it for you. However, in the Tools directory there is a script called sydi-wrapper.vbs. A little “gotcha” is that you have to edit the script for it to work, but don’t panic; there isn’t any voodoo involved. Just open the script in notepad and scroll down to this section:<\/p>\n

‘ Gathering Options
\n‘ WMI – Everything enabled by default
\nWMIOPTIONS=”-wabefghipPqrsSu”
\n‘ Registry – Everything enabled by default
\nREGISTRYOPTIONS=”-racdlp”<\/p>\n

‘ Export Options
\n‘EXPORTFORMAT=”word” ‘ For Microsoft Word
\nEXPORTFORMAT=”xml” ‘ For XML<\/p>\n

‘ Location Options
\n‘ Location of SYDI-Server.vbs
\nSYDISERVER=”C:\\scripts\\sydi-server.vbs”
\nOUTPUTDIRECTORY=”C:\\scripts\\Output files\\”
\nLOGDIRECTORY=”C:\\Scripts\\Log Files\\”
\nTIMEOUT=”600″ ‘ How many seconds you have to wait until a computer-scan is aborted hasn’t been tested.<\/p>\n

‘ Other options, check sydi-server.vbs -h for help
\n‘ Uncoment\/Change One of the below
\nOTHEROPTIONS=”-sh” ‘ For HTML Stylesheet on XML output
\n‘OTHEROPTIONS=”-b10″ ‘ Base Font size of 12
\n‘ End Of Settings<\/p>\n

You will recognize the -w and -r options, unlike SYDI-Server this script defaults to XML (as it should). What you must<\/strong> change in order to get this to work are the values for SYDISERVER, OUTPUTDIRECTORY and LOGDIRECTORY. If you want to you can change the TIMEOUT value too, however it might not do you any good. That feature seems to have taken time out<\/a>.<\/p>\n

I wasn’t sure this was a good way to implement the script. The reason you have to edit the script is so that you won’t have to write such long commands later on in order to get it working.<\/p>\n

Anyway, the remaining options are -u and -p for username and password when you connect to the machines. Then there are the gathering options or source options.<\/p>\n

-t Reads from a text file, the computers listed in the text file should be separated by line or comma. To use this option:<\/p>\n

cscript.exe sydi-wrapper.vbs -tAllMyComputers.txt<\/p>\n

-d This is to get computers from a flat domain (NT4 style) to connect to all the computers in the domain you specify. A word of warning though, I’m told Heaven will be closing the gates for people who use NT4 much longer (you might have to break in as it is).<\/p>\n

-a Active Directory, if you just run the script with -a it will connect to the active directory domain where you’re machine is located. Your other option is to specify an LDAP container. SYDI-Server will then scan all computers under this container (except for the ones with disabled computer accounts).<\/p>\n

A few examples:<\/p>\n

cscript sydi-wrapper.vbs -aDC=exibice,DC=com
\ncscript sydi-wrapper.vbs -a”OU=Member Servers,DC=exibice,DC=com”<\/p>\n

[Self Promotion Mode]
\nIf you haven’t heard of Exibice there’s a whole story about the company, read the first part
here<\/a> and you’ll find the other parts here<\/a>.
\n[\/Self Promotion Mode]<\/p>\n

An Eagles View<\/strong><\/p>\n

After running sydi-wrapper you might have ended up with a whole lot of XML files. To give you a quick overview I’ve included a script for just this purpose. Also in the Tools directory is the sydi-overview.vbs script. It accepts one argument, -x, you will want to point this to the output directory you specified in sydi-wrapper. I have created a batch file which reads:<\/p>\n

cscript.exe sydi-overview.vbs -x\\\\fileserver\\net$\\sydi\\output<\/p>\n

Running the script requires that you have Microsoft Excel installed on your machine. The script will parse all the XML files and start to populate the cells in Excel. The script will create six sheets. Computers with basic information about all your computers, WMI Programs is a list of all software installed by Windows Installer, Reg Programs are the ones found in the Uninstall registry key, Processes tells you what every computer is running. All these can be good to detect rouge programs or processes.<\/p>\n

Finally there is the OS distribution pie chart and data source.<\/p>\n

Read Part 1<\/a>
\n
Read Part 3<\/a><\/p>\n

[tags]network documentation, server documentation, sydi, how to, tutorial[\/tags]<\/p>\n","protected":false},"excerpt":{"rendered":"

The Output Options SYDI has two output options; one for saving the report and another to choose which format to use. -o Output to file, specify a path and filename and use quotation marks if there’s a space in the path. Remember to give your file an .xml extension if you’re using the XML format […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/ogenstad.net\/wp-json\/wp\/v2\/posts\/67"}],"collection":[{"href":"https:\/\/ogenstad.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ogenstad.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ogenstad.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ogenstad.net\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":1,"href":"https:\/\/ogenstad.net\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":145,"href":"https:\/\/ogenstad.net\/wp-json\/wp\/v2\/posts\/67\/revisions\/145"}],"wp:attachment":[{"href":"https:\/\/ogenstad.net\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ogenstad.net\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ogenstad.net\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}