Warning! This file was generated long time ago and may be obsolete.
runMoTester.sh - Simple script based tester for MO's
runMoTester.sh [ -D ] scriptfile
runMoTester.sh reads commands from a scriptfile containing
commands to be executed on an MO under test. These commands
can be CREATE, DELETE, SET, CHECK, ACTION, ECHO, CALL or
REFRESH. The CHECK command is a combination of a GET command
with verification of the retrieved result. The REFRESH com-
mand is not an Configuration IRP command but retrieves all
the MO references from the server to synchronize the MoTes-
ters internal administration. The ECHO command is used to
print information from the test script to standard output.
The CALL command enables the execution from scripts within
scripts. The execution results of all commands (execution
successful/exception caught) are validated with the expected
results which are programmed in the script.
SCRIPTS
The runMoTester.sh commands needs a scriptfile containing a
sequence of commands to be executed. The scriptfile is an
ASCII text-file. Each command has the following structure:
<command>
(
<body>
)
elements:
<command> Is a command to be executed; allowed are CREATE,
DELETE, SET, CHECK ACTION or REFRESH.
<body> This body contains the information needed to exe-
cute the <command> , the contents differes per
command. The following keywords are used: parent,
moType, identity, mo, exception, nrOfAttributes,
nrOfParameters, actionName and resultValue
Description of the keywords:
parent This keyword is used in the CREATE command to
define the local distinguished name of the parent
under which the MO has to be created. The local
distinguished names consists of comma separated
moType/identity pairs, for example:
"NetworkElement=1,TransportNetwork=1". The LDN is
enclosed in double-quotes. The left most
moType/identity pair is the most at the top, the
MO to be created will reside directly under the
right most moType/identity pair.
moType This keyword is used in the CREATE command to
define what type of MO has to be created. The type
is an alpha-numeric string, for example AtmPort.
identity This keyword is used in the CREATE command to
identify an instance of an MO of a specific type.
The identity is an interger number which shall be
unique (not used before for an MO of this type).
The moType/identity pair is used in Local Dis-
tinguest Names (LDN) to address a specific MO.
Note that the created MO may change its own iden-
tity upon creation, this depends on the MO imple-
mentation.
mo This keyword is used in the SET, CHECK, ACTION and
DELETE commands to identify the MO on which the
command has to be performed. The identification
of the MO is a LDN and consists of comma separated
moType/identity pairs, for example:
"NetworkElement=1,TransportNetwork=1,AtmPort=1".
The LDN is enclosed in double-quotes. The left
most moType/identity pair is the most at the top,
the MO on which the command will be executed is
the right most moType/identity pair.
exception This keyword is used by the CREATE, SET, CHECK,
ACTION and DELETE commands to define which excep-
tion shall be thrown by the command, if any. The
argument to the exception keyword is the name of
the expected exception or none when no exception
is expected.
nrOfAttributes
This keyword is used by the CREATE command to
define the number of attributes that will follow.
Attibutes lines will follow this keyword on the
successive lines.
nrOfParameters
This keyword is used by the ACTION command to
define the number of parameters that will follow.
Lines containing parameters lines will follow this
keyword on the successive lines.
actionName
This keyword is used by the ACTION command specify
the name of the action to be executed.
resultValue
This keyword is used by the ACTION command specify
the expected result of an executed action. The
argument to the resultValue keyword is the
expected return value or none when no return value
is expected.
attributes:
Attributes have the following layout:
<attributeName> <type> <value>
<attributeName> Array <type> <count>
<value>
<value>
or
<attributeName> Struct
nrOfElements <count>
<attributeName> <type> <value>
<attributeName> <type> <value>
attributeName
This is an attribute name of the MO/FRO to be ini-
tialised or set.
type This identifies the type of the attribute. Valid
types are: String, Integer Boolean or Reference.
value This is the value of the attribute. For String
type this is just a word or multiple words
enclosed in double-quotes. For Integer a number is
expected here. For Boolean only the words true
and false are accepted as value. For Reference a
LDN is expected; eg.
"NetworkElement=1,TransportNetwork=1,AtmPort=1".
The value of a reference can be enclosed in
double-quotes. A reserved LDN is null which is
used if the reference does not reference any MO.
count This is a number specifying the size of the array
or the number of members in a struct. In case of
an array the values for each element follow on
subsequent lines. In case of a struct "<attri-
bute> <type> <value>" type lines for all members
will follow on subsequent lines.
checkvalues:
checkValues are used in CHECK commands and have the
following layout:
<attributeName> <value> [<value>]...
attributeName
This is an attribute name of the MO/FRO to be
checked.
value This is the value of the attribute. The type is
derrived from the response from the MO. More than
1 value is given if the attribute is an array or
struct type.
parameters:
Parameters have the following layout:
<type> <value>
Array <type> <count>
<value>
<value>
or
Struct
nrOfElements <count>
<type> <value>
<type> <value>
type This identifies the type of the parameter. Valid
types are: String, Integer Boolean or Reference.
value This is the value of the parameter. For String
type this is just a word or multiple words
enclosed in double-quotes. For Integer a number is
expected here. For Boolean only the words true and
false are accepted as value. For Reference a LDN
is expected; eg.
"NetworkElement=1,TransportNetwork=1,AtmPort=1".
The value of a reference can be enclosed in
double-quotes. A reserved LDN is null which is
used if the reference does not reference any MO.
count This is a number specifying the size of the array
or the number of members in a struct. In case of
an array the values for each element follow on
subsequent lines. In case of a struct "<type>
<value>" type lines for all members will follow on
subsequent lines.
constants:
These are reserved values used in conjunction with the
exception and resultValue keywords and are used in
attributes and parameters.
none This constant is used als reserved exception name
and reserved returnValue. If used in conjunction
with the exception keyword it indicates that no
exception is expected. If used in conjunction
with the resultValue keyword it indicates that no
return value is expected.
true Used for Boolean type attributes and parameters.
false Used for Boolean type attributes and parameters.
null A reserverd LDN used in Reference type attributes
and parameters when the attribute or parameter
does not reference any MO.
The following options are supported:
-D Debug mode flag, using this flag will give verbose
output of all messages.
The order of the keywords is fixed for each command here is
the layout for each command
CREATE
CREATE
(
parent <LDN of parent below which the MO shall be created>
idenity <unique integer number for this MO>
moType <type of MO to create>
exception <expected exception or "none">
[ sourceMo <LDN of mo to be used as origin for cloning> ]
nrOfAttribute <number of attributes that will follow>
<attributeName-1> <type> <value>
<attributeName-2> <type> <value>
...
)
DELETE
DELETE
(
mo <LDN of MO to be removed>
exception <expected exception or "none">
)
SET
SET
(
mo <LDN of MO to be changed>
exception <expected exception or "none">
<attributeName> <type> <value>
)
CHECK
CHECK
(
mo <LDN of MO to be checked>
exception <expected exception or "none">
<attributename> <value-1> <value-2>
)
ACTION
ACTION
(
actionName <string identifing the action>
mo <LDN of MO on which the action should be performed>
exception <expected exception or "none">
nrOfParameters <number of parameters that will follow>
<parameter-type> <value>
<parameter-type> <value>
returnValue <return value to be checked or "none">
)
ECHO
ECHO
(
<string to be displayed>
)
CALL
CALL
(
<filename>
)
REFRESH
REFRESH
(
)
////////////////////////////////////////////////////////////////
//
// Create Test MO
//
////////////////////////////////////////////////////////////////
CREATE
(
parent "ManagedElement=1"
identity 1
moType Test
exception none
nrOfAttributes 2
testFroClassName String NssSynchronizationFro
testMode String NOANSWER
)
////////////////////////////////////////////////////////////////
//
// Test NO ANSWER state
//
////////////////////////////////////////////////////////////////
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception "FroNotAccessible"
degradationIsFault 1
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception "FroNotAccessible"
systemClockA 2
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception "FroNotAccessible"
systemClockB 3
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefresource null null null null null null null null
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception "FroNotAccessible"
syncrefpriority 99 99 99 99 99 99 99 99
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception "FroNotAccessible"
syncrefactivity 99 99 99 99 99 99 99 99
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception "FroNotAccessible"
syncrefstatus 99 99 99 99 99 99 99 99
)
////////////////////////////////////////////////////////////////
//
// Test NOT OK state
//
////////////////////////////////////////////////////////////////
SET
(
mo "ManagedElement=1,Test=1"
exception none
testMode String NOTOK
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception "FroRequestFailed"
degradationIsFault 1
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception "FroRequestFailed"
systemClockA 2
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception "FroRequestFailed"
systemClockB 3
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefresource null null null null null null null null
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception "FroRequestFailed"
syncrefpriority 99 99 99 99 99 99 99 99
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception "FroRequestFailed"
syncrefactivity 99 99 99 99 99 99 99 99
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception "FroRequestFailed"
syncrefstatus 99 99 99 99 99 99 99 99
)
////////////////////////////////////////////////////////////////
//
// Test NOT OK state
//
////////////////////////////////////////////////////////////////
SET
(
mo "ManagedElement=1,Test=1"
exception none
testMode String OK
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
degradationIsFault 1
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
systemClockA 2
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
systemClockB 3
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefresource null null null null null null null null
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefpriority 99 99 99 99 99 99 99 99
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefactivity 99 99 99 99 99 99 99 99
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefstatus 99 99 99 99 99 99 99 99
)
////////////////////////////////////////////////////////////////
//
// Test creation of E1PhyPathTerm
// The line number is used as priority setting
//
////////////////////////////////////////////////////////////////
SET
(
mo "ManagedElement=1,Test=1"
exception none
testMode String OK
)
CREATE
(
parent "ManagedElement=1,Equipment=1,Subrack=1,Slot=3,PlugInUnit=3"
identity 1
moType E1PhyPathTerm
exception none
nrOfAttributes 2
lineNo Integer 1
FroId Integer 2
)
ACTION
(
actionName addSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 2
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=3,PlugInUnit=3,E1PhyPathTerm=1"
Integer 1
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
degradationIsFault 1
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
systemClockA 2
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
systemClockB 3
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefresource "ManagedElement=1,Equipment=1,Subrack=1,Slot=3,PlugInUnit=3,E1PhyPathTerm=1"
null null null null null null null
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefpriority 1 99 99 99 99 99 99 99
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefactivity 2 99 99 99 99 99 99 99
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefstatus 1 99 99 99 99 99 99 99
)
////////////////////////////////////////////////////////////////
//
// Test creation of second E1PhyPathTerm on other parent
//
////////////////////////////////////////////////////////////////
CREATE
(
parent "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5"
identity 1
moType E1PhyPathTerm
exception none
nrOfAttributes 2
lineNo Integer 3
FroId Integer 4
)
ACTION
(
actionName addSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 2
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=1"
Integer 3
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
degradationIsFault 1
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
systemClockA 2
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
systemClockB 3
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefresource "ManagedElement=1,Equipment=1,Subrack=1,Slot=3,PlugInUnit=3,E1PhyPathTerm=1"
"ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=1"
null null null null null null
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefpriority 1 3 99 99 99 99 99 99
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefactivity 2 1 99 99 99 99 99 99
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefstatus 1 2 99 99 99 99 99 99
)
////////////////////////////////////////////////////////////////
//
// Test deletion of first E1PhyPathTerm
//
////////////////////////////////////////////////////////////////
ACTION
(
actionName removeSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 1
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=3,PlugInUnit=3,E1PhyPathTerm=1"
)
DELETE
(
mo "ManagedElement=1,Equipment=1,Subrack=1,Slot=3,PlugInUnit=3,E1PhyPathTerm=1"
exception none
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
degradationIsFault 1
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
systemClockA 2
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
systemClockB 3
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefresource null
"ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=1"
null null null null null null
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefpriority 99 3 99 99 99 99 99 99
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefactivity 99 1 99 99 99 99 99 99
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefstatus 99 2 99 99 99 99 99 99
)
////////////////////////////////////////////////////////////////
//
// Test the creation of a E1PhyPathTerm using the same priority
//
////////////////////////////////////////////////////////////////
CREATE
(
parent "ManagedElement=1,Equipment=1,Subrack=1,Slot=4,PlugInUnit=4"
identity 1
moType E1PhyPathTerm
exception none
nrOfAttributes 2
lineNo Integer 3
FroId Integer 4
)
ACTION
(
actionName addSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception NotAccepted
nrOfParameters 2
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=4,PlugInUnit=4,E1PhyPathTerm=1"
Integer 3
)
// Test that attributes are not changed
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
degradationIsFault 1
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
systemClockA 2
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
systemClockB 3
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefresource null
"ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=1"
null null null null null null
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefpriority 99 3 99 99 99 99 99 99
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefactivity 99 1 99 99 99 99 99 99
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefstatus 99 2 99 99 99 99 99 99
)
DELETE
(
mo "ManagedElement=1,Equipment=1,Subrack=1,Slot=4,PlugInUnit=4,E1PhyPathTerm=1"
exception none
)
ACTION
(
actionName removeSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 1
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=1"
)
DELETE
(
mo "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=1"
exception none
)
////////////////////////////////////////////////////////////////
//
// Test the creation of a E1PhyPathTerm using an invalid priority
//
////////////////////////////////////////////////////////////////
CREATE
(
parent "ManagedElement=1,Equipment=1,Subrack=1,Slot=4,PlugInUnit=4"
identity 2
moType E1PhyPathTerm
exception none
nrOfAttributes 2
lineNo Integer 9
FroId Integer 4
)
ACTION
(
actionName addSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception NotAccepted
nrOfParameters 2
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=4,PlugInUnit=4,E1PhyPathTerm=2"
Integer 9
)
ACTION
(
actionName addSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception NotAccepted
nrOfParameters 2
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=4,PlugInUnit=4,E1PhyPathTerm=2"
Integer 0
)
DELETE
(
mo "ManagedElement=1,Equipment=1,Subrack=1,Slot=4,PlugInUnit=4,E1PhyPathTerm=2"
exception none
)
////////////////////////////////////////////////////////////////
//
// Test the creation of the max number of E1PhyPathTerms
//
////////////////////////////////////////////////////////////////
CREATE
(
parent "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5"
identity 1
moType E1PhyPathTerm
exception none
nrOfAttributes 2
lineNo Integer 3
FroId Integer 4
)
CREATE
(
parent "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5"
identity 2
moType E1PhyPathTerm
exception none
nrOfAttributes 2
lineNo Integer 1
FroId Integer 2
)
CREATE
(
parent "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5"
identity 3
moType E1PhyPathTerm
exception none
nrOfAttributes 2
lineNo Integer 2
FroId Integer 3
)
CREATE
(
parent "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5"
identity 4
moType E1PhyPathTerm
exception none
nrOfAttributes 2
lineNo Integer 4
FroId Integer 5
)
CREATE
(
parent "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5"
identity 5
moType E1PhyPathTerm
exception none
nrOfAttributes 2
lineNo Integer 5
FroId Integer 6
)
CREATE
(
parent "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5"
identity 6
moType E1PhyPathTerm
exception none
nrOfAttributes 2
lineNo Integer 6
FroId Integer 7
)
CREATE
(
parent "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5"
identity 7
moType E1PhyPathTerm
exception none
nrOfAttributes 2
lineNo Integer 7
FroId Integer 8
)
CREATE
(
parent "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5"
identity 8
moType E1PhyPathTerm
exception none
nrOfAttributes 2
lineNo Integer 8
FroId Integer 1
)
ACTION
(
actionName addSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 2
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=2"
Integer 1
)
ACTION
(
actionName addSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 2
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=1"
Integer 2
)
ACTION
(
actionName addSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 2
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=3"
Integer 3
)
ACTION
(
actionName addSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 2
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=4"
Integer 4
)
ACTION
(
actionName addSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 2
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=5"
Integer 5
)
ACTION
(
actionName addSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 2
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=6"
Integer 6
)
ACTION
(
actionName addSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 2
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=7"
Integer 7
)
ACTION
(
actionName addSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 2
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=8"
Integer 8
)
// Test that attributes are not changed
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
degradationIsFault 1
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
systemClockA 2
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
systemClockB 3
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefresource "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=2"
"ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=1"
"ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=3"
"ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=4"
"ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=5"
"ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=6"
"ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=7"
"ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=8"
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefpriority 1 2 3 4 5 6 7 8
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefactivity 2 1 1 1 1 1 1 1
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefstatus 1 2 2 2 2 2 2 2
)
// Delete all the E1PhyPathTerm
ACTION
(
actionName removeSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 1
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=1"
)
ACTION
(
actionName removeSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 1
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=2"
)
ACTION
(
actionName removeSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 1
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=3"
)
ACTION
(
actionName removeSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 1
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=4"
)
ACTION
(
actionName removeSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 1
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=5"
)
ACTION
(
actionName removeSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 1
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=6"
)
ACTION
(
actionName removeSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 1
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=7"
)
ACTION
(
actionName removeSyncRefResource
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
nrOfParameters 1
Ref "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=8"
)
DELETE
(
mo "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=1"
exception none
)
DELETE
(
mo "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=2"
exception none
)
DELETE
(
mo "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=3"
exception none
)
DELETE
(
mo "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=4"
exception none
)
DELETE
(
mo "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=5"
exception none
)
DELETE
(
mo "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=6"
exception none
)
DELETE
(
mo "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=7"
exception none
)
DELETE
(
mo "ManagedElement=1,Equipment=1,Subrack=1,Slot=5,PlugInUnit=5,E1PhyPathTerm=8"
exception none
)
// Check the default state of the attributes
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
degradationIsFault 1
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
systemClockA 2
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
systemClockB 3
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefresource null null null null null null null null
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefpriority 99 99 99 99 99 99 99 99
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefactivity 99 99 99 99 99 99 99 99
)
CHECK
(
mo "ManagedElement=1,TransportNetwork=1,Synchronization=1"
exception none
syncrefstatus 99 99 99 99 99 99 99 99
)
////////////////////////////////////////////////////////////////
//
// Delete the test MO
//
////////////////////////////////////////////////////////////////
DELETE
(
mo "ManagedElement=1,Test=1"
exception none
)