Beruflich Dokumente
Kultur Dokumente
#########
Command syntax, regular expressions
###################################################################################
#########
#################################################
3.1- How MOs are identified
#################################################
- 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
- 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
- FDN (Full Distinguished Name)
This is used to uniquely identify an MO within a network (used by RANOS/CNOSS).
Example:
SubNetwork=AUS,SubNetwork=H2RG_0201,MeContext=St_Leonards_Station_2065010,ManagedEl
ement=1,TransportNetwork=1,AtmPort=MS-24-1
##################################################
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 affected by the command.
Six ways can be used to specify the MO(s):
1) all
==> all MOs in the proxy table will be affected
Example: get all userlabel ---> get attribute "UserLabel" on all MOs
Note: instead of "all", it is also possible a wildcard such as "." or "*". This has
the same effect.
2) proxy id(s)
==> MO(s) with the given proxy id(s) will be affected.
To specify several MO proxies, there are two ways:
- Specify each proxy id with a space in between
Example: pr 0 2 5 --> print MO proxies 0, 2, and 5
- Give a range
Example: pr 4-10 --> print MO proxies from 4 to 10
pr 10-4 --> print MO proxies from 10 to 4 (reverse order, useful for
deleting MOs)
acc 10-20 restart ---> restart MOs with proxy 10 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
4) mo group
==> MO Groups are user defined groups of MOs. MO(s) belonging to the given MO group
will be operated upon.
MO groups can be created using the commands ma/lma and mr/lmr, as well as
hget/lhget, lk/llk, st/lst, pdiff/lpdiff.
See command description for these commands.
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.
Example1: 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
Example2: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 paragraph 4. above)
6) mo-filter
==> MO(s) whose LDN/RDN match the pattern will be operated upon.
If the command starts with "l" then the pattern will match agains the LDN.
If the command doesn't start with "l", and the filter contains no commas, then the
pattern will match against the RDN.
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.
Examples:
>> pr ms-24-1
returns: TransportNetwork=1,AtmPort=MS-24-1
>> lpr ms-24-1
returns: 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
>> pr ms,slot=5,plug
returns: Equipment=1,Subrack=MS,PlugInUnit=1
>> lpr ms,slot=5,plug
returns: 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.
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
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
lpr !loadmodule|program
==> all MOs except those matching "loadmodule" or "program" will be printed.
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
pr cc[1-4]
TransportNetwork=1,AtmCrossConnection=AtmCC1
TransportNetwork=1,AtmCrossConnection=AtmCC2
TransportNetwork=1,AtmCrossConnection=AtmCC3
TransportNetwork=1,AtmCrossConnection=AtmCC4
pr cc[135]
TransportNetwork=1,AtmCrossConnection=AtmCC1
TransportNetwork=1,AtmCrossConnection=AtmCC3
TransportNetwork=1,AtmCrossConnection=AtmCC5
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
lpr =6.*prog.*=1$
Equipment=1,Subrack=1,Slot=6,PlugInUnit=1,Program=1
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
lpr ms-24-1.*=vc[^3]
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.3- How to specify attribute values in set/cr/acc commands
##################################################
a) For attributes of type Struct, use the following syntax:
attr1=val1[,attr2=val2[,attr3=val3]]]...
It is not necessary to specify all the struct members, only those that are required
to change can be specified.
Example:
>> set sid sib11 sib11repperiod=128
>> set mtp3bspitu sppriority prioslt=2
>> set mtp3bspitu sppriority prioslt=2,prioco=2
c) For attributes of type array of MoRefs, separate each element of the array
with spaces. Eg:
>> set jvm admclasspath loadmodule=oms loadmodule=vbjorb loadmodule=asms_sharp
loadmodule=iaik loadmodule=cma loadmodule=roam
>> acc aal2pathdistributionunit=1 addPath
Parameter 1 of 1, aal2PathVccTpId (sequence-moRef-Aal2PathVccTp):
aal2pathvcctp=csa aal2pathvcctp=csb
d) 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