Moshell Users Guide User

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 159

DownloadMoshell Users Guide User
Open PDF In BrowserView PDF
Informational
USER GUIDE

1(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

MoShell 18.0m User Guide
This document presents an overview of the functionality included in MoShell, command line syntax, revision history and other
important information.
It is important that all engineers working with MoShell read this document before using the tool as it contains important operational
information.

Contents
1 Introduction
1.1 Contact . . . . . . . . . . . . . . . . . . .
1.2 MO concept . . . . . . . . . . . . . . . . .
1.3 O&M services and protocols . . . . . . . .
1.4 MO Tree and MO Naming Conventions . .
1.4.1 LDN - Local Distinguished Name .
1.4.2 RDN - Relative Distinguished Name
1.4.3 FDN - Full Distinguished Name . .
1.5 MOM - Managed Object Model . . . . . .
1.6 Moshell Functionality . . . . . . . . . . . .
1.6.1 Alarm Service . . . . . . . . . . . .
1.6.2 OSE shell . . . . . . . . . . . . . .
1.6.3 Configuration Service . . . . . . . .
1.6.4 Performance Management Service
1.6.5 Log service . . . . . . . . . . . . .
1.6.6 File transfer . . . . . . . . . . . . .

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

5
5
6
6
7
7
7
8
8
8
8
8
9
9
9
9

2 Installation and user settings
2.1 Installation for Unix (Solaris/Linux) . . . . . . . . . .
2.2 Installation for Windows (using Cygwin) . . . . . . .
2.3 Moshell directory structure . . . . . . . . . . . . . .
2.4 Starting an moshell session . . . . . . . . . . . . .
2.4.1 Starting up Moshell . . . . . . . . . . . . . .
2.4.2 Loading the MO Tree . . . . . . . . . . . . .
2.4.3 Performing Actions on Loaded MO Stubs . .
2.5 User-specific settings . . . . . . . . . . . . . . . . .
2.5.1 File properties . . . . . . . . . . . . . . . . .
2.6 Settings related to telnet/ftp/ssh/sftp communication
2.7 CORBA settings . . . . . . . . . . . . . . . . . . . .
2.8 Ports used by moshell . . . . . . . . . . . . . . . .
2.9 Running moshell across secure tunnels (RSG) . . .

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.

10
10
10
11
12
12
13
13
13
14
14
15
15
16

3 Command syntax, including Regular Expressions
3.1 How MOs are Identified . . . . . . . . . . . . . . . . . .
3.1.1 RDN - Relative Distinguished Name . . . . . . .
3.1.2 LDN - Local Distinguised Name . . . . . . . . .
3.1.3 FDN - Full Distinguished Name . . . . . . . . .
3.2 How to address the MOs in MO-related commands . .
3.3 Regular Expressions . . . . . . . . . . . . . . . . . . .
3.4 How to specify attribute values in set/cr/acc commands
3.5 Moshell command line . . . . . . . . . . . . . . . . . .
3.6 Piping . . . . . . . . . . . . . . . . . . . . . . . . . . .

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

16
16
16
16
16
17
18
20
20
21

4 Command descriptions
4.1 Basic MO commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.1 mom[abcdfloprtuxsi] [] [] [] [] []
4.1.2 lt/clt/ltc[1-9] |root|all [ AND/OR ] . . . . . . . . . . . . .
4.1.3 lc/lcc[1-9] |||all . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.4 ld[c]  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.5 lu/llu || . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.6 pr[s][m]/lpr[s][m] [||] [] . . . . . . . . . . . . . . . . . . . . . .
4.1.7 ma[i]/lma[i]  |||all [] [] . . . . . . .
4.1.8 mr[i]/lmr[i]  |||all [] [] . . . . . . .
4.1.9 mp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.10 get[m][i]/lget[m][i] [|||all] [|all] [] . . . . . . . .

21
21
21
23
23
24
24
24
25
25
26
26

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

Informational
USER GUIDE

2(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

EAB Finn Magnusson

Checked

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

4.1.11 hget[c][m][i]/lhget[c][m][i] || [] [] [] [] etc... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.12 kget[m]/lkget[m] [||] [] [] []
[] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.13 fro/lfro[m] |||all [|all] [] . . . . . . . . . . . . .
4.1.14 sql/select  [ | ] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.15 st/lst |||all [] . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.16 prod | [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.17 lk/llk || . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.18 lko/llko || . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.19 set[m][c][1][i]/lset[m][c][1][i] ||  [] . . . . . . . . . . . . .
4.1.20 eset[c][1]/leset[c][1] ||  [] . . . . . . . . . . . . . .
4.1.21 rset/lrset ||  [] . . . . . . . . . . . . . . . . . . . . . . .
4.1.22 bl[s]/lbl[s] || . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.23 deb/ldeb || . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.24 acl/lacl |||all [] . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.25 acc[e][n]/lacc[e][n] |||all  . . . . . . . . . . . . . . . . . . . . . . .
4.1.26 cr[e][n]  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.27 del[b]/ldel[b] || . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.28 rdel/lrdel || . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.29 gm[c][d]/lgm[c][d] || . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.30 sc[g][w][d] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.31 safe+/safe-/safe? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.32 s+/s++/s-/s? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.33 u+[s]/u-/u? [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.34 run[x][1][1p][1r] [-l ]  [] [] ... . . . . . . . . . . . . . . . . . . . . . . . .
4.1.35 trun[is1cr] | . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.36 Ctrl-Z; touch /tmp/xxxx; fg (abort MO command) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.37 pol[b][c][d][h][i][k][m][p][s][r][u][w][y] [-m ] [] [] [] . . . . . . . . . . .
4.1.38 re[i] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.39 getmom [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.40 parsemom [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.41 flt/fltc  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.42 fget[i]/lfget[i] |||all [] . . . . . . . . . . . . . . . . . . . . . . . .
4.1.43 eget/leget |||all [] . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.44 sget/lsget/skget/lskget/shget/lshget |||all . . . . . . . . . . . . . . . . . . .
4.1.45 fset[i]/lfset[i] |||all  [] [] . . . . . . . . . .
4.1.46 facc/lfacc |||all  [] [] . . . . . . . . . . . . . .
4.1.47 fdel/lfdel || . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2 Other MO commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.1 cvls/cvmk/cvms/cvset/cvrm[u]/cvrbrm/cvcu/cvget[f][u][d]/cvput/cvls1/cvre/cvfa/cvfd . . . . . . . . . . . . . .
4.2.2 inv[hlxbpctrgfa] [] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.3 cab[adefghlmrstxc] [ |  ] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.4 sdi[eacr] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.5 stc[p][r] [] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.6 std[ar] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.7 stv[b][r] [] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.8 stt[r] [] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.9 ste[gr] [] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.10 sti[bcfopr] [] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.11 sts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.12 str . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.13 dcg[meiasrfkx] [-m ] [-d ] [-b |all] [-k ] [-f ]
[] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.14 hc[iuzd][v] [-r|-x ] [||] [|] . . . . . . . .
4.2.15 diff[a][d][m][o][x][i]/ldiff[a][d][m][o][x][i] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.16 lkr[a] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.17 resub  [|] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.18 ir[cdpsomt] [] [] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.19 rinp[c][m]  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.20 tg[r][c][d] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.21 ueregprint/uer[d][t][i][s][p][v] [-m |-i |-u |-n |-c |-r ]
[[=]|all] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.22 ced[h][p][s][g][r] [-m |-c |-r |-s ] [ | ] . . . . . . . . . . . .
4.2.23 al[atkcg][u] [-a|-u ] [ | ] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

27
28
28
29
29
29
29
30
30
31
31
31
32
32
32
33
34
34
35
36
36
37
37
39
39
42
42
43
43
44
44
44
44
44
44
45
46
46
46
47
51
53
54
55
58
59
59
62
67
68
70
71
72
75
77
77
79
80
82
85
87

Informational
USER GUIDE

3(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

EAB Finn Magnusson

Checked

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

4.2.24 - lg[abcdefghijklmnopqrstuvwxyz012345] [-l ] [-m ] [-p ]
[-s ] [-e ] [-g ] [-n ] [-x  ] [-b  ]
[-d ] [] [|] . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3 Other commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.1 uv [|=value] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.2 pv [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.3 !/l  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.4 l+[m][m][s][o]/l-/l? [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.5 dbc[s][a] [|||] . . . . . . . . . . . . . . . . . . . . . . . .
4.3.6 dbd[p] [||] [||] . . . . . . . . . . . . . . .
4.3.7 dbcv[r] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.8  [|] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.9 coli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.10 comcli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.11 ecli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.12 esci . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.13 netconf[g] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.14 c+/c1/c2/c-/c?/c0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.15  [|] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.16 mcl[d] [] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.17 mcc/lmcc ||  [|] . . . . . . . . . . . . .
4.3.18 bo[ar]/ba[swdpmu]/br[wdm]/be[0-50]/bp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.19 lh[z] | |run  [ | ] . . . . . . . . . . .
4.3.20 mon[?][d][u][f][s][t][k][a][-] [] [] . . . . . . . . . . . . . . . . . . .
4.3.21 sql+/sql-/sql? [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.22 pgu[c][f][r] [-p ] /path/to/newLM [] . . . . . . . . . . . . . . . . . . . . . .
4.3.23 procload/proctemp [|] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.24 proglist/progkill [-e] [] [|] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.25 fte  [|all] [] [|] . . . . . . . . . . . . . . . . . . . . . . . .
4.3.26 goxb[acib] [-p ]  [|] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.27 ftree[f][d][1] [/][] [| ] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.28 ftget[1][c]/ftput[1][c]/ftdel[1][a]/ftrun [] [/*] [] . . . . . . . . . . . . . . . . . .
4.3.29 htget  [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.30 edit  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.31 fclean[f|ff|a|d|e] [/][] [-f ] . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.32 hi [], ! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.33 time[t] | . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.34 pipe  |  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.35 lmid[c][h]/upid[om] |refresh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.36 p/w/pw/b . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.37 prox[+-] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.38 col . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.39 ul . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.40 conf[bld][+-] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.41 gs[+-]/gsg[+-] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.42 ip2d  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.43 d2ip/h2ip  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.44 h2d/d2h  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.45 h2b/b2h  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.46 d2b/b2d  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.47 rb2ip [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.48 encpw  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.49 mos2ro  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.50 gpg  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.51 wait | . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.52 wf[o][a][t]  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.53 return . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.54 print . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.55 alias/unalias   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.56 lf[c]  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.57 bg[g]/bgs/bgw [||all] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.58 - smd[slcr] [-m ] [-s ] [-f ] [-o a|s|n] [-u |all] [-d ] [-n ] . . . . . .
4.3.59 pe[c][l][k] [|] [] [] [] . . . . . . . . . . .
4.3.60 q/by/exit/quit [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.4 PM commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.4.1 pmom[acdpo] [] [] [] [] [] . . . . . . . . . . . . . . . .

88
93
93
94
94
94
95
101
101
102
104
104
104
104
104
104
105
106
106
106
109
109
111
111
112
113
113
113
114
115
116
116
117
118
118
118
118
119
119
119
119
120
120
120
120
121
121
121
121
122
122
122
122
123
123
124
124
124
124
125
126
127
127
127

Informational
USER GUIDE

4(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson
4.4.2
4.4.3
4.4.4
4.4.5
4.4.6
4.4.7
4.4.8

4.4.9

4.4.10
4.4.11
4.4.12
4.4.13
4.4.14
4.4.15
4.4.16
4.4.17
4.4.18
4.4.19

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

kmom[d] [] [] [] [] [] . . . . . . . . . . . . . . . . . .
pget/lpget [|||all] [|all] [] . . . . . . . . . . . .
spget/lspget [|||all] [|all] [] . . . . . . . . . . .
hpget[c][m]/lhpget[c][m] || [] [] [] [] etc... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pdiff/lpdiff [|||all] [|all] [] . . . . . . . . . . . .
hpdiff[m]/lhpdiff[m] [|||all] [|all] [] [] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pmx[hfdnsckwlb3zeity] [|] [|] [-l |] [-w ] [-m ] [-p ] [-s [.]] [-e [.]]
[-a|-d|-h] [-o ] [-tz ] [-f ] [-j ] [-mo ] [| ] .
pmr[agfkwop3z] [-g |] [-z ] [-r ] [-l |] [-w ] [-i ] [-f ] [-c ] [-m ] [-p ]
[-s [.]] [-e [.]] [-o ] [-t ] [-tz ]
[|] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pme[fd][cgurv] [] [-b ] [-f ] [-m ] [-p ] [-s [.]] [-e [.]] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pst [|] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pgets[m][n][r] [|] [] . . . . . . . . . . . . . . . . . . . . . . . . . .
pcr[pcfpdaz]/lpcr[pcfpdaz]

||| [] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pcrk[f][v][d] [] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pbl | . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pdeb | . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pdel | . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
emom [uetr|gpeh|ctr|all] [] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pset[d] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

127
128
128
128
128
128

129

131
134
135
135
136
137
138
138
138
138
138

5 Lazy
5.1 Software Upgrade CPP . . . . . . . . . . .
5.2 Software Upgrade ECIM/COM . . . . . . .
5.3 RNC Iub operations . . . . . . . . . . . . .
5.4 Common RNC Iub Integration Problems .
5.5 Common RNC Iu/Iur Integration Problems

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

140
140
140
141
141
142

6 Scripting
6.1 Preset Variables . . . . . . .
6.2 Variable assignment . . . .
6.3 Hashtables (arrays) . . . . .
6.4 If/Else constructs . . . . . .
6.5 For constructs . . . . . . . .
6.6 User-defined functions . . .
6.7 Nesting for and if statements
6.8 Example scripts . . . . . . .

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

142
143
144
149
149
150
152
153
154

7 Utilities
7.1 Network Management Tools
7.2 Parameter Auditing Tools . .
7.3 PM Tools . . . . . . . . . . .
7.4 Miscellaneous Tools . . . .

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

154
155
155
155
156

8 Server Maintenance
156
8.1 Hanging Processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
8.2 Disk full . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
8.3 Run out of memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
9 Offline Mode and Multi Mode
157
9.1 Offline Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
9.2 SQL Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
9.3 Multi Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
10 Revision History

159

Informational
USER GUIDE

5(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

1 Introduction
1.1 Contact
For bug reports, installation issues, change requests etc. please use the forum on the moshell homepage.
TR for MoShell
Put bug reports on the web page (see Section 1.1) or write them in MHWEB:
To write an MoShell TR/CR in MHWEB:
1. Product should be AMOS CXC 172 4313
2. MHO should be LMIR7-BASIC
In order to get the fastest resolution to your problem, please add the following information to your TR or bug report:
• uv and pv printout
• Any complete printout relevant to the fault
• How to recreate the fault (you can for instance include the hi printout showing all the commands that led to the fault)

Informational
USER GUIDE

6(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

EAB Finn Magnusson

Checked

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

1.2 MO concept
****************************************
|
O&M Client
|
|
(eg: EMAS/OE/RANOS/moshell,etc.)
|
****************************************
|
|
****************************************
|
CS,PM,AS,NS,IS,LS
Service Layer |
****************************************
|
|
**********|******************************
+++++++
*
*
|
|
*
*
| MAO | Management Adaption Layer*
*
|
|
*
*
MO--> *
|
| ------------------------ *
| FRO |
*
*
|
| Resource Layer
*
*
| RO |
*
*
|
|
*
*
+++++++
*
*
*****************************************
The O&M client can access the MOs through a number of services:
• Configuration Service (CS): to read and change configuration data. Configuration data is stored in the MO attributes.
• Performance Measurement (PM): to setup statistics scanners or event filters. The statistics counters are stored in MO
pm-attributes and output to an XML file every 15 minutes. The events are output into binary files every 15 minutes.
• Alarm Service (AS): to retrieve the list of alarms currently active on each MO.
• Notification Service (NS): to subscribe and receive notifications from the node, informing about parameter/alarm changes in
the MOs.
• Inventory Service (IS): to get a list of all HW and SW defined in the node.
• Log Service (LS): to save a log of certain events such as changes in the configuration, alarms raising and ceasing,
node/board restarts, jvm events, O&M security events, etc
The MO is a way of modelling resources in a CPP node. It consists of:
1. A Management Adaption Layer which is implemented in java, in the MP running the jvm (the O&M MP).
The purpose of the MAO (Management Adaptation Object) is to interface towards the various O&M services described
above.
2. A Resource Layer consisting of Facade Resource Object (FRO) and a Resource Object (RO) which are implemented in C
and run on the various boards. The RO is the actual resource modelised by the MO. The purpose of the FRO is to act as
an interface between the MAO and the RO, by handling the configuration transactions and storing configuration data for the
RO.

1.3 O&M services and protocols
The MO services described above (CS, AS, PM, IS, NS) are carried by the IIOP protocol (Internet Inter-ORB Protocol), also
called CORBA (Common Object Request Broker Architecture).
At startup, the node generates its IOR (Interoperable Object Reference) and stores it in a nameroot.ior file which can be used by
the O&M client to access the node. The IOR file contains the node’s IP address and some specifications as to how the clients
can send requests to the node.
The OSE-shell (also called COLI) can be accessed through telnet/ssh or locally, through the serial port (RS232). It gives direct
access to the operating system, the file system, and parts of the FRO/RO layer.

Informational
USER GUIDE

7(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

Figure 1: CPP nodes have various access methods for different services. For Managed Services like CS, CORBA is used. For the
command shell, ssh or telnet is used. To collect PM XML ROP files FTP is used.

1.4 MO Tree and MO Naming Conventions
1.4.1 LDN - Local Distinguished Name
The MOs are organised in a hierarchical structure.
Each MO instance is uniquely identified in the node by its Local Distinguished Name (LDN).
The highest MO in a node, the so called root MO is the ManagedElement. This MO represents the whole node.
There is only one instance of the ManagedElement MO in the node and it is referenced by the LDN: ManagedElement=1
The string at the left of the equal sign is called the MO class (or MO type) and the string at the right of the equal sign is called the
MO identity. In the case of the root MO, the MO class is ManagedElement and the identity is 1.
If an MO is located further down in the MO tree, the LDN must contain the MO classes and identities of all the parents of that MO,
in a sequence going from the root MO down to the MO in question. See example below:
ManagedElement=1
ManagedElement=1,Equipment=1
ManagedElement=1,Equipment=1,Subrack=MS
ManagedElement=1,Equipment=1,Subrack=MS,Slot=19
ManagedElement=1,Equipment=1,Subrack=MS,Slot=19,PlugInUnit=1
ManagedElement=1,Equipment=1,Subrack=MS,Slot=19,PlugInUnit=1,Program=DbmFpgaLoader

From this example, we can see that the ManagedElement has a child called Equipment=1 which has a child called Subrack=MS
(representing the main subrack of the node), which has a child called Slot=19 (representing the slot in position 19), which has a
child called PlugInUnit=1 (representing the board located in that slot), which has a child called Program=DbmFpgaLoader
(representing one of the programs loaded in that board).
The LDN of the lowest MO (the one called Program=DbmFpgaLoader) contains the address of all successive parents of that
MO all the way up to the ManagedElement.

1.4.2 RDN - Relative Distinguished Name
The string located at the far right of an LDN, just after the last comma, is called a Relative Distinguished Name (RDN).
It is a unique way of addressing a MO instance in relation to its closest parent.
This means that there is only one MO instance with the RDN Program=DbmFpgaLoader under the parent MO
ManagedElement=1,Equipment=1,Subrack=MS,Slot=19,PlugInUnit=1. However, there could be another MO instance with
the same RDN under a different parent MO. For instance, there could be an MO instance with the RDN
Program=DbmFpgaLoader under the parent MO ManagedElement=1,Equipment=1,Subrack=MS,Slot=23,PlugInUnit=1.
Therefore the RDN is a relative way of addressing an MO instance.

Informational
USER GUIDE

8(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

1.4.3 FDN - Full Distinguished Name
When a node is connected to a Network Management System such as OSS-RC, there is a need to uniquely address each MO
within the whole network. The Full Distinguished Name (FDN) adds a network element prefix (MIB prefix) in front of the LDN of
each MO instance in order to specify which node this MO belongs to. See the figure below, summing up the FDN/LDN/RDN
concept:
FDN (Full Distinguished Name)
<------------------------------------------------------------............................................................>
LDN (Local Distinguished Name)
<----MIB Prefix-----------------------><--------------................................................................>
MoClass Identity
<-----> <--->
RDN (Relative Distinguished Name)
<--------->
Network=H3GA,Utran=Rnc1,MeContext=Rbs03,ManagedElement=1
RDN
<-------->
Network=H3GA,Utran=Rnc1,MeContext=Rbs03,ManagedElement=1,Equipment=1
RDN
<----->
Network=H3GA,Utran=Rnc1,MeContext=Rbs03,ManagedElement=1,Equipment=1,Subrack=MS
RDN
<---------->
Network=H3GA,Utran=Rnc1,MeContext=Rbs03,ManagedElement=1,Equipment=1,Subrack=MS,Slot=19
RDN
<------------------->
Network=H3GA,Utran=Rnc1,MeContext=Rbs03,ManagedElement=1,Equipment=1,Subrack=MS,Slot=19,PlugInUnit=1
Network=H3GA,Utran=Rnc1,MeContext=Rbs03,ManagedElement=1,Equipment=1,Subrack=MS,Slot=19,PlugInUnit=1,Program=DbmFpgaLoader

1.5 MOM - Managed Object Model
Each MO class contains a number of attributes which are used to store configuration data or performance measurement data.
Each MO class can also support a number of defined actions. These represent certain operations which can be performed by the
MO. A typical example is the action restart which will cause the MO to restart the resource it is responsible for (e.g. a board, a
program, etc.).
The Managed Object Model (MOM) is a reference document describing all the MO Classes that can exist in a node, together with
their attributes and actions.
The format of the MOM can be UML, XML, HTML, or MS-Word.
The XML version of the MOM is usually stored on the web server of the node at the address:
http:///cello/oe/xml/.xml
The MOMs for each SW release is also stored in HTML format on http://cpistore.ericsson.se

1.6 Moshell Functionality
MoShell is a text-based O&M client providing access to the following services:
• Configuration service (CS)
• Alarm service (AS)
• Performance management service (PM)
• Log service (LS)
• OSE shell (COLI)
• File transfer (ftp/http)
Access to all services is supported both in secure mode (secure Corba, ssh, sftp) and unsecure mode (unsecure corba, telnet,
ftp).

1.6.1 Alarm Service
The list of active alarms can be retrieved with the commands al (to show an overview) or ala (the same as al, with more
details).

1.6.2 OSE shell
Any OSE shell command can be typed at the moshell prompt and the output can be piped through external utilities (which exist in
your workstate/server) if required.
Examples:

Informational
USER GUIDE

9(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

te log read
te log read | grep ERROR

• Only the $ prompt is supported. For instance, it is not possible to type lhsh 000100 and expect a prompt to that board.
The workaround is to type the command on the same line as the link handler shell, eg lhsh 000100 te log read or
put a semicolon after the lhsh xxxx, eg lhsh 001400 ; te log read ; vii ; llog . Type h ose at the
moshell prompt for more info.
• Other commands which require a shell such as sqlc have their own implementation. See Section 4.3.8.
• Any Loco commands should be written as loco ts\nloco ... You can achieve this automatically using aliases, see
Section 4.3.55.

1.6.3 Configuration Service
Moshell supports the following 6 operations from the configuration service:
1. GetChildren to load all or parts of the MO-tree
2. GetAttribute to read the attributes of an MO
3. CallAction to perform an action on an MO
4. SetAttribute to set (change) the value of an MO attribute
5. CreateMO to create a new MO in the node
6. DeleteMO to delete an MO from the node

1.6.4 Performance Management Service
Moshell supports the following operations from the performance management service:
• List Scanners and Event Filters
• Create Scanner
• Stop Scanner
• Resume Scanner
• Delete Scanner
• Set Event Filter

1.6.5 Log service
Moshell supports fetching and parsing of the following logs:
• availability log
• system log
• event log
• alarm log
• command log
• O&M security event log
• COLI log
• Hardware inventory log
• JVM events log (upgrade log)

1.6.6 File transfer
Moshell can download/upload files and directories to/from the node, using http, ftp or sftp.

Informational
USER GUIDE

10(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

2 Installation and user settings
2.1 Installation for Unix (Solaris/Linux)
Copy the moshell installation package moshellxxx.zip to your home directory /home/youruser or to the temp directory /tmp.
Very important: do not store the zip file inside the moshell folder otherwise the installation will be corrupted.
Then go to the folder containing the zipfile (cd ) and run the following commands:
unzip -o moshellxxx.zip
bash moshell_install
When prompted to enter the directory where you want to install moshell, it is recommended to specify your HOME directory ( ~).
If you have executed moshell_install from your home directory then you can press the enter key and the current directory is
selected.
If a previous moshell installation already exists, it is recommended to install in the same directory as the old one. This way, all
your custom files (jar/xml files, site files, etc.) get copied across to the new revision and the old revision gets moved to a different
location so you can still access it if needed.
When prompted to enter the path to java, make sure to use Oracle Java. Other Java distributions such as OpenSDK are not
supported by moshell.
Note: In the case of AMOS installation use option -a, ie: bash moshell_install -a (must be run as root on OSS
masterserver).
Note: for linux 64-bit, the 32-bit libc library is required, the package name is libc6-i386 or glibc.i686 or ia32-libs.
(Other packages which may be needed for certain commands are python and expect.)
Running moshell for the first time:
If you have set the PATH variable correctly in your ~/.bashrc file, you should be able to run moshell from any directory. E.g:
moshell 
If this is the first time moshell is installed in this location, then it will download a number of jar files from the node. No progress
indicator will be shown so just be patient as it will take a few minutes. Progress can be seen by doing "ls -l" in the moshell/jarxml
directory. For more information about user settings etc, check the user guide.
If the Moshell execution fails on linux with the following error:
moshell/commonjars/lib/lin64/filefuncs.so: cannot restore segment prot after reloc: Permission denied
Then try to run the following commands, while logged in as root:
chcon -t texrel_shlib_t ./commonjars/lib/lin64/libz.so.1
chcon -t texrel_shlib_t ./commonjars/lib/lin64/filefuncs.so
If Moshell is unable to connect to the node on port 22, try executing the program moshell/commonjars/ssh manually. If it fails with
the following error:
moshell/commonjars/ssh: error while loading shared libraries: cannot restore segment prot after reloc:
Then try running the following command, while logged in as root:
chcon -t texrel_shlib_t commonjars/ssh

2.2 Installation for Windows (using Cygwin)
When running on Windows, Moshell uses a unix emulator known as Cygwin.
Go directly to step 10, MoShell Installation, if you have already installed and configured Cygwin previously.
1. Download and execute the file http://www.cygwin.com/setup-x86.exe
2. Choose "Install from internet", then click Next.
3. Root Directory C:\cygwin (It is not recommended to choose a different directory, especially if it contains spaces).
4. Choose a Download Site. For instance http://sourceware.mirror.tds.net is known to work well but probably others work fine
too.

Informational
USER GUIDE

11(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

5. In the "Select Packages" View menu, choose "Category", then add the following packages:
• under Archive select zip and unzip
• under Database, select postgresql
• optional: under Editors select vim (if you want to be able to edit files with vi)
• under Graphics, select gnuplot
• under Libs, select libglib2.0_0
• under Net select curl, inetutils, openssh, openssl
• under Perl select perl, perl-XML-Simple, and perl-IO-Tty
• under Python select python2
• under Tcl select expect
6. Click Next, install will start. Wait for installation to complete.
7. Copy the file moshell/examples/cygwin_install/cygwin_install.txt to C:/Cygwin (also available from
http://newtran01.au.ao.ericsson.se/moshell/cygwin_install.txt). .
8. Click on Start –> Run.
In the "Run" window, type: cmd , then press .
A DOS window opens. At the DOS prompt, execute the following commands:
c:
cd cygwin
bin\perl.exe cygwin_install.txt
This will create the following files: c:/cygwin/etc/profile, c:/cygwin/cygwin.bat,
c:/cygwin/home/youruserid/.bashrc, c:/cygwin/home/youruserid/.minttyrc,
c:/cygwin/home/youruserid/.inputrc.
If those files already exist, they are automatically moved to the folder c:/cygwin/tmp/installbackup.
9. Open a new cygwin terminal window. The window should be black with white text and the prompt should like this: [~]$
If not, then go through all the steps again and make sure you haven’t missed out anything.
More info about Cygwin installation issues can be found at: http://cygwin.com/faq/faq0.html
Uninstall instructions for cygwin can be found at
http://cygwin.com/faq/faq.setup.html#faq.setup.uninstall-all
10. Moshell installation. Follows these steps if you already have a working Cygwin environment.
• Copy the moshell installation package moshellxxx.zip to your home directory c:/cygwin/home/youruserid
• Open the cygwin shell and run:
unzip -o moshellxxx.zip
bash moshell_install

When prompted to enter the directory where you want to install moshell, it is recommended to specify your HOME directory
( ~).
If you have executed moshell_install from your home directory then you can press the enter key and the current
directory is selected.
If a previous moshell installation already exists, it is recommended to install in the same directory as the old one. This way,
all your custom files (jar/xml files, site files, etc.) get copied across to the new revision and the old revision gets moved to a
different location so you can still access it if needed.
When prompted to enter the path to Java, just type java .
11. Running moshell for the first time
If you have set the PATH variable correctly in your ~/.bashrc file, you should be able to run moshell from any directory. E.g:
moshell 

2.3 Moshell directory structure
The moshell directory contains a number of files and subdirectories:

Informational
USER GUIDE

12(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

• logfiles/ To store the logfiles generated by the various utililites (moshell, mobatch, swstat, etc.)
• examples/ Example of input files required by the utilities (command files, site files, etc.)
• cmdfiles/ Place to store your command files (to be used by mobatch, monode, telbatch, telnode, etc)
• sitefiles/ Place to store your sitefiles (to be used by mobatch, telbatch, swstat, swup, etc.)
• jarxml/ Place to store jar files (oms.jar and vbjorb.jar) and xml-MOM files (used by Moshell). Specific to certain nodes.
• commonjars/ Place to store jar files common to all nodes
• moshell The file used to startup moshell. Contains some customizable variable settings.
• mobatch Run moshell commands on several nodes in parallel
• gawk Script interpreter used by the various utilities
• prog.awk, funcs.awk Main code for moshell, cannot be run on its own.
• moshellUserGuide.pdf Help file
• rncaudit Audit and consistency check of rnc data towards cell data CDR, utranrelations CDR, baseline, uerc, etc.
• swstat To view SW revisions, CV’s and delete old upgrade packages
• rbsaudit Audit and consistency check of rbs data towards rbs data and baseline. Generation of mobatch corrective scripts.
• swup Network SW upgrades
• cvms create and set cv’s on several nodes in parallel
• momdoc convert MOM from xml to html
• mocmd generate moshell command file from a baseline parameter file

2.4 Starting an moshell session
This section gives a brief overview of how to get started once you have installed moshell.

2.4.1 Starting up Moshell
A Moshell session is started from the Unix shell prompt using command: moshell |
If connecting with node name, an entry must exist in the ipdatabase file reference the node name against an ip or dns address.
Other ways of starting moshell are described by typing moshell on its own as well as in chapter Section 9 (Offline mode/multi
mode Chapter) .
Upon startup, and running the command "lt all", moshell will go through the following steps:
1. Download the node’s IOR file and store it on the workstation. The node’s IOR file is fetched from
http://nodeipaddress/cello/ior_files/nameroot.ior
2. Check the node’s MOM version The node’s MOM is fetched from http://nodeipaddress/cello/oe/xml/ where
 is one of the files listed in the user variable xmlmomlist. The MOM version is derived from the "mim" tag inside
the MOM file, eg:  becomes
RNC_NODE_MODEL_E_5_3. If this MOM version does not exist on the workstation (under moshell/jarxml directory),
then it is downloaded from the node and stored in that directory. If the MOM version could not be figured out (ie. moshell
could not find any MOM on the node), the MOM specified in the moshell uservariable default_mom is used.
3. Parse the MOM and generate an internal table specifying all MO classes, attributes, and actions supported by the node.
4. Initiate CORBA communication with the node by using the information contained in the IOR file.
5. Read the FDN of the Root MO
6. Ready to receive commands from the user
At this stage, it is possible to access the Alarm Service and OSE shell but the Configuration Service is limited since Moshell
doesn’t have any knowledge of what MO instances are contained in the node’s MO tree (apart from the root MO).
The following commands are of use at this stage:
• h - to show the help and list of commands. Can be used with a command name after to show help about that command.
The menus are split into two (m and n) only for readability purposes.

Informational
USER GUIDE

13(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

2.4.2 Loading the MO Tree
Once Moshell first connects to the node it has no knowledge of the MO structure on the node (execept for the ManagedElement
MO class). In order to get attributes or call actions you first need to load the MO stubs onto your Moshell client.
The whole MO tree can be read with command lt all. The LDN of each MO of the MO tree is then allocated a "proxy" number
and stored in an internal table in Moshell memory. The internal proxy table can be printed via the command pr which will show
for each MO, the LDN and the proxy number.
When performing an operation on an MO (get, set, action, etc.), either the proxy number or the LDN can be given as argument.
In fact, by using a Regular Expression matching part of the LDN, an operation can be performed on several MOs at a time.
More information about this can be found in Section 3 or by typing h syntax at the prompt.
To save memory on the workstation, it is possible to load only parts of the MO tree instead of the whole MO tree.
For instance, by typing lt pluginunit, only the LDNs of MOs whose MO class is PlugInUnit will be read.
Instead of typing the whole MO class, it is possible to type a regular expression that will match the MO class.
In this case, lt plu would be the same as lt pluginunit, since the string plu matches pluginunit
More information about this in Section 4 or by typing h lt and h lc at the prompt.

2.4.3 Performing Actions on Loaded MO Stubs
To perform operations on one or several MOs which you loaded in the previous section, follow the command syntax shown on the
menu.
1. Example: To read the MO attributes of the MO with LDN
ManagedElement=1,Equipment=1,Subrack=MS,Slot=19,PlugInUnit=1 you would type the following:
pr plu
#then lookup the proxy identity of that MO
get  #enter the MOs proxy identity as argument to the "get" command

OR
lget ms,slot=19,pluginunit=1$
2. Example: To read the MO attributes of all MOs whose MO class is PlugInUnit
get plu #the get command will operate on all MOs whose RDN matches "plu"

More info about this in Section 3 or by typing h syntax at the Moshell prompt.
Help for each command can be found in Section 4 or by typing h  at the Moshell prompt.
!!! Important note for CDMA nodes !!! Most CDMA nodes do not keep a MOM on the node’s harddisk.
To force moshell to use the correct MOM, here are some workarounds:
• store the correct MOM in your directory moshell/jarxml, then, after the moshell startup, use the command
parsemom  to parse the correct MOM, or specify the path to this MOM in your default_mom user variable (see
Section 2.5 for info on user variables).
• store the correct MOM on the node at /c/public_html/cello/oe/xml/CelloMOM.xml
• check if the node has a MOM that is under a different file name than is specified in the moshell uservariable xmlmomlist.
This can be done by doing ls /c/loadmodules_norepl or ftree /c/loadmodules_norepl and search for a MOM
file (file extension .xml)

2.5 User-specific settings
There are a number of moshell configuration parameters (called user variables) which can be set either permanently or on a
session basis. These settings have a default value which is defined in the file moshell/moshell. If one or more user variables
need to be changed from the default value, it is recommended to store the new setting in one of the moshellrc files (~/.moshellrc
or moshell/jarxml/moshellrc or moshell/jarxml/moshellrc.$USER) instead of the moshell file. This way, the new setting will be
kept even after an moshell upgrade.
It is also possible to define user variables on a session basis by:
1. using the command uv [var=value] from the moshell prompt (type h uv for more info)
2. or use the -v option from the command line when starting moshell (type moshell on its own for more info)
It is possible for many users to run moshell from a central location and have their logfiles, credential files, user variables and

Informational
USER GUIDE

14(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

EAB Finn Magnusson

Checked

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

aliases stored in their own home directory. This is mainly intended for Solaris or Linux networks where many users will be able to
run moshell from a common location without having to install it in their home directory. The common location can be the vobs or
any user’s home directory, for example the administrator’s account or a common account.
The administrator can define a number of user variables and aliases and save them into the moshell/jarxml/moshellrc file.
These user variables and aliases will apply to all users and will be kept after each moshell installation. It is also possible for the
administrator to define individual moshellrc files which will be located as moshell/jarxml/moshellrc.$USER .
Each user can also define their own settings and aliases and save them into the ~/.moshellrc file in their home directory. If this
file is not present, it will be created automatically and can be modified any time.
All user variables that are defined in the file moshell/moshell can be given a new value in the moshell/jarxml/moshellrc and/or
the ~/.moshellrc and/or the moshell/jarxml/moshellrc.$USER file.
The user variables defined in moshell/jarxml/moshellrc.$USER override those defined in ~/.moshellrc which override those
defined in moshell/jarxml/moshellrc, which in turn override those defined in the file moshell/moshell.
Here is a short list of user variables, look inside the moshell file for more info on each variable:
• disk_check - check if enough free disk space on the workstation: 0=no check, 1=warning only, 2=exit if not enough space
• disk_limit - the minimum free disk space required by the disk check, default 1G (1 Gigabyte).
• java - path to Java executable
• ip_database - path to the IP database file (see example of this file in moshell/examples/mobatch_files)
• secure_shell, secure_ftp, username, ip_connection_timeout, ip_inactivity_timeout - see Section 2.6 for info
• corba_class, security_method, credential, sa_credential, sa_password, sls_urls, sls_username, sls_password - see
Section 2.7 for information
• default_mom - path to the default MOM, to use in case no MOM is found on the node
• prompt_highlight - to enable or disable the bold font of the prompt
• set_window_title - to enable or disable the display of a window title
• http_port - to specify the HTTP port value (e.g 80 for CPP, 8080 for simcello)
• keepLmList - files that shouldn’t be deleted by the fclean command.
• bldebset_confirmation, lt_confirmation - to specify if confirmation message shall be given in lt/bl/deb/set commands.
• logdir - path to the logfiles directory (this one can only be changed from moshellrc or .moshellrc, not uv or -v)
• a few more variables, see the moshell file for further details
Look in the moshell file for a more complete list and detailed explanation of each variable.

2.5.1 File properties
All files and subdirectories belonging to the moshell package are NON-writeable to outside users. Only the owner of the account
where moshell is installed can make modifications to the installation. The only exception is the subdirectory moshell/jarxml
which is writeable to everyone. The reason is because all users need to be able to store new xml MOM files in that directory
(since the xml MOM gets frequently updated for every new node SW release).
Note: the same jar files can be used by all users, regardless of what CPP SW is running on the node. For instance, it’s ok to use
CPP 4 jar files towards a CPP 3 node. This also the case as CPP 5.1 moves towards JacORB.

2.6 Settings related to telnet/ftp/ssh/sftp communication
The following user variables relate to telnet/ftp communication.
All settings can be either set in moshell file, in ~/.moshellrc or via the uv command in the moshell session. See Section 2.5 and
h uv for more info. Also check the moshell file for more info on each variable.
• username - which username to use when logging in to the node via telnet/ftp/ssh/sftp
• secure_shell - whether to use telnet or ssh for access to OSE shell
• secure_ftp - whether to use ftp or sftp for file transfers.
• ip_connection_timeout - timeout for the establishment of telnet/ftp/ssh/sftp connections
• ip_inactivity_timeout - inactivity timeout for telnet/ftp/ssh/sftp connections

Informational
USER GUIDE

15(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

• telnet_port/http_port/ftp_port/secure_port - to use a different port for telnet/http/ssh/sftp. Useful for connecting to
SimCello/CPPemu or running moshell over the RSG using port forwardings.
• node_login - whether to login or not (no login for SimCello or backup mode)
So, in order to enable ssh/sftp instead of telnet/ftp, do one of the following:
1. Set the variables secure_shell and secure_ftp in moshell file to the value 1 (not recommended since the value will get
reset at the next moshell install/upgrade).
2. OR Add the following lines in the ~/.moshellrc or the moshell/jarxml/moshellrc file
secure_shell=1
secure_ftp=1
3. OR Run the following commands from the Moshell prompt (the setting will only be valid for the current session):
uv secure_shell=1
uv secure_ftp=1
4. OR start moshell with the option -v secure_shell=1,secure_ftp=1
See Section 2.5 to find out more about setting user variables.
Important Note regarding the ip_connection_timout: By default, this timeout is set to 45 seconds in the moshell file. Certain OSE
shell commands might not print any output for a longer period of time, eg: format, rcp, etc. To avoid having a connection
timeout when running these commands, it is advised to extend the ip_connection_timeout prior to running the command, by
doing uv ip_connection_timeout=600 (for example).

2.7 CORBA settings
To specify which corba SW and corba security settings moshell should be using, use the following values of the user variable
corba_class.
• corba_class=1 : connect in secure mode with the visibroker (vbjorb) software
– security_method=1 (requires java >= 1.2.2) : use a host credential host.p12, only supported for nodes running
CPP5.0 and below. The uservariable credential must be set accordingly, to point to the host.p12 file. The
host.p12 file is downloaded from the PKS server or from the node.
– security_method=2 (requires java >= 1.3.1) : use a stand-alone credential sam.pbe. The sam.pbe file is
downloaded from the SLS server, its path and password must be given in the uservariables sa_credential and
sa_password.
• corba_class=2 (requires java >= 1.3.1) : connect in unsecure mode with the prismtech (jacorb) SW.
• corba_class=3 (requires java >= 1.4.2_05) : connect in secure mode with the jacorb SW, using a stand-alone credential
sam.pbe. The sam.pbe file is downloaded from the SLS server, its path and password must be given in the uservariables
sa_credential and sa_password.
• corba_class=4 (requires java >= 1.4.2_05) : connect in secure mode with the jacorb SW, using a network-mode
credential ssucredentials.xml which is automatically downloaded from SLS server. The username and password for
SLS login must be specified in the uservariables sls_username and sls_password. The address of the SLS is read
from the node but can also be specified in the uservariable sls_urls.
• corba_class=5 (requires java >= 1.4.2_05) : connect in secure mode with the jacorb SW, using an already downloaded
network-mode credential ssucredentials.xml. The path to the ssucredentials.xml file must be given in the
uservariable nm_credential.
For more information about how to set the user variables, see Section 2.5 and h uv. Also check the moshell file for more info on
each variable.

2.8 Ports used by moshell
If there is a firewall between moshell and the nodes, then the following TCP ports need to be open in the firewall:
For CPP nodes:
1. Corba:
• port 56834: for unsecure corba (O&M SL1)
• port 56836: for secure corba (O&M SL2 and SL3)
2. Http: 80

Informational
USER GUIDE

16(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

3. SSH/SFTP: 22
4. Telnet: 23 (optional)
5. Ftp: 21 (optional). If ftp is used, an additional port range needs to be open for the data connection (21 is for control only).
6. Target monitor: TCP ports 33077 to 33087 and UDP 33078-33079 . Needed in order to monitor the trace and error log with
the "mon" command.
7. Optional: for subscription to Corba CS/FM notifications, using the utility runClient.sh (-c/-a options): callback port range
53248-55295 from the node to the client. This is not needed for moshell, only for the utility runClient.sh -c/-a options.
For ECIM/COM nodes:
1. RCS nodes (MSRBSv2/TCU):
• HTTPS: 443 and 8443
• SSH: 830 (NETCONF), 2023 (COMCLI), 4192 (COLI)
• SFTP: 22 (from Node), 2024 (to Node)
• TLS: 6513 (NETCONF), 9830 (COMCLI), 9831 (COLI)
• Trace streaming from Node: TCP 5342/5343 (MP traces), and UDP 33079 (BB traces)
2. Pico nodes: 22 (SFTP), 9830 (COMCLI), 830 (NETCONF)
3. Other nodes: 22 (APG43L), 2024 (BSP), 830 (PGM), ...
More info in the CPI document "Node Hardening Guidelines"

2.9 Running moshell across secure tunnels (RSG)
Please refer to instruction in the file moshell/examples/misc/RSG_tunnels_instruction.txt

3 Command syntax, including Regular Expressions
3.1 How MOs are Identified
MOs can be identified using the RDN, LDN or FDN.

3.1.1 RDN - Relative Distinguished Name
This is used to identify an MO in relation to its nearest parent in the MO tree.
The RDN contains MO Class (also called MO Type), the equal sign, and MO identity. Example:
AtmPort=MS-24-1

AtmPort is the MO Class, MS-24-1 is the identity.

3.1.2 LDN - Local Distinguised Name
This is used to uniquely identify an MO within a node.
The LDN shows the hierarchy above the MO, within the Managed Element’s MO tree. Example:
ManagedElement=1,TransportNetwork=1,AtmPort=MS-24-1

3.1.3 FDN - Full Distinguished Name
This is used to uniquely identify an MO within a network (used by RANOS/CNOSS/OSS-RC). Example:
SubNetwork=AUS,SubNetwork=H2RG_0201,MeContext=St_Leonards_Station_2065010,ManagedElement=1,TransportNetwork=1,AtmPort=MS-24-1

Informational
USER GUIDE

17(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

3.2 How to address the MOs in MO-related commands
The first argument in the MO-related commands is usually used to specify the MOs that should be used by the command.
There are currently six different ways to specify the MO(s):
1. all
All loaded MOs will be affected. Example:
a) get all userlabel to get attribute UserLabel on all MOs
Note: instead of all, it is also possible a regex wildcard such as . or *. This has the same effect.
2. Proxy ID(s)
All MO(s) with the given proxy id(s) will be operated upon.
To specify several MO proxies, there are two ways:
• Specify each Proxy ID with a space in between. Example:
a) pr 0 2 5 to print the MO proxies 0, 2 and 5.
• Give a range of Proxy IDs. Examples:
a) pr 4-10 prints MO proxies from 4 to 10.
b) pr 10-4 prints all MO proxies from 10 down to 4 (reverse order, useful for deleting MOs).
c) acc 10-20 restart calls the action restart on MOs with proxy 10 up to 20.
Note: proxy ranges and individual proxy Ids can be mixed on the same line.
Example: pr 0 2 3-5 8 10-12
3. Link handler (for PluginUnit and Spm MOs only!). Examples:
a) acc 001400 restart - to restart the MO Subrack=MS,Slot=14,PlugInUnit=1.
b) bl 001900/sp0.lnh - to lock the first SPM on the SPB in slot 19 with LDN:
Subrack=MS,Slot=19,PlugInUnit=1,Spu=1,Spm=1. Note that MOs start counting from 1 and the link handlers start
from 0!
4. MO Group
MO Groups are user defined groups of MOs. All MO(s) belonging to the given MO group will be operated upon.
To create a MO group, see command description for ma/lma in Section 4.1.7. MO groups can also be created with the
commands hget/lhget, lk/llk, st/lst, pdiff/lpdiff.
Note: In RNC, running the bo command will automatically create a number of MO groups containing the cc/dc/pdr device
MOs for each module.
5. Board Group
MOs (PlugInUnit or Spm) mapped onto the boards belonging to the given board group will be operated upon.
Example 1:
• baw sccp sccp All boards with the swallocation matching "sccp" will go into the board group "sccp"
• bl sccp All PlugInUnit or Spm MOs connected to boards of this board group will be locked
Example 2: in RNC, using the default board groups created after running the bo command:
• acc mod10 restart
• pr dc10
• acc dc10 restart the board group dc10 is mapped onto the Spm MOs
• bl dc10dev in this case we are using the MO group containing the Device MOs, see above
6. MO-Filter (regular expression)
MO(s) whose LDN/RDN match the regular expression pattern will be affected.
If the command starts with l then the pattern will match agains the LDN.
If the command doesn’t start with l, then the pattern will match against the RDN.
If the command doesn’t start with l, and the filter contains no commas, then the pattern will match against the RDN.

Informational
USER GUIDE

18(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

If the command doesn’t start with l, and the filter contains commas, then the pattern will match against the LDN but will not
include the children. (Note: this particular syntax is not supported in multimode).
Examples:
a) pr ms-24-1
TransportNetwork=1,AtmPort=MS-24-1
b) lpr ms-24-1
TransportNetwork=1,AtmPort=MS-24-1
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp1
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp1,VpcTp=1
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp1,VpcTp=1,VclTp=vc32
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp1,VpcTp=1,VclTp=vc33
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp1,VpcTp=1,VclTp=vc337
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp1,VpcTp=1,VclTp=vc332
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc34
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc35
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc40
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc64

c) pr ms,slot=5,plug
Equipment=1,Subrack=MS,PlugInUnit=1
d) lpr ms,slot=5,plug
Equipment=1,Subrack=MS,PlugInUnit=1
Equipment=1,Subrack=MS,PlugInUnit=1,Program=basic
Equipment=1,Subrack=MS,PlugInUnit=1,Program=nss
Equipment=1,Subrack=MS,PlugInUnit=1,Programs=spas
....
When using the MO-Filter, it is a good idea to test the pattern with pr/lpr command before issuing a get/set/acc/cr/del
command, in order to see which MOs will be matched by the pattern.
Sometimes, a second or third argument can be given, which is usually a string matching the attribute or attribute value that you
want to display.

3.3 Regular Expressions
Note: MOSHELL pattern matching is NOT case sensitive
The search string that is used in the filters is a Unix Regular Expression (like the patterns used in the grep -E command).
Therefore, special meta-characters such as . * [ ] ^ $ can be used.
Short description of some meta-characters:
• “.” - any single character
• “*” - 0 or more occurences of the previous character
• [ ] - matches a character or range of characters inside the brackets
• [^] - NOT matching a character or range of characters inside the brackets
• | - OR
• ^ - beginning of string
• $ - end of string
• ! - negation
• % - reverse order
Examples of using meta-characters:
• a* means a or aa or aaa, etc.
• .* is like a wildcard as it matches 0 or more occurences of any character
• [a-z] matches all letters from a to z
• [abe] matches letters a,b, and e

Informational
USER GUIDE

19(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

• [^3] matches any character but not 3
• 3|5|6 matches 3 or 5 or 6
• ^a.*4$ matches a string beginning with a and finishing with 4, with any character in the middle
Regular expressions can also be grouped together using brackets, e.g:
• cell(11|23|45) matches cell11 or cell23 or cell45
Examples of using regular expressions in the filters:
1. lpr ms-24-1.*vp2
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc34
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc35
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc40
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc64

2. lpr %ms-24-1.*vp2
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc64
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc40
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc35
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc34
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2

3. lpr !loadmodule|program
• All MOs except those matching loadmodule or program will be printed
4. lpr 20.*os
Equipment=1,Subrack=1,Slot=20,PlugInUnit=1,Etm4=1,Os155PhysPathTerm=1
Equipment=1,Subrack=1,Slot=20,PlugInUnit=1,Etm4=1,Os155PhysPathTerm=2

5. pr cc[1-4]
TransportNetwork=1,AtmCrossConnection=AtmCC1
TransportNetwork=1,AtmCrossConnection=AtmCC2
TransportNetwork=1,AtmCrossConnection=AtmCC3
TransportNetwork=1,AtmCrossConnection=AtmCC4

6. pr cc[135]
TransportNetwork=1,AtmCrossConnection=AtmCC1
TransportNetwork=1,AtmCrossConnection=AtmCC3
TransportNetwork=1,AtmCrossConnection=AtmCC5

7. lpr =6.*prog.*=1
Equipment=1,Subrack=1,Slot=6,PlugInUnit=1,Program=15
Equipment=1,Subrack=1,Slot=6,PlugInUnit=1,Program=1
Equipment=1,Subrack=1,Slot=6,PlugInUnit=1,Program=14
Equipment=1,Subrack=1,Slot=6,PlugInUnit=1,Program=13
Equipment=1,Subrack=1,Slot=6,PlugInUnit=1,Program=12
Equipment=1,Subrack=1,Slot=6,PlugInUnit=1,Program=11
Equipment=1,Subrack=1,Slot=6,PlugInUnit=1,Program=10
Equipment=1,Subrack=1,Slot=6,PlugInUnit=1,Program=19
Equipment=1,Subrack=1,Slot=6,PlugInUnit=1,Program=18
Equipment=1,Subrack=1,Slot=6,PlugInUnit=1,Program=17
Equipment=1,Subrack=1,Slot=6,PlugInUnit=1,Program=16

8. lpr =6.*prog.*=1$
Equipment=1,Subrack=1,Slot=6,PlugInUnit=1,Program=1

9. lpr ms-24-1
TransportNetwork=1,AtmPort=MS-24-1
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp1
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp1,VpcTp=1
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp1,VpcTp=1,VclTp=vc32
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp1,VpcTp=1,VclTp=vc33
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp1,VpcTp=1,VclTp=vc337
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp1,VpcTp=1,VclTp=vc332
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc34
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc35
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc40
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc64

10. lpr ms-24-1.*=vc[^3]

Informational
USER GUIDE

20(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc40
TransportNetwork=1,AtmPort=MS-24-1,VplTp=vp2,VpcTp=1,VclTp=vc64

3.4 How to specify attribute values in set/cr/acc commands
1. For attributes of type Struct, use the following syntax: attr1=val1,[,attr2=val2[,attr3=val3]]]...
Example:
set sid sib11 sib11repperiod=128
set mtp3bspitu sppriority prioslt=2
set mtp3bspitu sppriority prioslt=2,prioco=2
2. For attributes of type MoRef, just type the MO LDN (without ManagedElement=1). E.g.:
lset AtmPort=1221,VplTp=vp1 atmTrafficDescriptor
transportnetwork=1,atmtrafficdescriptor=C1P4500

It is also possible to skip the first parent (eg TransportNetwork, SwManagement, etc). E.g.:
cr rncfunction=1,utrancell=30451,utranrelation=30451to305212
Attribute 1 of 1, utrancellref (moRef:UtranCell): utrancell=30521

3. For attributes of type array of MoRefs, separate each element of the array with spaces. Eg:
set jvm admclasspath

loadmodule=oms loadmodule=vbjorb ...

acc aal2pathdistributionunit=1 addPath
Parameter 1 of 1, aal2PathVccTpId (sequence-moRef-Aal2PathVccTp):
aal2pathvcctp=csa aal2pathvcctp=csb

4. For attributes of type array of Struct, separate each element of the array with semicolons. Eg:
set rncfunction aliasPlmnIdentities
mcc=300,mnc=23,mnclength=2;mcc=345,mnc=32,mnclength=2;mcc=208,mnc=123,mnclength=3

5. For attributes of type array of integer/long/float/string/boolean, separate each element of the array with commas or spaces.
Eg:
set antfeedercable=6 ulattenuation 10,10,10,10,10,10,10,10,10
set antfeedercable=6 ulattenuation 10 10 10 10 10 10 10 10 10
set jvm options -Xms65000k,-Dhttp.root=/c/public_html,
-Dse.ericsson.security.PropertyFileLocation=/c/java/SecurityManagement.prp
set cell=3041 ActiveOverlaidCDMAChannelList true,true,false,true
set cell=3041 ActiveOverlaidCDMAChannelList true true false true
acc managedelementdata addDhcpServerAddress
Parameter 1 of 1, ipAddressArray (sequence-string): 10.1.1.3,10.1.1.4

6. For attributes of type array of integer, it is also possible to specify ranges of values.
Eg, in the command below, the attribute will be set to 1,2,3,4,5,23,24,25,26
set IpInterface=1,DscpGroup=1 dscpValues 1-5,23-26
7. To input an empty value:
• in set command, just leave the value field blank. Eg:
set 0 userlabel
set reliableprogramuniter admpassiveslot
• in cr command, type null or d. This is only supported for non-mandatory (restricted) attributes, because mandatory
attributes must be given a value.
• in acc command, type null. This is only supported for parameters of type MoRef or String.

3.5 Moshell command line
The command line uses the Readline library from bash. Here are some of the supported function keys:
• right arrow or Ctrl-f - move forward one character
• left arrow or Ctrl-b - move backward one character
• up arrow - previous command in history buffer

Informational
USER GUIDE

21(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

• down arrow - next command in history buffer
• backspace - delete one character backward
• Ctrl-d or  - delete one character forward
• Ctrl-a or  - go to beginning of line
• Ctrl-e or  - go to end of line
• Ctrl-u - erase all characters backward
• Ctrl-k - erase all characters forward
• Alt-f - move forward one word
• Alt-b - move backward one word
• select or select + ctrl- - copy to clipboard
•  or shift- - paste from clipboard
Note about command history: if you type the beginning of a command and then use the up/down arrow key, you will see all
previous commands starting with this string

3.6 Piping
Some commands support piping, e.g. All OSE shell commands, lh, tg, str, etc.
This is usually indicated in the menu and the help for that command. Some examples are:
te log read | grep ERROR
lh mp te log read | grep ERROR
str | grep cell=30456
For other commands that don’t support piping (like MO commands), the workaround is to save the output to a logfile then run the
unix command on that logfile by using the l or ! command. Example:
l+
#open the logfile, an arbitrary name will be given
prod loadmodule
#run the command
l#close the logfile
l sort $logfile
#run unix command sort on the logfile.
l grep -i basic $logfile

Note: $logfile is automatically set by MoShell to contain the name of the latest log file created.

4 Command descriptions
Here all the commands and their syntax which are possible using Moshell are supported. Each of the OSE shell commands are
not mentioned specifically, but it is possible to run all of them through Moshell.

4.1 Basic MO commands
4.1.1 mom[abcdfloprtuxsi] [] [] [] [] []
Print description of MO Classes, CM/FM Attributes, Actions, Enumerations and Structures.
Regular expressions can be used in the various filters. There are five levels of filtering, as shown in the command syntax.
Options:
• a : show only the definitions relating to application MOs
• b : shows the default attribute values.
• c : show all the MO classes specified in the filter as well as their children/grandchildren/etc classes.
• d : gives a shorter printout, without the description part.
• f : shows the attribute flags (only applies when combined with options "b", "r", "l")
• i : only show the EricssonOnly attributes

Informational
USER GUIDE

22(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

• l : shows the attribute value lengths.
• p : show only the definitions relating to platform MOs (CPP)
• r : shows the valid attribute value range.
• x : show unidirectional and bidirectional MO relationships
• t : show MO containment relationships and cardinality. The command momt shows three tables: first table with all valid
LDNs, second table with parent MO(s), and third with children MO(s). The first argument can be used to show only MO
classes matching the filter. The options o, u, l (momto/momtu/momtl) can be used to show only certain specific tables:
momtl for the LDN table, momto for the parent table (MOs over), and momtu for the children table (MOs under). The option
s is used to show the systemCreated flag in the LDN table and parent table (eg: momts / momtls).
Some of the options can be combined, see examples below.
After execution of the MOM command, two scripting variables are automatically created:
• $moclass_filer : contains a regular expression matching all MO classes that were printed by the command
• $attrib_filter : contains a regular expression matching all attributes that were printed by the command
These variables can then be used in the "get" command to read attributes matching certain MOM conditions based on the
attribute name, data type, flag, or description text. In kget command, it is possible to specify the MOM conditions directly from the
kget command arguments.
Examples:
1. momt - View the whole MO tree
2. momt atmp - View all possible parents and children of the AtmPort MO
3. mom atmp - View a description of the AtmPort MO
4. momcd atmp - List all MO classes under the AtmPort MO
5. momc atmp - View a description of all MO classes under the AtmPort MO
6. mom vcl - View a description of the MO class VclTp
7. mom vcl . - View a description of all attributes of MO class VclTp
8. momdi . . . !readonly - List all EricssonOnly attributes that are not readOnly
9. momd . restart - List all attributes and actions matching the word restart
10. momd . . struct - List all attributes of type struct and/or all actions containing struct parameters
11. momd . . . restricted - List all attributes that have the restricted flag
12. momd utrancell . . !restricted|readonly - List all utrancell attributes that do not have the restricted or readonly
flag
13. momd . . . . license - List all MOs, attributes and actions whose description contains the word license
14. mom . . . . license - View the description of all MOs, attributes and actions whose description contains the word
license
15. momd restart . - List all struct or enumerates matching the word restart
16. mom restart . - View the description of all struct or enumerates matching the word restart
17. momd . . enumref:admst - List all attributes of type enumRef:AdmState
18. mom adminproductda . - View a description of all struct members contained in struct AdminProductData
19. momd . . sequence:moref restricted - List all attributes of type sequence:moRef who have a flag restricted
20. momb utrancell - List the default values for all attributes in the MO class UtranCell
21. mombf utrancell . . !restricted - List the default values for all UtranCell attributes that do not have the flag
restricted
22. mombr . power|pwr - List the default values and valid ranges for all attributes that match the word power or pwr
23. momx - Show the relationships between MO classes
24. momx iublink - Show the relationships to and from IubLink
25. momx iublink.*utrancell|utrancell.*iublink - Show the relationships between IubLink and UtranCell
26. momx reservedby - Show the relationships connected via reservedBy attribute
27. mom . . ^moref, then get . $attrib_filter - Print attribute values for all attributes of data type moRef

Informational
USER GUIDE

23(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

4.1.2 lt/clt/ltc[1-9] |root|all [ AND/OR ]
Load MO tree (full or partial) and build proxy table.
lt stands for Load MO Types, clt stands for Conditional Load mo Types, ltc stands for Load MO Types and their Children. The
numeric option in ltc is for specifying the number of levels of children to load. Without the option, all levels of children are loaded.
This command queries the node to find out which MOs it contains and creates a table with the MO LDNs and a proxy number.
The first argument of the lt/clt/ltc command can be:
• root clear the proxy table and allocate a proxy for the root MO (ManagedElement)
• all clear the proxy table, then load the whole MO tree and build a proxy table with all MO instances.
• all! clear the proxy table, then build a proxy table with all MO’s except some MO classes.
•  get a proxy for all MO types matching the specified pattern.
Examples:
1. lt atmpor - load all MOs of type matching the string "atmpor", this will usually be the AtmPort MOs
2. clt atmpor - conditionally load all MOs of type matching the string "atmpor". Loading only performed if no MOs of this
type are already loaded.
3. ltc equipm - load the Equipment MO and all its children (all the way down)
4. ltc1 equipm - load the Equipment MO and only one level of children
5. ltc2 transp - load the Transport MO and two level of children
6. lt ^utrancell|fach|rach|pch - load all utrancells, fach, rach, pch MOs
7. lt iub - load all iublinks
8. lt all!relation - load all MOs except the utranrelation/gsmrelation MOs.
The pattern in motype-filter is a regular expression, more information can be found with command h syntax and h pr
The argument root/all clears the proxy table, whereas lt  doesn’t, so the MO LDNs get appended to the
existing table.
If the same MO type is loaded several times, only the latest fetched instance is kept. Previously fetched instances of that MO type
are deleted from the internal table.
The second argument (optional) is a filter constraint for the attribute value. Example:
1. lt utrancell operationalState==0 - load proxys for all disabled cells
2. lt utrancell primaryCpichPower==270 - load proxys for all cells that have pichpower=270
3. lt all operationalState==0 OR administrativeState==0 - load proxys for all MOs in the node that have
opstate 0 or admstate 0.
4. ltc rncfunction operationalState==0 - load proxys for all MOs under RncFunction that have opstate 0.
Note: This type of search is very hard for the node if it has to search through a large number of MOs (ie several thousand).
For more information about Filter constraint, refer to Reference [?].

4.1.3 lc/lcc[1-9] |||all
Load MO tree (full or partial) and build proxy table.
The lc command is for loading the LDNs of the children MOs lying under an MO or group of MOs. lc on its own or combined
with the numeric option "1" will only load the direct children. With the numeric options 2 to 9 it is possible to specify the number of
levels of children to be loaded. The "c" option (lcc command) is for loading all possible levels of children under the MO.
The parameters of the command are:
• all clear the proxy table, then load the whole MO tree and build a proxy table with all MO instances.
•  - load children of one or several MO’s given their proxy id. For example:
– lc 0 load the direct children of the ManagedElement MO (only one level of children)
– lc2 0 load two levels of children under ManagedElement MO
– lcc 0 load all levels of children of the ManagedElement MO (same as lc all or lt all).

Informational
USER GUIDE

24(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

– lc 5 6 7 load children of proxys 5, 6, and 7.
•  - loads children of all MOs whose RDN match the pattern. For example:
– lc3 transportnetwork=1 load three levels of children under TransportNetwork MO
– lc cell=3002 loads direct children for MOs whose RDN match cell=3002
– lcc ms-24-1 loads children of all MOs whose RDN match ms-24-1
The pattern in mo-filter is a regular expression, more information can be found with command h syntax and h pr.

4.1.4 ld[c] 
Load one MO instance and (optionally) the MO tree below it
ld stands for Load LDN. This command loads a proxy for an MO, given its LDN. The LDN doesn’t need to contain
ManagedElement=1, this is assumed.
The MO types are not case sensitive but the MO-ID is.
With the c option, the subtree below the MO is also loaded.
Examples:
• ld transportnetwork=1,atmport=MS-6-1,vpltp=vp1,vpctp=1,vcltp=36 - load the MO instance that has this
LDN
• ldc equipment=1 - load the MO with LDN "Equipment=1" as well as the MO tree below it.

4.1.5 lu/llu ||
Unload MOs from MO tree.
The purpose is to reduce the size of the proxy table by unloading unwanted MOs. This is useful on large nodes with > 50,000
MOs. Memory usage on the workstation will be reduced and MO commands will be faster. The typical case is to unload all
relation MOs in the RNC (UtranRelation and GsmRelation) which are very numerous but not used in most commands.
Example:
• lt all
• lu relation

4.1.6 pr[s][m]/lpr[s][m] [||] []
Print MO LDNs and proxy ids for all or part of the MO tree currently loaded in moshell.
Options:
• s (silent) : to print only the total number of MOs matched in each MO class.
• m (mim) : to print the mimName of each MO instance. Only applicable for COM/ECIM nodes.
Examples:
• pr

- print all MOs

• pr 0-1000

- prints the MOs with proxy id 0 to 1000

• lpr subrack=ms - print all MOs whose LDN match subrack=ms. This will print the MO Subrack=MS as well as all its
children.
• pr !utranrel

- print all MOs except those with an RDN matching utranrel

For further information see Section 3 or h syntax.
Note: The pr command is useful to test patterns used in mo-filters. For instance, some patterns will match more MOs than
expected, which will result in executing a command on some unwanted MO’s. Therefore, it is good to first try the pattern on the
pr/lpr command, then do it "for real" on a command that actually communicates with the node. The pr/lpr command also
shows the total number of MOs matching the pattern.

Informational
USER GUIDE

25(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

4.1.7 ma[i]/lma[i]  |||all [] []
Add MO(s) to an MO group.
The first argument (mandatory) indicates the name of the MO-Group.
The second argument (mandatory) indicates the Proxy Id’s or MO-Filter of the MOs to match.
If no further arguments are given then the MOs whose RDN/LDN match the MO-filter (or who have the corresponding proxy) will
be put in the MO-Group.
If further arguments are given then a get or pget command is performed using the second/third(/fourth) argument of the ma/lma
command.
If option "i" was given (mai/lmai) then the command "geti" is used instead of "get".
The third argument will be a string to match the attribute and the fourth (if it’s used) will match the value.
If the attribute is of any other type than MoRef, then the MO(s) whose attribute match the fourth argument will be put in the group.
If the attribute is of type MoRef, then the MO(s) contained in the attribute is put in the group (except if there is a fourth argument).
Refer to the following examples:
• ma test atmport.*24-1 - all MOs whose RDN match atmport.*24-1 are put in the group test
• lma test atmport.*24-1 - all MOs whose LDN match atmport.*24-1 are put in the group test
• ma test atmport operationalst 0 - all MOs whose RDN match atmport and who have operationalState matching
"0" will be put in the group test
• ma test atmport physpathterm - all MOs who are referenced through the attribute physpathermId of the MOs
matching atmport will be put in the group test (since physpathermId is an attribute of type MoRef)
• lma test subrack=ms,slot=10,program loadmodule - all loadmodule MOs connected to program MOs running
on slot 10 in main subrack will be put in the group test (since loadmodule is an attribute of type MoRef)
• ma test atmport physpatherm slot=23 - all atmports whose physpatherm reference matches slot=23 will be put in
the group test
• ma test reliableprogram admactiveslot slot=10 - all reliableprograms that are on slot 10 will be put in the
group test
• ma test vcltp pmrec 0 - all vcltps with 0 pmreceivedcells are put in the group
• ma test 34,58,42 - include MO instances with proxy id 34, 42, and 58 in the group
• mai test sectorcarrier= noOfUsedTxAntennas ^1$ - include all sectorcarriers that have exactly one antenna
Two-step example: To put all unlocked-disabled MOs in a group in order to lock them:
ma test all operational 0
ma test1 test administ 1
bl test1
To put all cells belonging to module 3 in a group in order to lock them
ma iubmod3 iublink module =3$
ma cellmod3 iubmod3 reservedby
bl cellmod3
To put all vcltps that have 0 receivedcells and more than 0 transmitted cells in a group in order to find out which upper layers are
affected
ma faultyvcltp vcltp pmrec ^0
mr faultyvcltp vcltp pmtrans ^[^0]
lk faultyvcltp
Note: it is also possible to create MO groups with the commands hget/lhget, st/lst, lk/llk, and pdiff/lpdiff.

4.1.8 mr[i]/lmr[i]  |||all [] []
Remove an MO group or remove MOs from an MO group (MOs will NOT be deleted, only the group).
Exactly the same syntax as ma described in Section 4.1.7 except that the MOs matching will be removed from the MO-Group
instead of added.

Informational
USER GUIDE

26(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

4.1.9 mp
Print all defined MO groups. See ma command in Section 4.1.7 for more info about MO groups.
Note: To print the contents of a group, use the pr  command.

4.1.10 get[m][i]/lget[m][i] [|||all] [|all] []
Read CM/FM attribute(s) from MO(s).
Options:
• m: for reading the attributes via MibManager instead of Corba. Only applicable on CPP nodes with C15.1 or higher.
• i: to print internalmom attributes. Only applicable to MSRBSv2 (DUS Gen2). Please make sure to activate the feature
"Hidden Parameter Access" (CXC4012188/FAJ1214785) on the node for faster printout.
Note: to read PM attributes, use pget/lpget (see Section 4.4.3).
Examples:
1. Get all attributes from all MOs except those whose RDN matches utranrel or iub
• get !(utranrel|iub)
2. Get all attributes from MOs whose proxies range from 10 to 30
• get 10-30
3. From all MOs, get productdata containing the string 0843 (can be useful to find out which MO’s are related to a certain
loadmodule)
• get all product 0843
4. From all Utrancells, get sintersearch attribute different from 10
• get utrancel sinter !10
5. Get traffic descriptors for all VclTp(s)
• get vc trafficdes
6. Get VcpTp(s) used by all cross-connections
• get cross vc
7. Get piutype for all MO’s under "Equipment"
• lget equip piutype
8. get attenuation values for all cables (in RBS)
• get cable atten
9. get all attributes in nodesynch MO, belonging to site 1164 (in RNC)
• lget 1164,nodesy
10. get all attributes in MO’s under "RadioNetwork" matching pwr or power or sir
• lget radion p.*w.*r|sir
11. view which cells are connected to which iub’s (in RNC)
• get cell iub
12. get all attributes from nodebfunction MO, except those matching "overload"
• get nodebfunc !overload
13. get the attribute loadCtrlPrioOfMta via the internalmomread/testmomdump command
• geti . loadCtrlPrioOfMta
Important information:
1. when doing a get  or get  all, one CORBA request is sent for each MO, asking for all attributes of
that MO.
2. when doing a get  , a CORBA request is sent for up to 100 MOs at a time, asking for the
specified attributes of those MOs.

Informational
USER GUIDE

27(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

The implications of this is that it is faster but:
1. if one or more attributes cannot be read due to some exception (eg: fRO not accessible), then all attributes will return the
same exception, even if they can be read.
2. if one or more MOs contain one or more attributes that cannot be read, then all MOs within that CORBA request will return
the same exception even if they can be read.
The workaround for the first problem is to find out which attribute is causing the problem. The command sget/lsget can be
used for this. The sget command reads each attribute one by one. The attribute(s) that is/are causing the exception(s) will then
be easy to spot.
It is then possible to use the standard "get" command with with the negative filter (!) to exclude the "faulty" attribute.
• get nodebfunction !overload - all attributes of the nodebfunction MO except those matching "overload" will be read.
• pget utrancell !pmnoofrrc - all pm attributes of the utrancell MO except those matching "pmnoofrrc" will be read.
The workaround for the second problem is to lower the speed of reading so that only one MO instead of 100 is read per CORBA
request.
This is done using the speed command.
Example: st all - one MO is returning an exception which means that up to 100 MOs cannot be read. Instead do:
speed 1
st all
speed 100
The command will be slower but the exception will only affect the MO(s) that have it and not the "healthy" ones.
The speed command affects get,pget,kget,prod, and st commands.
By default, speed is set to 100, which means that up to 100 MOs share the same CORBA request.
By running the command speed 1, the exception will not affect the other MOs. However the speed will be slower. It is possible
to use a value from 1 to 200 to define the speed. It is recommended to not use a speed higher than 100 since this takes more
memory from the node.
Type speed on its own to see the current speed.
Scripting and variable assignment with get
It is possible to store the output into a variable
Example:
1. Store one value into a variable
• get utrancell pich > $pich
2. Store many values into an array
•

for $mo in utrancellgroup
$mordn = rdn($mo)
get $mo pich > $pichTable[$mordn]
done

Refer to the Section 6 (Scripting Chapter) for more information.

4.1.11 hget[c][m][i]/lhget[c][m][i] || [] [] []
[] etc...
Read CM/FM attribute(s) from MO(s), print horizontally one line per MO (instead of one line per attribute).
Options:
• c: display the output in CSV format for easier export to excel (for instance).
• m: print all MOs in a single table instead of separate tables per MO class
• i: to print internalmom attributes, similar as "geti" but horizontally. Only applicable to MSRBSv2 (DUS Gen2). Please make
sure to activate the feature "Hidden Parameter Access" (CXC4012188/FAJ1214785) on the node for faster printout.
Example:
• hget reliableprogramuniter slot|operational print the RPU attributes admActiveSlot, admPassiveSlot and
operationalMode

Informational
USER GUIDE

28(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

• hget reliableprogramuniter slot|operational slot=10 . ^2 print all RPUs that are defined on slot10
(active), any slot for passive, and 2 for the operationalmode
• hget reliableprogramuniter slot|operational !slot=10 . !^1 print all RPUs that are not defined on slot10
(active), any slot for passive, and operationalmode is not equal to 1
• hget loadmodule type|productdata print the attributes loaderType and productData on all LoadModule MOs. Note
that productData is a struct containing 5 members so the productData attribute will take up 5 columns
• hget loadmodule type|productdata@name only print the attribute loaderType and the structmember
productData:productName passive, and operationalmode is not equal to 1
• hgetm port state print all attributes matching the word "state" on all MOs matching the word "port" and display all lines
in one single table instead of a separate table per MO class.
For "slow" hget, use "shget/lshget": reads only one attribute at a time.

4.1.12 kget[m]/lkget[m] [||] [] [] []
[]
Display CM/FM attributes in exportable printout format.
Same as get/lget, but with a different output format to allow import of the dump into external tools like MCOM, CCT, ETRAN.
The m option is for reading the attributes via MibManager instead of Corba. Only applicable on CPP nodes with C15.1 or higher.
To collect a MO dump via MibManager, set the uservariable mibmgr_threshold with uv command. Refer to info in the file
moshell/moshell.
For "slow" kget, use "skget/lskget": reads one attribute at a time.
The 2nd to 5th arguments have the same meaning as the arguments used in the "mom" command.
Examples:
• kget

: print all MO attributes

• kget !relation= : print all attributes except from MOs with RDN matching "relation="
• kget . . moref : print all attributes of data type matching "moref"
• kget . . . ericsson : print all attributes with flag matching "ericsson"
• kget . . . . dbm : print all attributes with description matching "dbm"

4.1.13 fro/lfro[m] |||all [|all] []
Read MO persistent data from node database via SQL.
The fro/lfro command reads only the froId connecting the MAO and FRO parts of the MO.
The from/lfrom command reads all MAO/FRO data of the MO.
The command syntax and printout format is identical to that of the get/lget command.
Examples:
• from upgradepackage=cxp9012014_r5a - print MAO/FRO persistent data for MO
UpgradePackage=CXP9012014_R5A
• from 0

- print MAO/FRO persistent data for the ManagedElement MO

• fro plugin

- print froId for all pluginunit MOs

• fro plugin . 5

- print the PlugInUnit MOs who have a froid matching the value 5

• fro plugin .

^5$

- print the PlugInUnit MOs who have a froid equal to 5

• lfro ms,slot=10,plugin sairesource
variable $sai

> $sai

- save the sairesourceid of a particular pluginunit into a

Note: If the SQL client LM (CXC1325608) is not started, the fro[m] command starts it automatically using the "sql+" command.
After the session, the SQL client should be turned off using the "sql-" command. Type "h sql+" for more info.

Informational
USER GUIDE

29(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

4.1.14 sql/select  [ | ]
To run a SQL command while in db.dat mode. The db.dat, cv.zip, or dbdump.zip is loaded with moshell option "-d".
Examples:
• select * from tables | grep pgm
• select * from tables where name like ’%iur%’
• select * from cspgmresource_01 where pno=’CXC 132 0784’

4.1.15 st/lst |||all []
Print state of MOs (operationalState and administrativeState when applicable).
It is similar to writing get/lget  state, the only difference is that it presents the two states side-by-side in a more visible
way.
The state filter matches towards both the Operational state and the Administrative state.
Examples:
• st - view state of all MOs
• st all dis - view all disabled MOs
• lst equip dis - view all disabled MOs under "Equipment"
• st all 1.*0 view all MOs which are unlocked and disabled
• st all ^0 - view all MOs which are locked:
• lst sector - view state of all MOs under "Sector" (in RBS)
• lst cell - view state of all channels in all 3 cells in the RBS
• lst cell=120 - view state of all channels in cells starting with 120 (in RNC)

4.1.16 prod | []
Print the attribute productData on applicable MO(s).
It is similar to typing "hget  productdata". This command prints product data of all MO(s). It is similar to typing
get all productdata, except that the productData appears in one row. It is possible to filter only MOs matching a certain
product identity. Examples:
• prod loadmodule cxc1320784 - print all MOs matching "loadmodule" and where the value of productData attribute
matches "cxc1320784"
MO classes that have a productdata attribute can be found via mom command:
mom all all struct:.*productdata
Typically, this includes Slot, Subrack, PiuType and LoadModule.

4.1.17 lk/llk ||
View all MO(s) linked to an MO, and their states (adminstrativeState and operationalState).
Examples:
• lk mtp3bsrs=

- View all core network interface stacks

• lk ranap=cs

- View all MO’s linked to Ranap=cs

• lk iublink=iub-12 - View all MO’s linked to iub 12
• lk atmport=ms-24-1 - View all MO’s linked to atmport MS-24-1 (and its VclTp’s)
• lk eutrancellfdd=1a - View all MO’s linked to EUtranCellFDD=1A

Informational
USER GUIDE

30(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

4.1.18 lko/llko ||
The old lk. Obsolete command, use lk/llk instead.
Output format of e.g. lko ranap=cs:
===================================================================================
MOs linked to 1316 RncFunction=1,Ranap=cs (-,E)
===================================================================================
localSccpApRef
Ranap=cs
---> (-,E) SccpSp=1,SccpScrc=1,SccpAp=1
sccpGlobalTitleRef Ranap=cs
---> (-,-) SccpSp=1,SccpScrc=1,SccpGlobalTitle=1
remoteSccpApRef
Ranap=cs
---> (-,E) SccpSp=1,SccpScrc=1,SccpAp=2
reservedBy
SccpSp=1,SccpScrc=1,SccpAp=1
---> (-,-) SccpSp=1,SccpScrc=1,SccpEntitySet=1
mtp3bApId
SccpSp=1,SccpScrc=1,SccpAp=2
---> (-,E) Mtp3bSp=1,Mtp3bAp=1
reservedBy
SccpSp=1,SccpScrc=1,SccpAp=2
---> (-,-) SccpSp=1,SccpScrc=1,SccpEntitySet=2
routeSetId
Mtp3bSp=1,Mtp3bAp=1
---> (-,E) Mtp3bSp=1,Mtp3bSrs=1
reservedBy
SccpSp=1,SccpScrc=1,SccpEntitySet=2
---> (-,-) SccpSp=1,SccpScrc=1,SccpGlobalTitle=2
slsReservedBy
Mtp3bSp=1,Mtp3bSrs=1
---> (-,E) Mtp3bSp=1,Mtp3bSls=1
reservedBy
Mtp3bSp=1,Mtp3bSls=1
---> (-,E) Mtp3bSp=1,Mtp3bSrs=1,Mtp3bSr=1
nniSaalTpId
Mtp3bSp=1,Mtp3bSls=1,Mtp3bSl=2
---> (-,E) NniSaalTp=csb
nniSaalProfileId
NniSaalTp=csb
---> (-,-) NniSaalProfile=1
aal5TpVccTpId
NniSaalTp=csb
---> (-,E) Aal5TpVccTp=csb
processorId
Aal5TpVccTp=csb
---> (U,E) Subrack=MS,Slot=9,PlugInUnit=1
vclTpId
Aal5TpVccTp=csb
---> (-,E) AtmPort=MS-7-1,VplTp=vp12,VpcTp=1,VclTp=vc34
atmTrafficDescriptrId AtmPort=MS-7-1,VplTp=vp12,VpcTp=1,VclTp=vc34---> (-,-) AtmTrafficDescriptor=U3P4500M3000
nniSaalTpId
Mtp3bSp=1,Mtp3bSls=1,Mtp3bSl=1
---> (-,E) NniSaalTp=csa
nniSaalProfileId
NniSaalTp=csa
---> (-,-) NniSaalProfile=1
aal5TpVccTpId
NniSaalTp=csa
---> (-,E) Aal5TpVccTp=csa
processorId
Aal5TpVccTp=csa
---> (U,E) Subrack=MS,Slot=8,PlugInUnit=1
vclTpId
Aal5TpVccTp=csa
---> (-,E) AtmPort=MS-6-1,VplTp=vp11,VpcTp=1,VclTp=vc34
atmTrafficDescriptrId AtmPort=MS-6-1,VplTp=vp11,VpcTp=1,VclTp=vc34---> (-,-) AtmTrafficDescriptor=U3P4500M3000
===================================================================================

In the middle column is the originating MO. In the far right column is the referenced MO. In the left column is the attribute
containing the referenced MO. The letters in brackets show the administrativeState and operationalState of the referenced MO:
• U = Unlocked
• L = Locked
• E = Enabled
• D = Disabled
• - = Not Applicable

4.1.19 set[m][c][1][i]/lset[m][c][1][i] ||  []
Set an attribute value on one or several MO’s.
Only attributes that do not have the flag readOnly or restricted can be set. Use the mom command to check the flags of an
attribute. For restricted attributes, it is possible to use the rset command.
Options:
• m : for setting several attributes simultaneously in the same MO, using a single transaction for all attributes in each MO.
Needed for changing certain attributes in the RNC UtranCell (locationAreaRef, uarfcnDl, uarfcnUl).
• 1 : for setting one attribute on many MOs simultaneously, using a single transaction for all the MOs. Needed for changing
certain attributes in the eNB EUtranCell (tac, frameStartOffset, subframeAssignment, specialSubframePattern).
• c : for setting an attribute to its current value. When using this option, the attribute value shall not be specified since the
existing attribute value is used.
• i : to set an attribute via "internalmomwrite" command. Only applicable to RCS nodes (MSRBSv2/TCU).
Note: These options cannot be combined.
Examples:
• set cell primarycpichpower 250 - set primarycpichpower to 250 on all cells (in RNC)
• lset uerc= sirmin 60 - set sirmin to 60 on all MO’s under uerc (in RNC)
• lset ms,slot=1,pluginunit=1$ userlabel - set an empty value for the userLabel of this PluginUnit
• set mtp3bspitu sppriority prioslt=2 - set an attribute of type struct
•

setc iublink= preferredsubrackref - set the preferredsubrackref attribute to its current value on all Iublinks, in
order to evenly spread the sites across all modules.

• - setting three attributes simultaneously on a MO (split on several lines for readability)
setm utrancell=3012 locationarearef locationarea=9
servicearearef locationarea=9,servicearea=1
routingarearef locationarea=9,routingarea=1

• set1 ^eutrancellfdd= tac 1280 - set the tac attribute simultaneously on all EUtranCellFDD in the eNB.

Informational
USER GUIDE

31(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

• seti . loadCtrlPrioOfMta false - set the attribute loadCtrlPrioOfMta via internalmomwrite command
Please see Section 3 and specifically Section 3.4 for more information on how to set values for each specific attribute type (e.g.
Struct, array of MoRef, array of Struct, etc).

4.1.20 eset[c][1]/leset[c][1] ||  []
Set one or several attributes on one or several MO’s, using regexp matching on the attribute name.
Same as set command except that the second argument uses regular expression matching on the attribute name so all
attributes whose name match the filter will be affected by the operation. Refer to the help of the set command for more
information about syntax and command options c and 1.
Examples:
• Activate all features in the RBS/ERBS. The attribute is called featureStatexxxx , where xxx is the name of the feature. All
MOs that have an attribute matching the word "featurestate" will have that attribute set to 1
>> eset . featurestate 1
• Change the ENodeBFunction::eNodeBPlmnId on ERBS. The EUtranCellFDD::bPlmnList must be changed at the same
time in one transaction.
>> eset1 ^enodebf|^eutrancellfdd plmn mcc=240,mnc=99,mnclength=2

4.1.21 rset/lrset ||  []
Set attribute value on a restricted attribute or change the MOid of an MO.
A restricted attribute is an attribute that can only be set when the MO is created.
The rset command works by doing rdel/lrdel on the MO and recreating all previously deleted MOs using the new attribute
value.
To change the MOid of an MO, the attribute name should be made up of the MOclass followed by "id", eg: atmportid, pluginunitid,
etc.
Example 1, change a restricted attribute:
rset unisaaltp=.*1004 unisaalprofileid unisaalprofile=win30a
Example 2, change the MOid:
rset utrancell=cell123

utrancellid

cell456

4.1.22 bl[s]/lbl[s] ||
Lock or soft-lock MO(s).
Works by setting the administrativestate to 0 (hard-lock) or 2 (soft-lock).
The s option is for soft-lock. The administrativestate is set to 2 ("shutting down") which means that the resource will have a grace
period to handover traffic to other resources, before it gets locked. The administrativestate will automatically go over to 0 after the
grace period, which can be between a few seconds to a couple of minutes, depending on the MO type.
The administrativeState will automatically go over to 0 after the grace period of around 30 seconds.
Without the s option, the resource is locked immediately.
To unlock an MO, use the command deb/ldeb.
Examples:
1. bl aal2.*ca[246] - block aal2paths ca2, ca4, ca6
2. lbl subrack=ms,slot=19 - block all MO(s) under subrack=ms,slot=19
3. bl 234 256 248 - block proxys 234, 256, and 248
4. bl 001500 - block a board. Same as lbl subrack=ms,slot=15,pluginunit=1$.
5. bls 001500 - soft-block a board.

Informational
USER GUIDE

32(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

Note: there is also an OSE command called bl. If the OSE command needs to be run instead of the moshell command, just type
a "\" (backslash) in front. E.g.: \bl

4.1.23 deb/ldeb ||
Unlock MO(s).
Works by setting the administrativestate to 1.
To lock an MO, use the command bl/lbl.
1. ldeb subrack=ms,slot=19 - deblock all MO(s) under subrack=ms,slot=19
2. deb 001900 - deblock a board. Same as ldeb subrack=ms,slot=19,pluginunit=1$)

4.1.24 acl/lacl |||all []
Lists available MO actions.
Examples:
1. acl all restart - View all restart actions
2. acl all [^(restart)(eteloopback)] - View all actions except restart and eteloopback
3. acl sync - View all actions related to the synchronisation MO. Output:
-----------------------------------------------------------------------------Proxy MO
Action
Nr of Params
-----------------------------------------------------------------------------396
Synchronization=1
changeSyncRefPriority
2
396
Synchronization=1
removeSyncRefResource
1
396
Synchronization=1
resetLossOfTracking
1
396
Synchronization=1
addSyncRefResource
2

4. acl all listrou - Find the MO with action matching regular expression listrou:
------------------------------------------------------------------------------------------------Proxy MO
Action
Nr of Params
------------------------------------------------------------------------------------------------471
Ip=1,IpRoutingTable=1
listRoutes
0

4.1.25 acc[e][n]/lacc[e][n] |||all 
Execute an MO action.
If the action requires parameters, these will be prompted for. If no value is entered at a prompt, the action is aborted. In order to
be avoid being prompted for the parameters, use option "n" (accn/laccn), then the parameters can be given on the same line as
the command.
Options:
• n : action parameters will not be prompted for and shall be input on the command line. Eg:
accn 0 manualrestart 0 0 0
• e : for action parameters of type struct, there will be a separate prompt for each individual struct member.
Examples:
1. Restart a board:
• acc 001400 restart - Same as:
lacc subrack=ms,slot=14,pluginunit=1$ restart
• acc 001900/sp0.lnh restart - Same as:
lacc subrack=ms,slot=19,.*,spm=1$ restart
2. Restart the node:
• acc 0 manualrestart
3. List the IP routing table:
• acc ip listroutes
4. Perform End-To-End loopback on VclTp MOs:
• lacc atmport=ms-24-1 eteloopback

Informational
USER GUIDE

33(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

5. Perform PhaseMeasurement on NodeSynchTp MOs:
• acc nodes performPhaseMeasurement
6. Add a new synchronization reference:
• acc sync addSyncRefResource
Note 1: To specify an attribute of type Struct, use the following syntax:
• attr1=val1,attr2=val2,attr3=val3...
This is the same syntax as used in set and cr commands, and is not case sensitive. Example (in the case of routingTableEntry
in action deleteStaticRoute) (note: line split for readability):
destinationIpAddr=10.1.10.0,destinationNetworkMask=255.255.255.0,
nextHopIpAddr=10.128.15.1,routeMetric=3

Alternatively, the option e can be used, in which case each struct member is prompted on a separate line (command:
acce/lacce).
Note2: Action manualRestart on ManagedElement MO
• This action can be restricted with the uservariable restart_confirmation. See description in the file moshell/moshell.
• Node restarts usually result in decrementing of the attribute ConfigurationVersion::rollbackCounter which leads to node
rollback upon reaching zero. However the action manualRestart on ManagedElement is a special case which does not lead
to decrement of the rollbackCounter, when executed from moshell/AMOS.

4.1.26 cr[e][n] 
Create an MO.
When run without option, the command will prompt the user to enter the values for all mandatory and restricted attributes. The
order in which the attributes are prompted is the same order in which they are listed inside the XML MOM file. Restricted
attributes are optional, type d to select default value. To abort, type  at the prompt.
Options:
• e : to receive a separate prompt for each individual struct member, useful when inputting attribute values of type struct
• n : allow the user to enter any attribute name and value. Each attribute name and value shall be entered on a separate line
with space between the attribute name and value. Any attribute can be specified, does not have to be a mandatory or
restricted attribute. Type "end" once all attributes have been entered.
Examples:
cr swmanagement=1,upgradepackage=FAB102572%2_R14D.xml
cr rncfunction=1,iublink=2456
cre swmanagement=1,loadmodule=CXC123456_R9A
crn rncfunction=1,iublink=90
Notes:
To specify an empty attribute value, type null or d.
To specify an attribute of type Struct, use the following syntax:
attr1=val1,attr2=val2,attr3=val3...
This is the same syntax as used in set command, and is not case sensitive. Example, in the case of productdata in loadmodule
(note: line split for readability!):
productnumber=CXC1322155/2,productrevision=R3C08,productname=test,
productinfo=test,productiondate=20010229

Alternatively, the option e can be used, in that case, each struct member is prompted on a separate line (command: cre).
An moshell script for MO creation can be automatically generated by using the simulated undo mode: u+s , del  , u- ,
then edit the undocommandfile with the required values. By default the undo script will contain crn commands. To use cr
commands instead of crn, do uv use_crn=0.
By default, the mandatory/restricted attributes that are marked as deprecated are not prompted by the cr command. This
behaviour can be changed by setting the uservariable exclude_deprecated to 0.

Informational
USER GUIDE

34(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

As in the ld command, the LDN doesn’t need to contain ManagedElement=1.
The mo-types are not case sensitive but the mo-id is.

4.1.27 del[b]/ldel[b] ||
Delete MO(s).
An MO can only be deleted when its reservedBy list is empty and when it does not have any children. If the MO does have
children and/or a non-empty reservedBy attribute, it is possible to use the rdel/lrdel command instead.
The command first prints the MO(s) to be deleted, then asks for confirmation. Once the MO(s) are deleted, they are also
removed from the proxy list.
To delete all MOs that have just been created by a script, just check the range of proxies that were created and delete them in the
reverse order. This can be done easily by using the reverse proxy order.
Example: proxies 22 to 46 were created by a CREATE script (in run or trun). To undo it:
del 46-22
To delete an MO and all its children, just use the % sign in front of the ldn/rdn filter. Example:
ldel %ms,slot=20,plug will delete the programs first then the piu
To delete an MO group in the reverse order of the proxies, put the % sign in front of the MO group name. Example:
del %mymogroup - will delete all MOs of the MO group "mymogroup" in the reverse order of their proxies
Note:
The following MOs can only be deleted while in state LOCKED: PlugInUnit, EUtranCell, TermPointToENB, GpsReceiver,
IpAccessHostEt, IpAccessHostGpb, IpAccessHostSpb, IpSyncRef .
By default, the "del" command will automatically perform the locking prior to deleting, unless the "b" option has been used (delb).

4.1.28 rdel/lrdel ||
Delete MO(s) together with children and reserving MOs.
For MO classes shown in the list below, the command finds out all the related MOs, then presents the list of MOs to be deleted
and asks the user for confirmation. For all other MO classes, the command acts in the same way as a regular "del" operation, ie,
just tries to delete the MO itself.
List of MO classes for which rdel acts recursively:
• Aal0TpVcctp
• Aal1TpVcctp
• Aal2Ap
• Aal2PathDistributionUnit
• Aal2PathVcctp
• Aal2RoutingCase
• Aal5TpVccTp
• AntennaNearUnit
• AtmCrossConnection
• AtmPort
• Cdma2000Cell
• Ds0Bundle
• EUtranCellFDD
• EUtranCellTDD
• EutranFrequency
• ExternalCdma2000Cell
• ExternalCdma20001xRttCell

Informational
USER GUIDE

35(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

EAB Finn Magnusson

Checked

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

• ExternalENodeBFunction
• ExternalEUtranCellFDD
• ExternalEUtranCellTDD
• ExternalGeranCell
• ExternalGsmCell
• ExternalUtranCell
• ExternalUtranCellFDD
• ExternalUtranCellTDD
• ImaGroup
• IpEthPacketDataRouter
• IuLink
• Iub
• IubLink
• IurLink
• M3uAssociation
• Mtp2TpItu/Ansi/Ttc/China
• Mtp3bSlItu/Ansi/Ttc/China
• Mtp3bSls
• Mtp3bSrs
• NbapCommon
• NbapDedicated
• NniSaalTp
• NodeSynchTp
• PacketDataRouter
• Ranap
• Rnsap
• SectorEquipmentFunction
• UniSaalTp
• UtranCell
• VclTp
• Vmgw
• VpcTp
• VplTp

4.1.29 gm[c][d]/lgm[c][d] ||
Generate MO Creation/Deletion script.
Options:
• c : Generate MO Creation script.
• d : Generate MO Deletion script.
The output of the command is a command file containing the creation/deletion commands.
By default the create statements will use the crn command but it is possible to use the cr command by setting uv use_crn=0
It is possible to convert the command file to trun format with the u! command.
Examples:

Informational
USER GUIDE

36(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

• lgmc equipment=1 : Generate a MO script to create all the MOs under Equipment=1 . Parent and referenced MOs will
be created before children and reserving MOs.
• gmd subrack=1,slot=2,pluginunit=1 : Generate a MO script to delete the MO Subrack=1,Slot=2,PlugInUnit=1 .
Children and reserving MOs will be deleted before parent and reserved MOs.

4.1.30 sc[g][w][d] []
Read/Write/Reset SystemConstants.
Options:
• g ("get") : read system constants
• w ("write") : set system constants
• d ("default"): reset system constants
Syntax:
• scg [const [ > $var]]

: read one or all constants

• scw const1:val1,const2:val2,... : write one or more constants
• scd const1,const2,...

: reset one or more constants to default

• scd all

: reset all constants to default

Syntax examples:
• scg : read all system constants
• scg 915 : read the value of system constant "915"
• scg 915 > $var : read the value of system constant "915" and store to a variable
• scd 915 : reset system constant 915 to its default value
• scd 915,2102,2085 : reset system constant 915, 2102, 2085 to their default value
• scd all: reset all system constants to their default value
• scw 915:14 : set system constant 915 to the value 14
• scw 915:14,2102:1,2085:1 : set system constants 915 to 14, 2102 to 1, 2085 to 1

4.1.31 safe+/safe-/safe?
Purpose: Apply strict MO matching rules on MO WRITE commands
• safe+ : apply safe MO syntax, no proxy id or no regular expression matching for MO WRITE commands, exact MO
name(s) must be given (case insensitive is allowed)
• safe- : allow proxy id and regular expression matching (this is the default setting)
• safe? : check the current setting
List of MO WRITE commands: bl, bls, deb, del, rdel, fdel, set, eset, rset, fset, acc, facc
Examples:
• bl utrancell=11 - will lock cell=11 only (cell=111, or cell=11a , etc. would not be affected)
• bl utrancell=11|utrancell=12|utrancell=13 - will lock cell=11, cell=12, cell=13
• bl utrancell=11|12|13 - same as above
• bl utrancell=11|12|13|iublink=1 - will lock cell=11/12/13 and iublink=1
• bl pluginunit=1 - nothing will happen as there are several MO instances with this name
• bl subrack=ms,slot=28,pluginunit=1 - will lock this MO as the name given is unique
The setting is off by default but can be saved to "on" by adding the line safe_syntax=1 in the file moshell/jarxml/moshellrc or
the file /.moshellrc

Informational
USER GUIDE

37(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

EAB Finn Magnusson

Checked

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

4.1.32 s+/s++/s-/s?
Purpose: Sort MO list in alphabetical order instead of proxy order.
• s+

: activate alphabetical sorting of the MO list by order of LDN (sort_proxy=1)

• s++ : activate alphabetical sorting of the MO list by order of MO class (sort_proxy=2)
• s-

: go back to default behaviour where the MO list is sorted by proxy number (sort_proxy=0)

• s?

: check if alphabetical sorting is active or not

Once the s+/s++ command has been entered, the alphabetical sorting takes effect on all subsequent MO commands such as, pr,
get, set, st, etc.
Type s- to revert to the default behaviour of sorting by proxy number.
To change the default behaviour, it is possible to use the uservariable sort_proxy, eg, adding the line sort_proxy=1 in the
file ~/.moshellrc
Example:
Default behaviour: MOs are displayed in the order of the proxy numbering. The order of the proxy numbering depends on the
order with which the MOs were created on the node.
RNC32> pr uerc=
===================================================================================
Proxy MO
===================================================================================
2587 RncFunction=1,UeRc=0
2591 RncFunction=1,UeRc=16
2604 RncFunction=1,UeRc=91
2620 RncFunction=1,UeRc=1
2628 RncFunction=1,UeRc=17
2643 RncFunction=1,UeRc=70
2644 RncFunction=1,UeRc=59
2670 RncFunction=1,UeRc=2
Activate MO list sorting and run some MO commands. MOs now appear in alphabetical order.
RNC32> s+
Proxy sorting: activated.
RNC32> pr uerc=
===================================================================================
Proxy MO
===================================================================================
2587 RncFunction=1,UeRc=0
2620 RncFunction=1,UeRc=1
2670 RncFunction=1,UeRc=2
2754 RncFunction=1,UeRc=3
4071 RncFunction=1,UeRc=4
........

RNC32> hget uerc= userlabel
=======================================================================================================
MO
userLabel
=======================================================================================================
UeRc=0 Idle
UeRc=1 SRB (13.6/13.6)
UeRc=2 Conv. CS speech 12.2
UeRc=3 Conv. CS unkn (64/64)
UeRc=4 Interact. PS (RACH/FACH)
UeRc=5 Interact. PS (64/64)
UeRc=6 Interact. PS (64/128)

4.1.33 u+[s]/u-/u? []
Handling of undo mode (for cr/del/rdel/set/bl/deb/acc commands). Can be used for generation of MO scripts as well.

Informational
USER GUIDE

38(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

• u+ To start the undo mode
• u+s To start the simulated undo mode
• u- To stop the undo mode
• u? To check if undo mode is active or not
• u! To convert moshell ".mos" command files to netconf ".xml" format or trun ".mo" format (and vice-versa), or undo ".log"
logfiles to ".mos" command files, see description further down for more info.
While running in "undo mode", the MO data is saved in a special logfile for all MOs on which the following commands are run:
• cr
• del/ldel/rdel/lrdel
• bl/lbl/deb/ldeb
• set/lset
• acc/lacc
Upon stopping of undo mode, an undo file is generated to revert the MO configuration changes. It can also be used for deleting
and recreating MOs when one needs to change a restricted attribute.
The undo file will contain the following commands:
• del commands to remove created MOs.
• cr commands to put back deleted MOs.
• bl/deb commands to change MOs back to their original administrative state.
• set commands to change MOs back to their original attribute values.
• acc commands to revert certain MO actions. This only works on actions that have an opposite, see note below.
When running the simulated undo mode (u+s), all MO operations (cr/del/rdel/bl/deb/set) are simulated. Two command
files are generated, one for deletions and one for creation.
The files generated by undo mode and simulated undo mode are stored in the following variables:
• $undologfile
• $undodelcommandfile (simulated undo mode only)
• $undocommandfile
Conversion functionality (u!): The u! command takes as input one of the files generated by the undo mode. Different output will
be generated depending on the input file.
• if the input file is an undologfile (.log), the output will be an undodelcommandfile and an undocommandfile
• if the input file is an undodelcommandfile or an undocommandfile (.mos), the output will be:
– in case of CPP node: an undotrunfile ($undotrunfile) which is a command file in trun/emas format (.mo)
– in case of COM node: an undoxmlfile ($undoxmlfile) which is a command file in netconf format (.xml)
• if the input file is an undotrunfile (trun/emas format ".mo"), the output will be an undocommandfile (run format ".mos")
Note: to undo create commands run from a "trun" script, just run a delete on the proxy range in reverse order. See
Section 4.1.27 or h del for more info.
Note: the undo mode currently cannot reverse a set command done on an attribute of type sequence of struct.
Note: the following actions are currently supported in the undo mode:
• addPath/removePath
• addDhcpServerAddress/removeDhcpServerAddress
• setAutoActivate/setAutoDown
• activateRemoteSp/inactivateRemoteSp
• addRemoteSp/removeRemoteSp
• activate/deactivate
• localInhibit/localUninhibit
• activateLinkSet/deactivateLinkSet

Informational
USER GUIDE

39(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

• blockSignalingRoute/deBlockSignalingRoute
• addRepertoire/deleteRepertoire
• addSlot/deleteSlot
• addCicRange/removeCicRange
• addNri/removeNri
• addTdmTermGrpMos/removeTdmTermGrpMos
• addSyncrefResource/deleteSyncrefResource
• addAal2ApToRc/removeAal2ApFromRc
• writeSystConst/resetSystConst, deleteConst/writeConst
• changeFrequency, pnpChangeFrequency, setFrequencyBand
• removeIpAccessHostMos/addIpAccessHostMos
• manualMspSwitch, manualSwitch, switch

4.1.34 run[x][1][1p][1r] [-l ]  [] [] ...
Run a command file in moshell format.
The command file layout is the same as for monode and mobatch. See examples in moshell/examples/mobatch_files.
It shall contain all lines to be sent to the moshell prompt, including password (for ose commands), but NOT confirmations (y).
This applies to commands such as lt/ltc, lc/lcc, del/ldel, bl/lbl, set/lset where confirmation is automatically entered
when running a command file.
Comments can be put in the command file using the # sign. By typing , the unix file system is displayed, making it easier
to find the location of the command file.
If some arguments are given after the command file, the scripting variables $1, $2, $3, etc. will be set to the corresponding
values. The variable $0 will be set to the whole line contents. Type "h scripting" for info.
Options:
• 1: to execute the file in one transaction and commit. Only applicable for COM nodes. To run a MO script in one transaction
on CPP nodes, use trun1.
• 1p: to execute the file in one transaction and prompt for commit/rollback. Only applicable for COM nodes.
• 1r: to execute the file in one transaction and rollback. Only applicable for COM nodes.
• x: to stop execution of the file upon failure of a MO WRITE command (create, delete, set, action). The following scripting
variables are set automatically when the script stops:
– $errorline points to the line number where the script stopped
– $errorcmdline points to the line number of the last command that failed
– $nextcmdline points to the line number of the next command to execute
Switches:
• -l : to start file execution at a specific line number.

4.1.35 trun[is1cr] |
Run a command file in EMAS/MoTester format.
Execute a command file in EMAS/MoTester format.
By typing , the unix file system is displayed, making it easier to find the location of the command file.
It is also possible to specify a file located on a web server (eg. when the script is located on the CPP node).
The following commands are supported: ECHO, CREATE, SET, SETM, SETU, DELETE, ACTION, CHECK, CHECKM, CALL,
CALLREL, WAIT.
Lines can be commented out by adding // at the beginning of each line.
See examples below. For more info, refer to MoTester documentation in moshell/examples/motester/runMoTester.html .

Informational
USER GUIDE

40(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

By default, the command file halts when a command fails.
Options:
• i : ignore exceptions, the execution does not halt when a command fails.
• s : simulated run, the command file execution is simulated, no commands are actually executed on the node. Can be used
to verify the syntax of a script prior to running it for real. The simulated mode is always used in "offline mode" or "simulated
undo mode", regardless of the "trun" options.
• 1 : executes the whole script in one transaction, then prompts for confirm or rollback. This option should be used with great
care and only when absolutely necessary (e.g. when changing IP address of the node, see example script in
moshell/examples/misc/ip_change.mo). In regular usage, it is recommended to not use this option as it has been
observed to cause database corruptions in certain cases, for instance when creating/deleting certain types of MOs within
the same transaction. Database inconsistencies can be checked with the command dbc.
• c : used in combination with option 1 above, will avoid the prompt by automatically confirming the transaction
• r : used in combination with option 1 above, will avoid the prompt by automatically rolling back the transaction
Command description. See syntax examples further down.
• ECHO: the script will echo some text on the screen
• CREATE: create a new MO instance
• DELETE: delete a MO instance
• ACTION: perform a MO action
• SET: set one MO attribute
• SETM: set several MO attributes
• SETU: set a single struct member (whereas with SET/SETM, all struct members must be specified)
• CHECK: check that an attribute value is equal to a given value
• CHECKM: enhanced "check" - supports non-transactional get operation and multiple attributes
• WAIT: pause the script execution for a given number of milliseconds
• CALL: execute another MO script. If the path of the script is not an absolute path then the current working directory will be
searched.
• CALLREL: execute another MO script. If the path of the script is not an absolute path the the directory of the main script will
be searched.
• TRANSACTION: mark the beginning or end of a transaction. All operations executed between the statements
"TRANSACTION BEGIN" and "TRANSACTION END" will be executed within one single transaction.
• CORBATIMEOUT: set a different idle timeout for the script, to override the value of the uservariable "corba_timeout".
Script example:
//Echo a comment
ECHO "Start Test"
//Create a MO
CREATE
(
parent "ManagedElement=1,SwManagement=1"
identity "ROJ1192104_3_R4"
moType PiuType
exception none
nrOfAttributes 3
productData Struct
nrOfElements 5
productNumber String "ROJ1192104/3"
productRevision String "R4"
productName String "TUB"
productInfo String "TU"
productionDate String "20030116"
boardWidth Integer 3
role Integer 2
)
//Delete a MO
DELETE
(
mo "ManagedElement=1,SwManagement=1,PiuType=ROJ1192104_3_R4"
exception none

Informational
USER GUIDE

41(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

EAB Finn Magnusson

Checked

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

)
//Set an attribute
SET
(
mo "ManagedElement=1,Equipment=1,Jvm=1"
exception none
admClasspath Array Reference 4
"ManagedElement=1,SwManagement=1,LoadModule=Oms"
"ManagedElement=1,SwManagement=1,LoadModule=Asms"
"ManagedElement=1,SwManagement=1,LoadModule=VbjOrb"
"ManagedElement=1,SwManagement=1,LoadModule=Cma"
)
//Set several attributes in one MO
SETM
(
mo "ManagedElement=1,RncFunction=1,UtranCell=Iub-1-1"
exception none
uarfcnDl Integer 10738
uarfcnUl Integer 9788
)
SETM
(
mo "ManagedElement=1,RncFunction=1,Sid=1"
exception none
sib1 Struct nrOfElements 2
sib1RepPeriod Integer 32
sib1StartPos Integer 4
sib2 Struct nrOfElements 2
sib2RepPeriod Integer 128
sib2StartPos Integer 118
)
//Set an incomplete struct attribute. Missing struct members will be set to their current value.
SETU
(
mo "ManagedElement=1,RncFunction=1,Sid=1"
exception none
sib1 Struct nrOfElements 1
sib1RepPeriod Integer 32
)
//Execute an MO action
ACTION
(
actionName addRepertoire
mo "ManagedElement=1,SwManagement=1,SwAllocation=TB_LLP"
exception none
nrOfParameters 1
Ref "ManagedElement=1,SwManagement=1,Repertoire=Cello_Common_MP"
returnValue ignore
)
//Read an attribute with transactional get and compare to a reference value
CHECK
(
mo "ManagedElement=1,RncFunction=1,UtranCell=Iub-1-1"
exception none
uarfcnDl 10738
)
//Read one or more attributes with transactional get and compare to reference values
CHECKM
(
mo "ManagedElement=1,RncFunction=1,UtranCell=Iub-1-1"
exception none
uarfcnDl 10738
uarfcnUl 9788
)
//Read one or more attributes with null transaction and compare to reference values
CHECKM
(
mo "ManagedElement=1,RncFunction=1,UtranCell=Iub-1-1"
exception none
transaction null
uarfcnDl 10738
uarfcnUl 9788
)

Informational
USER GUIDE

42(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

//Read one or more attributes with null transaction and print the values without comparing
CHECKM
(
mo "ManagedElement=1,RncFunction=1,UtranCell=Iub-1-1"
exception none
transaction null
compare no
uarfcnDl
uarfcnUl
)
//wait 2 seconds (time given in milliseconds)
WAIT 2000
//run another MO script
CALL("/home/eric/scripts/newfile.mo")
//run another MO script using a path relative to the path of the main script
CALLREL("test.mo")
//run some operations in a single transaction
TRANSACTION BEGIN

TRANSACTION END
//set a different idle timeout for the script (in seconds), to override the uv "corba_timeout"
CORBATIMEOUT 1800

4.1.36 Ctrl-Z; touch /tmp/xxxx; fg (abort MO command)
Abort an MO command or a "for" loop.
To abort an MO command (like get/st/set/acc...) or a for loop, two steps are needed:
First type Ctrl-Z, to suspend moshell. Then, at the unix prompt, create an empty file /tmp/xxxx (where xxxx is the process
number indicated in moshell menu and in the window’s title bar) and resume moshell. This is done with the following command:
touch /tmp/xxxx ; fg
If the moshell prompt doesn’t come back even after typing  a number of times, try again suspending (ctrl-z) and resuming
(fg).

4.1.37 pol[b][c][d][h][i][k][m][p][s][r][u][w][y] [-m ] [] [] []
Poll the node until the MO service is up or until an operation has completed.
Options applicable for CPP nodes:
• s: poll the node until telnet/ssh server is up.
• h: poll the node until http server is up.
• r: poll the node until http server is down. Eg to find out when the node restart has begun.
• d: poll the node until the action startHealthCheck is completed.
• m: poll the node until /c disk mirroring is completed.
• k: poll the node until the system clock is in locked mode.
• c: poll the node until the ConfigurationVersion has completed its ongoing operations, by monitoring the attribute
currentMainActivity. Useful to use after action restore/forcedRestore.
• u: poll the node until the UpgradePackage has completed its ongoing operations, by monitoring the attribute
progressHeader. If progressHeader is awaiting_confirm, the confirmUpgrade action will be sent automatically
to the node.
Options applicable for COM nodes:
• h: poll the node until COM port is up.
• r: poll the node until COM port is down. Eg to find out when the node restart has begun.
• u: poll the node until the UpgradePackage MO has completed its ongoing operations, by monitoring the attribute
reportProgress. If the UpgradePackageState is waiting_for_commit, the confirm action will be sent automatically

Informational
USER GUIDE

43(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

EAB Finn Magnusson

Checked

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

to the node.
• b: poll the node until the Brm* MO (BrmBackup,BrmBackupManager,BrmBackupScheduler,BrmFailsafeBackup) has
completed its ongoing operations.
• i: poll the node until the KeyFileManagement has completed its ongoing operations.
• w: poll the node until the SwM MO has completed its ongoing operations.
• y: poll the node until the CertM/NodeCredential MO has completed its ongoing operations.
• p: poll any MO that has a progress attribute, using option -m .
Only one option can be given at a time, ie, it is not supported to combine several options. If no options are given, then it will poll
the node until the MO service is up. Note that this polling is done automatically before each MO command. If the loaded CV has
changed during the polling then moshell will automatically reload the MOM and MIB (getmom,parsemom,lt all).
Arguments (optional):
•  : to specify the time in seconds between each polling. Default value is 10 seconds.
•  : to specify the time in seconds to wait before starting to poll. Default is 20 seconds (60 seconds for polu).
The reason for this waiting time is because it can take some time before the node starts to execute an operation.
• : to specify the time in seconds to wait before checking the result of an action, when using options ’c’ or ’u’.
Default value is 60 seconds.
To abort the polling, do ctrl-z, then touch  (the path to stopfile is printed in the window title), then fg. See
h ctrl-z for more info.
Examples: Performing various operations on a UpgradePackage and polling the node in between each, to find out when it’s
possible to carry on.
• acc upgradepackage=CXP9012014_R10CD nonblockinginstall
• polu
• acc upgradepackage=CXP9012014_R10CD verifyupgrade
• polu
• acc upgradepackage=CXP9012014_R10CD rebootnodeupgrade
Note: if polu is executed on a node which is being upgraded from ENM or the OSSRC SMO application, then the uservariable
polu_confirmupgrade should be set to 0 to prevent polu from confirming the upgrade. Otherwise this would confuse SMO.
Refer to the description of this uservariable inside the file moshell/moshell.

4.1.38 re[i]
Disconnect and reconnect to the CM service (mobrowser) and/or the PM service (pmtester).
This is useful if the security settings have changed on the node during the moshell session. The "i" option is to refetch the iorfile
which is necessary if the IORfile has changed on the node (this happens for instance when going from vbjorb to JacORB or
changing to corba security). Note that when moshell first starts up, it is neither connected to CM nor PM.
To connect to CM service, just use the re command, the lt command or any other MO commands (eg pr, get, etc). As soon as
moshell has connected to the CM service the userlabel/site attribute of ManagedElement will be read and prompt will be set
accordingly.
To connect to PM service, just type the pst command which will list all scanners defined on the node.
If there is a node restart with change of CORBA supplier, ie going from Vbjorb (cpp3/4/5) to JacORB (cpp5.1 and above) or
vice-versa, then it is necessary to issue the rei command which will also refetch the IOR file.
It is NOT necessary to type re after a node restart/upgrade or jvm restart, as long as the corba definitions have stayed the same
(corba supplier and corba security setting). Moshell stays connected all the time, though it may not be possible to perform
operations while the restart is happening.

4.1.39 getmom []
Check the MOM version currently stored on the node or download a MOM from newtran01 server.
When the command is run on its own, without argument, a check will be done to find the MOM version of the node. For CPP
nodes, the check is done by reading the header of the MOM file stored under http:///cello/oe/xml. For COM
nodes, the check is done by reading the identifier and version attributes in the Schema MOs. Usually this check is done

Informational
USER GUIDE

44(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

automatically when moshell connects to the MO service.
When the command is run with an argument, then it will try to fetch the corresponding MOM file from the newtran01 server and
store it in the jarxml folder.
Example:
>> getmom RNC_NODE_MODEL_K_9_115_COMPLETE

4.1.40 parsemom []
Parse an xml MOM file
Without argument, the parsemom command just reparses the current MOM version. Can be used in conjunction with the
getmom command to check and parse the current MOM.
With argument, the parsemom command will parse a different MOM to the one currently loaded in moshell. Can be useful if an
incorrect MOM is stored on the node or if just wanting to browse a MOM offline. Example:
parsemom moshell/jarxml/RNC_NODE_MODEL_D_3.xml

4.1.41 flt/fltc 
Load proxys for an MO type that is not defined in the MOM. ("Force" lt/ltc).
Can be useful in case the xml MOM isn’t up to date with the node SW, or in case there is no xml MOM.
Example: flt rncsystemparameters

4.1.42 fget[i]/lfget[i] |||all []
Read attributes that are not listed in the MOM (f="Force").
With fget/lfget, the exact attribute name must be specified in the command.
Any attribute can be displayed as long as it is supported by the node SW.
Options:
• i: to read an attribute via "internalmomread" command. Only applicable to RCS nodes (MSRBSv2/TCU).
Examples:
• fget ^pluginunit= resourceid
• fgeti ^eutrancellfdd= loadCtrlPrioOfMta
• fgeti ^eutrancellfdd=7 dlCyclicPrefix > $var

4.1.43 eget/leget |||all []
Read attributes that are not listed in the MOM (e="Extended").
With eget/leget, the attribute name is optional, or an attribute filter can be used.
Only attributes listed in the file moshell/commonjars/extendedMOM.txt can be shown. The attributes of this file can also be
shown in the commands get/kget/sget if the uservariable use_extended_mom is set to 1 (default: 0).
Example: eget plug res

4.1.44 sget/lsget/skget/lskget/shget/lshget |||all
Read CM/FM attributes from MO(s), one by one ("Slow" get).
Slow but useful in case the standard "get" command is not working due to some attribute returning an exception.

4.1.45 fset[i]/lfset[i] |||all  [] []
Set an attribute that is not described in the MOM ("Force" set).

Informational
USER GUIDE

45(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

Can be useful in case the xml MOM isn’t up to date with the node SW, or in case there is no xml MOM (e.g. MGW application
part).
The syntax is similar to the "set" command except that the attribute type has to explicitely specified using the reference list below.
Options:
• i: to set an attribute via "internalmomwrite" command. Only applicable to RCS nodes (MSRBSv2/TCU). With "i" option, the
attribute type should not be specified.
Examples:
• lfset subrack=ms,slot=20,pluginunit=1$ administrativestate 0 i
• fseti ^eutrancellfdd= loadCtrlPrioOfMta false
Following attribute types are supported:
• i integer/long/enum
• l longlong
• s string
• b boolean
• r moref
• f float
• t struct
• ai array of integer/long/enum
• al array of longlong
• as array of string
• ab array of boolean
• ar array of moref
• af array of float
• at array of structref

4.1.46 facc/lfacc |||all  [] []
Perform actions that are not defined in the MOM ("force" action).
Can be useful in case the xml MOM isn’t up to date with the node SW, or in case there is no xml MOM.
If the parameter is a an integer or a string, the parameter type does not need to be specified as in the example below.
Example:
• lfacc Sector=1,Carrier=1,HsDschResources=1 startRDBTCellHidden 16
• facc CommContexts=1 readHsMusOnCCHidden 0
Otherwise it should be explicitely specified, using the reference list below. Examples:
• lfacc Equipment=1,Subrack=1,Slot=4,PlugInUnit=1,RaxDeviceGroup=1,UbchDeviceSet
defineCqiPatternHidden 0 5 15,16,17,18,19:ai

Following parameter types are supported:
• i integer/long/enum
• l longlong
• s string
• b boolean
• r moref
• f float
• t struct
• ai array of integer/long/enum
• al array of longlong

Informational
USER GUIDE

46(159)

Prepared (also subject responsible, if other)

No.

EAB Finn Magnusson

1553-CXC1328930

Document responsible/Approved

Checked

EAB Finn Magnusson

Date

Rev.

File

2018-10-30

BX

moshellUserGuide.tex

• as array of string
• ab array of boolean
• ar array of moref
• af array of float
• at array of structref

4.1.47 fdel/lfdel ||
Delete MO(s), including systemCreated MOs.
Works in the same way as the regular del/ldel command except that it also tries deleting the systemCreated MOs, whereas
the del command skips them.
Though the systemCreated MOs cannot be deleted, this command can be useful when generating set commands in "simulated
undo mode" for those systemCreated MOs.

4.2 Other MO commands
4.2.1 cvls/cvmk/cvms/cvset/cvrm[u]/cvrbrm/cvcu/cvget[f][u][d]/cvput/cvls1/cvre/cvfa/cvfd
CV backup handling: list, make local, make remote, remove, setstartable.
A set of commands similar to the "cv" commands in OSE but operate through MO interface instead of telnet/ssh.
Command syntax and description (CPP):
• cvcu: display the current cv information only (equivalent of "cv cu").
• cvls []: display both the current cv information (equivalent of cv cu) and cv list (equivalent of cv ls). It
is possible to filter the output of cvls to only show CVs where the CV name or CV attributes match a certain string. The
proxy Id of the CVs can be used in the commands cvrm and cvget. The display of CV proxy Id can be disabled with
command "safe+".
• cvls1: similar to the cvls command except that it executes via the OSE shell instead of the MO service.
• cvmk  [] [] : create a local cv backup. Operator name and comments (not longer
than 40 characters) can be given as argument.
• cvset |: set a cv as startable.
• cvms  [] [] : create a cv and make it startable (combination of cvmk and cvset)
• cvget[f] || [] : make a remote backup of a cv to the workstation. The
operation is done with the MO action putToFtpServer unless option "f" has been specified, in which case the transfer will be
done by FTP/SFTP. The second argument is optional. If not given, a default folder is chosen for the backup
~/moshell_logfiles/logs_moshell/cv//_