+ All Categories
Home > Documents > Executing MML Commands in IPA-RNC

Executing MML Commands in IPA-RNC

Date post: 13-Feb-2016
Category:
Upload: andi-kalaci
View: 356 times
Download: 76 times
Share this document with a friend
Description:
Executing MML Commands in IPA-RNC
Popular Tags:
108
RU50 updating check Executing MML Commands in IPA-RNC DN02143068 Issue 09 Approval Date 2014-02-16
Transcript

RU50 updating check

Executing MML Commandsin IPA-RNC DN02143068Issue 09Approval Date 2014-02-16

 

The information in this document is subject to change without notice and describes only the productdefined  in  the  introduction  of  this  documentation.  This  documentation  is  intended  for  the  use  ofNokia Solutions and Networks customers only for the purposes of the agreement under which thedocument is submitted, and no part of it may be used, reproduced, modified or transmitted in anyform or means without the prior written permission of Nokia Solutions and Networks. The documen-tation has been prepared to be used by professional and properly trained personnel, and the cus-tomer assumes full responsibility when using it. Nokia Solutions and Networks welcomes customercomments as part of the process of continuous development and improvement of the documenta-tion.

The  information or  statements given  in  this documentation concerning  the suitability,  capacity,  orperformance of the mentioned hardware or software products are given "as is" and all liability aris-ing in connection with such hardware or software products shall be defined conclusively and finallyin  a  separate  agreement  between  Nokia  Solutions  and  Networks  and  the  customer.  However,Nokia Solutions and Networks has made all reasonable efforts to ensure that the instructions con-tained  in  the document are adequate and  free of material errors and omissions. Nokia Solutionsand Networks will,  if  deemed necessary by Nokia Solutions and Networks,  explain  issues whichmay not be covered by the document.

Nokia Solutions and Networks will correct errors in this documentation as soon as possible. IN NOEVENT WILL Nokia Solutions and Networks BE LIABLE FOR ERRORS  IN THIS DOCUMENTA-TION OR FOR ANY DAMAGES,  INCLUDING BUT NOT LIMITED TO SPECIAL, DIRECT,  INDI-RECT, INCIDENTAL OR CONSEQUENTIAL OR ANY LOSSES, SUCH AS BUT NOT LIMITED TOLOSS OF PROFIT, REVENUE, BUSINESS INTERRUPTION, BUSINESS OPPORTUNITY OR DA-TA,THAT MAY ARISE FROM THE USE OF THIS DOCUMENT OR THE INFORMATION IN IT.

This documentation and the product it describes are considered protected by copyrights and otherintellectual property rights according to the applicable laws.

NSN  is  a  trademark  of Nokia Solutions  and Networks. Nokia  is  a  registered  trademark  of NokiaCorporation. Other product names mentioned in this document may be trademarks of their respec-tive owners, and they are mentioned for identification purposes only.

Copyright © Nokia Solutions and Networks 2014. All rights reserved

f Important Notice on Product Safety  This product may present safety risks due to laser, electricity, heat, and other sources of

danger.

Only  trained  and  qualified  personnel may  install,  operate, maintain  or  otherwise  handlethis product and only after having carefully  read  the safety  information applicable  to  thisproduct.

The safety  information  is provided  in  the Safety  Information section  in  the “Legal, Safetyand Environmental Information” part of this document or documentation set.

Nokia Solutions and Networks is continually striving to reduce the adverse environmental effects ofits products and services. We would like to encourage you as our customers and users to join us inworking  towards  a  cleaner,  safer  environment.  Please  recycle  product  packaging  and  follow  therecommendations for power use and proper disposal of our products and their components.

If you should have questions regarding our Environmental Policy or any of the environmental ser-vices we offer, please contact us at Nokia Solutions and Networks for any additional information.

Executing MML Commands in IPA-RNC

2 DN02143068 Issue: 09

Table of ContentsThis document has 108 pages

   1 Summary of changes..................................................................... 8   2 Overview of MML commands.........................................................92.1 MML command execution.............................................................. 92.2 Online help during MML session....................................................92.3 System's output during an MML session......................................112.4 Tools for executing MML commands............................................132.5 Structure of MML commands....................................................... 142.6 Special characters in MML commands........................................ 192.7 Line editor of MML commands: searching and editing of MML....21   3 Using MML commands................................................................ 243.1 Controlling of the output of characters displayed on the MML

terminal........................................................................................ 243.2 Printing out of characters displayed on the MML terminal .......... 243.3 Screen editor of MML commands: reading and editing characters

on screen..................................................................................... 253.4 Editing text files of MML commands............................................ 263.5 Opening and closing MML sessions ........................................... 273.6 Entering MML commands step by step .......................................293.7 Entering MML commands without using the online help .............333.8 Repeating or cancelling MML commands.................................... 343.9 Moving from one command level to another................................ 353.10 Entering default values to parameters ........................................ 363.11 Changing the language of MML command menus ..................... 383.12 Setting an MML program in the test state ................................... 383.13 Setting an MML session time-out ................................................39   4 MML macros................................................................................ 404.1 MML macros................................................................................ 404.2 MML macro names...................................................................... 434.3 MML macro structure................................................................... 444.4 Structural parts of the command language in MML macros.........444.5 Menu texts in MML macros.......................................................... 474.6 Header in MML macros................................................................474.7 Declaration and execution parts in MML macros......................... 484.8 Command language expressions and statements in MML macros.

504.9 Directives in MML macros............................................................504.10 Stop statements in MML macros..................................................534.11 Input and output statement in MML macros.................................544.12 Placement statement in MML macros..........................................554.13 If-statement in MML macros.........................................................55

Executing MML Commands in IPA-RNC

Issue: 09 DN02143068 3

4.14 While-statement in MML macros..................................................564.15 MML commands in MML macros................................................. 574.16 Library routines in MML macros...................................................584.17 Exit statements in MML macros................................................... 624.18 Execution of MML macros............................................................634.19 Short start-up method for MML macros....................................... 634.20 Long start-up method for MML macros........................................ 644.21 Testing MML macros.................................................................... 664.22 Installing MML macros................................................................. 664.23 Listing MML macros .................................................................... 674.24 Executing an MML macro............................................................ 674.25 Displaying the contents of an MML macro................................... 68   5 MML command logs.....................................................................705.1 MML command log.......................................................................705.2 Modifying storing time of MML command log ..............................745.3 Modifying MML command log disk space consumption...............755.4 Changing MML command log removal time ................................755.5 Decreasing disk updating load of MML command log................. 765.6 Displaying MML command log information.................................. 765.7 Printing MML command log information to disk file......................775.8 Closing the MML command log....................................................785.9 Monitoring of the starting and ending of MML command execution .

795.10 Transferring MML command log information to the postprocessing

system using FTP or SFTP.......................................................... 795.11 Printing MML command log information via a logical file............. 80   6 MML disk command files..............................................................826.1 Disk command files in MML......................................................... 826.2 Listing MML disk command files in the system ........................... 846.3 Displaying the contents of a disk command file in MML.............. 846.4 Creating a disk command file using the system's disk file editor in

MML............................................................................................. 856.5 Executing disk command files in MML......................................... 866.6 Interrogating output devices of execution printouts in MML.........876.7 Giving parameter values to MML commands in a disk command

file.................................................................................................876.8 Stopping the execution of a disk command file in MML............... 886.9 Saving execution printouts of a disk command file in a disk file in

MML............................................................................................. 896.10 Preventing the saving of execution printouts of a disk command

file in a disk file in MML................................................................ 89   7 MML command calendar..............................................................917.1 MML command calendar..............................................................917.2 Displaying the contents of the command calendar in MML..........93

Executing MML Commands in IPA-RNC

4 DN02143068 Issue: 09

7.3 Directing the execution printouts of MML command calendar tasks..................................................................................................... 95

7.4 Adding a task to the command calendar in MML......................... 977.5 Testing calendar task execution in MML...................................... 997.6 Modifying a calendar task in MML................................................997.7 Deleting a calendar task in MML................................................1017.8 Blocking or unblocking a calendar task in MML......................... 1027.9 Stopping an MML command file execution................................ 104   8 MML command troubleshooting.................................................1058.1 Execution of a calendar task fails...............................................1058.2 Termination of an MML calendar task that is a command file fails...

1068.3 Opening an MML session fails................................................... 107

Executing MML Commands in IPA-RNC

Issue: 09 DN02143068 5

List of FiguresFigure 1 The command class of IGO ...............................................................15Figure 2 The command group of IGO...............................................................15Figure 3 An example of arguments grouped by an ampersand........................19Figure 4 An example of a combination parameter ...........................................19Figure 5 How to move from one command level to another............................. 36Figure 6 MML macro names.............................................................................43Figure 7 An example of the structure of an MML macro header...................... 48Figure 8 Displaying the output devices of execution printouts .........................96

Executing MML Commands in IPA-RNC

6 DN02143068 Issue: 09

List of TablesTable 1 Tools for executing MML commands.................................................. 14Table 2 Punctuation marks in MML commands.............................................. 17Table 3 Examples of the grouping of single parameter arguments................. 20Table 4 Grouping compound parameter arguments........................................20Table 5 PRFILE parameters affecting the MML command log........................71Table 6 Information given in each command log record..................................72

Executing MML Commands in IPA-RNC

Issue: 09 DN02143068 7

1 Summary of changesChanges between document issues are cumulative. Therefore, the latest documentissue contains all changes made to previous issues.

Note that our issue numbering system, safety information, and product naming practiceare changing. For more information, see Guide to WCDMA RAN OperatingDocumentation.

Changes between Issues 08C (2011-11-07, RU30) and 09 (2014-02-16,RU50)

A2SU and A2SP related information is removed from the document.

Changes between Issues 08B (2011-02-18, WCDMA RAN RU30) and08C (2011-11-07, WCDMA RAN RU30)

MML command log

• The default value of storing time and disk space consumption is changed from 3days to 30 days.

Changes between Issues 08A (2010-10-22, WCDMA RAN RU30) and08B (2011-02-18, WCDMA RAN RU30)

Displaying the contents of the command calendar in MML (6.2)

• The execution printout is updated.

Blocking or unblocking a calendar task in MML (6.8)

• The execution printout is updated.

Summary of changes Executing MML Commands in IPA-RNC

8 DN02143068 Issue: 09

   

2 Overview of MML commands

2.1 MML command execution

First you must enter a user ID and a password. At the command entering stage, start thedesired functions by entering the required commands by means of the menu selectiontechnique.

An MML session is ended by giving the command Z; on the main level.

The commands are given step by step by first selecting the command class (chargingadministration, traffic administration, routing administration, and so on), then a commandgroup within the class, and finally the individual command (for example, display chargingdata). At each step you will have a command list (a menu) on the screen of your terminalshowing the alternatives to select from at that particular stage. The menus can also bebypassed for rapid selection of the desired operation.

Related topics

Instructions

Opening and closing MML sessions

Entering MML commands step by step

Entering MML commands without using the online help

Repeating or cancelling MML commands

Moving from one command level to another

Entering default values to parameters

Changing the language of MML command menus

Setting an MML program in the test state

Setting an MML session time-out

2.2 Online help during MML session

The online help provides you with command menus and a parameter guide. It helps youenter MML commands and guides you when you open or close an MML session. Duringthe various phases of the MML session, guidance messages are displayed.

Executing MML Commands in IPA-RNC Overview of MML commands

Issue: 09 DN02143068 9

   

Command menus

Command menus include menus of command classes, command groups andcommands. Below is an example of a command class menu:

MAIN LEVEL ? ..... DISPLAY MENU A ..... ALARM SYSTEM ADMINISTRATION C ..... ROUTING STATE ADMINISTRATION D ..... SYSTEM SUPPORT AND COMMUNICATION E ..... CELLULAR RADIO NETWORK ADMINISTRATION I ..... I/O SYSTEM ADMINISTRATION L ..... BROADBAND ADMINISTRATION N ..... SS7 NETWORK ADMINISTRATION O ..... SUPPLEMENTARY SS7 NETWORK ADMINISTRATION Q ..... O&M NETWORK ADMINISTRATIONR ..... ROUTING ADMINISTRATIONT ..... TRAFFIC ADMINISTRATIONU ..... UNIT ADMINISTRATIONW ..... SYSTEM CONFIGURATION ADMINISTRATIONY ..... SYSTEM SUPERVISIONZ; .... END DIALOGUE (:)

To display the command menu in the command level at which you are, enter a questionmark (?).

Parameter guide

The parameter guide gives information on the entering of parameters. For example, itindicates the parameters that can or must be entered. Below is an example of theparameter guide of the ICL command:

/* COMMAND CALENDAR LISTING PARAMETERSPARAMETER NAMES: ID ....... TASK IDENTIFIERQUE ...... QUEUE NAME CFILE .... COMMAND FILE NAME ALARM .... EXECUTION ALARM NUMBER DATE ..... DATE OF EXECUTION HOURS .... TIME OF EXECUTION */

To display the parameter guide, press  ENTER  after you have typed the command lettersor one or more parameters.

Note that when you use network elements that have different configurations, you mayhave to enter different values to the same parameter. This is because part of theinformation in the parameter guide normally depends on the configuration of the networkelement. This information includes, for example, the value range of the parameter andthe relation between parameters.

Overview of MML commands Executing MML Commands in IPA-RNC

10 DN02143068 Issue: 09

   

Key combinations

You can display a list of keys that can be used, for example, to edit MML commands andto control their output on the MML terminal by pressing  CTRL-W .

LINE EDITOR COMMANDS

CTRL A = INSERT/REPLACECTRL B = EDIT PREV CMNDCTRL D = CURS LEFTCTRL E = CURS END OF LINECTRL F = CURS RIGHTCTRL G = CURS DOWNCTRL H = CURS HOMECTRL I = CURS UPCTRL K = CHANGE LANGUAGECTRL L = DEL CHARCTRL N = CURS BEGINNING OF PARAM BLOCKCTRL O = HARDCOPYCTRL P = PAGE MODE ON/OFFCTRL Q = CONT OUTPUTTINGCTRL R = CURS BEGINNING OF PARAMCTRL S = PAUSE OUTPUTTINGCTRL T = OUTPUT RINGBUFFERCTRL U = EMPTY EDIT BUFFCTRL V = DEL PREV CHARCTRL X = JUMP TO CMD GROUP LEVELCTRL Y = INTERRUPTCTRL Z = DEL CHARS IN EDIT BUFFBREAK = END OF DIALOGCTRL 4 = MML TEST MODE ON/OFFCTRL 7 = DX ERROR DESCRIPTION? AND <UP ARROW> = LIST OF PREVIOUS COMMANDS<NUMBER> and <UP ARROW> = EDIT CERTAIN PREVIOUS COMMAND<STRING> and <UP ARROW> = EDIT PREVIOUS COMMANDS CONTAINING GIVEN STRING

2.3 System's output during an MML session

During an MML session, the system can produce

• execution printouts and• messages.

The messages are of the following types:

• execution error messages• semantic error messages• syntax error messages• general error messages• guidance messages• notice messages

Executing MML Commands in IPA-RNC Overview of MML commands

Issue: 09 DN02143068 11

   

Execution printouts

An execution printout is usually displayed after you have entered an MML command.The printout indicates that a command is being executed. However, some commands donot produce execution printouts. The only message that is displayed after such acommand has been entered is the message indicating the result of command execution:if the command succeeded, the message COMMAND EXECUTED is displayed and if thecommand failed, an error message is displayed.

Below is an example of the execution printout of the IGO command. The printout of thecommand log lists the contents of the user's own sessions during the current day.

WQO;/* 3 SESSION=00001 USERID=USER27 2000-05-20 20:28:06 *//* 4 WQO; *//* 4c COMMAND EXECUTED *//* 4c SESSION=00001 USERID=USER27 2000-05-20 20:28:13 */IID::MMLLOG;/* 3 SESSION=00001 USERID=USER27 2000-05-20 20:28:57 *//* 4 IID::MMLLOG; *//* 4c COMMAND EXECUTED *//* 4c SESSION=00001 USERID=USER27 2000-05-20 20:28:58 */IGO:;/* 3 SESSION=00001 USERID=USER27 2000-05-20 20:29:04 *//* 4 IGO:; *//* 4c COMMAND EXECUTED *//* 4c SESSION=00001 USERID=USER27 2000-05-20 20:29:05 */USC:OMU:TE,:;/* 3 SESSION=00001 USERID=USER27 2000-05-20 20:32:47 *//* 4 USC:OMU:TE,:; *//* 4c COMMAND ABORTED *//*** ERROR: 795 ***//*** TRANSITION NOT CONTROLLED ***//* 4c SESSION=00001 USERID=USER27 2000-05-20 20:32:49 */ Error messages

An execution error message is displayed when an error occurs during the execution of acommand. It indicates that the command cannot be executed. These messages arelisted in the command description of the command in question. Below is an example ofan execution error message:

/*** ADDITION NOT POSSIBLE ***//*** OBJECT LIST IS USED BY ACTIVE MEASUREMENT ***/

A semantic error message is displayed when parameter values have been givenincorrectly, for example, in the wrong order. Some messages are command-specific andsome can apply to several commands. Information on messages of the former kind isgiven in the command description of the command in question. Messages of the latterkind are listed in General Notice Messages of MML Session. Below is an example of asemantic error message:

/*** SEMANTIC ERROR ***//*** NONEXISTENT UNIT TYPE ***/

Overview of MML commands Executing MML Commands in IPA-RNC

12 DN02143068 Issue: 09

   

A syntax error message appears when the structure of a command does not follow thesyntactic rules of the command. Syntax error messages are listed in General NoticeMessages of MML Session. Below is an example of a syntax error message:

/*** SYNTAX ERROR ***//*** MISSING ":" OR ";" ***/

General error messages are listed in General Error Messages of System. Below is anexample of a general error message:

56: NO SUCH FILEDisplaying the explanation of the latest general error message

To display the explanation of the latest general error message and the possibleinstructions on how to proceed, press  CTRL-7 . To find out the reason for an error, youcan also use the MRSTRE service terminal extension.

Guidance messages

Guidance messages give information on the various phases of an MML session. Theydescribe, for example, the meaning of parameters and the syntactic structure of acommand. General guidance messages are listed in General Notice Messages of MMLSession.

Notice messages

Notice messages give information on the various phases of an MML session. Noticemessages are listed in General Notice Messages of MML Session. Below is an exampleof a notice message:

COMMAND EXECUTEDRelated topics

Descriptions

MML command execution

2.4 Tools for executing MML commands

In addition to individual MML commands, other tools are available for the operation of thesystem: disk command files and MML macros can be used to execute MML commandsequences. The command calendar can be used to execute MML commands and diskcommand files at a predefined moment.

MML macros can be used to execute complicated command sequences. They are usefulwhen executing command sequences that need to be executed repeatedly. MML macroscan be created by the users.

Executing MML Commands in IPA-RNC Overview of MML commands

Issue: 09 DN02143068 13

   

Disk command files can be used to carry out routine tasks that do not need to besupervised. They are useful, for example, when carrying out tasks that need to beexecuted repeatedly. Disk command files can be created by the users. If you want toexecute the same commands or some of the commands that you have executed duringa particular MML session, you can use your MML command log as a basis of a diskcommand file.

The command calendar enables the execution of MML commands and disk commandfiles at a predefined moment: either at a certain time or when a certain alarm occurs. Thetasks in the command calendar can be executed once or repeatedly at certain intervals.The command calendar can be used to carry out routine tasks that do not need to besupervised.

