Moshell Workshop
Moshell Workshop
May 2013
Moshell Overview
› | Installed: 2009-09-24 |
› |------------------------------------------------------------------------|
› | |
› | 1 Execute (Install/Upgrade) |
› | |
› | 2 Remove (Deinstall) |
› | |
› | 3 System Status |
› | 4 Create System IPF File |
› | 5 Check IPF File |
› | |
› | |
› |------------------------------------------------------------------------|
› | l View latest Log |
› | t Toggle Trace (off) |
› | v Toggle Verbose (off) |
› | q Quit |
› |------------------------------------------------------------------------|
› Enter selection: q
› RNC11>
› RNC11> l-
› Log close: /home/eanzmagn/moshell_logfiles/logs_moshell/sessionlog/070613-
143817_RNC11.log}
› MGW1> h l+
› *******************************************************
› l+[m][m][s][o]/l-/l? [<logfile>]
› *******************************************************
› Open/close moshell logfiles.
› ...<cut>...
<<MoClass>> PlugInUnit
Attributes
PlugInUnitId MO identity attribute
Attribute types: Attribute flags:
- string - mandatory
administrativeState Configuration attributes
GET attribute - boolean - restricted
piuType (read & write) - long - readonly
userLabel - longlong - nonpersistent
SET attribute - float - nonotification
operationalState - enumeration
(only supported by State attributes
non-restricted config.
availabilityStatus - structure
hwTestStatus (readOnly)
attributes) - moRef
- sequence
pmProcessorLoad Performance Monitoring
CALL action attributes (readOnly)
Actions
manualRestart()
ManagedElement=1
Equipment=1
Subrack=MS
MOClass MO Identity
Slot=1
Subrack=ES-1
Slot=1
Slot=2
TransportNetwork=1
AtmPort=MS-6-1
› 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
› ***************************************************************************************
› dcg[meiasrfkx] [-m <rophours>] [-d <logdays>] [-b <boards|boardgroup>|all] [-k <nrdumps>] [-f <mofilter>] [<logdir>]
› ***************************************************************************************
› Fetch data for TRs/CSRs, according to the Data Collection Guidelines.
› The dcg command offers a number of options, it is possible to combine several options, eg: "dcgmsr"
› Exemple:
– dcgkfmeas
› *************************************************************
› st/lst [<moGroup>|<moFilter>|<proxy(s)>] [<state-filter>]
› *************************************************************
› Print state of MOs (operationalState and administrativeState when applicable).
› Examples:
› view state of all MO's
› >> st
› view all disabled MO's
› >> st . dis
› view all disabled MO's under "Equipment"
› >> lst equip dis
› view all MOs who are unlocked and disabled:
› >> st . 1.*0
› view all MOs who are locked:
› >> st . ^0
› view state of all MO's under "Sector" (in RBS)
› >> lst sector
› view state of all channels in all 3 cells in the RBS
› >> lst cell
› view state of all channels in cells starting with 120 (in RNC)
› >> lst cell=120
Regular expression
Words to match
port110 port120 port230 port..0 or port.*0
Regular expression
Words to match
port110 port120 port230 port[12][1-3]0
Regular expression
Words to match
Example:
Regular expression
Words to match
Regular expression
Words to match
port110 port120 port230 ^(port|line)[12][1-3]0$
line110 line120 line 230
› RNC11> h trun
› ***************************************************
› trun[is1] <moScript>|<http://ipaddress/script>
› ***************************************************
› Run a command file in EMAS/MoTester format.
› Purpose: To run a command file that contains moshell commands. No confirmations are needed in
the command file.
›
› RNC11 > h run
› ***************************************************************************
************
› run[x][1][1p][1r] [-l <lineNr>] <command file> [<var1>] [<var2>] ...
› ***************************************************************************
************
› Run a command file in moshell format.
› a) 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
› Lock (block)
› RNC11> bl Subrack=MS,Slot=5,PlugInUnit=1$
› Lock (parent and sons)
› RNC11> lbl utrancell=WYOLO1[123]
› Unlock (deblock)
› RNC11> deb 457
› Soft Lock
› Gives the resource some time to shutdown graciously,
handing over traffic to other resources.
› RNC11> bls 457
› ***************************************************************************************
› acl/lacl <moGroup>|<moFilter>|<proxy(s)> [<action-filter>]
› ***************************************************************************************
› Lists available MO actions.
› Examples:
› View all actions related to the synchronisation MO
› >> acl sync
› ------------------------------------------------------------------------------
› 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
› a) To execute an action
› WYM21_SP> h acc
› ***************************************************************************************
› acc[e][n]/lacc[e][n] <moGroup>|<moFilter>|<proxy(s)> <action>
› ***************************************************************************************
› 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
› Restart the node:
› >> acc 0 manualrestart
› Add a new synchronization reference:
› >> acc sync addSyncRefResource
› To see the list all global scripting variables currently set, use comand “pv”
– WYM21_SP> pv
– $ipaddress = 10.15.154.51
– $jarxmldir = /home/er804408/jarxml
– $logdir = /home/er804408/moshell_logfiles/logs_moshell
– $mibprefix =
SubNetwork=ONRM_ROOT_MO_R,SubNetwork=RNCJAIB,MeContext=WYM21_SP
– $mobrowser_pid = 28923
– $momversion = RBS_NODE_MODEL_U_4_95_COMPLETE
– $moshell_version = 16.0c
– $moshelldir = /home/er804408/moshell
– $nodename = WYM21_SP
– $nodetype = RBS
– $password = *******
Change_RETs_ARETU_&_RETU.mos