OSI/MHS Management Programming Manual
Examples
OSI/MHS Management Programming Manual—424824-001
C-26
1. Create Dictionary
3. Compile EMS template source
4. Create EMS template file
5. Start EMS printing distributor
These steps produce a single EMS template containing all OSI/MHS events, customized
accounting event templates, and any other subsystem template required.
1. Create Dictionary
The following example shows how to create a dictionary that contains all OSI/MHS
definitions and all common definitions used by OSI/MHS.
DDL
? dict !
? source $system.zspidef.zspiddl
? source $system.zspidef.zemsddl
? source $system.zspidef.zcomddl
? source $system.zspidef.zcmkddl
? source $system.zspidef.zfilddl
? source $system.zspidef.zgrdddl
? source $system.zspidef.zmhsddl
? exit
2. Create EMS Template Source
You can create the template source from scratch. This requires a detailed understanding
of EMS template syntax and EMS procedures. See the EMS Template Manual for more
information. The following example shows an EMS template source that contains only
accounting templates.
VERSION: "T6991C30 09JUL91 A01"
SSID : zmhs-val-ssid
SSNAME : "MHS"
MSG: zmhs-tkn-trans-class , 0
"submitted,"
MSG: zmhs-tkn-trans-class , 1
"delivered,"
MSG: zmhs-tkn-trans-class , 2
"relayed,"
MSG: zmhs-tkn-trans-class , 3
"generated,"
MSG: zmhs-tkn-trans-class , 4
"unroutable,"
MSG: zmhs-tkn-msg-type , 0
"Message"
MSG: zmhs-tkn-msg-type , 1
"Probe"
MSG: zmhs-tkn-msg-type , 2
"Report"
MSG: zems-tkn-eventnumber, 7
"[7] <1> <2> Len=<3>, Originator: /c=<4>/a=<5>/"
"p=<6>/o=<7>/pn=<8>.<9>/, MPDUid: <10>"
1: zmhs-tkn-msg-type
2: zmhs-tkn-trans-class
3: zmhs-tkn-msg-size
4: zmhs-tkn-or-country
5: zmhs-tkn-or-admd
6: zmhs-tkn-or-prmd
7: zmhs-tkn-or-organiz
8: zmhs-tkn-or-pname-sur