Table 1 Tools for executing MML commands

TOOL

WHAT THE TOOL IS USED FOR

Disk command file Executing MML command sequences

MML macro Executing complicated MML command sequences

Command calendar Executing an MML command or a disk command file once or repeatedlyat a predetermined moment (time or alarm)

Command log Storing information of commands you have executed

Related topics

Descriptions

Disk command files in MML

MML command calendar

MML command execution

2.5 Structure of MML commands

MML commands consist of a command part and, in general, a parameter part. Thecommand part consists of three command letters that define the function you want thesystem to perform. The parameter part consists of parameters that contain informationnecessary for the execution of a command. See the following example of the ICLcommand:

ZICL:DATE=2000-01-01,HOURS=1&&3;

In this example, “ICL” comprises the command part and“DATE=2000–01–01,HOURS=1&&3;” the parameter part.

Overview of MML commands Executing MML Commands in IPA-RNC

14 DN02143068 Issue: 09

   

MML commands are subject to certain punctuation rules. Parameters are separated fromone another and from the command part by punctuation marks and the command iscompleted by a semi-colon (;).

Each MML command has a fixed structure, which is defined by syntactic rules. Thesyntax of a command determines, for example, the parameters that must be givenspecific values and the order of the various elements in the command. Syntactic rulesare presented in the command-specific instructions, and the online help offers guidancewhen you enter the command.

Command part of MML commands

The command part usually consists of three letters. For example, the command part of acommand that displays one or several MML command logs, consists of the letters IGO.

The first letter of a command identifies the command class to which the commandbelongs. For example, the IGO command belongs to the command class I, whichcomprises all the command groups related to the I/O system administration.

Figure 1 The command class of IGO

The first two letters of a command identify the command group to which the commandbelongs. For example, the IGO command belongs to the IG command group, whichcomprises all the commands for handling an MML command log.

Figure 2 The command group of IGO

The last letter is the command letter. The three letters thus form a command.

