You could script the entire process, but I've found that I want more than just information I can scrape from a server. e.g. manuals, drivers, external references - and a history of usage. So I find it best to manually enter some information with a Bureacracy form and use a script to add some content (mostly archived files linked to the DokuWiki page).
My workflow for doing that is:-
1. Create a script that gathers system information (use hwinfo, hdparm, dmidecode etc to extract the hardware information with a script, wget the script from a LAN server and run it on each server - save the output to the appropriate dokuwiki/data/media directory (e.g.
dokuwiki/data/media/servers/$ServerName)
2. Install the Bureaucracy and Structured Data plugins
3. Create a namespace for servers (
:servers)
4. Create a single page for a server (
:servers:test)
5. Populate the page with headings, content,
todos and
comments in the markup, and links in the content to the information gathered by the script which you have uploaded in the Media Manager to
/data/media/servers/test. Basic information that identifies the server should be at the top of the page in a
dataentry field (for use by the index). At the bottom of the page (in the template) add markers so that you can add more information to the page later with the
pagemod plugin (driven by a Bureaucracy form).
6. Use :servers:test to create
:templates:newservertpl and a Bureaucracy form
:servers:create_a_new_server
7. Create a "server index" page (
:servers:start) that uses
datatable to display information about servers and links to their pages.
8. When it's all tested and working delete the directories
/data/pages/servers/test and
/data/media/servers/test
populated example page