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":68,"date":"2006-10-18T19:14:27","date_gmt":"2006-10-18T18:14:27","guid":{"rendered":"http:\/\/ogenstad.net\/2006\/10\/18\/how-to-document-servers-with-sydi-part-3-of-3\/"},"modified":"2006-10-18T19:14:27","modified_gmt":"2006-10-18T18:14:27","slug":"how-to-document-servers-with-sydi-part-3-of-3","status":"publish","type":"post","link":"http:\/\/ogenstad.net\/2006\/10\/18\/how-to-document-servers-with-sydi-part-3-of-3\/","title":{"rendered":"How to Document Servers with SYDI – Part 3 of 3"},"content":{"rendered":"

Wasn’t There an Option for Html?<\/strong><\/p>\n

I might have said there was at some time, but it was a white lie. What you can do is to convert the XML file into a Html document. It’s quite easy and it’s used in this way:<\/p>\n

cscript.exe sydi-transform.vbs -xServer.xml -sServerhtml.xsl -oServer.html<\/p>\n

Running this script will require that Server.xml and Serverhtml.xsl and<\/strong> sydi-html-stylex.xsl are located in the same directory. If you have created private xsl files you can use the sydi-transform to convert it.<\/p>\n

Hey, Wasn’t This about Documentation?<\/strong><\/p>\n

It sure was, most of what we’ve looked at up until now has been more geared against Inventory instead of Network Documentation. I saved the best for last, a new tool in sydi-server 2.0 is the ss-xml2word.vbs script (or SYDI-Server XML to Word).<\/p>\n

What the script does is that it takes an XML file and converts it to a Word document. You might be thinking that SYDI already wrote to Word, which is true, however there are situations where that isn’t possible. For example in environments where you don’t have Word installed, may it be in a DMZ or as a scheduled task on a server.<\/p>\n

The good part though is the options you specify when creating the Word document. To view these options run:<\/p>\n

cscript.exe ss-xml2word.vbs -h<\/p>\n

Here you can see that there are two arguments that are required -x and -l.<\/p>\n

cscript.exe ss-xml2word.vbs -xServer1.xml -llang_english.xml<\/p>\n

This line will create a Word document based on the information in the Server1.xml file, it will then use the English language file which describes what it writes to the Word document. This means that you can have the documentation in your native language. When I released SYDI-Server 2.0 there was support for English and Swedish. Later people have contributed with there own language files which you can download; Italian<\/a>, Norwegian<\/a>, Portuguese and Dutch<\/a>.<\/p>\n

One issue that causes the ss-xml2word.vbs script to fail for many people is a path problem. If you run the script and it just writes out a few pages without any information from the xml file and the script crashes, this is happening to you. Either put all the files in the same directory or specify the path after -x -l or -s. I will fix this in future versions so the error message is a bit more user-friendly.<\/p>\n

The most exciting feature as I see it is the optional -s argument. This is the reason I created SYDI in the first place. The -s option specifies an XML file which contains the written documentation about the server. That is the documentation you have created, this differs from the data that SYDI-Server has gathered from the machine.<\/p>\n

Let’s take it for a spin.<\/p>\n

Writing Your Documentation<\/strong><\/p>\n

To get you started I’ve included three files in the Examples directory (of sydi-server), copy the howto.xml and rename it to Server1_docs.xml. This will be where you will write the documentation. Open the Server1_docs.xml file in Notepad. Scrolling up and down you will see different XML tags. You’ll recognize the sections and subsections from the Word documents previously created.<\/p>\n

Inside the sections and subsections you will se prenotes and postnotes, inside these there are a few tags. The only thing you have to do in this file is to create and edit tags. Scroll down to the section called toc (Tables of Contents), here you will se the difference between prenotes and postnotes. It has to do where they appear in the final document. Just run a few tests and you’ll se what I mean. So let’s start to document.<\/p>\n

In the system info section change this:
\nIn this version you are only able to use text tags, more could be availible in later versions of SYDI.To:<\/p>\n

Physical Location: Server Room in Stockholm
\nSystem Owner: BOFH
\nSupport Agreement: 3Y Next Business Day (Expires 2007-10-16)
\nSave the file and create the final document.<\/p>\n

cscript.exe ss-xml2word.vbs -xServer1.xml -llang_english.xml -sServer1_docs.xml<\/p>\n

The above was just an example, you are of course free to write and include whatever you want in the documentation. If you fail to create the documents it’s good to know that XML parsers are very unforgiving if there’s an error in any of the files. Make sure all tags are closed correctly by opening them in a browser. If you fail to open Server1_docs.xml in a browser the problem is there. Fix it and try again.<\/p>\n

I’ve also created a batch file, writedoc.cmd which looks like this:
\ncscript tools\\ss-xml2word.vbs -x\\\\serverr\\net$\\sydi\\output\\%1.xml -llanguage\\lang_english.xml -s\\\\server\\itsupport$\\documentation-source\\%1-written.xml -o\\\\server\\itsupport$\\documentation-binder\\Server-%1.doc -d -b”Table Contemporary”<\/p>\n

I use it by running
\nWritedoc.cmd Servername<\/p>\n

So there you have it, that’s how I use SYDI-Server. If you have any questions just post a comment or contact me<\/a>.<\/p>\n

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

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

Wasn’t There an Option for Html? I might have said there was at some time, but it was a white lie. What you can do is to convert the XML file into a Html document. It’s quite easy and it’s used in this way: cscript.exe sydi-transform.vbs -xServer.xml -sServerhtml.xsl -oServer.html Running this script will require that […]<\/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":"http:\/\/ogenstad.net\/wp-json\/wp\/v2\/posts\/68"}],"collection":[{"href":"http:\/\/ogenstad.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ogenstad.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ogenstad.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ogenstad.net\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":0,"href":"http:\/\/ogenstad.net\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"wp:attachment":[{"href":"http:\/\/ogenstad.net\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ogenstad.net\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ogenstad.net\/wp-json\/wp\/v2\/tags?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}