g Numbers from zero (0) to nine (9) can also be used at the command grouplevel. (For example, commands like A1C or B2D are possible.

You can enter the command letters by making use of menus of command classes,command groups and commands or without using the system's help.

Punctuation marks in MML commands

Certain elements of an MML command must be separated from one another bypunctuation marks (separators) and the command must be completed by a semi-colon.The following punctuation marks can be used:

SPACE The space has no syntactic significance. It is often used in theexamples to clarify the structure, but it can be omitted when giving acommand.

Executing MML Commands in IPA-RNC Overview of MML commands

Issue: 09 DN02143068 15

   

COMMA The comma is used

• to separate parameters from one another when typing them in• to give the default value to position-defined parameters. Writing

commas one after another corresponds to giving the default valueto the parameter between the commas. If the number of commasgiven exceeds the number of parameters, the syntax analyzergives an error message.

• to give the default value to name-defined parameters. Typing acomma after an 'equals' sign (=) gives the named parameter itsdefault value.

The comma is not needed if

• you press  ENTER  after typing the parameter. In this case, thesyntax analyzer adds the comma itself.

COLON The colon is used

• after a command code, before typing the parameters.• as a delimiter of parameter blocks.

The colon is not needed if

• a parameter block and the command are ended simultaneouslywith a semicolon.

• you have typed the last parameter of a parameter block containingposition-defined parameters and pressed  ENTER . In this case,the syntax analyser knows that the parameter block ends, andadds the colon.

The colon can be given if

• in a parameter block, the rest of the parameters have the defaultvalue. In this case, the syntax analyser moves to the nextparameter block, accepting the colon into the character string.

SEMI-COLON The semi-colon is used to end a command. The semi-colon can begiven if

• all the command parameters not yet given have the default value.• the command has no parameters.

The semi-colon must not be given

• if, for some reason, you want to stop the entering of the commandin the phase where the parameters have been checked. Thiscould be the case, for example, in parameter entering exercises,test situations, and so on.

Overview of MML commands Executing MML Commands in IPA-RNC

16 DN02143068 Issue: 09

   

Unlike with the comma or the colon, the syntax analyser itself neveradds the semicolon to a command.

QUESTION MARKThe question mark displays the guidance referring to the currentcommand entering phase. The guidance can be a menu or someparameter guidance.

Table 2 Punctuation marks in MML commands

PUNCTUATION MARK

FUNCTION IN THE COMMAND

Space No syntactic significance

Comma (,) Separates parameters from one another

Gives the default value to position-defined and name-defined parameters

Colon (:) Separates the command part from the parameter part

Separates parameter blocks from one another

Semi-colon (;) Completes and executes the command

Question mark (?) Displays guidance when entering a command (guidance can be either amenu or some parameter guidance)

Note that separators do not always have to be entered. Instead, after you have typed ina parameter, you can press  ENTER  and, in most cases, the system adds the correctseparator. Also note that if a parameter block contains name-defined parameters, youmay have to enter a colon to move to the following parameter block. The system neveradds the semi-colon (;).

Parameter part of MML commands

The parameter part consists of parameters, which contain pieces of informationnecessary for the execution of an MML command. However, some commands do notcontain parameters. The parameter part is separated from the command part by a colon(:). For example, the parameter part of the ICL command is as follows (see above for theentire command including the command part ICL:):

DATE=2000-01-01,HOURS=1&&3;

In this command, the parameters identify the command calendar tasks that thecommand lists: they indicate that the date of the calendar execution is the first ofJanuary, 2000 between 1:00 and 3:00. The execution date is indicated by the dateparameter, which is DATE=2000–01–01. The execution time is indicated by the hoursparameter, which is HOURS=1&&3.

Executing MML Commands in IPA-RNC Overview of MML commands

Issue: 09 DN02143068 17

   

You can enter parameters by making use of the parameter guide or without using thesystem's help.

Parameter blocks

The parameter part consists of one or more parameter blocks. Parameter blockscontain either one parameter or parameters that are closely associated with one another.Parameter blocks are separated from one another by a colon (:). For example, in the ICLcommand presented above, “DATE=2000–01–01,HOURS=1&&3” comprises oneparameter block. Parameter blocks must be entered in the specific order determined bythe syntax of the command. The parameter guide helps you enter the blocks in thecorrect order.

A parameter block can contain either position-defined or name-defined parameters.Position-defined parameters must be entered in a predetermined order within aparameter block.

Name-defined and position-defined parameters

Parameters can be either position-defined or name-defined. A position-definedparameter consists of a parameter value. For example:

ZIDL:WDU,1,XYZ:START=2,STOP=20:;

In the IDL command, 1 is a position-defined parameter as it consists only of the value tobe entered.

g Position-defined parameters must be given in a predetermined order within aparameter block. The order is determined by the syntax of each command. Theparameter guide helps you to enter the parameters in the correct order.

A name-defined parameter consists of a parameter name which is always followed by aparameter value. The parameter value is separated from the parameter name by anequal sign (=). In the IDL command above, start is a name-defined parameter as it isfollowed by the value two presented as =2, that is, START=2. Name-defined parameterscan be given in an arbitrary order within a parameter block.

Related topics

Descriptions

MML command calendar

MML command execution

MML command log

Special characters in MML commands

Overview of MML commands Executing MML Commands in IPA-RNC

18 DN02143068 Issue: 09

   

2.6 Special characters in MML commandsCharacter for grouping parameter arguments: ampersand (&)

This section deals with the ampersand (&) and character combinations &-, && and &&-.They are used for group parameter arguments, which contain information specifying theparameter value. A parameter can contain either one or several parameter arguments. Ifseveral arguments of a parameter need to be entered, the arguments must be groupedusing the above mentioned characters. Below is an example of a parameter and itsarguments 1 and 3 grouped by an ampersand (&):

Figure 3 An example of arguments grouped by an ampersand

For example, in the following command, this value indicates that the ICL command liststhe command calendar tasks to be executed on 2000–01–01 at 1:00 and 3:00:

ZICL:DATE=2000-01-01,HOURS=1&3;

The ampersand (&) can be used to group all types of parameter arguments. However,the use of character combinations &&, &- and &&- is determined by the type of theparameter. There are two types of parameters: single parameters and combinationparameters. The arguments of single parameters consist of one information unit (forexample, 3 in the figure above).

The arguments of combination parameters consist of several information units, which areseparated from one another by a hyphen (–). Combination parameters are of the form1–2–3, in which 1–2–3 is a parameter argument and 1, 2 and 3 are information units.See the following example of a combination parameter, in this case date information:

Figure 4 An example of a combination parameter

Executing MML Commands in IPA-RNC Overview of MML commands

Issue: 09 DN02143068 19

   

Usage of the ampersand to group single parameter arguments

Table 3 Examples of the grouping of single parameter arguments

Grouped arguments

Arguments indicated by grouping

1&2 1 and 2

3&&5 3, 4 and 5

Different characters can be used to group arguments within the same parameter value.For example, 1&3&&6 means arguments 1, 3, 4, 5 and 6.

Usage of the ampersand to group combination parameter arguments

When more than one argument of a combination parameter needs to be given,characters &, &- and &&- are used. Below are explanations of these characters:

& Groups two combination parameter arguments within the sameparameter value.

&- Groups combination parameter arguments when a group ofparameters differs only in their last information unit. The first argumentis completely specified, whereas the others are represented only bytheir last information units.

&&- Groups arguments when a group of arguments differs only in their lastinformation unit and constitutes a consecutive sequence. Thearguments are indicated by writing the lower and upper informationunits. The last information unit is incremented by one.

See the examples in the following table.

Table 4 Grouping compound parameter arguments

Grouped arguments

Arguments indicated by grouping

2000-11-01&2000-12-07 2000-11-01 and 2000-12-07

2000-11-01&-07 2000-11-01 and 2000-11-07

2000-11-01&&-03 2000-11-01, 2000-11-02 and 2000-11-03

Different characters can be used to group arguments within the same parameter value.For example:

Overview of MML commands Executing MML Commands in IPA-RNC

20 DN02143068 Issue: 09

   

2000–10–05&2000–11–01&—04&—10&&—12

means the following arguments:

• 2000–10–05,• 2000–11–01,• 2000–11–04, as well as• 2000–11–10, 2000–11–11 and 2000–11–12 (from 2000–11–10 to 2000–11–12).

Wild card character: percent sign (%)

The percent sign (%) represents one or more characters. For example, in the followingcommand, the percent sign is the value of the file name parameter and it representsfiles with any name. This command lists all command files, that is, files with the CMDextension, in the MMDIRE directory of system and backup disks:

ZIWX::WS:MMDIRE:%,CMD;

Syntax of the command:

ZIWX::<drive>:<subdir>:<filename>,<extension>;

Related topics

Descriptions

MML command execution

2.7 Line editor of MML commands: searching andediting of MML

The line editor lets you search and edit the commands you have entered during thecurrent MML session, and edit the command you are typing. If you have entered theexact same command more than once, you can only handle the last instance of thatcommand.

The editor is operated from the keyboard of the MML terminal. You can use a variety ofkeys and key combinations to search and edit MML commands and characters. You donot have to start the editor: it is available when you are typing MML commands.

Below is a list of line editor keys categorized according to their functions.

Keys for searching commands

Arrow keys:

'Up' arrow Displays the command you entered before the one that is written afterthe prompt. If you have entered exactly the same command morethan once, only the one you last entered can be displayed.

Executing MML Commands in IPA-RNC Overview of MML commands

Issue: 09 DN02143068 21

   

OR

Number of command + 'Up' arrowSearches a command you have entered during an MML session. Typethe number identifying the command and press the 'up' arrow (forexample, press 4 and the arrow). This command must be enteredimmediately after the prompt. You can list the numbers by pressing

?  and the 'up' arrow.

OR

Characters in command + 'Up' arrowSearches a command you have entered during an MML session. Typea character string included in the command and press the 'up' arrow(for example, press ICL and the arrow). If you press the arrow again,the previous command with the same string is searched.

'Down' arrow Displays the command entered after the one written after the prompt.

? + 'up' arrowLists the commands you have entered during an MML session andthe numbers identifying them. The numbering starts from thecommand you entered last. If you have entered exactly the samecommand more than once, only the one last entered is displayed.

Keys that function like 'up' and 'down' arrows:

CTRL-B Functions like the 'up' arrow.

CTRL-G Functions like the 'down' arrow.

CTRL-I Functions like the 'up' arrow.

Keys for editing commands

Switch from INSERT to OVERSTRIKE mode:

CTRL-A Switches from the INSERT mode to the OVERSTRIKE mode or viceversa. In the OVERSTRIKE mode, the character you type replacesthe character that the cursor points to. In the INSERT mode, thecharacter you type in is inserted in front of the character the cursorpoints to.

Move to command group level:

CTRL-X Moves to the command group of the command that you are enteringor that you have just entered. If you are entering a command, this keyfunctions only if you have entered at least the three command lettersof the command.

Overview of MML commands Executing MML Commands in IPA-RNC

22 DN02143068 Issue: 09

   

Move the cursor:

Arrow keys:

Right arrow Moves to the right.

Left arrow Moves to the left.

Keys that function like 'right' and 'left' arrows:

CTRL-D Moves cursor to the left.

CTRL-F Moves cursor to the right.

Other keys:

CTRL-E Moves cursor to the end of the line.

CTRL-H Moves cursor to the beginning of the line.

CTRL-N Moves cursor to the beginning of the next parameter block.

CTRL-R Moves cursor to the beginning of the next parameter.

Delete characters:

BACKSPACE Deletes the character to the left of the cursor.

CTRL-L Deletes the character the cursor points to.

CTRL-U Deletes all characters in the buffer that stores the commands givenduring an MML session.

CTRL-V Deletes the character to the left of the cursor. Functions likeBACKSPACE .

CTRL-Z Deletes the character that the cursor points to and those written afterthe cursor.

Related topics

Descriptions

MML command execution

Executing MML Commands in IPA-RNC Overview of MML commands

Issue: 09 DN02143068 23

   

3 Using MML commands

3.1 Controlling of the output of characters displayedon the MML terminal

The following keys can be used to control the output of characters on the MML terminalyou are using:

CTRL-P Determines whether characters are displayed on the screen onescreen at a time (PAGE MODE) or without interruptions(CONTINUOUS MODE). To display one screen of characters at atime, press  CTRL-P  before you enter the command that displayscharacters. After one screen is displayed, press  ENTER  to displayanother screen. To display characters without interruptions, press

CTRL-P  again: you can switch from the PAGE mode to theCONTINUOUS mode before you enter the command that displayscharacters and even when characters are being displayed on thescreen.

CTRL-Q Continue the output if you have interrupted it by pressing  CTRL-S .

CTRL-S Interrupts output. The output continues when you press  CTRL-Q .

Related topics

Instructions

MML command execution

3.2 Printing out of characters displayed on the MMLterminal

The following keys can be used to print out the characters displayed on the MMLterminal you are using during an MML session:

CTRL-T Prints a maximum of 2048 characters (for example, MML commands,execution printouts and guidance messages) that were displayedduring the MML session on a printer. If the printing succeeds, themessage PRINTED is displayed. If it does not succeed, the messagePRINTER ERROR is displayed.

CTRL-O Functions like  CTRL-T , but instead of 2048 characters, this key printsthe screen of characters displayed during the MML session on aprinter.

Using MML commands Executing MML Commands in IPA-RNC

24 DN02143068 Issue: 09

   

Related topics

Descriptions

MML command execution

3.3 Screen editor of MML commands: reading andediting characters on screen

The screen editor is available with some MML commands.

The screen editor functions are used for reading characters and for editing characterswhich are on the screen. The text can be edited using the special and commandcharacters.

Quitting the screen editor

You can quit the screen editor by typing  CTRL-Z  or the character ^. The screen isemptied, and the cursor moves to the beginning of the first line on the screen. This alsoterminates the execution of the IEE command.

Special charactersCTRL-Y Terminates command execution.

DEL (CTRL-V) Deletes the character to the left of the cursor.

Command charactersCTRL-A Switches the editor from the INSERT mode to the OVERSTRIKE

mode, or vice versa. In the OVERSTRIKE mode, the new charactersyou type are placed on top of the old characters, replacing them. Inthe INSERT mode, the old characters are moved forward makingroom for the new ones, if there is room at the end of the line.

CTRL-C Functions like  CTRL-Z . Terminates command execution and exits theeditor.

CTRL-D Moves the cursor one character to the left. If the cursor is already inthe beginning of the line, it is not moved to the next line.

CTRL-E Moves the cursor to the end of the line, or onto the last character if theline, buffer or line buffer ends.

CTRL-F Functions like the 'left' arrow. Moves the cursor one character to theright. Does not move the cursor to the next line but stops at the lastcharacter of the line.

CTRL-H Moves the cursor to the top left hand corner of the screen.

Executing MML Commands in IPA-RNC Using MML commands

Issue: 09 DN02143068 25

   

CTRL-I Functions like the 'up' arrow. Moves the cursor one line up.

CTRL-J Refreshes the screen.

CTRL-K Functions like the 'down' arrow. Moves the cursor one line down.

CTRL-L Deletes the character the cursor points to.

CTRL-O Displays the previous screen and moves the cursor to its first line.

CTRL-P Displays the next screen and moves the cursor to its first line.

CTRL-R Functions like  CTRL-H . Moves the cursor to the top left hand cornerof the screen. If the cursor is already in the beginning of the buffer, itis moved to the beginning of the file's first line.

CTRL-R + CTRL-RMoves the cursor to the top left hand corner of the file.

CTRL-W Moves the cursor to the bottom left hand corner of the screen. If thecursor is already in the beginning of the last line, it is moved to theend of the file, that is, to the beginning of the file's last line.

CTRL-W + CTRL-WMoves the cursor to the bottom left hand corner of the file.

CTRL-X Deletes the line the cursor point to.

CTRL-Z Functions like  CTRL-C . Terminates command execution and exits theeditor.

Related topics

Descriptions

MML command execution

3.4 Editing text files of MML commands

Text files can be edited in the ways introduced below. The structure of text files is alsoexplained briefly.

Special text files used in the system are command files and MML macros. Commandfiles are run with the IDE command or as a task of the command calendar.

Using MML commands Executing MML Commands in IPA-RNC

26 DN02143068 Issue: 09

   

Structure of text files

In general, the structure of text files is free. However, special attention should be paid tothe command file, since its structure is strictly defined.

The command file must always start with a comment line. The comment is traditionallymarked with the /* */ character pair. The group of tasks performed by the command fileshould be described on the comment line.

After the comment line, the commands have been listed on separate lines in thecommand file. The commands are in the order of execution. Each line is ended with thesemicolon, which also ends an MML command.

The extension part of the command file must be CMD. Otherwise, the command file runwill not succeed with the IDE command. The command calendar also assumes theextension part of the file to be CMD.

Editing text files with MML commands

Editing and creating text files takes place with the IEE command.

The IEE command initiates a screen editor where the command and special charactersdescribed above are in use. The file to be edited has some restrictions on the name anddirectory, and these are explained in the command description.

Related topics

Descriptions

MML command execution

3.5 Opening and closing MML sessionsBefore you start

Before you can enter MML commands, you have to open an MML session. You can openan MML session only if you have a user identity.

Note that when opening an MML session via the EM MMI Window, the system asks foryour username and password when opening the Element Manager but does not ask youto enter them in the beginning of the MML session. However, the EM user must bemapped to an MMI user.

If opening an MML session fails, see Opening an MML session fails.

Purpose

Communication with the system takes place in an MML session: while you operate thesystem by entering MML commands, the system produces output and displays differentkinds of messages. MML commands are entered from the keyboard of the MML terminal,while printouts and messages are usually displayed on the screen of the MML terminalyou are using.

Executing MML Commands in IPA-RNC Using MML commands

Issue: 09 DN02143068 27

   

The MML terminal is connected to the exchange using Telnet or SSH.

1 Open an MML session

1. Enter your user ID when the system asks you to (ENTER USERNAME <).2. Enter your password when the system asks you to (ENTER PASSWORD <).

g Passwords are case sensitive. You must use the correct upper or lowercase as defined in your user ID.

2 Close an MML session

1. Enter Z and a semi-colon (Z;) at the main levelTo move to the main level, enter Z and a semi-colon (Z;).

3 Terminate an MML session

g It is not recommended to use this procedure in normal circumstances. It isbetter to close the MML session instead of terminating it.

1. Press BREAKTo terminate the MML session press  BREAK . You can also press  CTRL-Y : thiskey combination terminates the session when you are entering your user identityor password or typing a command at the main level; or when you have enteredthe command class letter or displayed the command class menu.

Expected outcome

The session is opened when the welcome dialogue and the MAIN LEVEL COMMANDprompt are displayed. This means that you can enter MML commands. See the followingexample:

WELCOME TO THE IPA2800 SERIES DIALOGUE

MAIN LEVEL COMMAND <___><

At the top of the screen there are the type and the name of the network element as wellas the date and the time. The bottom of the screen indicates that you are at the mainlevel.

The session is closed when the following message is displayed:

END OF DIALOGUE SESSION

Using MML commands Executing MML Commands in IPA-RNC

28 DN02143068 Issue: 09

   

3.6 Entering MML commands step by stepBefore you start

To be able to operate the system, you need a user identity. Each user ID is associatedwith a profile that determines the commands the user is authorised to execute.

Purpose

The system is mostly operated by means of MML commands. When you enter MMLcommands, the system produces execution printouts of the commands and variousmessages. MML commands are entered from the keyboard of the MML terminal and theprintouts and messages are normally displayed on the screen of this terminal.Communication with the system takes place in an MML session.

The system has an online help with command menus and a parameter guide. You canenter MML commands step-by-step using command menus and the parameter guide orsimply type them in without using the help. While you type in MML commands, you canedit the commands using the line editor. This editor also lets you search for thecommands you have entered during an MML session.

The MML commands that are executed during a particular MML session are written to anMML command log, which also contains other information on the MML session. Thecommand log can be used, for example, to list the commands that were given before anerror occured. It can also be used as a basis of a disk command file.

g Use upper case letters when you type the MML commands.

You can edit the command you are typing or the commands that you havealready entered.

1 Display the command menu (?)Display the menu of the command classes by entering a question mark (?) when youare at the main level; that is, when the MAIN LEVEL COMMAND prompt is displayed.Expected outcomeFor example, the following menu can be displayed:

MAIN LEVEL? ..... DISPLAY MENUA ..... ALARM SYSTEM ADMINISTRATIONC ..... ROUTING STATE ADMINISTRATIOND ..... SYSTEM SUPPORT AND COMMUNICATIONE ..... CELLULAR RADIO NETWORK ADMINISTRATIONI ..... I/O SYSTEM ADMINISTRATIONL ..... BROADBAND ADMINISTRATIONN ..... SS7 NETWORK ADMINISTRATIONO ..... SUPPLEMENTARY SS7 NETWORK ADMINISTRATIONQ ..... O&M NETWORK ADMINISTRATIONR ..... ROUTING ADMINISTRATIONT ..... TRAFFIC ADMINISTRATION

Executing MML Commands in IPA-RNC Using MML commands

Issue: 09 DN02143068 29

   

U ..... UNIT ADMINISTRATIONW ..... SYSTEM CONFIGURATION ADMINISTRATIONY ..... SYSTEM SUPERVISIONZ; .... END DIALOGUE (:)

MAIN LEVEL COMMAND <___><

2 Display the menu of the command classTo display the menu of the I command class, for example, enter I?.Expected outcomeFor example, the following menu can be displayed:

I/O SYSTEM ADMINISTRATION ? ..... DISPLAY MENU A ..... MMI SYSTEM AUTHORITY HANDLING B ..... I/O FILE BACKUP C ..... COMMAND CALENDAR HANDLING D ..... DISK COMMAND FILE EXECUTION E ..... DISK FILE OPERATIONS F ..... VIRTUAL DATA STORING DEVICE HANDLING G ..... MML COMMAND LOG HANDLING H ..... I/O UNIT OPERATING STATE HANDLING I ..... I/O CONFIGURATION HANDLING P ..... BATCH COPY HANDLING R ..... SECURITY REPORTING HANDLING W ..... DISK FILE AND DIRECTORY HANDLING X ..... DISK FILE COMPRESSION HANDLING Z; .... RETURN TO MAIN LEVELI/O SYSTEM ADMINISTRATION COMMAND <I__><

3 Display the menu of the command groupTo display the menu of the IC command group, for example, enter C?.Expected outcomeFor example, the following menu can be displayed:

COMMAND CALENDAR HANDLING COMMANDS ? ..... DISPLAY MENU I:...... ADD NEW COMMAND CALENDAR TASK M: ..... MODIFY COMMAND CALENDAR TASK D: ..... DELETE COMMAND CALENDAR TASK L: ..... LIST CALENDAR T: ..... TEST COMMAND CALENDAR TASK EXECUTION B: ..... BLOCK OR UNBLOCK COMMAND CALENDAR TASK S: ..... STOP COMMAND FILE EXECUTION Z; ..... RETURN TO MAIN LEVEL

COMMAND CALENDAR HANDLING COMMAND <IC_><

Using MML commands Executing MML Commands in IPA-RNC

30 DN02143068 Issue: 09

   

4 Enter the commandComplete the command part by entering the third letter of the command, for exampleL.Expected outcomeThe parameter guide and the three command letters are displayed. Below is theparameter guide of the ICL command:

/* PARAMETERS: LISTING PARAMETER: LISTING FORM;*/

5 Display parameter guide of the commandPress  ENTER  to display information on the parameters.Expected outcomeA guidance text is displayed on the screen, helping you to give the parameterscorrectly. The following guide gives information on the parameters in the firstparameter block of the ICL command:

/* COMMAND CALENDAR LISTING PARAMETERS PARAMETER NAMES:

ID ....... TASK IDENTIFIER QUE ...... QUEUE NAME CFILE .... COMMAND FILE NAME ALARM .... EXECUTION ALARM NUMBER DATE ..... DATE OF EXECUTION HOURS .... TIME OF EXECUTION */

6 Enter the parametersEnter the parameters.

Example:

For example, to display all tasks in the command calendar on the first of January,2000, enter the date parameter in the format YYYY-MM-DD (the system guides youas regards the form if you press  ENTER ):

ICL:DATE=2000-01-01

After you have entered the parameter, the system normally adds a separator anddisplays the parameter guide of the following parameter. If the system does not addthe separator, enter the separator. For example, when you are entering the ICLcommand, move to the following parameter block by entering a comma after youhave entered a value to the date parameter.

Executing MML Commands in IPA-RNC Using MML commands

Issue: 09 DN02143068 31

   

Enter now the execution times of the command calendar tasks you wish to list. Aftertyping HOURS=, press  ENTER  and the system guides you as regards the correctform by displaying the following text:

/* IDENTIFY LISTING EXECUTION TIME: DECIMAL NUMBER HH ( &,&& ) DEFAULT IS ANY TIME */

Enter the execution time, for example:

ICL:DATE=2000-01-01,HOURS=1&&3

Enter the following parameters of the command in the same manner. Enter a colon ifyou wish to give the default value.

After you have entered the last parameter that the command requires, the executiondetermination block is displayed:

/* SELECT EXECUTION DETERMINATION OR SYSTEM NAME OF OUTPUT DEVICE EXECUTION DETERMINATION: ; .. COMMAND EXECUTION N .. NO EXECUTION SYSTEM NAME OF OUTPUT DEVICE: 1 ... 11 CHARACTERS DEFAULT IS CURRENT DEFINITION */

ICL:DATE=2000-01-01,HOURS=1&3::

7 Execute or cancel the commandTo execute the command, enter a semi-colon (;).Expected outcomeExecution printouts, if the command has any, are displayed on the MML terminal youare using. After the command is executed, the following message is displayed:

COMMAND EXECUTEDThe system moves you to the command group level.To cancel the command, enter N when the execution determination block isdisplayed.The following message is displayed:

COMMAND IGNOREDThe system moves you to the command group level.

g If you have already entered the semi-colon (;) to execute the command, youcan attempt to terminate command execution by quickly entering  CTRL-Y .

Using MML commands Executing MML Commands in IPA-RNC

32 DN02143068 Issue: 09

   

8 Return to the main levelTo return to the main level, proceed as follows:

• If you are at the command class or command group level, enter Z and a semi-colon (Z;).

• If you have already entered one or more parameters, first press  CTRL-X  (thesystem moves you to the command group level) and then enter Z and a semi-colon (Z;).

Expected outcome

After you have entered an MML command, an execution printout is usually displayed,which indicates that the command is being executed. The printout is normally displayedon the screen of the MML terminal you are using. If the execution of the commandsucceeds, the message COMMAND EXECUTED is displayed.

Unexpected outcome

Should an error occur, an error message is displayed indicating the cause of the error. Inaddition, a guidance is displayed, telling how the erroneous part of the command shouldbe written. You do not have to re-enter the entire command. Instead you can continuefrom the erroneous point onwards.

3.7 Entering MML commands without using the onlinehelpPurpose

This procedure gives instructions on how to enter MML commands without using theonline help. When the user is experienced enough, he can give the commands directlywithout using the menu selection or guidances. This makes the working efficient andquick.

1 Enter the command letters and parametersWhen you are at the main level, simply type the three command letters. If thecommand has parameters, enter the values. For example:ICL:DATE=2000-01-01,HOURS=1&&3::

When you are at the command class or command group level, type Z in front of thecommand. (You can also type the Z when you are at the main level, that is, alwayswhen you enter a command). For example:ZICL:DATE=2000-01-01,HOURS=1&&3::

2 Execute the commandExecute the command by entering a semi-colon (;).

Executing MML Commands in IPA-RNC Using MML commands

Issue: 09 DN02143068 33

   

Expected outcome

After you have entered an MML command, an execution printout is usually displayed,which indicates that the command is being executed. The printout is normally displayedon the screen of the MML terminal you are using. If the execution of the commandsucceeds, the message COMMAND EXECUTED is displayed.

Unexpected outcome

If there is an error in the given command, an error message and a guidance aredisplayed, after which the user can re-enter the part that was erroneous.

Related topics

Descriptions

MML command execution

3.8 Repeating or cancelling MML commands

1 Repeat an MML command

1. Press the 'up' arrow to search for a commandSearch the command you wish to repeat by pressing the 'up' arrow.

2. Execute the commandExecute the command by pressing ENTER when the command is displayed afterthe prompt.

2 Cancel an MML commandSelect one of the following alternatives:

• Interrupt MML command executionWhen the semicolon has not been given, but all the command parameters havebeen typed, type the letter 'N'. Thus the command will not be executed, and thecommand entering procedure returns to the beginning of the command group inquestion.

• Terminate command executionTo terminate command execution, press  CTRL-Y .

Expected outcome

A command is succesfully repeated or cancelled.

Using MML commands Executing MML Commands in IPA-RNC

34 DN02143068 Issue: 09

   

3.9 Moving from one command level to anotherPurpose

You can use command menus to move from the main level to the command class leveland, finally, to some of the command groups in that command class (for example, fromthe main level to the U command class and, finally, to the US command group).

1 Move from one command level to anotherSelect one of the following alternatives:

• Move to the main levelTo move to the main level, enter Z;.

• Move to a command classTo move to any command class, enter Z and the letter of the command class inquestion. For example, if you want to move to the U command class, enter ZU.

• Move to a command groupTo move to any command group, enter Z and the two letters of the commandgroup in question. For example, if you want to move to the US command group,enter ZUS.

Further informationThe following figure illustrates how to move from one command level to another.

Executing MML Commands in IPA-RNC Using MML commands

Issue: 09 DN02143068 35

   

Figure 5 How to move from one command level to another

You can also move to the command group of the command that you are entering orthat you have just entered by pressing  CTRL-X . If you are entering a command, thiskey functions only if you have entered at least the three command letters of thecommand.

Expected outcome

You move succesfully to another command level.

3.10 Entering default values to parametersPurpose

A default value is the value the system gives to a parameter when you do not give aspecific value to it. Some parameters do not have default values, but they must alwaysbe given a specific value; these parameters are obligatory. The parameter guide and thesyntactic rules of each command indicate which parameters are obligatory.

A default value can also be indicated by entering a specific value to a parameter. This is,of course, a more complicated way to indicate a default value.

If you use the parameter guide, when the parameter guide indicates that a default valuecan be given to a position-defined parameter, enter a comma (,).

Using MML commands Executing MML Commands in IPA-RNC

36 DN02143068 Issue: 09

   

If you do not use the parameter guide, in order to indicate a default value of a position-defined parameter when you type in a command without using the parameter guide, omitthe parameter value, but leave the appropriate separator.

1 Enter default values to position-defined parametersSelect one of the following alternatives:

• Separate the parameter from other parameters (,)If other parameters must be entered before the parameter block ends, enter acomma (,) to separate the parameter from the other parameters.

• Separate the parameter from the following parameter block (:)If the parameter block ends after the parameter, enter a colon (:) to separate theparameter from the following parameter block.

Example:Entering default value by giving commaOmit the value of the first parameter in the first parameter block by giving comma:ZIID:,OMU:COMCAL;

Example:Entering default value by omitting the valuesOmit the values of both parameters in the first parameter block and leave theseparator (the colon):ZIID::COMCAL;

2 Enter default values to name-defined parametersTo indicate a default value of a name-defined parameter, enter the name of theparameter, an equal sign and a comma (for example, DATE=,). Some commands letyou omit the parameter name, the equal sign and the comma that follows theparameter.Example:Entering default value by giving commaGive the default values (START=1 and STOP=65000) by giving comma:ZIDL:WDU,0,COMMANDS:START=,STOP=;

Example:Entering default value by omitting the parameters and comma

Omit the values of the parameters and the comma that would follow one of theseparameters:

ZIDL:WDU,0,COMMANDS:;

Expected outcome

Default value is given succesfully.

Executing MML Commands in IPA-RNC Using MML commands

Issue: 09 DN02143068 37

   

3.11 Changing the language of MML command menusPurpose

This procedure gives information on how to change the language of MML commandmenus.

1 Press CTRL-KIf several languages are in use, you can change the language of command menuspressing  CTRL-K .

Expected outcome

The language of MML command menus is changed.

3.12 Setting an MML program in the test statePurpose

g Only for the use of MML program designers.

These instructions are not relevant in normal operation of the exchange.

1 Press CTRL-4To set an MML program in the test state and to display the help printouts that areused in the testing of the program, press  CTRL-4 .

2 Press ENTER after each printout

3 Press CTRL-4 for the second timeWhen you press  CTRL-4  again, the printouts of the semantics check are displayed.

4 Press CTRL-4 for the third timeWhen you press  CTRL-4  for the third time, the MML program is set in the normalstate.

Expected outcome

The MML program is set in the test state.

Using MML commands Executing MML Commands in IPA-RNC

38 DN02143068 Issue: 09

   

3.13 Setting an MML session time-outPurpose

You can define an idle time limit for MML sessions after which time the session is closedautomatically if there is no interaction or command execution. You can change the idletime value with two MML commands, the IAX command and the IAA command. Thetime limit can be defined individually for each user profile.The change takes immediateeffect on your current session; other users must relogin before the change is effective.The value range of the MML session idle time limit is 1 to 60 minutes. The default valueis 15 minutes.

1 Changing the idle time limitSelect one of the following alternatives:

• Changing the idle time limit of your own profile (IAX)ZIAX:<mml_session_idle_time_limit>;

• Changing the idle time limit of a certain profile (IAA)The limit is changed using the TLIMIT parameter.ZIAA:<profile>::,,,:TLIMIT=<mml_session_idle_time_limit>;

Expected outcome

An MML session time-out is set.

Executing MML Commands in IPA-RNC Using MML commands

Issue: 09 DN02143068 39

   

4 MML macros

4.1 MML macros

A feature of the MMI system is its extended command language which enables theuser to program complex consecutive tasks by using the existing MML commands. Atask entity, programmed using the command language, constitutes an MML macrowhich comprises programmable logic and MML commands that are used in series ofspecific kinds. MML macros are disk files, run interactively by the user in the systemand by means of the MMI system.

You can create and edit MML macros. Certain MML macro types are supplied by NokiaSiemens Networks and cannot be edited by users.

The planning of a macro is usually started by giving it an MML macro name.

MML macros are useful, for example, when executing command sequences that need tobe executed repeatedly. They can be used to carry out more complicated tasks than diskcommand files because they contain both MML commands and programmable logic.However, unlike disk command files, they cannot be executed in the command calendar.

MML macros are stored in disk files. See below an example of an MML macro thatcopies the needed file from the source directory to the destination directory on bothdisks. Note that the macro contains a description on what the macro does.

/* @(#)MID: TSTI1OGE.EMM 1.1-0 00/06/01 */$I ..... I/O SYSTEM ADMINISTRATION$1 ..... TEST MACROS$O ..... COPY FILE FROM SOURCE TO DESTINATION DIR

TSTI1OGE( ?FILENAME, ?EXTENSION, ?SOURCE, ?DEST );

declaration?FILENAME(10)"/* GIVE FILENAME TO BE COPIED */",?EXTENSION(3)"/* GIVE EXTENSION OF FILENAME */",?SOURCE(10)"/* GIVE SOURCE DIRECTORY */",?DEST(10)"/* GIVE DESTINATION DIRECTORY */";

/****************************************************************** This MML macro copies needed file from source directory to* destination directory on both disks.*******************************************************************

MML macros Executing MML Commands in IPA-RNC

40 DN02143068 Issue: 09

   

* 1 In case of error continue executing macro* 2 Only MML macro output's are shown* 3 When MML requires confirmation automatically use 'Y'* 4 Set source directory* 5 Set destination directory* 6 Copy file from source to destination directory* 7 If copying fails then output error text* 8 If copied successfully output text*****************************************************************/

on_error continue; /* 1 */output_off; /* 2 */on_confirm continue; /* 3 */

IWY:S:PATH=?SOURCE; /* 4 */

IWY:D:PATH=?DEST,DRIVE=WDU-S; /* 5 */

IBC:,,?FILENAME,?EXTENSION; /* 6 */

if error then; write_term( NL, "/*** CANNOT COPY FILE, CHECK INPUT ***/", NL ); /* 7 */else; write_term( NL, "/* ", ?FILENAME, ".", ?EXTENSION, " COPIED SUCCESSFULLY FROM ", ?SOURCE, " TO ", ?DEST, " */", NL ); /* 8 */fi;

exit;

MML macros can be created and edited by the users of the system. Certain types ofmacros are supplied by Nokia Siemens Networks. These macros cannot, however, beedited by users.

MML macros are stored in the MMDIRE directory of system and backup disks. Theextension of MML macros is always EMM.

Running MML macros

The MML macro run means that the user starts the MML macro on the MML terminal.

Executing MML Commands in IPA-RNC MML macros

Issue: 09 DN02143068 41

   

The MML macro can be run interactively on an MML terminal when an MML session isactive. There are two basic ways to run an MML macro: short start-up method and longstart-up method. The short start-up method is simpler. It can be used as an addition tothe long start-up method.

Note that if you do not write a semicolon (;) as the last character in the start command,the MMI system asks you whether you wish to start the MML macro.

When the MML macro is run, values have to be entered for the parameters shown inheader part of the MML macro in question (see Header in MML macros). The valueshave to correspond to the parameter definitions in the MML macro, which is normal orblock parameter. They also have to correspond to the parameter type, which is characterstring or an integer. Enter the parameter values in the parameter presentation order.

If the parameter is presented as a block parameter in the macro, besides characters thatare accepted as values for normal parameters, a comma (,).

If you enter the parameters in the start command, the following rules also apply:

• When the long start-up method is used, the parameter values are in brackets.• The normal parameter values are separated by a comma.• A semicolon is used to separate blocks.• For a block parameter, a colon is used to separate the values.• Position defined parameters are entered in their block in the order indicated in the

header part.

Different types of parameter values are entered as follows. The character string constantis given either in quotation marks or without them. In a character-string constant that ismarked off with quotation marks, all characters from a space to the right bracket (ASCIIcode values 20H-7DH), excluding the brackets itself (22H), are allowed. If quotationmarks are not used to mark off character strings, a quotation mark is allowed incharacter string constant. However, in such a case, a space and character stringdelimiters for parameter values are not allowed. An integer constant is given as anunsigned decimal.

To run an MML macro by using the short start-up method, see the Short start-up methodfor MML macros. To run an MML macro by using the long start-up method, see the  Longstart-up method for MML macros.

Related topics

Instructions

Executing an MML macro

Testing MML macros

Installing MML macros

Listing MML macros

Displaying the contents of an MML macro

Descriptions

MML macros Executing MML Commands in IPA-RNC

42 DN02143068 Issue: 09

   

MML macro names

MML macro structure

Command language expressions and statements in MML macros

Execution of MML macros

Structural parts of the command language in MML macros

4.2 MML macro names

The fourth, fifth and sixth character together specify the MML macro so that it isunambiguous. The fourth character indicates the MML command class in which the MMLmacro group is located. The fifth character is the identifier for the MML macro group.The identifier is a number between 1 and 9. The sixth character is a command letter A-Ywhich can be chosen according to the MML macro task, for example, deletion D=delete.

Figure 6 MML macro names

The MML macros created by Nokia Siemens Networks are named in a slightly differentmanner. Do not choose as the name of your macro the combination of the fourth, fifth, orsixth character of an existing Nokia MML macro name. Also avoid choosing thecombination of the fourth and fifth character of an already existing Nokia MML macroname. In other words, avoid putting your MML macro in the same MML group with theNokia MML macros.

MML macro group

A group of those MML macros whose names have the same fourth and fifth letters andare shown in the same MML menu comprise an MML macro group. Normally, macros inthe same group have similar kinds of tasks.

Related topics

Descriptions

MML macros

Executing MML Commands in IPA-RNC MML macros

Issue: 09 DN02143068 43

   

4.3 MML macro structure

At the highest organisational level, an MML macro is composed of three sections:

• an identification string• a menu• a header, declaration and execution part.

The three sections are separated by means of a semicolon (;).

On the first line of the MML macro, there has to be an identifier character string as acomment.

/* @(#)MID: OMBI1DGE.EMM 1.1-0 00/01/11 */

The header part always contains the name of the MML macro, either with or without anextension. If the macro uses parameters, they are presented in the header. The definitionsection contains the definitions for the parameters and variables. The execution part ismade up of command language statements.

Related topics

Descriptions

MML macros

Structural parts of the command language in MML macros

Menu texts in MML macros

Header in MML macros

Declaration and execution parts in MML macros

4.4 Structural parts of the command language in MMLmacros

The following structural parts belong to the command language:

• line structure• characters• identifiers• keywords• constants• operators• comments

MML macros Executing MML Commands in IPA-RNC

44 DN02143068 Issue: 09

   

Line structure

The line structure of command language is free. There need be no correspondencebetween the logical structure of the language and the structure of the line. However, itwould be sensible to model the structure after the different parts of the program byemploying line feeds, empty lines, blank spaces and indentations. The commandlanguage specifications do not set an upper limit for line length, but we recommend thata line contain no more than 70 characters.

Characters

The command language uses the following characters:

• capital letters from A to Z• lower-case letters from a to z• cardinal numbers from 0 to 9• empty space, tabulator, line feed• the special characters ( ) + - * / = < > , : ; " ? $ _

In addition, character-string constants may also contain other characters that are foundin the character set of a computer.

Identifiers

The following rules govern the use of identifiers that are employed as names for MMLmacros, parameters, variables, subprograms and references:

• An identifier may contain capital letters (A-Z), underline characters ( _ ) and numbers(0-9).

• An identifier always starts with a letter.• The maximum length of identifiers other than the names of MML macros is 10

characters, all of which are significant.• The identifiers used in an MML macro which are not MML macro names are specific

to the macro in question.• An MML macro must not contain two or more identical identifiers that are used for

different purposes.• There must always be a question mark (?) in front of the identifier for a parameter or

variable.

Keywords

An unaccompanied keyword can only be used in contexts and with meanings presentedin the specifications of the command language. Keywords are written in lower-caseletters and they are (please note that all keywords are not necessarily in use, instead,they are reserved for a possible future use):

if and then xor else or fi not

Executing MML Commands in IPA-RNC MML macros

Issue: 09 DN02143068 45

   

while end declaration numeral goto label on_error gosub on_confirm subrou ask retsub continue call exit return error dstr_to_num echo_on num_to_dstr echo_off hstr_to_dstr output_on output_off read_term trace_on write_term trace_off

currentstr readstr currentln partstr prevln nextln delay set_def_buffer waitConstants

The command language recognises integer-string and character-string constants.

An integer constant is written as an unsigned string of numbers, which means that theconstant is always positive. The integer range is 0...4294967295. The integer may begiven as a constant either in the form of a decimal number, such as 17, or a hexadecimalnumber, in which case the figure always begins with a zero (0) and ends with the letterH, as in 01BH. In a hexadecimal number, only capital letters are allowed.

The character-string constants are made up of characters given between quotationmarks ("), e.g."0B & 12". The characters allowed in the constants range from the space(20H) to the right bracket (7DH), excluding the quotation mark (22H) itself. The maximumlength of the character-string constant is the maximum length of the character-stringvariable.

Operators

The command language uses arithmetic, logical, and comparative operators.

The arithmetic operators are: + (addition), - (subtraction), * (multiplication), and /(division). Arithmetic operators are only applicable to positive integer operands, and theresult is always an integer. There is one exception: an addition where both operands arecharacter strings, for example, the result of the expression "A"+"BC" is "ABC". Also, itshould be noted that a division operator breaks off the integer, for example, the value forthe expression 7/3 is 2.

The logical operator is 'not' (NO operation). The operands of logical operators must bepositive integers.

MML macros Executing MML Commands in IPA-RNC

46 DN02143068 Issue: 09

   

The comparative operators are: < (less than), <= (less than or equal to), > (greater than),>= (greater than or equal to), <> (does not equal), and = (equals). The operands ofcomparative operators must be positive integers; however, in comparisons involving thelast two operators ('does not equal', 'equals'), the operands can also be characterstrings.

Comments

A comment starts with the character pair /* and ends with the pair */. A comment may becontinued from one line to another, but inside of a comment no other comment isallowed.

Related topics

Descriptions

MML macros

4.5 Menu texts in MML macros

If the MML macro is not meant for a package which contains specific old programversions and you wish to run the macro with, what is known as, the short start-upmethod, the menu texts have to be right at the beginning of the MML macro.

A menu text on a line of its own corresponds to three characters of the MML macro shortstart-up method command. The command characters are the same as characters 4 - 6 ofthe MML macro. The menu line starts with the ($) character which is followed by acommand character.

Example of an MML macro menu text:

$X .... MML COMMAND CLASS X MENU TEXT$N .... MML COMMAND GROUP N MENU TEXT$Y .... MML MACRO COMMAND Y MENU TEXTMML MACRO HEADER...Related topics

Descriptions

MML macros

4.6 Header in MML macrosStructure

The header of an MML macro is composed of the macro's identifier - its name withoutthe extension - and of the parameters, if any, presented in brackets (the parameter list).The header ends with a semicolon (;).

Executing MML Commands in IPA-RNC MML macros

Issue: 09 DN02143068 47

   

All parameters are position-defined. Parameters are separated by a comma (,), whileparameter blocks are delimited by means of a colon (:). If only one parameter ispresented in a parameter block, the parameter of the block in question is interpreted as ablock parameter. The following figure presents an example of the structure of an MMLmacro header.

Figure 7 An example of the structure of an MML macro header

Position-defined parameters

The presentation of a position-defined parameter begins with a question mark (?),followed immediately by the parameter's identifier (parameter name). The presentationends with a comma, colon, or right bracket.

Block parameter

If the presentation of a parameter ends with a colon or right bracket, and if it is the onlyparameter in the block, it is a block parameter. The difference between a normal and ablock parameter is that the latter always accepts a comma (,) as a character, in additionto all the other characters that normal parameters accept as their values.This is whygreat care should be taken when using block parameters, in order to avoid enteringinvalid parameter values. A block parameter can only be of character string type.

Related topics

Descriptions

MML macros

4.7 Declaration and execution parts in MML macrosDeclaration of parameters and variables

All parameters and variables to be found in an MML macro must be specified in thedeclaration part, which is situated in the macro after the header and before the executionpart. The declaration part begins with the keyword 'declaration' and ends with asemicolon (;). The part consists of declarative statements, each of which defines oneparameter or variable. The statements are separated with commas (,). Parameters aredeclared before variables.

MML macros Executing MML Commands in IPA-RNC

48 DN02143068 Issue: 09

   

In the declarative statement, the parameter or variable identifier is immediately precededby a question mark (?). After the identifier, the parameter or variable type may follow inbrackets. As type definition, the choice is between the keyword 'numeral' and an integerconstant.

If the keyword 'numeral' is placed in brackets, the parameter or variable is of the integertype (DWORD), with a range of 0...4294967295. If, however, the brackets contain aninteger constant within a range of 1...223, then the parameter or variable is declared tobe of type character string, and the constant indicates the string's maximum length. Thedefault parameter and variable type is a character string up to 40 characters long.

Finally, there may be in a parameter declaration, in parentheses ("), an instruction with amaximum length of 2000 characters. If no instruction has been defined for a parameter, itis replaced by the parameter's identifier. No instructions are defined for variables.

declaration /* Parameters */

?FILE_NAME( 15 ) "/* FILE NAME, MAX 15 MARKS */", /* string length 15 */

?SOURCE " /* GIVE SOURCE DIRECTORY */", /* string length 40 */

?DEC_NUMBER( 30 ), /* string length 30 */

/* Variables */

?INDEX1( numeral ), /* numeral dword */ ?VALUE1, /* string length 40 */ ?VALUE2( 50 ); /* string length 50 */Execution part

It is the function of the execution part of an MML macro to process data and to executetasks or series of tasks by means of a command language translator. The execution partcontains command language statements, which can be simple or structured. Thestatements end in a semicolon (;). Empty statements which only include a semicolon arenot allowed.

Related topics

Descriptions

MML macros

Executing MML Commands in IPA-RNC MML macros

Issue: 09 DN02143068 49

   

4.8 Command language expressions and statements inMML macros

Command language is a language made up of statements with an unambiguousstructure and meaning, read by the MMI system's internal interpreter, and developed byNokia Siemens Networks. In the MML session, its is also possible to run MML macros byusing the extended command language.

A command language expression is a formula. When the value for the formula iscalculated, the true values, at the time of execution, of all the constants and variables inthe formula are used. The values for the variables do not change during the calculationas at that point their values are only retrieved.

An expression may be nothing more than a constant or variable. In expressions, nobracket characters are allowed.

The different operand types allowed in different command language expressions and thevarious operators are as follows: directives, stop statements, input and outputstatements, placement statements, if-statements, while-statements, MML command,library routines and exit statements.

Related topics

Descriptions

MML macros

4.9 Directives in MML macros

Command language directives are instructions for the benefit of the translator, indicatinga deviation in the execution part of an MML macro from the normal procedure, or areturn to it. Directives are used to control errors, MML command confirmation requests,to administrate execution messages and to facilitate the testing of the MML macros.

Errors

When errors occur an on_error directive and an error flag are used. When the error flagis set, the macro execution ends, or continues according to the value for the on_errordirective. If the on_error directive has no value, the macro execution ends.

The on_error directive must contain a parameter. The following keywords (values) areused as such parameters:

exit the execution of the MML macro is discontinued and the processreturns to the call level of the macro in question.

continue the execution of the macro is resumed.

MML macros Executing MML Commands in IPA-RNC

50 DN02143068 Issue: 09

   

ask the user is asked whether the execution of the MML macro iscontinued (continue) or discontinued (exit).

The default value for the on_error directive is exit. The use of the directive starts with thedirective on_error itself, followed by at least one space and one parameter.

The error flag is set (to 1) when the output statement, a certain command languageroutine, or an MML command execution fails, otherwise its value is 0 after the executionof a command language statement. The setting of the error flag is ascertained before theexecution of every command language statement; if the flag is set, then the current valuefor the on_error directive dictates what follows.

Example of the use of the on_error directive is as follows:

on_error continue; :IBC:,,?FILENAME,?EXTENSION;if error then; write_term(NL,"/*** CANNOT COPY FILE ***/");fi; : MML command confirmation

The on_confirm directive is used to handle MML commands which request a confirmbefore the command execution. The on_confirm requires a parameter. The followingkeywords (values) are used as parameters:

ask The program asks the user for a confirmation of the commandexecution (Y or N):

• the command is confirmed (Y), in which case the user is askedwhether the program should stop at every following confirmationrequest, or whether the requests are automatically answered Y.

• the command has not been confirmed (N) so that whenconfirmation is requested, the procedures for value 'ask' arefollowed.

continue The command is automatically confirmed (Y) without stopping orechoing the confirmation request.

By default, the value for the on_confirm directive is 'ask'. The use of the directive startswith the directive on_confirm, which is followed by at least one space and a parameter.

Example of the use of the on_confirm directive is as follows:

on_confirm ask; : IWI::F0,DRIVENAME,,,PR:; :

Executing MML Commands in IPA-RNC MML macros

Issue: 09 DN02143068 51

   

Execution message

The directives output_on and output_off are used to control the execution messages ofthe MML commands and their display on the terminal. With the output_on directive, themessages are displayed on the terminal, while with the output_off directive, they are not.The default is output_on. Both directives are used without parameters.

Example of the output_on and output_off directives is as follows:

output_off;USI:ALL; :output_on;IBC:,,?FILENAME,?EXTENSION; : Echoing

The directives echo_on and echo_off are used to echo command language statements.Echoing is activated with the echo_on and deactivated with the echo_off directive, thelatter being the default. Both directives are used without parameters.

Example of the echo_on and echo_off directives is as follows:

: echo_on; set_def_buffer(2); currentstr("AS."); if error then; ?VALUE = ""; else; ?VALUE = readstr(4); ?VALUE = "AS=" + ?VALUE; ?VALUE = ?VALUE + ","; fi; echo_off; :Echoing and stopping

The trace_on and trace_off directives are used both to echo command languagestatements and to stop their execution after each statement. This facility is activatedusing the trace_on directive, and it is deactivated using the trace_off directive, which isalso the default.

Example of the trace_on and trace_off directives is as follows:

: trace_on; IAI:PROFILE=:; ?EXIT = "0"; while ?EXIT = "0"; set_def_buffer( 1 ); nextln( 4 ); currentstr( "PROFILE NAME:" );

MML macros Executing MML Commands in IPA-RNC

52 DN02143068 Issue: 09

   

if error then; ?EXIT = "1"; else; ?TEMP_STR = readstr( 2 ); ?P_NAME = partstr( 1,10, ?TEMP_STR ); set_def_buffer( 2 ); IAA:?P_NAME:::TLIMIT=15; fi;end;trace_off; : Related topics

Descriptions

MML macros

4.10 Stop statements in MML macros

The execution of MML macros can be stopped by using either the delay or the waitstatement.

The delay statement stops the execution of an MML macro for a given period of time.The statement begins with the keyword 'delay', which is followed by the d time inbrackets: an integer constant indicating a multiple of 10 ms.

The wait statement produces the text CR,LF,"PRESS ANY KEY TOCONTINUE",CR,LF,CR,LF and the execution of the MML macro is stopped until theuser presses any key. The statement only contains the keyword 'wait'.

Example of the use of stop statements is as follows:

: IBC:,,?FILENAME,?EXTENSION; if error then; write_term( NL, "/*** CANNOT COPY FILE ***/", NL ); wait; fi; : Related topics

Descriptions

MML macros

Executing MML Commands in IPA-RNC MML macros

Issue: 09 DN02143068 53

   

4.11 Input and output statement in MML macros

The read_term and write_term keywords are reserved for the input and output functions.The value for a variable is read by means of the read_term statement, while thewrite_term statement is used to output the values for constants or variables.

The input statement begins with the keyword read_term which is followed by thevariables, placed in brackets and separated one from the other by a comma. Thevariables are of the character string type, and in one input statement there may be up tofive variables.

Example of an input statement is as follows:

: write_term( NL, "GIVE SOURCE DIRECTORY: " ); read_term( ?SOURCE ); write_term( NL, "GIVE DESTINATION DIRECTORY: ", NL ); read_term( ?DEST ); :Which produces the text:

GIVE SOURCE DIRECTORY: MMDIRE GIVE DESTINATION DIRECTORY: BLCODE

Write_term begins an output statement. Then follow, in brackets, the parameters that areto be displayed: character-string variables, character string constants, or pairs of thecharacters NL. One "NL" pair will generate a carriage return (CR) and a line feed (LF) inthe output. At least one parameter is required, and parameters are separated with acomma. One output statement is capable of outputting up to 511 characters. If an erroroccurs in the execution of the output statement, an error flag is set and the execution ofthe MML macro is interrupted unless otherwise defined with the on_error directive.

Example of an output statement is as follows:

?VARIABLE1 = "NUMBER ANALYSIS"; :write_term(NL,"/*** ERROR IN CREATING ",?VARIABLE1," ***/",NL);if error then; :which produces the text:

/*** ERROR IN CREATING NUMBER ANALYSIS ***/Related topics

Descriptions

MML macros

MML macros Executing MML Commands in IPA-RNC

54 DN02143068 Issue: 09

   

4.12 Placement statement in MML macros

A command language placement statement has three parts: the first is always a variable,then the placement operator, that is, the "equals" sign (=), then an expression. The valuefor the expression is calculated prior to placement. The placement statement can containthe following items:

• an operand (if any) preceding the not-operator• operand, operator and operand• library routine.

The operand can be a variable or a constant.

Related topics

Descriptions

MML macros

4.13 If-statement in MML macros

An if-statement is used in MML macros when a decision needs to be made concerning acertain action, or when a choice has to be made between two alternative functions. Theif-statement is structured, and it consists of the following components: the 'if' part,statement(s), the 'else' part (if any), and the end part of the if-statement.

The if-statement begins with the keyword 'if', followed by an expression, and then thekeyword 'then'. This whole constitutes the 'if' part of the if-statement, and it ends with asemicolon. The expressions of the 'if' part are the operand, the comparative operand andoperand. The operand can be a variable or a constant. The expression of the 'if' part canalso be an error flag (see Directives in MML macros) with the value 1 (error flag set) or 0.After the 'if' part, there follows a statement or statements (a), which in turn can befollowed by the keyword 'else' and a semicolon. If the 'else' is not in use in the if clauseconcerned, the if clause is ended. If 'else' is used, it is followed by a statement orstatements (b), and then comes the ending of the if-statement. An if-statement ends withthe keyword 'fi' and a semicolon.

The if-statement functions as follows. If the value for the expression (the if condition) istrue, then the statements (a) following the keyword are executed before moving to thestatement that follows the 'fi' keyword. If, however, the value for the condition is false,what follows depends on whether the if-statement contains an 'else' part. If it does, thestatements (b) following the 'else' word are executed and the process moves to thestatement following the 'fi' word. If it does not (contain an else part), then the processgoes directly to the statement after 'fi'.

Note that in nested if-statements, the 'else' and 'fi' keywords always refer to the nearest,preceding 'if' word that is yet to find an 'else' or 'fi' part for itself. In one nested structure,there may be up to 20 if-statements and while-statements.

Executing MML Commands in IPA-RNC MML macros

Issue: 09 DN02143068 55

   

Example of an if-statement is as follows:

: IBC:,,?FILENAME,?EXTENSION; if error then; write_term( NL, "/*** CANNOT COPY FILE ***/", NL ); else; if ?EXTENSION = "TXT" then; ?TMP_STR = "TEXTFILE "; else; if ?EXTENSION = "IMG" then; ?TMP_STR = "IMAGE "; else; ?TMP_STR = "FILE "; fi; fi; write_term( NL, "/* ", ?TMP_STR, ?FILENAME, ".", ?EXTENSION, " IS COPIED SUCCESSFULLY FROM ", ?SOURCE, " TO ", ?DEST, " */", NL ); fi; : Related topics

Descriptions

MML macros

4.14 While-statement in MML macros

A while-statement is used, in an MML macro, for programming loops that repeat theexecution of a part statement. A while-statement is structured and consists of a conditionpart, part statements, and an ending.

The while-statement begins with the keyword 'while', followed by an expression and asemicolon: this is the condition part. The expressions of the 'if' part are operand,comparative operand and operand. The operand can be a variable or a constant. Afterthe condition part comes a statement or statements (a), followed by the keyword 'end'and a semicolon.

A while-statement functions as follows. The value for the condition part's expression iscalculated first. If the value for the expression (condition) is true (other than zero), thestatements delimited by the condition part and its nearest subsequent end word areexecuted; this sequence is repeated until the value for the condition is false. When thevalue is false (zero), the statements (a) are not executed, and the statement coming afterthe keyword 'end' is taken up next.

Note that in nested while-statements, the 'end' word always refers to the nearestpreceding 'while' word that has yet to find an end to its while-statement. In one nestedstructure, there may be up to 20 if-statements and while-statements.

MML macros Executing MML Commands in IPA-RNC

56 DN02143068 Issue: 09

   

Example of a while-statement is as follows:

IAI:PROFILE=:; ?EXIT = "0"; while ?EXIT = "0"; set_def_buffer( 1 ); nextln( 4 ); currentstr( "PROFILE NAME:" ); if error then; ?EXIT = "1"; else; ?TEMP_STR = readstr( 2 ); ?P_NAME = partstr( 1,10, ?TEMP_STR ); set_def_buffer( 2 ); IAA:?P_NAME:::TLIMIT=15; fi; end;Related topics

Descriptions

MML macros

4.15 MML commands in MML macros

The MML commands contained in the MML macros must be commands in use in thetarget system. The MML command parameter blocks, parameters, or parts ofparameters may be substituted with parameters or variables defined for the MML macroin question. If an error occurs in the execution of an MML command, an error flag is set,and by default, the macro execution is interrupted. The following is an example of anMML command which is used to output the number data on a subscriber as a hiddenremote session in the system identified by the value for the ?HOST_NAME parameter.

Example of an MML command in an MML macro is as follows:

:IBC:,,?FILENAME,?EXTENSION;if error then; : Related topics

Descriptions

MML macros

Executing MML Commands in IPA-RNC MML macros

Issue: 09 DN02143068 57

   

4.16 Library routines in MML macros

The command language library contains routines that are used for both modifying andreading the MML macro parameters and variables, and for controlling and reading theexecution messages of MML commands. The routines are in use in all MML macroswithout any specific predefinitions.

From character string to integer

The function dstr_to_num is used to convert the ASCII coded numbers in a characterstring to an integer in a variable of the numeral type. The character string is a variable ora constant, and it is understood to contain a decimal-coded figure that may end in theletter D. If an error occurs in the execution of the routine, an error flag is set and, bydefault, the macro execution is ended unless otherwise specified with the on_errordirective.

The function starts with a numeral type variable which is followed by the placementoperator (=), then the keyword dstr_to_num, then, inside brackets, comes the target ofthe conversion, a character-string constant, or a character string variable found inside acharacter string.

Example of dstr_to_num is as follows:

?STR_VAR = "25";?NUM_VAR = dstr_to_num(?STR_VAR); From integer to character string

The function num_to_dstr is used to convert an integer to an ASCII coded decimal figurein a variable of the character string type.

The function starts with a character string type of variable, followed by the placementoperator (=), the key word num_to_dstr, and finally, in brackets, the object of theconversion, the integer variable or constant.

Example of num_to_dstr is as follows:

?NUM_VAR = 25;?STR_VAR = num_to_dstr(?NUM_VAR); From hexadecimal character string to decimal string

The function hstr_to_dstr is used to convert an ASCII coded hexadecimal figure to anASCII coded decimal figure in a variable of the character string type. The string to beconverted may only contain numbers in hexadecimal code and it may end in the letter H.If an error occurs, an error flag is set and, by default, the macro execution ends unlessotherwise defined with the on_error directive.

The use of the function begins with a character string type of variable, followed by theplacement operator (=), then the keyword hstr_to_dstr, then the target of the conversion,a character-string variable or constant, placed in brackets.

MML macros Executing MML Commands in IPA-RNC

58 DN02143068 Issue: 09

   

Example of hstr_to_dstr is as follows:

?HEX_STR = "1A";?DEC_STR = hstr_to_dstr(?HEX_STR); Part of character string into character-string variable

The function partstr is used to read a certain part of a character string for the use of acharacter-string variable.

The use of the function begins with a variable of the character string type, after whichfollows the placement operator (=), then the keyword partstr, followed by the parameters,in brackets and separated by commas. There are always three parameters: the index ofthe first character of the character-string variable to be read, given as an integer constantor variable (1 = first character, 2 = second character etc.), an integer constant or variableindicating the number of characters to be read, and the character-string variable orconstant that is to be read. If the index for the first character is greater than the length ofthe character string to be read, then the function does nothing. If, on the other hand, thenumber of characters to be read outstrips the length of the character string to be read,then the reading stops on the last character of the string in question. The function doesnot check the length of the character-string variable for which the characters are read.

Example of partsrtr is as follows (the character string LMNO is read for the variableMARKS):

?CHAR_COUNT = 4;?WHOLE_STR = "ABCDEFGHIJKLMNOPQ";?MARKS = partstr(12,?CHAR_COUNT,?WHOLE_STR); Setting the output buffer

The routine set_def_buffer sets the default buffer into which thenceforth the executionmessages of the MML commands are written, and which is the object of all of the buffer'sread functions.

The default is that output buffer number 1 is visible, i.e. there is no need for this routine ifthere is no need to save the execution message of an entire MML command. The setdefault buffer remains visible until this routine is used to set another output buffer as thedefault. The maximum number of buffers in use in any one MML macro is two, numbers1 and 2, which means that it is possible to save the messages of one MML command.

The output buffers have their own pointers, pointing to the start of the MML macro'soutput buffers when the statement of that macro's first execution part is being realised.The values for the pointers are modified when the library routines are used that handlebuffer pointers (see the descriptions of said routines).

The routine is used by first entering the keyword set_def_buffer, followed, in brackets, bythe number of the buffer as an integer constant, or the integer variable contained in thenumber of the buffer.

Example of set_def_buffer is as follows:

?BUFF_NRO = 1;set_def_buffer(2); /* store execution printout of */USI:ALL; /* USI-command */

Executing MML Commands in IPA-RNC MML macros

Issue: 09 DN02143068 59

   

set_def_buffer(?BUFF_NRO);IBC:,,?FILENAME,?EXTENSION; :set_def_buffer(2); /* USI printout is handled in */ /* next statements Reading the output buffer

The function readstr is used to read a certain character string from the output buffer,which is to be placed in a character string type routine moves the pointer forward thenumber of characters indicated by a given parameter, then starts to read the currentcharacter string pointed to by the buffer's pointer, provided it is not a separator ofcharacter strings. A space, a tabulator, and a line feed are such separators. When thefunction is completed, the pointer of the buffer points to the beginning of the characterstring just read. If an error occurs, an error flag is set and, by default, the macroexecution ends unless otherwise specified by the on_error directive.

Since the separators do not belong to the readable character strings, for example, theline feed identification in the MML macro has to be planned separately, if required.

The function is started with a character-string variable, followed by a placement operator(=), then the keyword readstr and an integer constant or variable, in brackets.

In the following example, there is a search for the string DMCU, starting from the positionpointed to by the output buffer's pointer, and when found, the next character string isread as the value for the STR_VAR variable.

Example of readstr is as follows:

currentstr("DMCU");?STR_VAR = readstr(1);

Note also the example of nextln, which is as follows:

currentstr("OMU-0");?OMU_STATE = readstr(3);nextln(1);?UNIT2 = readstr(0);currentstr("TOTAL");prevln(2);?LAST_STATE = readstr(2);currentln; Buffer pointer to start of character string

The routine currentstr is used to set the pointer of an output buffer so that it points to thestart of a given character string, if the buffer contains such a string. The routine searchesfor the string, entered as a parameter, beginning from the current position pointed to bythe output buffer's pointer, and ending with the last character in the buffer, if not sooner. Ifthe given string is not found, the pointer remains stationary. If an error occurs in theexecution of the routine, an error flag is set and, by default, the macro execution endsunless otherwise defined by the on_error directive.

MML macros Executing MML Commands in IPA-RNC

60 DN02143068 Issue: 09

   

The use of the routine starts with the keyword currentstr, followed, in brackets, by therequested character-string constant, or a character string variable containing the string inquestion.

The example in the following figure is of a search for the first FLTY string in an executionmessage of the USI command.

Example of currentstr is as follows:

USI:DMCU;currentstr("FLTY");Buffer pointer to start of line

The routine currentln sets the pointer of an output buffer to point to the beginning of itscurrent line.

When the routine is used, the statement only contains the keyword currentln.

In the following example, the string OMU is searched for and the buffer's pointer is set tothe beginning of the line that contains the said string.

Example of currentln is as follows:

currentstr("OMU");currentln;Buffer pointer back

The routine prevln moves the pointer of the output buffer from its current line backwardsas many lines as specified by a parameter and leaves it at the start of the new line. Anerror flag is set, if an error occurs and, by default, the macro execution ends unlessotherwise defined by the on-error directive.

The routine begins with the keyword prevln which is followed by a pair of bracketscontaining the number of lines as an integer constant, or given by means of an integervariable.

Example of prevln is as follows (the string DMCU is searched and the pointer is movedtwo lines back):

?LINE_COUNT = 2;currentstr("DMCU");prevln(?LINE_COUNT);Buffer pointer forward

The routine nextln is used to move the output buffer's pointer from its current line forwardas many lines as specified by a parameter and leave it at the start of the new line. If anerror occurs, an error flag is set and, by default execution ends unless otherwise definedby the on_error directive.

The routine begins with the keyword nextln which is followed by a pair of bracketscontaining the number of lines as an integer constant, or given by means of an integervariable.

Executing MML Commands in IPA-RNC MML macros

Issue: 09 DN02143068 61

   

The following is an example of how an execution message of the USI command ishandled by the various library routines: the state of the OMU is read into the variableOMU_STATE, the name of the next read into the variable UNIT2, and finally the state ofthe unit that is bottom on the unit list is read into the variable LAST_STATE, and thepointer is then moved to the start of the line in question.

Example of an execution message for the USI command.

WORKING STATES OF UNITS UNIT PHYS LOG STATE INFO OMU-0 0000H 4002H WO-EX - OMU-1 0001H 4002H TE-EX - DMCU-0 > WO-EX - DMPG-0 > 0002H 4012H WO-EX - DSP-0 WO-EX - DSP-1 WO-EX - TBU-0 WO-EX RBAN TOTAL OF 7 UNITS FAULTY UNIT 0 INCORRECT STATES 0

Example of nextln is as follows:

currentstr("OMU-0");?OMU_STATE = readstr(3);nextln(1);?UNIT2 = readstr(0);currentstr("TOTAL");prevln(2);?LAST_STATE = readstr(2);currentln; Related topics

Descriptions

MML macros

4.17 Exit statements in MML macros

The execution of an MML macro is terminated with a statement that only contains thekeyword 'exit'. This statement need not be the last statement of the execution part of theMML macro in question. An MML macro must contain at least one exit statement.

Example of an exit statement is as follows:

: IBC:,,?FILENAME,?EXTENSION; if error then; write_term( NL, "/*** CANNOT COPY FILE, CHECK INPUT ***/", NL ); wait; fi;

MML macros Executing MML Commands in IPA-RNC

62 DN02143068 Issue: 09

   

: exit; Related topics

Descriptions

MML macros

4.18 Execution of MML macros

To execute an MML macro, start the macro by entering its name and parameters.Parameter values must be given in the same order in which they are presented in theheader of the macro. The parameter guide helps you to enter the parameters in thecorrect order. Confirm the execution of the commands in the macro if the system asks fora confirmation.

The execution printouts may be displayed on the screen of the MML terminal you areusing (the printouts are controlled by command language directives, which are includedin the macros). After the macro is executed, the MAIN LEVEL COMMAND prompt isdisplayed. The MML commands executed by the macro are written to the MMLcommand log. The log contains both the commands that succeeded and those thatfailed.

There are two methods that can be used to execute an MML macro: the short start-upmethod and the long start-up method. The short start-up-method lets you use commandmenus and, instead of the whole name of the macro, you can identify the macro by apart of its name.

Error situations with MML macros

Should an error occur during the execution of an MML macro, the execution eitherterminates or continues, or the system asks you whether you want the execution of themacro to continue or not. An error message may be displayed on the screen of the MMLterminal. These actions are determined by the command language directives.

Related topics

Descriptions

Short start-up method for MML macros

Long start-up method for MML macros

4.19 Short start-up method for MML macros

You can start the macro either step-by-step using command menus and the parameterguide or without using the system's help.

Executing MML Commands in IPA-RNC MML macros

Issue: 09 DN02143068 63

   

Identify the macro by three characters in its name: the identifiers of the command classand the MML macro group, and the command letter (that is, the fourth, fifth and sixthcharacters). These letters are included in the command menus. For example, a macronamed TSTI1OGE is identified by characters I1O.

The parameters can be entered as follows:

• All parameters on the same line after command characters and a colon (:).• All parameters after the command character line, on lines of their own as indicated in

the parameter guide.• Some on the first line and the rest on lines of their own as indicated in the parameter

guide.

End each part that is entered in a line of its own, by pressing the  CR  (carriage return).

g As the MML command group can also be presented as a number, an MMLcommand and an MML macro with the same command group number mayexist. In this case only the MML command is shown in the command menu andonly the MML command is executed. The MML macro can be executed onlyusing the long start-up method.

You can start the MML macro in the MML session in the same way as the MMLcommand, by using command characters shown in the menu, or straight at the MAINLEVEL COMMAND level by writing all three MML macro command characters one afteranother.

Related topics

Instructions

Executing an MML macro

Descriptions

Execution of MML macros

4.20 Long start-up method for MML macros

In the long start-up method, run the MML macro at the MML session MAIN LEVELCOMMAND level. The start command starts with @ character and is followed by theMML macro name and parameters.

The parameters can be entered in two ways:

• after the MML macro name, in brackets• after the MML macro name, on different lines, every parameter on a line of its own as

indicated in the parameter guide.

MML macros Executing MML Commands in IPA-RNC

64 DN02143068 Issue: 09

   

You can also enter only some of the parameters on the same line with the macro nameand the rest of the parameters on lines of their own.

End each line by pressing the  CR  (carriage return). If all parameters are written on thesame line as the MML macro name, a semicolon (;) can be written as the last characteron the line, before the  CR .

If there is no extension part, the MML system searches the disk for a macro with theextension EMM.

Below is an example of a long start-up method for the MML macro.

In an MML macro, the header part and parameter definition are in form:

KCHI1CGE( ?SYSTEM: DIG1=?OLD_SUB, DIG2=?NEW_SUB: ?OLD_DP, ?NEW_DP ); declaration ?SYSTEM "/* IDENTIFY SYSTEM */", ?OLD_SUB "/* OLD SUBSCRIBER NUMBER, DIG1= */", ?NEW_SUB "/* NEW SUBSCRIBER NUMBER, DIG2= */", ?OLD_DP, ?NEW_DP "/* NEW DECIMAL POSITION NUMBER */";

The user enters on the MML terminal

• either the entire command once:

MAIN LEVEL COMMAND <___> < @KCHI1CGE(LAB: DIG1=70005, DIG2=80005: 5, 45 ); <CR> The MML macro starts running.

• or the parameters separately:

MAIN LEVEL COMMAND <___> < @KCHI1CGE <CR> /* IDENTIFY SYSTEM */ LAB <CR> /* OLD SUBSCRIBER NUMBER, */ 70005 <CR> /* NEW SUBSCRIBER NUMBER, */ 80005 <CR> OLD_DP? 5 <CR> /* NEW DECIMAL POSITION NUMBER */ 45 <CR> : The MML macro starts running.

Related topics

Instructions

Executing an MML macro

Descriptions

Execution of MML macros

Executing MML Commands in IPA-RNC MML macros

Issue: 09 DN02143068 65

   

4.21 Testing MML macrosPurpose

When testing MML macros, the general procedure for functional testing is followed.Special attention should be paid to the syntax and semantics of the MML commandsused in the macros, and to the dynamics of the responses.

As the command language used in the MML macros is a programming language, theconventional program code problem areas should be checked carefully: uninitialisedvariables, inadequate stop conditions for loops, overflows in arithmetic operations, andso on. Other potential trouble areas include the MML commands (syntax and semantics),and the command routines that handle the responses.

The command language has a few commands to offer to aid testing. The directivesrelated to echoing (echo_on, echo_off, trace_on and trace_off) are designed for testingmacros, as are the MML macro stop statements (delay and wait). In addition, the outputstatement (write_term) can be used for the interim outputs of a test, and they are thenremoved from the MML macro when testing has been completed.

1 Follow the general procedure for functional testing

Expected outcome

An MML macro is tested.

4.22 Installing MML macrosPurpose

An MML macro is set to the system by copying the main macro and submacros, if any,to the MMDIRE directory on the system disk and spare disk of the OMU functional unit.

If the user wishes to run the short start-up method in the future, the MEN*.MIF filemenus have to be deleted from the MMDIR directory on the system and spare disk, andthe functional unit has to be restarted. Shortly after the start up has ended, the MMIsystem in the functional unit has created new menu files that include the new MMLmacro.

The macros are ASCII files so that they can be output in the system by using the IWXcommand and edited by using the IEE command. However, the MML macros created byNokia Siemens Networks cannot be edited by using the IEE command.

1 Copy the main macro (and the submacros) to the MMDIRE directory

Expected outcome

MML macros Executing MML Commands in IPA-RNC

66 DN02143068 Issue: 09

   

MML macros are installed.

4.23 Listing MML macrosPurpose

This procedure gives instructions on how to list MML macros.

1 List the MML macros in the system (IWX)ZIWX::<drive>:<subdir>:<filename>,<extension>;

Example:

As the extension of MML macros is EMM and as they are stored in the MMDIREdirectory, the following command displays all the MML macros in the system:

ZIWX::WS:MMDIRE:%,EMM;

Expected outcome

The MML macros are listed.

4.24 Executing an MML macro

1 Execute an MML macroSelect one of the following alternatives:

• Execute an MML macro without using the system's help (short start-up method)

1. Type the three characters that identify the macro, a colon (:) and theparameters

2. Complete the command by entering a semi-colon (;)

• Use the parameter guide to execute an MML macro (long start-up method)

1. Enter @ and the whole name of the macro at the main levelFor example, enter @TSTI1OGE.The macro used in the examples copies the needed file from the sourcedirectory to the destination directory on both disks.The parameter guide is displayed. For example, the following guide can bedisplayed:

/* GIVE FILENAME TO BE COPIED */2. Enter the parameters that the parameter guide asks you to enter

Executing MML Commands in IPA-RNC MML macros

Issue: 09 DN02143068 67

   

3. Enter a semi-colon (;) to complete the command when the system asks youto execute the macro. To not to execute the macro, enter N instead of thesemi-colon.

• Execute an MML macro without using the system's help (long start-up method)

1. Enter @, the macro name, the parameters, and a semi-colon at the mainlevelEnter the parameters in parentheses.

Example:For example, to start the TSTI1OGE macro that copies the needed file HILTONfrom the source directory to the destination directory, enter:@TSTI1OGE(HILTON,TXT,MMDIRE,BLCODE);

Expected outcome

An MML macro is executed.

Related topics

Descriptions

Directives in MML macros

MML macros

4.25 Displaying the contents of an MML macroPurpose

This procedure gives instructions on how to display the contents of an MML macro.

1 Define the directory in which the macro is located (IWY)MML macros are stored in the MMDIRE directory.ZIWY:S:PATH=MMDIRE;

2 Display the contents of the macro (IBT)Display the contents of the macro in ASCII form.ZIBT:<source unit identifier>,<source unit number>,<filename>, <file name extension>,,,,<type mode>;

Example:

The following example displays the contents of the TSTI1OGE macro:

ZIBT:WDU,S,TSTI1OGE,EMM,,,,A;

MML macros Executing MML Commands in IPA-RNC

68 DN02143068 Issue: 09

   

Expected outcome

The contents of an MML macro are displayed.

Executing MML Commands in IPA-RNC MML macros

Issue: 09 DN02143068 69

   

5 MML command logs

5.1 MML command log

The MML commands that are executed during a particular MML session are written to anMML command log, which also contains other information on the MML session. Thecommand log can be used, for example, to list the commands that were given before anerror occurred. It can also be used as a basis of a disk command file.

The MML command log consists of files that contain information (for example theexecution result) on the MML commands whose execution has started, the MMLsession, the network element, and the user identity of the person who executed thecommands. This information is network element specific. The commands executed bythe command calendar or using disk command files or MML macros are also written tothe log.

You can use the MML commad log:

• to examine what MML commands you executed during a certain period of time, forexample, before an error occurred or before you had a break. The commands alsoinclude those you added to the command calendar and those you executed using acommand file or an MML macro. The log also shows the starting and ending time ofcommand execution, its result, the MML session in which the command wasexecuted and several other things.Each user is authorised to display his or her command log. Some users can also beauthorised to examine others' command logs.

• to transfer command log information in CSV (Comma Separated Values) format toother applications (for example, spreadsheet and database programs).

• to create a command file. If you need to execute the same commands you haveexecuted during a certain period of time, an easy way to create a command file is tooutput the commands from the MML command log to a file and to use the file as abasis of a command file.

You can use PRFILE parameters to modify the MML command log, that is, its storingtime, disk space consumption, removal time and disk updating load. All the parametersare in parameter class 38 (MML command log).

If you do not enter any parameters, the command displays all the information concerningthe commands you have executed during the current day in text format.

Use the parameters to specify in more detail:

• the time period included in the printout.• the kind of information included in the printout. You can specify:

1. MML commands and command groups.2. types of log records. The records give information either on the starting or ending

of an MML session or an MML command.

MML command logs Executing MML Commands in IPA-RNC

70 DN02143068 Issue: 09

   

3. the execution result the commands have to have in order to be included in theprintout. You can include commands that were executed, aborted, ignored,commands that were executed and that started a function, commands that werenot authorised or commands that failed.

4. the usernames or user groups whose log information is displayed if you areauthorised to display their log information. The user groups are formed on thebasis of the username profiles.

Table 5 PRFILE parameters affecting the MML command log

Purpose

Parameter inclass 38

Value range

Default

storing time, disk space consump-tion

1 3 to 30 days 30 days

number of files stored, disk spaceconsumption

2 5 to 30 000 files 30 000 files

removal time of old log files:

removal hour 3 00 to 23 hours 01 a.m.

removal minutes 4 00 to 59 minutes 25 minutes past thehour.

time the log is in the internal writecache, disk updating load

0 10 to 600 seconds 60 seconds

Printout in text form

Comment tokens /* and */

All the other information except for MML commands is written between the commenttokens /* and */. However, if commands that cannot be executed using a command fileare printed to the file, the file will not be executed.

The meaning of the MML command log information on different lines is as follows:

First line displays the name of the network element you are using, its type, your user ID,the date and time when the output was created.

/* RNC007 RNC SYSTEM 2000-05-20 20:33:35 */

Other lines contain command log records. These records give information on the startingor ending of either an MML session or MML command. There are four types of logrecords:

Executing MML Commands in IPA-RNC MML command logs

Issue: 09 DN02143068 71

   

1. MML session start record, marked with number one (1)

/* 1 RNC007 RNC VTP-1 SESSION=00001 USERID=USER27STARTED 2000-05-20 20:27:40 */

2. MML session end record, marked with number two (2)

/* 2 RNC007 RNC VTP-1 SESSION=00001 USERID=USER27ENDED 2000-05-20 20:33:45 */

3. MML command execution start record starts from the beginning of a line. It is notmarked with any characters. The record consists of two lines: the first line indicatesthe MML command and the second line the MML session, user ID, date and time.

WQO;/* 3 SESSION=00001 USERID=USER27 2000-05-20 20:28:06 */

4. MML command execution end record, marked with number four (4) or number fourand the lower case c (4c), which stands for continuation line.

/* 4 WQO; *//* 4c COMMAND EXECUTED *//* 4c SESSION=00001 USERID=USER27 2000-05-20 20:28:13 */

The following table indicates the kind of information in each record:

Table 6 Information given in each command log record

Information

Session starts (1)

Session ends (2)

Command starts(two lines)

Command ends(4 or 4c)

type of log record + + + +

username + + + +

terminal name + + - -

session number + + + +

date and time (yyyy-mm-dd)

+ + + +

MML command - - + +

execution result - - - +

execution failurecode

- - - +

execution failuretext

- - - +

MML command logs Executing MML Commands in IPA-RNC

72 DN02143068 Issue: 09

   

Below is an example of the printout.

/* RNC007 RNC SYSTEM 2000-05-20 20:33:35 *//* 1 RNC007 RNC VTP-1 SESSION=00001 USERID=USER27STARTED 2000-05-20 20:27:40 */WQO;/* 3 SESSION=00001 USERID=USER27 2000-05-20 20:28:06 *//* 4 WQO; *//* 4c COMMAND EXECUTED *//* 4c SESSION=00001 USERID=USER27 2000-05-20 20:28:13 */IID::MMLLOG;/* 3 SESSION=00001 USERID=USER27 2000-05-20 20:28:57 *//* 4 IID::MMLLOG; *//* 4c COMMAND EXECUTED *//* 4c SESSION=00001 USERID=USER27 2000-05-20 20:28:58 */IGO:;/* 3 SESSION=00001 USERID=USER27 2000-05-20 20:29:04 *//* 4 IGO:; *//* 4c COMMAND EXECUTED *//* 4c SESSION=00001 USERID=USER27 2000-05-20 20:29:05 */USC:OMU:TE,:;/* 3 SESSION=00001 USERID=USER27 2000-05-20 20:32:47 *//* 4 USC:OMU:TE,:; *//* 4c COMMAND ABORTED *//*** ERROR: 795 ***//*** TRANSITION NOT CONTROLLED ***//* 4c SESSION=00001 USERID=USER27 2000-05-20 20:32:49 *//* 2 RNC007 RNC VTP-1 SESSION=00001 USERID=USER27ENDED 2000-05-20 20:33:45 */Printout in CSV form

The CSV printout contains two kinds of records: start and end records. The start recordis marked with S and the end record with E. Both records contain the followinginformation:

• type of record, S=start record, E=end record• name of network element• type of network element• user ID• name of terminal• number of MML session• date in format: D.M.YYYY• time in format HH:MM:SS• MML command• MML command execution status (S=succeeded command, F=failed command)

Below is an example of the printout.

S;RNC007;RNC;USER27;VTP-1;00001;5.3.2000;12:35:16;"IAL;";;E;RNC007;RNC;USER27;VTP-1;00001;5.3.2000;12:35:17;"IAL;";S;

Executing MML Commands in IPA-RNC MML command logs

Issue: 09 DN02143068 73

   

Related topics

Instructions

Modifying storing time of MML command log

Modifying MML command log disk space consumption

Changing MML command log removal time

Decreasing disk updating load of MML command log

Displaying MML command log information

Printing MML command log information to disk file

Closing the MML command log

Monitoring of the starting and ending of MML command execution

Transferring MML command log information to the postprocessing system using FTP

Printing MML command log information via a logical file

5.2 Modifying storing time of MML command logPurpose

To modify the storing time, use the PRFILE parameter 1/38 (parameter 1 in parameterclass 38). The default storing period is the current day plus 3 days. The value range is 3to 30 days.

1 Display the parameters in parameter class 38 (WOI)ZWOI:38;

2 Modify the value of parameter 1 in parameter class 38 (WOC)ZWOC:38,1,<value>;

Expected outcome

The storing time of the MML command log is modified.

MML command logs Executing MML Commands in IPA-RNC

74 DN02143068 Issue: 09

   

5.3 Modifying MML command log disk spaceconsumptionPurpose

To modify the command log's disk space consumption, modify its storing time using thePRFILE parameter 1/38.You can also modify the number of log files stored using thePRFILE parameter 2/38, but it is recommended that only the storing time should bemodified. The default number of files stored is 30 000. The value range is 5 to 30 000files.

The disk space consumption of the MML command log depends on its storing time. Thelog takes up a minimum of 400 kB a day (it requires the space immediately after it hasbeen created). Since the minimum storing time is 4 days, the log will take up at least 4 x400 kB, ie. 1.6 MB. If writing to the log fails because the system is out of disk space, thealarm 2683 is set.

g Because the parameter value  parameter for the WOC command is ahexadecimal, the decimal value, for example 60, can be entered as D'60.

1 Display the parameters in parameter class 38 (WOI)ZWOI:38;

2 Modify the value of parameter 1 in parameter class 38 (WOC)ZWOC:38,1,<value>;

Expected outcome

The disk space consumption of the MML command log is modified.

5.4 Changing MML command log removal timePurpose

The old log files are deleted once a day. Since this operation places rather heavy a loadon the OMU, it is recommended that other operations increasing the load should not becarried out at the same time.

To change the time when the old command logs are removed, use the PRFILEparameters 3/38 and 4/38. The former sets the hour and the latter the minutes. Thedefault time is 1:25 a.m.. The value ranges are 00 to 23 hours and 00 to 59 minutes.

Because the parameter value  parameter for the WOCcommand is a hexadecimal,the decimal value, for example 10, can be entered as D'10.

Executing MML Commands in IPA-RNC MML command logs

Issue: 09 DN02143068 75

   

1 Display the parameters in parameter class 38 (WOI)ZWOI:38;

2 Set the hour by modifying the value of parameter 3 in parameter class 38(WOC)ZWOC:38,3,<value>;

3 Set the minutes by modifying the value of parameter 4 in parameter class 38(WOC)ZWOC:38,4,<value>;

Expected outcome

The MML command log removal time is changed.

5.5 Decreasing disk updating load of MML commandlogPurpose

You can decrease the load induced by the disk updating by modifying the PRFILEparameter 0/38. The load decreases when the value is increased. To display the currentvalue, use the WOI command and to modify the value, use the WOC command. The valueshows the length of time the log is in the internal write cache in seconds. If you modifythe value, that is, lengthen the time, more log information may be lost in error situations.

1 Display the parameters in parameter class 38 (WOI)ZWOI:38;

2 Modify the value of parameter 0 in parameter class 38 (WOC)ZWOC:38,0,<value>;

Expected outcome

The disk updating load of MML command log is decreased.

5.6 Displaying MML command log informationPurpose

This procedure gives information on how to display MML command log information.

MML command logs Executing MML Commands in IPA-RNC

76 DN02143068 Issue: 09

   

1 Display information stored in the command log (IGO)For example, to display the log information concerning the MML sessions you haveopened today in text form, enter:ZIGO;

Example:Displaying the log information concerning the MML sessions openedduring a certain time period

The following command displays the log information concerning your MML sessionson June 15th 2000 from 12 pm to 4 pm in text form.

ZIGO:2000-06-15,12-00,,16-00;

Expected outcome

MML command log information is displayed.

5.7 Printing MML command log information to disk fileBefore you start

Note that if you create a semipermanent logical file in step 3, you can start from step 5later in other MML sessions. The information is printed to the same file you created instep 1.

Purpose

You can print information stored in the MML command log to disk file using thefilename parameter of the IGO command. If you want to use the file as a diskcommand file, you must copy it to the MMDIRE directory and name it so that theextension is CMD. If you want to edit the file, use the IEE command.

1 Create MMDIRE/MLOGS directory (IWL)ZIWL::WS,:MMDIRE:MLOGS;

2 Create a disk file (IWC)The size of the file depends on the size of the log: for example, in most networkelements, a command log created during a day may contain up to 100000characters.The following command creates a file called COMNDLOG in the MMDIRE/MLOGSdirectory. The file is stored on the system disks, its extension is LOG.ZIWC::WS:MMDIRE,MLOGS:COMNDLOG,LOG;

Executing MML Commands in IPA-RNC MML command logs

Issue: 09 DN02143068 77

   

3 Create a logical file (IIF)If you only print via this logical file during the current MML session, create atemporary logical file: it will be deleted after the session (or a reset). If you want toprint via this logical file later in other MML sessions, create a semipermanent logicalfile. To specify whether the file is temporary or semipermanent, use the logical fileclass parameter (T=temporary, S=semipermanent).The following command creates a semipermanent logical file named PRINTLOG.ZIIF::PRINTLOG,S:DEV=WDU-S;

4 Link the logical file to the disk file (III)The following command links the PRINTLOG logical file to the COMNDLOG file.ZIII::PRINTLOG:,MMDIRE,MLOGS:COMNDLOG,LOG;

5 Print log information to file (IGO)Give the name of the logical file as the value of the filename parameter.ZIGO::::OUTPUT=PRINTLOG;

If the file has been used earlier, you can empty it using the IWE command.

Expected outcome

The MMl command log information is printed to a disk file.

5.8 Closing the MML command logPurpose

After closing a log file, a new one is opened. This command can be used, for example,when you backup copy the software build and want to include the exact copy of the logmade before a particular time.

1 Close the current command log file (IGK)ZIGK;

Expected outcome

The command log file is closed.

MML command logs Executing MML Commands in IPA-RNC

78 DN02143068 Issue: 09

   

5.9 Monitoring of the starting and ending of MMLcommand executionPurpose

You can monitor the starting and ending of MML command execution by printing theinformation to a file or an output device (not the MML terminal).

g Do not connect MMLLOG to the alarm printer.

1 Print the information to a file or an output deviceTo print the information, link the MMLLOG logical file to a file or connect it to an outputdevice. For instructions on how to link and connect logical files, see Interrogatingconnections by a logical file

Expected outcome

Information is printed to a file or an output device.

5.10 Transferring MML command log information to thepostprocessing system using FTP or SFTPBefore you start

When using FTP or SFTP, IP must be configured both in the network element and theother postprocessing system.

Purpose

MML command log information can be transferred from a network element to thepostprocessing system using FTP or SFTP and an appropriate command of thepostprocessing system.

1 Print the log information to a fileFor instructions, see Printing MML command log information via a logical file.

2 Transfer the information to a postprocessing systemWhen using FTP or SFTP, use an appropriate command of the other postprocessingsystem.

Expected outcome

MML command log information is transferred to the postprocessing system.

Executing MML Commands in IPA-RNC MML command logs

Issue: 09 DN02143068 79

   

5.11 Printing MML command log information via alogical filePurpose

This procedure gives instructions on how to print MML command log information via alogical file.

g If you create a semipermanent logical file in step 3, you can start form step 5later in other MML sessions. The information is printed to the same file youcreated in step 1.

1 Create MMDIRE/MLOGS directory (IWL)ZIWL::WS,:MMDIRE:MLOGS;

2 Create a file in the MMDIRE/MLOGS directory (IWC)The size of the file depends on the size of the log: for example, in most networkelements, a command log created during a day may contain up to 100000characters.The following command creates a file called COMNDLOG in the MMDIRE/MLOGSdirectory. The file is stored on the system disks, its extension is LOG.ZIWC::WS:MMDIRE,MLOGS:COMNDLOG,LOG;

3 Create a logical file (IIF)If you only print via this logical file during the current MML session, create atemporary logical file: it will be deleted after the session (or a reset). If you want toprint via this logical file later in other MML sessions, create a semipermanent logicalfile. To specify whether the file is temporary or semipermanent, use the logical fileclass parameter (T=temporary, S=semipermanent). The following command createsa semipermanent logical file named PRINTLOG:ZIIF::PRINTLOG,S:DEV=WDU-S;

4 Link the logical file to the file you created (III)The following command links the PRINTLOG logical file to the COMNDLOG file.ZIII::PRINTLOG:,MMDIRE,MLOGS:COMNDLOG,LOG;

5 Print the desired log information to the file (IGO)Give the name of the logical file you created as the value of the filename parameter.ZIGO::::OUTPUT=PRINTLOG;

If the file has been used earlier, you can empty it using the IWE command.

MML command logs Executing MML Commands in IPA-RNC

80 DN02143068 Issue: 09

   

6 Transfer the fileWhen using FTP or SFTP, use the appropriate command of the other application.

Expected outcome

MML command log information is printed via a logical file.

Executing MML Commands in IPA-RNC MML command logs

Issue: 09 DN02143068 81

   

6 MML disk command files

6.1 Disk command files in MML

Disk command files let you execute MML command sequences. You can use them toautomate routine tasks that do not need to be supervised. Disk command files are usefulin carrying out tasks that are time-consuming.

Disk command files can be executed immediately or at a predefined moment. If you wantto execute a file immediately, use the IDE command. If you want to execute a file at apredefined moment, either at a certain time or when an alarm occurs, add it to thecommand calendar. Only one disk command file can be executed at a time. The samefile can be executed more than once.

A disk command file contains a list of MML commands and possibly also remarks. Byexecuting a command file, you can execute all the MML commands in the file; thecommands are executed one at a time, starting from the one at the top of the file.Comments can be written anywhere in the file, as long as they are written betweencomment tokens /* and */.

The commands can contain parameters to which you can give values when you executethe file. Such parameters are indicated by an asterisk (*) and a number ranging from 1 to8, for example, *1 (see the USI command in the example below). The same number canonly be used once in the same file to represent a parameter value. Information on thecommands whose execution has started is written to the MML command log. Below is anexample on the contents of a disk command file:

IID:;/*displays information on logical files*/DCD:;USI:*1;IHI:;

Disk command files can be created and edited using the system's disk file editor. If youwant to execute the same commands or some of the commands that you executedduring a particular MML session, you can use the MML command log as a basis of acommand file.

Commands for handling disk command files are in the IDcommand group. By usingthese commands you can:

• execute a disk command file (IDE).• stop command file execution (IDS).• display the contents of a disk command file (IDL).

Unlike most MML commands, the default output device of the execution printouts of theIDE command is not always the MML terminal. The MML terminal is the default outputdevice only if you chose to confirm the execution of the commands in the command fileby giving VDU as the value of the output connection parameter. If you did not give avalue to this parameter, the default output device is the PRINTER0 logical file, which isnormally connected to the printer VPP-0; that is, the default output device in such a case

MML disk command files Executing MML Commands in IPA-RNC

82 DN02143068 Issue: 09

   

is this printer. By using the output connection and logical output fileparameters of the IDE command, you can direct the printouts either to the MML terminal,to a printer or to both of them. You can also save the printouts in a disk file.

When executing disk command files, the only obligatory parameter is file name, whichidentifies the file. You can use the other parameters to do the following:

Identify I/O deviceIdentify the I/O device on which the file is stored using parametersI/O device type and I/O device index.

Determine the commands to be executedYou can execute all the commands in a disk command file or onlysome of them; to identify the first and the last commands you want toexecute, use parameters start command index and stopcommand index. The default value is that all the commands areexecuted

Terminate command file execution when a command failsIf you want the execution of the file to terminate in case one of thecommands in the file fails, give INT (which stands for interruptable) asthe value of the command file type parameter. The default valueis that the execution of the file does not terminate.

Determine that command execution is confirmed by youDisk command files can contain MML commands whose executionhas to be confirmed. For example, before the IBC command isexecuted, the following text is displayed: CONFIRM COMMANDEXECUTION: Y/N ? When such a command is in a disk commandfile, its execution can be confirmed either by the user or by thesystem. The default value is that the system confirms commandexecution by responsing positively (Y). If you want to confirmcommand execution, give VDU as the value of the operation modeparameter.

Determine that command to be printed to output deviceBy default, commands are not printed to output device. To printcommands to output device, you can set the commands to outputparameter (CMNDS) to YES when you execute command file. Whencommand execution fails or the given command is incorrect, errorinformation and notice message will be printed.

Related topics

Instructions

Listing MML disk command files in the system

Displaying the contents of a disk command file in MML

Creating a disk command file using the system's disk file editor in MML

Executing MML Commands in IPA-RNC MML disk command files

Issue: 09 DN02143068 83

   

Executing disk command files in MML

Interrogating output devices of execution printouts in MML

Giving parameter values to MML commands in a disk command file

Stopping the execution of a disk command file in MML

Directing the execution printouts of MML command calendar tasks

Preventing the saving of execution printouts of a disk command file in a disk file in MML

6.2 Listing MML disk command files in the systemPurpose

This procedure gives instructions on how to list MML disk command files in the system.

1 List disk command files in the system (IWX)ZIWX::<drive>:<subdir>:<filename>,<extension>;

Example:Listing disk command files in the MMDIRE directory

The files should be stored in the MMDIRE directory of the system disk. Theirextension is CMD.

ZIWX::WS:MMDIRE:%,CMD;

Expected outcome

The MML disk command files are listed.

6.3 Displaying the contents of a disk command file inMMLPurpose

This procedure gives instructions on how to display the contents of a disk command filein MML.

1 Display the contents of a disk command file (IDL)ZIDL:<I/O device type>,<I/O device index>,<command file name>,START=<start command index>,STOP=<stop command index>;

Example:Displaying commands in a disk command file

MML disk command files Executing MML Commands in IPA-RNC

84 DN02143068 Issue: 09

   

The following example displays commands 2-20 in a disk command file namedCOMMANDS, which is located in the floppy disk unit 1 (FDU 1) of its own unit:

ZIDL:FDU,1,COMMANDS:START=2,STOP=20;

Expected outcome

The contents of a disk command file are displayed.

6.4 Creating a disk command file using the system'sdisk file editor in MMLBefore you start

If you need to execute the same commands that you executed during a particular MMLsession, an easy way to create a disk command file is to use an MML command log asthe basis of the file.

Disk command files can also be created and modified by using the commands forhandling the command calendar. If you want to create a disk command file that containsone MML command and add it at the same time to the command calendar, use the ICIcommand. If you want to modify a disk command file that is already in the commandcalendar, use the ICM command.

The name of a disk command file can contain a maximum of eleven characters. The firstcharacter must be alphabetic and the others can be alphabetic or numerical. Theextension of the file must always be CMD. The name can only contain uppercase letters.The name can be, for example, TESTFILE.CMD.

Disk command files must be stored in the MMDIRE directory of the system disk if they areto be executed from the command calendar; otherwise, they cannot be executed. Thefiles can be stored in the MMDIRE directory if they are only to be executed using the IDEcommand.

Purpose

This procedure gives instructions on how to use the system's disk file editor to create adisk command file.

1 Create a disk command file using the system's disk file editor (IEE)After the command is entered, the disk file editor starts.ZIEE:<disk>:<subdir>:<file name>,<file name extension>;

2 Exit the editorWhen no more characters can be written to the file, you hear a sound. To exit theeditor, press CTRL-Z. After that, you are asked whether you want to save thechanges. To save the changes, enter Y. If you do not want to save them, enter N.

Executing MML Commands in IPA-RNC MML disk command files

Issue: 09 DN02143068 85

   

Note that even if you do not save the changes, the file is created. If you edit a filethat was created earlier and save the changes, the original file is also saved, but itsextension is changed to OLD. You can also quit editing by pressing  CTRL-Y .Further informationExample:Creating a disk command fileThe following command creates a disk command file named DKFILE and stores it inthe MMDIRE directory.ZIEE:WS:MMDIRE:DKFILE,CMD;

Expected outcome

A disk command file is created.

6.5 Executing disk command files in MMLBefore you start

The MMDIRE directory must exist on the disk. If this directory does not exist on the disk,you can create it using the IWL command.

Purpose

This procedure gives instructions on how to execute disk command files in MML.

1 Execute a disk command file (IDE)ZIDE:<file name>;

Further informationExample:Executing a command fileThe following command executes the BACKUP command file, which is located on thehard disk (WDU) of the OMU. Command execution is terminated if one of thecommands in the file fails, which is indicated by the command file typeparameter (CTYPE=INT). The first command to be executed is the 10th command inthe file and the last is the 15th. The default value is that execution printouts aredirected via the PRINTER0 logical file to an output device. Commands are printed tooutput device if the commands to output parameter (CMNDS) is set to YES.ZIDE:WDU,,BACKUP:CMNDS=YES:CTYPE=INT,START=10,STOP=15;

Expected outcome

A disk command file is executed.

Related topics

Descriptions

Disk command files in MML

MML disk command files Executing MML Commands in IPA-RNC

86 DN02143068 Issue: 09

   

6.6 Interrogating output devices of execution printoutsin MMLPurpose

This procedure gives instructions on how to interrogate output devices of executionprintouts.

When you execute a disk command file, you can direct its execution printouts using theoutput connection and logical output file parameters of the IDE command.The printouts can be directed to:

• the MML terminal• the PRINTER<N> (where <N> is a digit) logical file

The printouts are directed via this logical file to the output device or file to which thelogical file is connected. Normally, the printouts are directed to a printer. You can alsodirect the printouts to some other output device: for example, you can save them in adisk file.

• both the MML terminal and the PRINTER<N> (where <N> is a digit) logical file.

1 Display printer connections (IID)ZIID::<logical file name>;

Example:Displaying information on the PRINTER0 logical file

ZIID::PRINTER0;

Expected outcome

The interrogation of output devices of execution printouts is successful.

6.7 Giving parameter values to MML commands in adisk command filePurpose

The commands in a disk command file can contain parameters to which you can give avalue when you execute the file. Such parameters are represented by an asterisk and anumber (for example, *1) in the command file. To give a value to this type of a parameter,give the value to the replacing parameter of the IDE command. For example, acommand file may contain the following command:

USI:*1;

Executing MML Commands in IPA-RNC MML disk command files

Issue: 09 DN02143068 87

   

This command interrogates unit state information and *1 represents the value of theunit type parameter. When you execute the file, give the value of this parameter tothe replacing parameter of the IDE command. For example, to interrogate thestates of the OMU, give OMU as the value of replacing parameter (PAR1="OMU").Note that the value of the replacing parameter must be given in parentheses andthat the number in the parameter name (for example, PAR1) must be the same as theone representing the parameter in the command file (for example, *1).

1 Give parameter values (IDE)ZIDE:<I/O device type>,<I/O device index>,<command filename>:PRTNR=<logical output file>,PAR1=<replacing parameter>;

Further informationExample:Executing a command file on the hard disk of OMU and directing theprintoutsThe following command executes the COMMANDS command file on the hard disk 0(WDU 0) of the OMU. The parameter value represented by *1 in the command file isreplaced by OMU; this value is given to the replacing parameter parameter(PAR1="OMU"). The execution printouts are directed to an output device via thePRINTER1 logical file.ZIDE:WDU,0,COMMANDS:PRTNR=1:PAR1="OMU";

Expected outcome

The parameter values are given.

6.8 Stopping the execution of a disk command file inMMLPurpose

This procedure gives instructions on how to stop the execution of a disk command file.

1 Stop the execution of a command file (IDS)ZIDS:<file name>;

Further informationExample:Stop the execution of command file TESTFILEZIDS:TESTFILE;

Expected outcome

The execution of a disk command file is stopped.

MML disk command files Executing MML Commands in IPA-RNC

88 DN02143068 Issue: 09

   

6.9 Saving execution printouts of a disk command filein a disk file in MMLBefore you start

It is recommended that you link the PRINTER0 logical file to a ring file, because ring filesdo not fill up; instead, when there is no more space in the file, the newest data replacesthe oldest.

Purpose

This procedure gives instructions on how to save execution printouts of a disk commandfile in a disk file in MML.

1 Link the PRINTER<N> logical file to a disk file

1. Create a disk file to which the execution printouts are directed (IWC)The following command creates a disk file named CFILE. The file is stored in theMMDIRE directory on both system and backup disks. The extension of the file isLOG.ZIWC::WS:MMDIRE:CFILE,LOG;

2. Connect hard disk and backup disks to the PRINTER<N> logical file (IIS)Add the hard disk of the system and backup disks as an object to thePRINTER<N> logical file.ZIIS::PRINTER<N>::DEV=WDU-S;

3. Link the PRINTER<N> logical file to the disk file (III)The following example links PRINTER<N> to the CFILE disk file in the MMDIREdirectory. The extension of the file is LOG and the file is a ring file.ZIII::PRINTER<N>:,MMDIRE:CFILE,LOG,,RF;

2 Direct execution printouts to the disk file via PRINTER<N> logical file (IDE)When you execute the IDE command, use the output connection and logicaloutput file parameters to determine that the execution printouts are directed tothe disk file via the PRINTER<N> logical file.

Expected outcome

The execution printouts of a disk command file are saved in a disk file.

6.10 Preventing the saving of execution printouts of adisk command file in a disk file in MMLBefore you start

The link between the PRINTER<N> logical file and a disk file has been created earlier.

Executing MML Commands in IPA-RNC MML disk command files

Issue: 09 DN02143068 89

   

1 Remove the link between PRINTER<N> logical file and the disk file (III)The following command removes the link between PRINTER<N> and the CFILE diskfile.ZIII::PRINTER<N>;

2 Remove the connection between the PRINTER<N> logical file and the hard disk(IIS)The following example removes the connection between PRINTER0 and the harddisk.ZIIS::PRINTER0:DEV=WDU-S;

Expected outcome

The saving of execution printouts of a disk command file in a disk file is prevented.

MML disk command files Executing MML Commands in IPA-RNC

90 DN02143068 Issue: 09

   

7 MML command calendar

7.1 MML command calendar

MML commands and disk command files that are added to the command calendar,together with their execution parameters, form calendar tasks.

Execution parameters determine factors related to the execution of a calendar task: forexample, the execution time or the alarm that causes the execution of a task and thenumber of executions of a task. By modifying these parameters, you can, for example,change the execution time of a task.

Each user is authorised to display all the tasks in the calendar using the ICL command.The default will display all the tasks. By giving specific values to certain parameters ofthis command, you can select the types of tasks that you want to display. The printoutcan include tasks that:

• contain a command file• are executed at a particular time• are executed at a particular date• are executed when a particular alarm occurs• are in a particular queue.

If you display a command file that is being executed at the moment, the printout alsoincludes the command that the file is executing.

The execution of a calendar task may sometimes start late. This is because the calendarneeds an MML session to execute a task and, if no MML sessions are available, theexecution starts late. If no MML sessions become available despite the attempts of thecalendar to execute the task, the task is blocked. Blocked tasks must be unblockedbefore they can be executed.

Calendar tasks are executed one at a time. Therefore, the execution of a task starts lateif another task is being executed when the execution of the task in question should start.

The commands executed by the command calendar, including those in command files,are written to the MML command log.

Unlike most MML commands, the default output device of the execution printouts ofcalendar tasks is not the MML terminal but printer VPP-0.

The command calendar lets you execute MML commands and disk command files at apredefined moment, either once or repeatedly. When added to the command calendar,commands and disk command files are executed either at a certain time or when acertain alarm occurs; you do not need to be present during their execution.

If a task is not executed at the right moment, you can check whether the calendar isattempting to execute it by examining the queue in which the task is. If the task is in theexecution queue (EXE), the task is being executed or the calendar is attempting toexecute it.

Executing MML Commands in IPA-RNC MML command calendar

Issue: 09 DN02143068 91

   

The queue in which a calendar task is depends on the phase that is being carried out. Byexamining the queues, you can check whether a task:

• is being executed or going to be executed soon• has been executed• is blocked• is unblocked.

When a task is added to the calendar, it is put either in:

• the time queue or• the event queue.

The former contains time-initiated tasks and the latter contains alarm-initiated taskswaiting for their execution.

When the execution of a task starts, the task is transferred to the execution queue; thisqueue contains the task that is being exeucted and those that the command calendar isattempting to execute.

These tasks are transferred to the wait queue after their last execution.

If the execution of a task fails, the task is transferred to the blocked commands queue.The only exception here are command files that are meant to be executed more thanonce and whose execution does not terminate when some of the commands in the filefails: such tasks are not blocked. These types of command files are marked with NOINTin the CFTYPE column of the printout produced by the ICL command.

The command calendar can be used to carry out routine tasks that do not need to besupervised, such as safecopying of files, producing output recurrently at a certain timeand making certain changes (for example, changing the charging rates of a chargingzone). The command calendar is useful, for example, when carrying out tasks repeatedlyat a certain moment or in carrying out tasks at an inconvenient time.

The execution printouts of calendar tasks must be directed to a functioning outputdevice. For more information, see Directing the execution printouts of MML commandcalendar tasks.

You cannot use the ICI command to add commands that you are not authorised toexecute to the calendar; nor can you add commands that cannot be executed by thecalendar (for example, the IEE command, which starts the disk file editor). If you attemptto add such commands, an error message is displayed. The calendar lets you, however,add a command file that contains this type of a command, but it does not execute thecommand: the other commands in the file are executed normally unless otherwisedefined.

You are authorised to use the other commands in the IC command group to handle thetasks that you have added to the calendar.

Related topics

Instructions

MML command calendar Executing MML Commands in IPA-RNC

92 DN02143068 Issue: 09

   

Displaying the contents of the command calendar in MML

Adding a task to the command calendar in MML

Testing calendar task execution in MML

Modifying a calendar task in MML

Deleting a calendar task in MML

Blocking or unblocking a calendar task in MML

Stopping an MML command file execution

7.2 Displaying the contents of the command calendarin MMLPurpose

Each user is authorised to display all the tasks in the calendar using the ICL command.The default will display all the tasks. By giving specific values to certain parameters ofthis command, you can select the types of tasks that you want to display.

You can produce either a complete or a limited output: the default produces a limitedoutput. To produce a complete output with more detailed information, give COM as thevalue of the listing form parameter.

The commands in the disk command files that are in the calendar can also be displayed.To display these commands, give the names of the command files as the value of thecommand file name parameter.

1 Display the contents of a command calendar (ICL)ZICL: <calendar task identifier>:<listing form>;

Example:Displaying a complete output of tasks with a certain identifier

The following command produces a complete output of tasks with identifiers rangingfrom 1 to 6.

ZICL:ID=1&&6:COM;

The execution printout of the command is as follows:

ID USER CMND CFILE QUE DATE TIME NBR PNBR PTYPE ALARM CFTYPE AUNIT DSTUN ASTATE DAYSCOMMAND=======================================================================1 SYSTEM IID - BLC 2000-02-01 19:00 1 - - - - - - - MO&WE&FR IID;----------------------------------------------------------------------------2 SYSTEM - BACKUPFILES TIM 2000-02-01 19:10 1 -

Executing MML Commands in IPA-RNC MML command calendar

Issue: 09 DN02143068 93

   

- - NOINT - - - - -

----------------------------------------------------------------------------3 SYSTEM - BACKUPFILES TIM 2000-02-04 20:00 FOREV 1 WEEK - NOINT - - - FR - -----------------------------------------------------------------------------6 SYSTEM - ALASTATUS EVE - - - -- 2692 NOINT OMU - ALARM - - -----------------------------------------------------------------------------

COMMAND EXECUTED

The explanations of the headings presented on the first three lines are as follows:

ALARM alarm number

AUNIT unit that detected the alarm

CFILE name of the disk command file

CFTYPE indicates whether the execution of a command file terminateswhen one of the commands in the file fails

CMND command letters of the command

COMMAND command letters and parameters of the command

DATE execution date

DAYS week days when the execution of a calendar task is allowed

DSTUN destination unit of the alarm

ID task identifier

NBR number of executions

PNBR number of periods

PTYPE type of period

QUE queue

BLC blocked commands queue: contains tasks that areblocked

MML command calendar Executing MML Commands in IPA-RNC

94 DN02143068 Issue: 09

   

EVE event queue: contains alarm-initiated tasks

EXE execution queue: contains the task the calendar isexecuting and the tasks the calendar is attempting toexecute but which have not yet started

HOL wait queue: contains tasks with no input that wouldtrigger their execution

TIM time queue: contains time-initiated tasks

TIME execution time

USER user identity of the person who added the task to the calendar

Expected outcome

The contents of the command calendar are displayed.

Related topics

Descriptions

MML command calendar

7.3 Directing the execution printouts of MML commandcalendar tasksPurpose

The default output device of the execution printouts of calendar tasks is printer VPP-0.The printouts are directed to the output device via the COMCAL logical file. If you want tostore the printouts in an electronic form, save them in a disk file. By default, commandsare not printed to output device. To print commands to output device, you can set thecommands to output parameter (CMNDS) to YES when you execute command file.When command execution fails or the given command is incorrect, error information andnotice message will be printed.

Calendar tasks can only be executed if the printouts are directed to an output device thatis functioning. If the output device becomes faulty, alarm 1432 (disturbance in commandcalendar) is set and the task is blocked. Before the task can be executed, the printoutsmust be directed to a functioning output device and the task must be unblocked. Anexception are command files whose execution does not terminate when one or morecommands in these files fails: these tasks are not blocked. Such command files aremarked with NOINT in the CFTYPE column of the printout produced by the ICLcommand.

Executing MML Commands in IPA-RNC MML command calendar

Issue: 09 DN02143068 95

   

g If you direct the printouts also to the BBU-0, the execution of a calendar taskdoes not terminate when the output device becomes faulty. The printouts mustbe directed via a semi-permanent logical file.

It is recommended that you direct the printouts also to the BBU-0.

Figure 8 Displaying the output devices of execution printouts

1 Display the output devices of execution printoutsDisplay the output devices to which the execution printouts of calendar tasks aredirected (IID).ZIID::<logical file name>;

Example:

The following command displays the output devices to which COMCAL is connected:

ZIID::COMCAL;

2 Check whether an output device is functioning (IHI)To interrogate the operating state of all I/O units in all computer units, give thefollowing command:ZIHI:;

3 Direct execution printouts to the BBU-0

1. Create a semi-permanent logical file and connect it to BBU-0 (IIF)The following command creates a semi-permanent logical file namedBYTEBASKET in the OMU of the user's own system and connects it to the BBU-0:ZIIF::BYTEBASKET,S:DEV=BBU-0;

2. Add the semi-permanent logical file as an object to COMCAL logical file (IIS)The following command adds BYTEBASKET as an object to COMCAL:ZIIS::COMCAL::LF=BYTEBASKET;

4 Save execution printouts in a disk file

1. Create the disk file to which you want to direct the printouts (IWC)

MML command calendar Executing MML Commands in IPA-RNC

96 DN02143068 Issue: 09

   

The following command creates a disk file named CCALENDAR. The file is storedin the MMDIRE directory. The extension of the file is LOG.ZIWC::WS:MMDIRE:CCALENDAR,LOG;

2. Add the hard disk of the system and backup disks as an object to the COMCALlogical file (IIS)ZIIS::COMCAL::DEV=WDU-S;

3. Link the COMCAL logical file to the disk file you created (III)The following example links COMCAL to a disk file named CCALENDAR that islocated in the MMDIRE directory. The extension of the file is LOG and the file is aring file.ZIII::COMCAL:,MMDIRE:CCALENDAR,LOG,,RF;

Expected outcome

The execution printouts of calendar tasks are directed to the output device.

Related topics

Descriptions

MML command calendar

7.4 Adding a task to the command calendar in MMLBefore you start

Calendar tasks are executed only if their execution printouts are directed to an outputdevice that is functioning.

When you add a command to a disk command file that is in the calendar, you cannotgive values to the execution parameters of the file at the same time; you can only enterthe parameters of the command you are adding to the file.

Purpose

This procedure gives instructions on how to add a new task to the command calendar.

You can check whether you succeeded in adding a task to the calendar by displaying thecontents of the calendar.

1 Enter the ICI commandSelect one of the following alternatives:

• Enter the ICI command as a normal MML command when adding a command filecreated earlierIf you add a command file that was created earlier, enter the ICI command inthe same way as MML commands are normally entered.

• Enter the ICI command when creating a command fileIf you

Executing MML Commands in IPA-RNC MML command calendar

Issue: 09 DN02143068 97

   

– add a command– create a command file and add it at the same time to the calendar or– add a command to a command file that is in the calendar

give the command as follows:

1. Add a command to the calendar (ICI)ZICI:<mml command code>,<semantics>::DATE=<executiondate>, TIME=<execution time>;The following text is displayed:

YOU HAVE 5 MINUTES TO GET COMMAND READYCOMMAND EXECUTEDVERSION 3.3-0### INPUT TO COMMAND CALENDAR ### /* PARAMETERS: COUNTER GROUP, STATISTICS: COUNTERS */

GCU:2. Enter the parameters of the MML command you are adding to the calendar

You have five minutes to enter the parameters. You can enter them bymaking use of the parameter guide. After you have entered the parameters,the output control block is displayed.

3. Enter a semi-colon (;) to complete the commandThe GCU command is added to the calendar and the identifier of thecalendar task (TASK ID) is displayed. See the following example:

INPUT STARTEDCOMMAND ADDED TO CALENDARTASK ID = 2COMMAND EXECUTEDThe TASK ID is the identifier that you need to identify the task when youhandle it using commands ICM, ICD, ICL, ICT, and ICB: it is the value of thecalendar task identifier parameter.

Example:Adding the GCU command to the calendarSemantics are checked during command execution (NOSEM). The command isexecuted once on September 14th 2000, at 12.50.ZICI:GCU,NOSEM::DATE=2000-9-14,TIME=12-50;

Example:Adding the CMDFILE command file to the calendarSince the file has been created earlier, the value of the command file indexparameter is 0. If any of the commands in the file fails, the execution of the fileterminates (INT). The command is executed on June 15th (NBR=10) 2000, at 00:00.The task is executed once a day (PTYPE=DA and PNBR=1) ten times. After its lastexecution, the task remains in the calendar (SAVE=Y).ZICI::CMDFILE,0,INT:DATE=2000-06-15,TIME=00-00,PTYPE=DA,PNBR=1,NBR=10,SAVE=Y;

Example:Creating a new command file and printing commands to outputdevice

MML command calendar Executing MML Commands in IPA-RNC

98 DN02143068 Issue: 09

   

The following command creates a new command file named BACKUP; writes onecommand (IWD) to it and adds it to the command calendar. Command(IWD) isprinted to output device when it is executed. If the command in the file fails, theexecution of the file is terminated. The command is executed on August 16th 2000,at 00.00.ZICI:IWD:BACKUP,,INT:DATE=2000-08-16, TIME=00-00,CMNDS=YES;

Example:Adding the IBC command to the end of the command file in thecalendarThe following example adds the command (IBC) to the end of the BACKUPcommand file that is in the calendar.ZICI:IBC:BACKUP;

Example:Adding the IID command to the calendarThe task is executed each time alarm 2600 is detected and set by the OMU.ZICI:IID::ALARM=2600,AUNIT=OMU,ASTATE=ALARM,NBR=255;

Expected outcome

A new task is added to the command calendar.

7.5 Testing calendar task execution in MMLPurpose

This procedure gives instructions on how to test the execution of a calendar task.

1 Test the execution of a calendar task (ICT)ZICT:<calendar task identifier>;

Example:Starting a task with a certain identifier

The following command immediately starts the task that has a no. 2 identifier.

ZICT:2;

Expected outcome

The execution of a calendar task is tested.

7.6 Modifying a calendar task in MMLPurpose

With this procedure, you can:

Executing MML Commands in IPA-RNC MML command calendar

Issue: 09 DN02143068 99

   

• change the execution parameters of a calendar task. For example, you can changethe execution time of a task or give a new execution time to a task that was left in thecalendar after its last execution.

• edit an MML command that is in the calendar, including MML commands in diskcommand files that are in the calendar.

• replace one type of a task by another type of a task, that is, replace a command by acommand file, or a command file by a command.

Note that when you edit a command or replace one type of a task by another type of atask, you can also change the execution parameters of the task.

When you add a command to a disk command file that is in the calendar, you cannotgive values to the execution parameters of the file at the same time; you can only enterthe parameters of the command you are adding to the file.

1 Identify the type of modification (ICM:<modify task>)To identify the type of the modification, use the modify task parameter of the ICMcommand.If you do not supply the parameter, the modification only concerns the executionconditions (COND) of the calendar task.

2 Identify the task to be modified (ICM:<calendar task identifier>)If you modify a command that is in a command file, you also need to identify thecommand by the command file index parameter. If needed, display the taskidentifiers and the command indexes using the ICL command .The identifier is the number that is given to the task after it has been added to thecalendar using the ICI command.ZICM:<calendar task identifier>,<modify task>::ALARM=<alarmnumber>, AUNIT=<alarm unit name>,ASTATE=<alarm state>,NBR=<number of execution>;

3 Change the execution parameters of the fileSelect one of the following alternatives:

• Enter the ICM command as a normal MML command, if you only modify theexecution parameters of a calendar task or replace a command by a commandfile.

• Modify a command in the calendar (ICM)ZICM:<calendar task identifier>,<modify task>::ALARM=<alarmnumber>, AUNIT=<alarm unit name>,ASTATE=<alarm state>,NBR=<number of execution>;

1. Confirm command executionAnswer Y to confirm the execution of the command when the system asks fora confirmation.

MML command calendar Executing MML Commands in IPA-RNC

100 DN02143068 Issue: 09

   

The system displays the time you have to enter the command, the parameterguide of the command you are editing (not if you edit a command that is in acommand file) and the three command letters of the command you want toedit or substitute for the command file. See the following example of theprintout:

YOU HAVE 5 MINUTES TO GET COMMAND READYCOMMAND EXECUTEDVERSION 3.3-0### INPUT TO COMMAND CALENDAR ### /* PARAMETERS: COUNTER GROUP, STATISTICS: COUNTERS */

GCU:2. Enter the parameters of the MML command

Enter the parameters of the MML command. Or, if the parameters aredisplayed, edit them.You have five minutes to handle the parameters. You can enter them bymaking use of the parameter guide. After you have entered the parameters,the execution determination block is displayed.

3. Complete the command by entering a semi-colon (;)

Further informationExample:Changing the execution parameters of a calendar taskThe following command changes the execution parameters of a calendar task withidentifier 47. The task is executed when alarm 1635 is set. Commands are notprinted to output device.ZICM:47,::ALARM=1635,AUNIT=,ASTATE=ALARM,NBR=255,CMNDS=NO;

Example:Editing a command and changing its execution timeThe following command edits a command with identifier 4 and changes its executiontime. The execution of the command starts at 13:30. The semantics of the commandare checked during its execution.ZICM:4,EDIT:CHECK=NOSEM:TIME=13-30;

Expected outcome

The task is modified and the task identifier (TASK ID) is displayed.

INPUT STARTEDCOMMAND ADDED TO CALENDARTASK ID = 2COMMAND EXECUTED

7.7 Deleting a calendar task in MMLPurpose

When you delete a command file, the file is removed from the calendar, but not from thesystem disk and it can be used again.

Executing MML Commands in IPA-RNC MML command calendar

Issue: 09 DN02143068 101

   

1 Delete a calendar task (ICD)ZICD:<task identifier>,<command file index>;

Example:Deleting a calendar task with a certain identifier

The following command deletes the calendar task that has a no. 32 identifier.

ZICD:32;

Expected outcome

The calendar task is deleted.

Related topics

Descriptions

MML command calendar

7.8 Blocking or unblocking a calendar task in MMLPurpose

If a task cannot be executed, alarm 1432 (disturbance in command calendar) is set andthe task is usually blocked. Blocked tasks are in the blocked commands queue (BLC).An exception are command files that are meant to be executed more than once andwhose execution does not terminate when some of the commands in the file fails: suchcommand files are marked with NOINT in the CFTYPE column of the printout producedby the ICL command. When the execution of such a task fails, the task is not blockedbut the task remains either in the time queue or the event queue. To check whether sucha task has succesfully been executed, examine the MML command log.

Before a blocked task can be executed, the fault must be corrected and the task must beunblocked. For information on the possible faults, see Execution of a calendar task fails.

1 Check whether a task is blockedSelect one of the following alternatives:

• To check whether the task is blocked, display the blocked calendar tasks (ICL)ZICL:QUE=BLC;

• To check whether the task is unblocked, display the command calendar queue(ICL)ZICLThe following printout is displayed:

ID USER CMND CFILE QUE DATE TIME NBR PNBR PTYPE ALARM=======================================================================1 SYSTEM

MML command calendar Executing MML Commands in IPA-RNC

102 DN02143068 Issue: 09

   

IID - BLC 2000-02-01 19:00 1 - - -

2 SYSTEM - BACKUPFILES TIM 2000-02-01 19:00 1 - - -

3 SYSTEM - BACKUPFILES TIM 2000-02-04 20:00 FOREV 1 WEEK -

6 SYSTEM - ALASTATUS EVE - - - - - 2692

COMMAND EXECUTEDA task that is executed once is unblocked if it is in the wait queue (HOL). Thetask is left in the calendar, but it is not executed unless you change its executionparameters.A task that is executed more than once is unblocked if it is either in

– the time queue (TIM) or– the event queue (EVE).

The task is executed the next time at the moment determined by its executionparameters.

2 Block a calendar task (ICB)If a task does not need to be executed for a while and you do not want to change itsexecution parameters or remove it from the calendar, block the task. A blocked taskis not executed until you unblock it.ZICB:<task identifier>;

Example:Blocking a task with a certain identifier

The following command blocks a task with identifier 11.

ZICB:11;

3 Unblock a calendar task (ICB)ZICB:<task identifying>:<task>;

You can check whether the unblocking was succesfull by examining the queue inwhich the task is.

Example:Unblocking a task with a certain identifier

The following command unblocks a task with identifier 11.

ZICB:11:UNBLOCK;

Expected outcome

A calendar task is blocked or unblocked.

Executing MML Commands in IPA-RNC MML command calendar

Issue: 09 DN02143068 103

   

7.9 Stopping an MML command file executionPurpose

The execution of the file stops after the command that is being executed at the momenthas been executed.

If this command fails to stop the execution of a command file, see the instructions givenin Termination of an MML calendar task that is a command file fails.

1 Stop the execution of a command file (ICS)ZICS:<command file name>;

Example:Stopping the execution of COPYDIR command file

The following command stops the execution of a command file named COPYDIR.

ZICS:COPYDIR;

Expected outcome

The execution of the file is stopped.

MML command calendar Executing MML Commands in IPA-RNC

104 DN02143068 Issue: 09

   

8 MML command troubleshooting

8.1 Execution of a calendar task failsDescription

If alarms 1432 DISTURBANCE IN COMMAND CALENDAR and 2430 ERROR INCOMMAND CALENDAR are given, refer to their instructions. The following areinstructions for the most common errors that set off the alarm 1432.

Alarm 1432 is set and the task is blocked and transferred to the blocked commandsqueue. An exception are tasks that are meant to be executed more than once and whoseexecution is not terminated even if one of the commands in the file fails: such tasks arenot blocked.

Symptoms

The alarm 1432 is set.

Recovery proceduresChecking why execution of a calendar task fails

Steps

1 If execution printouts of calendar tasks are directed to printer, check theprinter and correct the possible faults.a) Check printer (IHI).

To interrogate the operating state of all I/O units in all computer units, give thefollowing command:ZIHI:;

b) Correct printer fault.If the printer is not functioning, check the state of the LPD device as instructed inPrinting tasks are not output.

c) Unblock the calendar task (ICB)For instructions, see Blocking or unblocking a calendar task in MML.

