Vous êtes sur la page 1sur 2

***********************************************************************************

****
mom[abcdfloprtuxsi] [<moclass/struct/enum>] [<attribute/action>] [<attr-type>]
[<attr-flags>] [<description>]
***********************************************************************************
****
Print description of MO classes, CM/FM attributes, actions, enums and structs.

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
- 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:
View the whole MO tree
>> momt
View all possible parents and children of the AtmPort MO
>> momt atmp
View a description of the AtmPort MO
>> mom atmp
List all MO classes under the AtmPort MO
>> momcd atmp
View a description of all MO classes under the AtmPort MO
>> momc atmp
List all attributes and actions belonging to the MO class "VclTp"
>> momd vcltp .
List all EricssonOnly attributes that are not readOnly
>> momdi . . . !readonly
View a description of all attributes and actions belonging to the MO class "VclTp"
>> mom vcltp .
List all attributes and actions matching the word "restart"
>> momd . restart
List all attributes of type struct and/or all actions containing struct parameters
>> momd . . struct
List all attributes that have the restricted flag
>> momd . . . restricted
List all utrancell attributes that do not have the restricted or readonly flag
>> momd utrancell . . !restricted|readonly
List all MOs, attributes and actions whose description contains the word "license"
>> momd . . . . license
View the description of all MOs, attributes and actions whose description contains
the word "license"
>> mom . . . . license
List all struct or enumerates matching the word "restart"
>> momd restart .
View the description of all struct or enumerates matching the word "restart"
>> mom restart .
List all attributes of type "enumRef:AdmState"
>> momd . . enumref:admst
View a description of all struct members contained in struct "AdminProductData"
>> mom adminproductda .
List all attributes of type "sequence:moRef" who have a flag "restricted"
>> momd . . sequence:moref restricted
List the default values for all attributes in the MO class "UtranCell"
>> momb utrancell
List the default values for all UtranCell attributes that do not have the flag
restricted
>> mombf utrancell . . !restricted
List the default values and valid ranges for all attributes that match the word
"power" or "pwr"
>> mombr . power|pwr
Show the relationships between MO classes
>> momx
Show the relationships to and from IubLink
>> momx iublink
Show the relationships between IubLink and UtranCell
>> momx iublink.*utrancell|utrancell.*iublink
Show the relationships connected via reservedBy attribute
>> momx reservedby
Print attribute values for all attributes of data type moRef
>> mom . . ^moref
>> get . $attrib_filter