//gmp_v4_autoconfig/bc40x0/supplementary_fans/EXP_01_n_Supplementary_Fans_SYS@@/main/5
ECHO ""
ECHO ""
ECHO "Configuring supplementary fan(s)"
ECHO "(Step 1/3)..."
ECHO ""
ECHO ""
ECHO "==>> Turning Plug&Play OFF"
SET
(
mo "ManagedElement=1,ManagedElementData=1"
exception none
autoConfigurationAllowed Boolean false
)
ECHO "==>> Waiting 30 seconds..."
WAIT 30000
ECHO ""
ECHO "==>> Setting Subrack=MAIN numberOfDenibDevices 0"
ECHO "(temporarily deactivates fan supervision)"
SET
(
mo "ManagedElement=1,Equipment=1,Subrack=MAIN"
exception none
numberOfDenibDevices Integer 0
)
ECHO ""
ECHO "==>> Removing Fan=MAIN-Upper_Fan from SwAllocation MGW_FAN"
ACTION
(
actionName deleteSlot
mo "ManagedElement=1,SwManagement=1,SwAllocation=MGW_FAN"
exception none
nrOfParameters 1
Ref "ManagedElement=1,Equipment=1,Subrack=MAIN,Fan=MAIN-Upper_Fan"
returnValue none
)
ECHO "==>> Deleting Equipment=1,Subrack=MAIN,Fan=MAIN-Upper_Fan"
DELETE
(
mo "ManagedElement=1,Equipment=1,Subrack=MAIN,Fan=MAIN-Upper_Fan"
exception none
)
ECHO ""
ECHO "==>> Creating SwAllocation MGW_EXTERNAL_FAN"
CREATE
(
parent "ManagedElement=1,SwManagement=1"
identity "MGW_EXTERNAL_FAN"
moType SwAllocation
exception none
nrOfAttributes 1
role String "MGW_EXTERNAL_FAN"
)
ECHO "==>> Adding Repertoire MGW_EXTERNAL_FAN to SwAllocation MGW_EXTERNAL_FAN"
ACTION
(
actionName addRepertoire
mo "ManagedElement=1,SwManagement=1,SwAllocation=MGW_EXTERNAL_FAN"
exception none
nrOfParameters 1
Ref "ManagedElement=1,SwManagement=1,Repertoire=MGW_EXTERNAL_FAN"
returnValue none
)
ECHO ""
ECHO ""
ECHO "Now continue with the next script..."
ECHO ""
//gmp_v4_autoconfig/bc40x0/supplementary_fans/EXP_02_1st_Supplementary_Fan_SYS@@/main/4
ECHO ""
ECHO ""
ECHO "Configuring supplementary fan(s)"
ECHO "(Step 2/3)..."
ECHO ""
ECHO ""
ECHO "==>> Setting Subrack=MAIN numberOfDenibDevices 0"
ECHO "(temporarily deactivates fan supervision)"
SET
(
mo "ManagedElement=1,Equipment=1,Subrack=MAIN"
exception none
numberOfDenibDevices Integer 0
)
ECHO ""
ECHO "Configuring 1st supplementary fan..."
ECHO ""
ECHO "==>> Creating Fan EXT_FAN_1"
CREATE
(
parent "ManagedElement=1,Equipment=1,Subrack=MAIN"
identity "EXT_FAN_1"
moType Fan
exception none
nrOfAttributes 4
fanNumber Integer 2
piuType Ref "ManagedElement=1,SwManagement=1,PiuType=KDU137557/3_R2"
userLabel String "Fan EXT_FAN_1"
administrativeState Integer 1
)
ECHO "==>> Setting Subrack=MAIN numberOfDenibDevices 3"
ECHO "(2 default fans + 1 supplementary fan)"
SET
(
mo "ManagedElement=1,Equipment=1,Subrack=MAIN"
exception none
numberOfDenibDevices Integer 3
)
ECHO ""
ECHO ""
ECHO "If this was the last supplementary fan to be configured,"
ECHO "now continue with the next level of expansion script, EXP_03..."
ECHO ""
ECHO "Otherwise continue with the next EXP_02_... expansion script."
ECHO ""
//gmp_v4_autoconfig/bc40x0/supplementary_fans/EXP_02_2nd_Supplementary_Fan_SYS@@/main/4
ECHO ""
ECHO ""
ECHO "Configuring supplementary fan(s)"
ECHO "(Step 2/3)..."
ECHO ""
ECHO ""
ECHO "==>> Setting Subrack=MAIN numberOfDenibDevices 0"
ECHO "(temporarily deactivates fan supervision)"
SET
(
mo "ManagedElement=1,Equipment=1,Subrack=MAIN"
exception none
numberOfDenibDevices Integer 0
)
ECHO ""
ECHO "Configuring 2nd supplementary fan..."
ECHO ""
ECHO "==>> Creating Fan EXT_FAN_2"
CREATE
(
parent "ManagedElement=1,Equipment=1,Subrack=MAIN"
identity "EXT_FAN_2"
moType Fan
exception none
nrOfAttributes 4
fanNumber Integer 3
piuType Ref "ManagedElement=1,SwManagement=1,PiuType=KDU137557/3_R2"
userLabel String "Fan EXT_FAN_2"
administrativeState Integer 1
)
ECHO "==>> Setting Subrack=MAIN numberOfDenibDevices 4"
ECHO "(2 default fans + 2 supplementary fans)"
SET
(
mo "ManagedElement=1,Equipment=1,Subrack=MAIN"
exception none
numberOfDenibDevices Integer 4
)
ECHO ""
ECHO ""
ECHO "If this was the last supplementary fan to be configured,"
ECHO "now continue with the next level of expansion script, EXP_03..."
ECHO ""
ECHO "Otherwise continue with the next EXP_02_... expansion script."
ECHO ""
//gmp_v4_autoconfig/bc40x0/supplementary_fans/EXP_03b_2_Supplementary_Fans_SYS@@/main/3
ECHO ""
ECHO ""
ECHO "Configuring supplementary fan(s)"
ECHO "(Step 3/3)..."
ECHO ""
// Creating Upper Fan
// Upper Fan is the last Fan in the chain i.e. with the highest fanNumber
// Fan fanNumber=4 (2 supplementary fans + 2 default fans)
ECHO "==>> Creating Fan MAIN-Upper_Fan"
CREATE
(
parent "ManagedElement=1,Equipment=1,Subrack=MAIN"
identity "MAIN-Upper_Fan"
moType Fan
exception none
nrOfAttributes 4
fanNumber Integer 4
piuType Ref "ManagedElement=1,SwManagement=1,PiuType=BFB14012/1_R1"
userLabel String "Fan MAIN-Upper_Fan"
administrativeState Integer 1
)
ECHO ""
ECHO "==>> Turning Plug&Play ON"
SET
(
mo "ManagedElement=1,ManagedElementData=1"
exception none
autoConfigurationAllowed Boolean true
)
ECHO "==>> Waiting 30 seconds..."
WAIT 30000
// Adding Fan EXT_FAN_1 to SwAllocation MGW_EXTERNAL_FAN
ECHO "==>> Adding Fan EXT_FAN_1 to SwAllocation MGW_EXTERNAL_FAN"
ACTION
(
actionName addSlot
mo "ManagedElement=1,SwManagement=1,SwAllocation=MGW_EXTERNAL_FAN"
exception none
nrOfParameters 1
Ref "ManagedElement=1,Equipment=1,Subrack=MAIN,Fan=EXT_FAN_1"
returnValue none
)
// Adding Fan EXT_FAN_2 to SwAllocation MGW_EXTERNAL_FAN
ECHO "==>> Adding Fan EXT_FAN_2 to SwAllocation MGW_EXTERNAL_FAN"
ACTION
(
actionName addSlot
mo "ManagedElement=1,SwManagement=1,SwAllocation=MGW_EXTERNAL_FAN"
exception none
nrOfParameters 1
Ref "ManagedElement=1,Equipment=1,Subrack=MAIN,Fan=EXT_FAN_2"
returnValue none
)
// Adding Upper Fan to SwAllocation MGW_FAN
ECHO "==>> Adding Fan MAIN-Upper_Fan to SwAllocation MGW_FAN"
ACTION
(
actionName addSlot
mo "ManagedElement=1,SwManagement=1,SwAllocation=MGW_FAN"
exception none
nrOfParameters 1
Ref "ManagedElement=1,Equipment=1,Subrack=MAIN,Fan=MAIN-Upper_Fan"
returnValue none
)
ECHO ""
ECHO ""
ECHO "Configuration of 2 supplementary fans finished"
ECHO ""
ECHO "Now create a new CV and set it as startable..."
ECHO ""
|