g You are recommended to direct the execution printouts of calendar tasksalso to the BBU-0. For instructions, seeDirecting the execution printouts of MML command calendar tasks. If theprintouts are directed to the BBU-0, the command calendar functions even ifthe actual output device is not functioning.

Executing MML Commands in IPA-RNC MML command troubleshooting

Issue: 09 DN02143068 105

   

2 If execution printouts of calendar tasks are directed to disk file, Check thedisks and correct the possible faults.a) Check disks (IHI).

Check whether the disks are damaged. For example, to display information onthe state of the hard disk unit, use the following command:ZIHI::WDU;

b) Block the calendar task, if the disks are damaged (ICB).If the disks are damaged, replace them. For instructions, see Hard disk is faulty.Unblock the task using the ICB command (see Blocking or unblocking a calendartask in MML).

c) Check file space, if the disks are not damaged (IWX).If the disks are not damaged, check whether the file has free space. Forexample, to check whether a disk file named CCALENDAR (extension LOG) that isstored in the MMDIRE directory of the system disk has free space, use thefollowing command:ZIWX::WS:MMDIRE:CCALENDAR,LOG;

d) If there is no free file space, direct the printouts to another file and unblockthe calendar task.If the file has no free space, direct the printouts to another file, preferably to aring file. For instructions, see Directing the execution printouts of MML commandcalendar tasks. For instructions on unblocking a task, see Blocking or unblockingcalendar tasks in MML.

