TopITSM manual

Hans Bezemer

April 11, 2023

Contents

1 Introduction
 1.1 Classes
2 Requirements
3 Installing TopITSM
4 Using TopITSM
 4.1 Help
 4.2 Calculator
 4.3 TopITSM documents
 4.4 TopITSM views
 4.5 Generating documents
 4.6 Error handling
5 Backup and restore
 5.1 Backup
 5.2 Restore
 5.3 Changing node properties
 5.4 Changing edge properties

1 Introduction

The TopITSM utility is a tool to analyze abstract information streams between ITSM repositories. It consists of an abstract set of repositories (“nodes”) and the information exchanged between them (“edges”). Company specific information can be added in order to:

The following dimensions are supported:

1.1 Classes

Administration
A repository which is (mostly) updated and maintained manually;
Tool
A repository which is (mostly) updated and maintained automatically;
Cruncher
A repository which is (mostly) derived from other, external sources or repositories. Its main purpose is to process and/or present this information.

2 Requirements




program status url






Graphviz Highly recommended http://www.graphviz.org/download/



PDF viewer Recommended https://mupdf.com/downloads/index.html



Spreadsheet (.xls) Optional https://www.libreoffice.org/download/download/



RTF editor Optional https://www.libreoffice.org/download/download/



Note a lot of PDF viewers and Office applications are known to work, including Acrobat Reader and Microsoft Office. It’s essential they can be called from the command-line. Note some applications may require to be included in the PATH to work. Consult the manual of your particular Operating System if you’re unfamiliar with this procedure.

TopITSM can be operated without any of these additional programs with the following limitations:

3 Installing TopITSM

Finally, an .ini file has to be created. It has the following format:

[applications]

pdf=evince

rtf=lowriter

dot=dot

xls=localc

Note you may add switches and/or paths if required. Save the file to your TopITSM directory as topitsm.ini. TopITSM will not function without an .ini file.

4 Using TopITSM

Now navigate to your TopITSM directory and issue:

4th cxq topitsm.4th

If all is well, TopITSM will respond with:

Initializing..

Type ’help’ for help. OK

The “OK” prompt indicates that TopITSM is now ready for your commands.

4.1 Help

Entering “help” will show the online help page.

4.2 Calculator

TopITSM contains a full integer RPN desk-calculator, much like the Unix dc utility or HP calculators. Only multiplication, division, addition and subtraction operations are supported. A ’dot’ will destructively display the Top of the Stack, e.g.:

23 45 + .

Will return:

68 OK

The following stack operators are available:



command description




DROP Removes the “Top of Stack”


DUP Duplicates the “Top of Stack”


OVER Duplicates “Second of Stack” to “Top of Stack”


SWAP Switches “Top of Stack” with “Second of Stack”


E.g. this will calculate 162:

16 dup * .

256 OK

Note the calculator uses the native stack, so if you leave excessive amounts of superfluous values on the stack this may serious impede other operations.

4.3 TopITSM documents

TopITSM can generate three kinds of documents:

  1. A Word document, containing the definitions of all repositories;
  2. An Excel sheet, containing all attributes (including the definitions) of all the repositories;
  3. Graphviz source-code, which can be rendered by Graphviz to a PDF file.

You can select the kind of document you want to generate by issuing the commands DOCUMENT, SHEET or GRAPH. Issuing one of these commands will leave the document type on the stack.

4.4 TopITSM views

The selected view determines how documents will be ordered or clustered. TopITSM will startup in the “normal” view. The following views are available:

CLASS
Will sort or cluster a document on the class of the repository, see section 1.1;
DEPARTMENT
Will sort or cluster a document on the department, which is responsible or accountable for the repository;
TOOL
Will sort or cluster a document on the tool, which hosts the repository;
PROCESS
Will sort or cluster a document on the ITSM process, which is supported by this repository;
NORMAL
Will sort on the name of the repository. No clustering will be applied.

None of these commands has any stack effects.

4.5 Generating documents

The actual generation of these documents will be achieved by issuing one of these commands:

GENERATE
Will generate the document type which is specified by the Top of the Stack;
SHOW
Will generate the document type which is specified by the Top of the Stack and show it by starting the appropriate viewer.

Note that commands can be concatenated. E.g. this will calculate the square of 23, set the view to normal and generate a Word document:

23 dup * . normal document generate

529 OK 

We advise you to cluster commands in a meaningful way, i.e. select a view, document and generation method:

process graph show

OK

Documents are always stored in your TopITSM directory and will be silently overwritten.

4.6 Error handling

Unknown commands are echoed and appended by a question mark. Internal errors will generate an “Oops”, e.g:

blah

blah? OK 

. 

Oops OK 

Note that any messages of supporting programs are not suppressed and will be shown verbatim. Stack frames will be preserved as they were before the offending command was issued.

5 Backup and restore

TopITSM has a built-in DBMS. The database consists of .idx and .dbm files in the archive. If the database is incomplete or corrupt TopITSM will not successfully initialize - and abort. You can dump the contents of the database and reload them. The database is dumped in .csv format with a semi-colon as delimiter. This is usually the default .csv format of Excel.

Note that although the spreadsheet produced by TopITSM shares some of the fields with the nodes backup, it is not equivalent and hence not suited for import.

5.1 Backup

Files are saved in the TopITSM directory unless you explicitly issue another path.

5.2 Restore

Note that you may seriously damage the database if you do not use a compliant file. If this occurs, we advise you to restore the original database files.

5.3 Changing node properties

5.4 Changing edge properties