g You are recommended to direct the execution printouts of calendar tasksalso to the BBU-0. For instructions, seeDirecting the execution printouts of MML command calendar tasks. If theprintouts are directed to the BBU-0, the command calendar functions even ifthe actual output device is not functioning.

8.2 Termination of an MML calendar task that is acommand file failsDescription

Termination of an MML calendar task that is a command file fails.

Symptoms

The task is in the execution queue and its execution cannot be terminated normally.

MML command troubleshooting Executing MML Commands in IPA-RNC

106 DN02143068 Issue: 09

   

Recovery proceduresTerminating a calendar task that is a command file

Steps

1 Restart the Command Calendar Program Block (ODR)Take a remote service terminal session to the working OMU unit:ZDDS;

Restart the Command Calendar Program Block from the service terminal by enteringthe following service terminal command:ZODR:AB

where AB is the process ID of the Command Calendar Program Block.

2 Restart the Command Calendar Disk Interface Program BlockRestart the Command Calendar Disk Interface Program Block from the serviceterminal. Proceed as follows :

1. Enter the following service terminal command:ZODR:97where 97 is the process ID of the Command Calendar Disk Interface ProgramBlock.

2. Enter the following service terminal command:ZOS:*,*,97,,,,,1,,,,,,,

3. The task is transferred to the blocked commands queue. The command calendarstarts to function in one minute.

3 Return to MMLReturn to MML:ZE;

4 Unblock the calendar task (ICB)For instructions, see Blocking or unblocking a calendar task in MML.

8.3 Opening an MML session failsDescription

If opening an MML session to the active OMU fails, use this procedure to open thesession via the spare OMU. This procedure should not be used in normal circumstances.

For more information, see Opening and closing MML sessions

Executing MML Commands in IPA-RNC MML command troubleshooting

Issue: 09 DN02143068 107

   

Symptoms

Opening an MML session to the active OMU fails.

Recovery proceduresOpening an MML session via spare OMU

Steps

1 Enter spare OMU IP addressChange the IP address of the connection to be the IP address of the spare OMU. Theway to do this depends on your Telnet or SSH application.

2 Enter your user IDEnter your user ID when the system asks you to (ENTER USERNAME <).

3 Enter your passwordEnter your password when the system asks you to (ENTER PASSWORD <).

g Passwords are case sensitive. You must use the correct upper or lower caseas defined in your user ID.

The system displays a warning text which says that you have opened the session viathe spare OMU.The welcome dialogue and the MAIN LEVEL COMMAND prompt are displayed. Thismeans that you have opened an MML session and you can enter MML commands.

MML command troubleshooting Executing MML Commands in IPA-RNC

108 DN02143068 Issue: 09

   


Recommended