This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
2 MIB ACCESS.................................................................................................................................................................................................................................302.1 MO/MOM concept..................................................................................................................................................................................................................302.2 Browsing MOM from web......................................................................................................................................................................................................322.3 Browsing MOM from moshell................................................................................................................................................................................................342.4 Checking the node’s MOM version........................................................................................................................................................................................502.5 MIB structure...........................................................................................................................................................................................................................512.6 MO services.............................................................................................................................................................................................................................532.7 Connecting to MIB..................................................................................................................................................................................................................542.8 MO addressing.........................................................................................................................................................................................................................55
2.8.1 proxy id(s).......................................................................................................................................................................................................................552.8.2 mo-filter...........................................................................................................................................................................................................................562.8.3 link handler, board group................................................................................................................................................................................................632.8.4 MO-group........................................................................................................................................................................................................................63
3 MO COMMANDS..........................................................................................................................................................................................................................633.1 lt command..............................................................................................................................................................................................................................63
Finn Magnusson 2008-06-25 rev PA43 1/330
`3.2 pr command.............................................................................................................................................................................................................................633.3 get commands..........................................................................................................................................................................................................................643.4 st command..............................................................................................................................................................................................................................713.5 set command............................................................................................................................................................................................................................873.6 bl/deb command......................................................................................................................................................................................................................973.7 cr command.............................................................................................................................................................................................................................993.8 acl/acc command...................................................................................................................................................................................................................1003.9 run command.........................................................................................................................................................................................................................1103.10 trun command........................................................................................................................................................................................................................1113.11 del/rdel/u+/u- commands.......................................................................................................................................................................................................1123.12 rset command.........................................................................................................................................................................................................................1213.13 al command...........................................................................................................................................................................................................................1233.14 Aborting an MO printout.......................................................................................................................................................................................................1263.15 Hidden attributes and actions................................................................................................................................................................................................127
3.15.1 Complete MOM.............................................................................................................................................................................................................1273.15.2 Force commands............................................................................................................................................................................................................129
3.16 CM/FM logs and notifications...............................................................................................................................................................................................1333.17 MO-groups commands..........................................................................................................................................................................................................134
3.17.1 Method 1 : based on the distinguished name of the MO...............................................................................................................................................1353.17.2 Method 2a: based on the attribute value of the MO, using “ma” command.................................................................................................................1373.17.3 Method 2b: based on the attribute value of the MO, using “hget” command...............................................................................................................1393.17.4 Method 2c: based on the attribute value of the MO, using “st” command...................................................................................................................1413.17.5 Method 3: adding a referenced MO...............................................................................................................................................................................1423.17.6 Method 4: from lk command.........................................................................................................................................................................................1443.17.7 Method 5: from pdiff command....................................................................................................................................................................................1453.17.8 Two-step examples:.......................................................................................................................................................................................................145
4 PM COMMANDS.........................................................................................................................................................................................................................1524.1 PM access..............................................................................................................................................................................................................................1524.2 Counter based measurements................................................................................................................................................................................................159
4.2.1 Reading individual counter values from pget................................................................................................................................................................1594.2.2 Scanner handling...........................................................................................................................................................................................................1624.2.3 Reading individual counter values from ROP files.......................................................................................................................................................1714.2.4 Processing counter values according to pre-defined KPI formulas...............................................................................................................................180
5.1 CPP HW architecture............................................................................................................................................................................................................2025.1.1 Subrack structure...........................................................................................................................................................................................................2025.1.2 Subrack Connections.....................................................................................................................................................................................................2045.1.3 Internal addressing of the processors............................................................................................................................................................................2055.1.4 Inter-processor communication.....................................................................................................................................................................................209
5.2 OSE shell access....................................................................................................................................................................................................................2105.3 Sending COLI commands from moshell...............................................................................................................................................................................2175.4 Using board groups................................................................................................................................................................................................................2275.5 File handling..........................................................................................................................................................................................................................2355.6 Tracing...................................................................................................................................................................................................................................238
5.6.1 te commands..................................................................................................................................................................................................................2385.6.2 target monitor................................................................................................................................................................................................................249
5.7 Translation of COLI printouts...............................................................................................................................................................................................2515.7.1 Translation of CXC numbers.........................................................................................................................................................................................2515.7.2 Translation of cause codes in T&E log.........................................................................................................................................................................2545.7.3 Parseline utility..............................................................................................................................................................................................................256
Moshell is a suite of tools for O&M of CPP-based nodes.
CPP is the Connectivity Packet Platform on which are based the following nodes: RNC, RBS, MGW, RXI.All these nodes have in common the CPP part which handles functionality for core and transport.The application part differs between these nodes and handles the functionality that is specific for each of these nodes.
The following O&M services can be accessed in the node: - OSE shell (a.k.a COLI): provides a set of commands on each individual board. Mainly geared towards trouble-shooting, not intended for
configuration.- File service: for transfer of files between to/from the node (SW files, logfiles, ROP files, etc)
Finn Magnusson 2008-06-25 rev PA43 4/330
`- MIB (Managed Information Base): the database containing all the MOs (Managed Objects) of the node. MOs are used for configuration and
trouble-shooting of the resources in the node.- Scanners: the database containing all the Performance Management Scanners of the node. Scanners are used for defining the contents of the
Performance Measurements (i.e. to specify which counters/events shall be logged in the ROP files).
The following protocols are used for accessing these services:- http- unsecure protocols (unencrypted): telnet, ftp, iiop- secure protocols (encrypted): ssh, sftp, ssliop
Whether to use the secure or unsecure protcols will depend on the security level of the node (refer to CPP core presentation). http is used on all security levels even though it is unsecure. The number in brackets is the TCP port used for each protocol.
Finn Magnusson 2008-06-25 rev PA43 5/330
`1.2 Installing moshell
Download the installation package from http://utran01.epa.ericsson.se/moshell- put the installation package (moshellXX.zip) in your home directory- unzip –o moshellXX.zip- bash moshell_install
Or: Run directly from /vobs/iov/rnc/bin/moshell, using following clearcase rule in the config spec:element /vobs/iov/rnc/bin/moshell/... /main/LATEST
1.3 Moshell package structure
eanzmagn_1 eanzmagn@srld7244:=> ls -l /home/eanzmagn/moshell/
drwxr-xr-x 6 eanzmagn rnd 4096 Feb 5 07:04 commonjars/ (folder containing binary files and jar files)drwxrwxrwx 3 eanzmagn rnd 16384 Feb 20 18:34 jarxml/ (folder containing MOM files and jar files)drwxr-xr-x 8 eanzmagn rnd 4096 Oct 8 01:07 examples/ (example files)
-rwxr-xr-x 1 eanzmagn rnd 31223 Feb 5 07:04 moshell* (the moshell utility)-rwxr-xr-x 1 eanzmagn rnd 12256 Feb 5 07:04 mobatch* (the mobatch utility)-rwxr-xr-x 1 eanzmagn rnd 356176 Feb 5 07:04 README* (moshell user guide, in text format)
moshell <nodeip> <commands> eg: moshell 10.1.128.17 ‘lt all ; get ; lh all te log read ‘ moshell <nodeip> <commandfile> eg: moshell 10.1.128.17 ./commandfiles/commands.txt
- in offline mode (to browse a node MIB offline): moshell <modump> , eg: moshell ./logs/rnc10_get.log
The modump can be taken with: l+ ; lt all ; kget ; l- (if an moshell session is already open to the node)or : moshell ipaddress ‘lt all ; kget’It is also possible to use “get” or “get all” instead of “kget”.
For more information on how to start moshell, type “moshell” on its own:
The offline mode is for browsing the mom, the help, or parsing logfiles/xml files using functions as "lg", "pmr", etc.It is also possible to browse an MO-dump in offline mode. The MO-dump shall be created when connected to a node, using commands "lt all" and "get" (or "kget")
The "-v" option is for setting uservariables from the command line. See README file chapter 0.2 for more info.The "-v" option can also be used for setting scripting variables from the command line. In this case, the "$" sign in front of the variable name should be omitted. See README chapterThe "-n" option is for disabling the check of IP contact at startup.
The argument can be: * <site-name> : refers to the node's name as defined in the ipdatabase file (whose path is defined in moshell file).
Finn Magnusson 2008-06-25 rev PA43 7/330
` * <host-name> : refers to the node's name as defined in DNS. * <ip-address>: raw ip address * <ior-file> : an iorfile that has been stored on the workstation.
Examples, online mode: * moshell 10.121.7.33 * moshell -v security_method=2,sa_credential=~/sam.pbe,sa_password=oemas 10.1.128.17 * moshell -v telnet_port=2323,http_port=8080 rnc3 * moshell rbs28 ~/tools/moshell/cmdfiles/runSwTest.cmd * moshell bsc5 'vii ; cabslxrd ; lh mp te log read | grep ERROR ; lt plug ; st all dis ; get all all ' * moshell 10.121.2.37 'vii ; lh mp te log read | grep ERROR ' ~/moshell_logfiles/nodeTest.logExamples, offline mode: * moshell ~/moshell_logfiles/logs_moshell/sessionlog/RNC37.log #interactive mode * moshell ~/modumps/mgw1_kget.log 'pr ; get ; st ; inv' #script mode
1.5 Moshell help
Check the user guide (PDF/HTML format) or training material available on the moshell webpage: http://utran01.epa.ericsson.se/moshell
----------------------------------- BASIC MO COMMANDS ----------------------------------mom[tcd] Print description of MO classes, CM/FM attributes, actions, enums and structs.lt/ltc[1-9] Load MO tree (full or partial) and build proxy table.lc[1-9]/lcc Load MO tree (full or partial) and build proxy table.lu/llu Unload MOs from MO tree.pr/lpr Print MO LDNs and proxy ids for all or part of the MO tree currently loaded in moshell.ma/lma Add MO(s) to an MO group.mr/lmr Remove an MO group or remove MOs from an MO group (MOs will NOT be deleted, only the group).mp Print all defined MO groups.get/lget Read CM/FM attribute(s) from MO(s).hget[c]/lhget[c] Read CM/FM attribute(s) from MO(s), print horizontally one line per MO (instead of one line per attribute).kget/lkget Display CM/FM attributes in exportable printout format.fro/lfro[m] Read MAO data of an MO and/or froid of the MO. Data read from SQL tables motype_r1 and modata_r2.st/lst Print state of MOs (operationalState and administrativeState when applicable).prod Print productData of MO(s).lk/llk View all MO's linked to an MO, and their states (admState and opState).lko/llko The old lk. Messier than lk but supports a wider range of MO classes.set[m]/lset[m] Set an attribute value on one or several MO's.rset/lrset Set attribute value on a restricted attribute or change the MOid of an MO.bl[s]/lbl[s] Lock or soft-lock MO(s).deb/ldeb Unlock MO(s).acl/lacl Lists available MO actions.acc/lacc Execute an MO action.cr Create an MO.del/ldel Delete MO(s).rdel/lrdel Delete MO(s) together with children and reserving MOs.u+[s]/u-/u?/u! Handling of undo mode (for undo of del/rdel/set commands). Can be used for generation of MO scripts as well.run Run a command file in moshell format.trun[i] Run a command file in EMAS/MoTester format.ctrl-z Abort an MO command or a "for" loop. Type "touch /tmp/<stopfile>;fg" to resume the moshell session.pol[s][h][c][u] Poll the node until the MO service is up or until an operation has completed.re[i] Disconnect and reconnect to the CM service (mobrowser) and/or the PM service (pmtester).getmom Check the MOM version currently stored on the node.parsemom Parse an xml MOM file.flt/fltc Load proxys for an MO type that is not defined in the MOM. ("Force" lt/ltc).ld Load one MO from the tree and add to the proxy table.fget/lfget Read attributes that are not described in the MOM ("Force" get).sget/lsget Read CM/FM attributes from MO(s), one by one ("Slow" get).fset/lfset Set an attribute that is not described in the MOM ("Force" set).
Finn Magnusson 2008-06-25 rev PA43 11/330
`facc/lfacc Perform actions that are not defined in the MOM ("Force" action).----------------------------------- OTHER MO COMMANDS ----------------------------------cvls/cvmk/cvms/cvset/cvrm/cvcu/cvget/cvls1 CV backup handling: list, make local, make remote, remove, setstartable.inv[hr] Complete HW/SW inventory. Includes information about RPUs, licensing, JVM, devices, XPs, ISL, etc.cab[slxradgtm] Display of miscellaneous COLI printouts relating to hw, sw, restarts, leds, cpu load, errors, disk/ram usagestc[p][r] Display state and configuration of AtmCrossConnections.std Display state and configuration of devices (RNC and MGW only).stv[b][r] Display state, user, and bandwidth usage for ATM ports and channels.stt[r] Display state and user of Physical Ports and Ds0Bundles.hc Run a general healthcheck on the node.dcg[msie] Fetch data for CSRs, according to the Data Collection Guidelines.diff/ldiff Parameter auditing or MO dump comparisons.str[12ft] Print status of the IubLinks/AbisLinks and their associated Cells and Channels (RNC/BSC only).lki Resource usage and configuration of IubLinks (RNC only).remod[u][2] Remodule an IubLink (RNC only).tg[r][c][d] Print Resource Object information for all MOs in LmCell (RNC only).uer[d][t] Print UE context data (serving or drifting) for all active calls (RNC only).ced[h][r] Print dynamic cell data or capacity usage (RNC only).al[atkc] Print the list of active alarms. Acknowledge/Unacknowledge an alarm.lg[aevsyuoldhmircf] Fetching and/or processing of node logs (alarm, event, availability, system, etc)----------------------------------- OTHER COMMANDS ----------------------------------uv Print or change moshell configuration settings (also called "user variables").pv Print scripting variables.!/l Execute a unix command on the PC/workstation.l+[m][m][s][o]/l-/l? Open/close moshell logfiles.ose/coli command Send a COLI command to the node's OSE shell. Type "h ose" for syntax help and "?" to view available commands.bo[r]/ba[swdp]/br[wd]/be[0-50]/bp Manage board groups that can be used for running COLI commands on multiple boards.lh Run COLI commands on all boards of a board group.mon/mon+/mon-/mon? Start/stop/check the target monitor server on the node and/or start the monitor client for one or more board Group(s).sql+/sql-/sql? Start/stop/check the SQL client on the node (CXC1325608).pgu[c][f][r] Program Upgrade. For STP use only, eg, to load black LMs.ftree[f] Recursive listing of a directory on the file system of the node or the workstation.ftget[c]/ftput[c] Transfer files or directories to/from the node, using ftp or sftp.htget Transfer files from the node using http.edit Edit a file on the node.fclean[f|ff|d|e] Removal of obsolete loadmodules OR recursive removal of a directory on the node.hi Print history of moshell commands entered during the current session.lmid[c] Print translation of loadmodule product number or T&E error codes.p/w/pw/b Change moshell prompt and/or window title.prox Toggle display of proxy identities in printout of get <mo> <attribute> command.col Toggle display of colors.ul Toggle display of userlabel in st/lst and pget/lpget printout.conf[bld] Toggle confirmation on various MO commands.
Finn Magnusson 2008-06-25 rev PA43 12/330
`gs/gsg Toggle display of old/new attribute value in set/bl/deb commands.ip2d/d2ip Convert an IP address into the format used in the fRO (sql database) or vice-versa.h2d/d2h Convert an integer to hexadecimal or viceversa.h2b/b2h Convert a binary to hexadecimal or viceversa.wait Specify a delay in hrs, mins, secs, or rops. Similar to the unix "sleep" command (scripting).return Exit from a command file without exiting from moshell (scripting).print Print a line or variable (scripting).alias/unalias Print or define command aliases.q/by/exit/quit Exit moshell.----------------------------------- PM COMMANDS ----------------------------------pmom[acd]/lmom[c] Print description of PM counters (pmom) or log attributes (lmom, CDMA only).pget/lpget Read PM attribute(s) from MO(s).spget/lspget Read PM attribute(s) one by one ("slow pget").hpget[c]/lhpget[c] Read PM attribute(s) from MO(s), print horizontally one line per MO (instead of one line per attribute).pdiff/lpdiff Print incrementation of PM attributes.pmx[hfdn] Display counter values, extracted from the statistics ROP files.pmr[ag] Produce PM KPI reports, based on counter values in statistics ROP files and formulas in CPI documentation.pme[fd][cgu] Fetch/decode event ROP files (RNC/RBS only).pst List all PM scanners and their state.pgets[n] Print scanner contents.pcr[cfd]/lpcr[cfd] Create a statistics scanner.pbl Suspend a scanner.pdeb Resume a scanner.pdel Delete a scanner.emom Display list of events available for each kind of event-based scanner.pset[d] Set the contents of an event-based scanner (RNC/RBS only).----------------------------------- HELP CHAPTERS ----------------------------------0 Installation, security, and user settings1 Revision History2 Tutorial3 Command syntax, regular expressions4 Command descriptions5 Lazy6 Scripting7 Utilities8 Server Maintenance9 Offline Mode
Type: - h <command> to view command description, e.g: h pget - h <pattern> to view commands whose description match a string, e.g: h change.*prompt - h <chapter> to view a chapter, e.g: h 3
Check command syntax and command description with “h <command>”
Finn Magnusson 2008-06-25 rev PA43 13/330
`
RNC11> h stt
*******************************************************stt[r] [<Filter>] [<stateFilter>]*******************************************************Display state and user of Physical Ports and Ds0Bundles.
Printout format: - PUI: the first digit represents the state of the PhysicalPort/Ds0Bundle. The second digit (if present) represents the state of the User. The third digit (if present) represents the state of the ImaGroup. L=locked, 1=enabled, 0=disabled. - CG/K.L.M: circuit group and K.L.M (for channelised STM-1)
Options: - r: to refresh the data (ie. re-read from node).
Arguments: - the first argument matches on the whole line - the second argument matches only the state field ("PUI")
Examples:>> stt ms-26-1 --> print all ports and their users matching ms-26-1>> stt . 0|L --> print all ports and their users who have state disabled or locked
If the command is not found, it prints a list of commands that contain the word in the command description
OFFLINE> h counter
Following commands match that word in the command description (type "h <command>" for more info on each command):
trun[i] Run a command file in EMAS/MoTester format.stc[p][r] Display state and configuration of AtmCrossConnections.pmom[ac]/lmom[c] Print description of PM counters (pmom) or log attributes (lmom, CDMA only).hpget[c]/lhpget[c] Read PM attribute(s) from MO(s), print horizontally one line per MO (instead of one line per attribute).pdiff/lpdiff Print incrementation of PM attributes.pmx[hfdn] Display counter values, extracted from the statistics ROP files.pmr[ag] Produce PM KPI reports, based on counter values in statistics ROP files and formulas in CPI documentation.pgets[n] Print scanner contents.pcr[cfd]/lpcr[cfd] Create a statistics scanner.pbl Suspend a scanner.
Print help for OSE SHELL commands with “?” command. These commands also described in 1/1553-CXA1103151 or 1553-CXA104203 (CPP) and 18/1551-AXD10503/1 (RNC). See http://utran01.epa.ericsson.se/moshell/training/references/cpp and http://utran01.epa.ericsson.se/moshell/training/references/rnc
RNC10> ?
$ ?Command Syntax Description. . <command-file> execute commands from file? ? [<command> ...] print syntax and descr. of commandsCentralRnh_pm_counter_disable CentralRnh_pm_counter_disable <one or more counterIds> disable trace for one or more counterIds in this load module. The counterIds are either integer values or symbolic counter names (as defined in roamIfPmCounter.h) separated by blank or tab. Counter names will be matched using substring matching so e.g the name ROAM_UTRANCELL will match all counters defined for this MOCentralRnh_pm_counter_disableall CentralRnh_pm_counter_disableall disable trace for all counterIds in this load moduleCentralRnh_pm_counter_enable CentralRnh_pm_counter_enable <one or more counterIds> enable trace for one or more counterIds in this load module. The counterIds are either integer values or symbolic counter names (as defined in roamIfPmCounter.h) separated by blank or tab. Counter names will be matched using substring matching so e.g the name ROAM_UTRANCELL will match all counters defined for this MOCentralRnh_pm_counter_enableall CentralRnh_pm_counter_enableall enable trace for all counterIds in this load moduleCentralRnh_pm_counter_enabled CentralRnh_pm_counter_enabled print each enabled counterId (or the string "all" if all are enabled)CentralRnh_pm_counter_print CentralRnh_pm_counter_print <zero or more counterIds> print all counter names that match the specified counterIds. The counterIds are symbolic counter names (as defined in roamIfPmCounter.h) separated by blank or tab. Counter names will be matched using substring
`matching so e.g the name ROAM_UTRANCELL will match all counters defined for this MO. If no counterIds are specified then all defined counter names will be printedCentralRnh_pm_event_disable CentralRnh_pm_event_disable <one or more eventIds> disable trace for one or more eventIds in this load module. The eventIds are either integer values or symbolic event names (as defined in roamIfPmEvent.h) separated by blank or tab. Event names will be matched using substring matching so e.g the name ROAM_EXTERNAL_NBAP will match all external events defined for NBAP
RNC11> ? pglist
$ ? pglistpglist [-e] list programs [with environment]$
1.6 Configuration settings and environment variables
Printed with the commands “uv” and “pv”.Very important to include the “uv” and “pv” printouts when reporting problems on moshell !!
1.6.1 Configuration settings
The “uv” printout shows the current values of the “uservariables”, ie. the moshell settings which can be changed by the user.
The description of each uservariable and default values are shown in the moshell file. See following extract from moshell file:
Finn Magnusson 2008-06-25 rev PA43 17/330
`.....<cut>....#================================================================================# IPDATABASE FILE : used by mobatch, telbatch, swup, swstat and cvms.# see example in moshell/examples/ipdatabase#================================================================================ip_database=$sitefiledir/ipdatabase
#================================================================================# CORBA SECURITY METHOD:# 1 = uses host credential (only works with corba_class=1)# 2 = uses stand-alone credential (requires java 1.3.1 or higher)#================================================================================security_method=1
#================================================================================# PATH TO HOST CREDENTIAL# This file is required to handle Corba Security method 1# Can be generated by PKS server or found on node (in /c/java/host.p12)# or found in Ranos (in /etc/opt/ericsson/nms_cif_security/certificates/host.p12 )# This file has an unlimited lifetime.#================================================================================credential=$commonjardir/host.p12
#================================================================================# PATH TO STAND-ALONE CREDENTIAL and stand-alone password# This file is required to handle Corba Security method 2# Can be generated by SLS server or from EMAS.# This file has a limited lifetime, set by SLS server.#================================================================================sa_credential=$commonjardir/sam.pbesa_password="oemas"
#===============================================================================# OSE-shell/ftp security (1 to use ssh/sftp, 0 to use telnet/ftp)#===============================================================================secure_shell=0secure_ftp=0
#===============================================================================# Timeouts for IP connections (http/telnet/ftp/ssh/sftp), in seconds.# * ip_connection_timeout : Disconnects if the connection couldn't be established within that time.# * ip_inactivity_timeout : Disconnects if no output is received from the server within that time.# * ftp_timeout : Maximum time allowed for ftp/http transfers#===============================================================================ip_connection_timeout=20ip_inactivity_timeout=45ftp_timeout=600
#===============================================================================# Inactivity timeout (in seconds):# Moshell exits if no user input arrives within this time.#===============================================================================inactivity_timeout=43200
#==============================================================================# Http port: 80 for Cello, xx80 for CppEmu where xx is the offset (usually 40)# Telnet port: 23 for Cello, xx23 for CppEmu where xx is the offset (usually 40)# Ftp port: 21 for Cello, xx21 for CppEmu where xx is the offset (usually 40)# Secure port: used for ssh/sftp. a different value can be used in case of RSG port forwardings#==============================================================================http_port=80telnet_port=23ftp_port=21secure_port=22.....<cut>....
Uservariables can be changed in the following way:
a) From “uv” command (the change will only apply for the current session)
RNC10> uv secure_shell
Finn Magnusson 2008-06-25 rev PA43 19/330
`secure_shell = 0
RNC10> uv secure_shell=1
secure_shell=1
b) Using the “-v” option when starting moshell (the change will only apply for the current session)
e) By editing the ipdatabase file (whose path is set in the uservariable ip_database, see chapter below).
Note: it is also possible change a uservariable inside the moshell file but it is not recommended since the change will be undone at the next moshell upgrade.
1.6.2 Environment variables
The “pv” printout shows all environment variables and scripting variables.Environment variables are set by moshell at startup and cannot be changed by the user. They keep some important parameters of the current moshell session (ipaddress of the node, process ID of the session, path to the folder containing logs and temporary logs, etc)
Scripting variables look exactly the same as environment variables but can be set by the user for scripting purposes.More information on scripting in chapter 6
1.7 Aliases
Print currently defined aliases
RNC11> alias
err : te log read |grep ERROR:ll : llogllc : llog -clll : llog -lombat : run /home/eanzmagn/moshell/commonjars/scripts/ombat/ombat.mospcrd : run /home/eanzmagn/moshell/commonjars/scripts/pcrd.mospsetd : run /home/eanzmagn/moshell/commonjars/scripts/psetd.mosstart : run /home/eanzmagn/scripts/moshell_start.mosteall : te e check error enter return info trace1 trace2 trace3 trace4 trace5 trace6 trace7 trace8 trace9 state_change bus_send bus_receive rec_sig send_sig param interface object user1 user2 user3 user4tec : te log clearter : te log read
Define an alias for the current session
RNC11> alias start run /home/eanzmagn/scripts/moshell_start.mos
RNC11> alias start
Finn Magnusson 2008-06-25 rev PA43 21/330
`start: run /home/eanzmagn/scripts/moshell_start.mos
Define an alias permanently
** NONE ** eanzmagn@srld7243:=> cat ~/.moshellrc....<cut>...alias start run /home/eanzmagn/scripts/moshell_start.mos...<cut>...
1.8 Ipdatabase
The ipdatabase is a file where you can store for each node of the network: - nodename (arbitrary)- ipaddress or dns name- password (optional)- any uservariables or scripting variables that should be set before connecting to the node (optional)
The format of the ipdatabase file is like this:nodeName ipAddress/DNSname password uservariables/scriptingvariables
When starting moshell, it looks in the list of ipdatabase files to find a matching entry for that entry. If an entry is found, it uses this to know the ipaddress, the node password, and set any associated uservariables and/or scripting variables.
** NONE ** eanzmagn@srld7244:=> moshell rbs3206
##################################################################### Welcome to MoShell 7.0q ## Finn Magnusson, Jan Pettersson ## http://utran01.epa.ericsson.se/moshell ## Contact: [email protected] ## [email protected] #####################################################################
Checking ip contact...OK
HELP MENU : hMO COMMANDS : mOTHER COMMANDS : nPM COMMANDS : pQUIT : q
RBS3206> vii
070916-04:41:32 rbs173. sw.ericsson.se 7.0q stopfile=/tmp/17661Trying password from ipdatabase file: /home/eanzmagn/moshell_sitefiles/ipdatabase...$ vii----- VII SERVER INFO ----- registered clients: client FAULT LOAD_START NO_POWER BOOTTEST MISSING_RESOURCE BOARD_LOCKED BOARD_BUSY SHUTDOWN ---------- ----- ---------- -------- -------- ---------------- ------------ ---------- -------- 0x00010351 NO NO NO NO NO NO YES NO
LED State GREEN CLS_LEDI_ON RED CLS_LEDI_OFF YELLOW CLS_LEDI_FLASHING_16HZ$
RBS3206> uv username
username = rbs3206
Finn Magnusson 2008-06-25 rev PA43 23/330
`1.9 Mobatch
- Mobatch is used for running moshell sessions on several nodes in parallel. - The list of nodes must be defined in a “sitefile”. - Each node can be listed by its node name or ipdaddress. - There is no limit on how many nodes can be listed inside a sitefile. - Mobatch will execute one moshell session per node listed in the sitefile. - A node listed in the sitefile does not have to be defined in the ipdatabase but if it is, it allows to use the node name instead of the ipaddres and avoids to have to specify the password.
Example: the sitefile contains 3 nodes: two are listed in an ipdatabase file, therefore we can use their nodename. The third one is not listed in any ipdatabase file, we use its ipaddres. It is also possible to set uservariables/scripting variables inside the sitefile.
Up to 10 sessions will run in parallel at any time. This limit can be changed with the “-p” option. If a session takes more than 20 minutes to complete it will be killed. This timeout can be changed with the “-t” option.
Sitefile = moshell_sitefiles/rns1. Number of sites = 3Command = lt all ; kgetTimeout set to 20 minutes (default value)Maximum number of parallel processes set to 10 (default value)
Logfiles stored in /home/eanzmagn/moshell_logfiles/logs_mobatch/2007-09-16/rns1/14-38
Rule for setting the limit on the number of parallel sessions (with “-p” option) - Count with approximately 70-80 MB of RAM memory per moshell session. - Check the amount of free RAM memory in the workstation by using the “top” command (unix/linux) or task manager (windows)% toplast pid: 27824; load averages: 0.01, 0.01, 0.01 14:34:3582 processes: 79 sleeping, 2 zombie, 1 on cpuCPU states: 97.4% idle, 0.0% user, 0.9% kernel, 1.7% iowait, 0.0% swapMemory: 8192M real, 6193M free, 447M swap in use, 14G swap free
The higher you set this limit, the quicker mobatch will complete but it requires more available RAM memory from the PC/workstation. Example% mobatch –p 20 moshell/sitefiles/rns2 'al ; lt plug ; st ; vii '
Changing the default timeout:% mobatch –t 60 moshell/sitefiles/rns2 verylongcommandfile
The commands to run on each node can either be :
a) specified on the line (separated with semicolon)
% mobatch moshell_sitefiles/rns1 ‘lt all ; kget’
Finn Magnusson 2008-06-25 rev PA43 25/330
` b) listed in a single command file common to all nodes
% ls –l moshell_commandfiles/rns1_files/-rw-rw-rw- 1 eanzmagn mkgroup-l-d 58608 Mar 21 2006 rnc11.mos-rw-rw-rw- 1 eanzmagn mkgroup-l-d 29244 Mar 21 2006 rbs3206.mos-rw-rw-rw- 1 eanzmagn mkgroup-l-d 29244 Mar 21 2006 146.31.72.191.mos
For more information on mobatch, see user guide and online help by typing mobatch on its own:
% mobatchUsage: mobatch [options] <sitefile> <command(s)>|<commandfile>|<commanddir> [logdirectory] Purpose: To send moshell commands to several nodes in parallel.
Arguments: - The first argument is the sitefile. The sitefile contains the list of sites to connect to. Each line in the sitefile contains: * the IP/DNS addresses and/or site names whose IP address are defined in the IP database. * optionally: the uservariables/scriptingvariables to input with -v option. See example of sitefile and ipdatabase in: moshell/examples/mobatch_files/ - The second argument is the commmand or commandfile. See example of commands below and commandfile in moshell/examples/mobatch_files If a directory is given, then a different commandfile will be used for each node: the name of each commandfile should be <node-name>.cmd or <node-name>.mos the <node-name> should be the same as given in the sitefile. example: node-name is rbs602 ==> commandfile should be rbs602.cmd or rbs602.mos - The third argument (logdirectory) is optional. If no logdirectory is specified, a default one will be used. Options: - t <minutes> Specify the number of minutes before timing out. Set to 0 for no timeout (default=20). - p <processes> Specify the maximum number of moshell sessions that will run in parallel (default=10) - v <userVariables> Specify moshell uservariables. Type "moshell" on its own for more info about this option.
The command line uses the Readline library from bash. Here are some of the supported function keys: right arrow or Ctrl-f move forward one character left arrow or Ctrl-b move backward one character up arrow previous command in history buffer down arrow next command in history buffer backspace delete one character backward Ctrl-d or <del> delete one character forward Ctrl-a or <home> go to beginning of line Ctrl-e or <end> go to end of line Ctrl-u erase all characters backward Ctrl-k erase all characters forward Alt-f move forward one word Alt-b move backward one word select or select + ctrl-<insert> copy to clipboard <insert> or shift-<insert> paste from clipboard
Useful: by typing the beginning of a command and then use the up/down arrow key, the command completion will only match the commands from history that start with this string
Note: when the prompt is bold, the long commands will not wrap around correctly. Type “b” to disable bold prompt. Or set prompt_highlight to 0.
RNC11> uv prompt
prompt_color = 1prompt_highlight = 1
Finn Magnusson 2008-06-25 rev PA43 27/330
`1.11Support commands
hi : to print the command history l+/l- : to log the output to a logfile (l+m: “mute” ---> no output to screen, only to file. l+o: “overwrite” --> logfile is overwritten) l/! : to run a command locally on the workstation without having to exit from moshell or open a new window ip2d/d2ip, h2d/d2h, b2h/h2b : to convert to/from decimal to hex or ip
Unix regular expressions are used frequently in the moshell command syntax, therefore we give a short description here, for those not already familiar with them.Unix regular expressions allow to perform pattern matching on text strings. A regular expression is like a text string but some characters have a special meaning. These characters are called meta-characters.
More info on google “Regular expressions”
Some of the most used meta-characters are:
Dot, star, and plus signs . --> matches any single character * --> matches 0 or more occurences of the previous character + --> matches 1 or more occurences of the previous characterE.g:
Finn Magnusson 2008-06-25 rev PA43 30/330
` a* matches nothing, or a or aa or aaa, etc. a+ matches a, or aa, or aaa, etc. .* matches 0 or more occurrences of any character .+ matches 1 or more occurrences of any character
Example: Words to match Regular expressionport110 port120 port230 port..0 or port.*0
Square brackets [] --> matches a character or range of characters inside the brackets [^] --> NOT matching a character or range of characters inside the bracketsE.g: [a-z] matches all letters from a to z [0-9] matches all numbers from 0 to 9 [abe] matches letters a,b, and e [^3] matches any character but not 3
Example: Words to match Regular expressionport110 port120 port230 port[12][1-3]0
Or sign | --> ORE.g: 3|5|6 matches 3 or 5 or 6 utrancell|iublink
Example: Words to match Regular expressionport110 port120 port230 line110 line120 line230 port[12][1-3]0|line[12][1-3]0
Anchor characters ^ --> marks the beginning of the text string $ --> marks the end of the stringE.g: ^utrancell matches utrancell but not externalutrancell slot=8,pluginunit=1$
Finn Magnusson 2008-06-25 rev PA43 31/330
` ^a.*4$ matches a string beginning with a and finishing with 4, with any character in the middle
Example: Words to match Regular expressionport110 port120 port230 ^port[12][1-3]0$
Round brackets, for groupingE.g: cell(11|23|45) matches cell11 or cell23 or cell45 (same as: cell11|cell23|cell45 ) [^(utrancell)] matches any string except a string matching “utrancell”
Example: Words to match Regular expressionport110 port120 port230 line110 line120 line 230 ^(port|line)[12][1-3]0$
Negation ! --> negation (not a real meta-character but treated as a meta-character in moshell)E.g: !utrancell|loadmodule matches any string except a string matching “utrancell” or “loadmodule”
2 MIB ACCESS
2.1 MO/MOM concept
The Managed Objects (MO) are used to modelize resources in the node so they can be easily accessed by the O&M engineer for configuration, trouble-shooting and performance management purposes. Each MO instance belongs to an “MO Class”, eg: PlugInUnit, Program, AtmPort, etc. An MO Class is used to modelize all resources of the same type.
MOs have attributes that store values used for:- configuration management (eg: administrativestate, externalVci, etc.) . Stored permanently in the database copy on the harddisk.- fault management (eg: availabilityStatus, operationalState, etc.) . Not stored permantenly.- performance management (eg: pmReceivedAtmCells, pmTransmittedAtmCells, etc.). Not stored permanently.
Finn Magnusson 2008-06-25 rev PA43 32/330
`The attribute values can be of the following types: integer, string, boolean, float, moRef, enum, struct, sequence of integer, sequence of string, sequence of boolean, sequence of moRef, sequence of struct, see 2.3.
It is also possible to perform actions on MOs (eg: restart, eteloopback, etc.)
MOs can also raise/cease alarms and send events.
Attribute types:- string: a string of characters, e.g. userLabel - boolean: true or false, e.g. continuityCheck- long: 32-bit integer (from –231 to 231), e.g. externalVci- longlong: 64-bit integer (from –263 to 263), e.g. nodeUtcTime
Finn Magnusson 2008-06-25 rev PA43 33/330
`- float: a number with a decimal point- enumeration: a set of discrete integer values, e.g. operationalState- struct: an attribute consisting of a number of attributes of any of the above types, e.g. productData- moRef: a pointer to another MO, e.g. atmTrafficDescriptorId- sequence: an array of attributes of any of the above types
Attribute flags:- mandatory: the attribute value has to be given when creating the MO - restricted: the attribute value can only be changed by deleting the MO and re-creating it- readonly: the attribute value is set by the system- nonpersistent: the attribute value is not stored persistently on disk (eg. operationalState, availabilityStatus, etc)- nonotification: changes in the attribute value will not be sent to the client via the notification service
More info in 1553-1/CSX10109 (MOM User Guide): http://utran01.epa.ericsson.se/moshell/training/references/cpp/MOM_UG-revE.html
The Managed Object Model (MOM), also called Managed Information Model (MIM), is a document describing for each particular node SW version:- all the different types of MOs (MO classes) - the attributes contained in each MO class- the containment relationships (parents/children) between the MO classes.- the actions supported by each MO class
The MOM is written in UML but can be exported to a number of different formats: XML, HTML, WORD, TEXT, etc.
The RNC/RBS/MGW MOMs consist of the CPP MOM plus the RNC/RBS/MGW application MOM. This means that some MO classes represent resources from the CPP platform and some represent resources from the application part.All MOs under RncFunction, NodeBFunction, MgwApplication, MsPlatform, InteractiveMessaging belong to the application part, as well as certain MOs under Equipment.MOs under Equipment, SwManagement, TransportNetwork, IpSystem, SystemFunctions, SwitchFabric belong to CPP.
The MOM can be browsed from moshell in text format (command “mom/pmom”) or on the web in html format.
2.2 Browsing MOM from web
Web links: - CPP MOMs: https://extinfo.uab.ericsson.se/cpp_mom/ - RNC MOMs: http://wrn.ericsson.se/~emogroup/mom/
##################################################################################MO Class Attributes/Actions##################################################################################VclTp VclTpId,atmTrafficDescriptorId,availabilityStatus,externalVci,operationalState,reservedBy,userLabel eteLoopBackThis MO is used to represent the termination of an external VC link in the node.Note that a maximum of 10 000 MO of this kind may be configured in a node.Note! The performance monitoring counters in the VclTp MO is set to 0 (zero) at start or restart of the node.When the value is to large too fit in to a long (31bit) the counter turns over and starts from 0 again.----------------------------------------------------------------------------------
View the attributes and actions description:
RNC10> mom vcltp vci
##################################################################################################MO Class Attribute Type Flags##################################################################################################VclTp externalVci long restricted,noNotification,mandatory--------------------------------------------------------------------------------------------------Virtual Channel Idenitifier, VCI, value for this Virtual Channel Link, VCL.Range: 32 - 65535.Range: 32 to 65535**************************************************************************************************
Finn Magnusson 2008-06-25 rev PA43 37/330
`RNC10> mom . vci
##################################################################################################MO Class Attribute Type Flags##################################################################################################VclTp externalVci long restricted,noNotification,mandatory--------------------------------------------------------------------------------------------------Virtual Channel Idenitifier, VCI, value for this Virtual Channel Link, VCL.Range: 32 - 65535.Range: 32 to 65535**************************************************************************************************
RNC10> mom vcltp .
##################################################################################################MO Class Attribute Type Flags##################################################################################################VclTp VclTpId string restricted,noNotification,mandatory--------------------------------------------------------------------------------------------------Naming attribute value.Set by the operator at create of the MO.**************************************************************************************************VclTp atmTrafficDescriptorId moRef:AtmTrafficDescriptor restricted,noNotification,mandatory--------------------------------------------------------------------------------------------------Reference to the AtmTrafficDescriptor profile.**************************************************************************************************VclTp availabilityStatus enumRef:AvailabilityStatus readOnly,nonPersistent,noNotification--------------------------------------------------------------------------------------------------The availability status of the VclTp.The availability status is used to qualify the operational state. It indicates why the operational state has changed its value to disabled.**************************************************************************************************VclTp externalVci long restricted,noNotification,mandatory--------------------------------------------------------------------------------------------------Virtual Channel Idenitifier, VCI, value for this Virtual Channel Link, VCL.Range: 32 - 65535.Range: 32 to 65535**************************************************************************************************VclTp operationalState enumRef:OperState readOnly,nonPersistent,noNotification--------------------------------------------------------------------------------------------------
Finn Magnusson 2008-06-25 rev PA43 38/330
`The operational state of the VclTp.**************************************************************************************************VclTp reservedBy moRef:ManagedObject readOnly--------------------------------------------------------------------------------------------------User that have reserved this VclTp.**************************************************************************************************VclTp userLabel string --------------------------------------------------------------------------------------------------Provides the possibility to put a user-friendly label on the MO instance.Note! This attribute cannot be used for uniquely identifying the MO.Range: 0 to 128, Default="" **************************************************************************************************
##################################################################################MO Class Action Parameters##################################################################################VclTp eteLoopBack 0----------------------------------------------------------------------------------Used by VclTp to inforce a Virtual Channel end-to-end loopback.false=Failed, true=Succeded.Note! This ` requires a transaction.ReturnType: boolean**********************************************************************************
View the attributes and action list, without description:
RNC11> momd . vci
######################################################################################################MO Class Attribute Type Flags######################################################################################################VclTp externalVci long restricted,noNotification,mandatory
RNC11> momd vcltp .
######################################################################################################MO Class Attribute Type Flags######################################################################################################
Example: SEARCH ALL MOs that have an attribute containing the word “frequency” in the attribute description
RNC10> mom . . . . frequency
##################################################################################MO Class Attributes/Actions##################################################################################GsmRelation GsmRelationId,externalGsmCellRef,mobilityRelationType,qOffset1sn,selectionPriorityModels the manageable characteristics of the relation of a source UTRAN cell to an external GSM neighbor cell. The information is used for Inter-RAT Handover.Additional limits on cell relation cardinality include the following:- The total number of cell relations for a UtranCell, including both UtranRelations and GsmRelations, may not exceed 127 (31 intra-frequency UtranRelations + 32 inter-frequency UtranRelations + 64 GsmRelations).- The total number of cell relations allowed for a UtranCell also depends on the configuration of the system information distribution. An algorithm is used to calculate the number of cell relations supported on the BCCH when the Sid MO is configured. Changes to the Sid MO will be rejected if a UtranCell within the RNC has more cell relations than the new configuration can support. Also, a check is made against the limit calculated by this algorithm whenever a cell relation is added to a cell. Note that for GsmRelations, this check only applies to relations with mobilityRelationType = HO_AND_CELL_RESEL (Both Handover and Cell selection/Reselection).
Finn Magnusson 2008-06-25 rev PA43 40/330
`- The total number of GsmRelations with mobilityRelationType = HO_AND_CELL_RESEL (Both Handover and Cell selection/Reselection) for a UtranCell may not exceed 32.----------------------------------------------------------------------------------UtranRelation UtranRelationId,frequencyRelationType,loadSharingCandidate,nodeRelationType,qOffset1sn,qOffset2sn,selectionPriority,utranCellRefModels the manageable characteristics of the relation of a UTRAN cell to a neighboring UTRAN cell, for example, MO UtranCell (intra-RNC handover) or MO ExternalUtranCell (inter-RNC handover).The source UTRAN cell and the target neighboring UTRAN cell may use the same or different frequencies, and may reside in the same RNC or a different RNC.Additional limits on cell relation cardinality include the following:- The number of intra-frequency UtranRelation instances for a UTRAN cell may not exceed 31.- The number of inter-frequency UtranRelation instances for a UTRAN cell may not exceed 32.- The total number of cell relations for a UtranCell, including both UtranRelations and GsmRelations, may not exceed 127.- The total number of cell relations allowed for a UtranCell also depends on the configuration of the system information distribution. An algorithm is used to calculate the number of cell relations supported on the BCCH when the Sid MO is configured. Changes to the Sid MO will be rejected if a UtranCell within the RNC has more cell relations than the new configuration can support. Also, a check is made against the limit calculated by this algorithm whenever a cell relation is added to a cell.----------------------------------------------------------------------------------WcdmaCarrier WcdmaCarrierId,defaultHoType,freqBand,sib5bisEnabled,uarfcnDl,userLabelModels the assignment of frequency bands to frequency numbers both in this RNC and in external RNCs. Preferred HO type for Active Set cells in an external RNC can also be assigned.----------------------------------------------------------------------------------
#################################################################################################################################MO Class Attribute Type Flags#################################################################################################################################ExternalGsmCell bandIndicator enumRef:SupportedBands ---------------------------------------------------------------------------------------------------------------------------------Indicates the frequency band of the external GSM cell.The BCCH frequency is unique for all GSM bands except the two GSM bands DCS1800 and PCS1900, so the band indicator is needed to discriminate between the two. When the ExternalGsmCell has a BCCH frequency indicating some other frequency band, then the band indicator is not needed and may be set to "Not applicable".Unit: N/AResolution: N/ADefault=DCS1800 *********************************************************************************************************************************ExternalGsmCell bcchFrequency long mandatory---------------------------------------------------------------------------------------------------------------------------------BCCH frequency code in the GSM cell. Contains the absolute radio frequency channel number of the BCCH channel for the GSM cell. It uniquely identifies the BCCH.Old name: bcchArfcnRange: 0 to 1023
Finn Magnusson 2008-06-25 rev PA43 41/330
`*********************************************************************************************************************************ExternalGsmCell maxTxPowerUl long ---------------------------------------------------------------------------------------------------------------------------------The maximum UE transmission power on the RACH when accessing the system. Used in UE functions for cell selection/reselection in idle mode and connected mode. Also used by UTRAN to control the maximum TX power level an UE may use.If the current UE uplink transmit power is above the indicated power value, the UE shall decrease the power to a level below the power value. Value launched by System information (SIB11) for each intra-frequency measurement object corresponding to adjacent cells of serving cell.Unit: 1 dBmResolution: 1-50: -50 dBm
...<cut>....
Same as above but without the description fied, better overview:
#################################################################################################################MO Class Attribute Type Flags#################################################################################################################ExternalGsmCell bandIndicator enumRef:SupportedBands ExternalGsmCell bcchFrequency long mandatoryExternalGsmCell maxTxPowerUl long ExternalGsmCell qRxLevMin long ExternalUtranCell maxTxPowerUl long ExternalUtranCell qRxLevMin long ExternalUtranCell uarfcnDl long mandatoryExternalUtranCell uarfcnUl long mandatoryHandover ifhoAmountPropRepeat long Handover ifhoPropRepeatInterval long Handover interFreqCnhhoPenaltyEcno long Handover interFreqCnhhoPenaltyRscp long Handover intraFreqCnhhoPenalty long
Finn Magnusson 2008-06-25 rev PA43 42/330
`Handover intraFreqCnhhoWeight long Handover maxActiveSet long Handover maxIefMonSubset long Handover selHoSup enumRef:BooleanVals Paging utranDrxCycleLength long PowerControl cNbifho long RncFunction loadSharingRrcEnabled enumRef:BooleanVals UeMeasControl filterCoeff4_2b long UeMeasControl filterCoefficient1 long UeMeasControl filterCoefficient2 long UeMeasControl hysteresis1a long UeMeasControl hysteresis1b long UeMeasControl hysteresis1c long UeMeasControl hysteresis1d long UeMeasControl measQuantity1 enumRef:SupportedMeasQuantities UeMeasControl reportingInterval1a long UeMeasControl reportingInterval1c long UeMeasControl reportingRange1a long UeMeasControl reportingRange1b long UeMeasControl timeToTrigger1a long UeMeasControl timeToTrigger1b long UeMeasControl timeToTrigger1c long UeMeasControl usedFreqRelThresh2fEcno long UeMeasControl usedFreqRelThresh2fRscp long UeMeasControl usedFreqRelThresh4_2bEcno long UeMeasControl usedFreqRelThresh4_2bRscp long UeMeasControl usedFreqThresh2dEcnoDrnc long UeMeasControl usedFreqThresh2dRscpDrnc long UeMeasControl usedFreqW2d long UeMeasControl usedFreqW2f long UeMeasControl usedFreqW4_2b long UeMeasControl utranRelThreshRscp long UeMeasControl w1a long UeMeasControl w1b long UeRc serviceOffset2dEcno long UeRc serviceOffset2dRscp long UtranCell fachMeasOccaCycLenCoeff long UtranCell hardIfhoCorr long UtranCell hoType enumRef:SupportedHandoverTypes UtranCell interFreqFddMeasIndicator enumRef:BooleanVals UtranCell loadSharingMargin long UtranCell maxTxPowerUl long UtranCell qRxLevMin long
Finn Magnusson 2008-06-25 rev PA43 43/330
`UtranCell uarfcnDl long mandatoryUtranCell uarfcnUl long mandatoryUtranCell usedFreqThresh2dEcno long UtranCell usedFreqThresh2dRscp long UtranRelation frequencyRelationType enumRef:SupportedFreqRelations readOnlyUtranRelation loadSharingCandidate enumRef:BooleanVals WcdmaCarrier freqBand long restrictedWcdmaCarrier uarfcnDl long restricted,mandatory
Example: SEARCH FOR ALL MOs that have an action (or attribute) matching a string that starts with the word “restart”
RNC10> momd . restart
##################################################################################################################MO Class Attribute Type Flags##################################################################################################################Mtp3bSpChina restartType enumRef:RestartType PiuType defAllowedSeqRestarts enumRef:SeqRestarts restricted,noNotification,mandatoryPlugInUnit allowedSeqRestarts enumRef:SeqRestarts Program restartCounterLimit long Program restartTimer long
Example: SEARCH ALL MOs UNDER RNCFUNCTION THAT HAVE AN ATTRIBUTE MATCHING THE STRING “POWER”
RNC10> momdc rncfunction power|pwr
Finn Magnusson 2008-06-25 rev PA43 44/330
`or:
RNC10> momd . power|pwr
##############################################################################################################MO Class Attribute Type Flags##############################################################################################################ChannelSwitching downswitchPwrMargin long ChannelSwitching upswitchPwrMargin long ExternalGsmCell maxTxPowerUl long ExternalUtranCell maxTxPowerUl long ExternalUtranCell primaryCpichPower long Fach maxFach1Power long Fach maxFach2Power long Hsdsch hsMeasurementPowerOffset long Pch pchPower long Pch pichPower long PowerControl PowerControlId string restricted,noNotification,mandatoryPowerControl fixedPowerDl long PowerControl fixedRefPower long PowerControl initShoPowerParam long PowerControl pcpichPowerDefault long Rach aichPower long Rach powerOffsetP0 long Rach powerOffsetPpm long UeMeasControl txPowerConnQualMonEnabled enumRef:BooleanVals UeMeasControl ueTxPowerThresh6a long UeMeasControl ueTxPowerThresh6b long UtranCell bchPower long UtranCell beMarginDlPwr long UtranCell interPwrMax long UtranCell maxPwrMax long UtranCell maxTxPowerUl long UtranCell maximumTransmissionPower long UtranCell minPwrMax long UtranCell minPwrRl long UtranCell primaryCpichPower long UtranCell primarySchPower long UtranCell pwrAdm long UtranCell pwrAdmOffset long UtranCell pwrHyst long
Finn Magnusson 2008-06-25 rev PA43 45/330
`UtranCell pwrLoadThresholdDlSpeech structRef:PwrLoadThresholdDlSpeech UtranCell pwrOffset long UtranCell secondarySchPower long
etc......
(or: momd . . . . power|pwr ) to search in description
=================================================================================================================MO Attribute Value=================================================================================================================AtmPort=MS-26-2,VplTp=40,VpcTp=1,VclTp=vc45 operationalState 1 (ENABLED)=================================================================================================================Total: 1 MOs
RNC10> mom vcltp oper
##################################################################################################MO Class Attribute Type Flags##################################################################################################VclTp operationalState enumRef:OperState readOnly,nonPersistent,noNotification--------------------------------------------------------------------------------------------------The operational state of the VclTp.**************************************************************************************************
##################################################################################################MO Class Attribute Type Flags##################################################################################################LoadModule productData structRef:AdminProductData restricted,noNotification,mandatory--------------------------------------------------------------------------------------------------
Finn Magnusson 2008-06-25 rev PA43 47/330
`Product information data.**************************************************************************************************
Enter a second argument in the mom command for more detailed description
RNC10> mom adminproductdata .
##################################################################################Struct StructMember Type##################################################################################AdminProductData productNumber string----------------------------------------------------------------------------------The product number of the product or document.Examples: ABC 101 001, CXC 123 456, 1/BFD 101 999In the case of UpgradePackage this is the document number of the upgrade package.Range: 1 to 24**********************************************************************************AdminProductData productRevision string----------------------------------------------------------------------------------The revision of the product number.Examples: R1, r1a, R1A02, P7BRange: 1 to 7**********************************************************************************AdminProductData productName string----------------------------------------------------------------------------------A user-friendly name of the product.Range: 1 to 12, Default="" **********************************************************************************AdminProductData productInfo string----------------------------------------------------------------------------------User-friendly information about the product.Range: 0 to 13, Default=""
Finn Magnusson 2008-06-25 rev PA43 48/330
`**********************************************************************************AdminProductData productionDate string----------------------------------------------------------------------------------The production date can be represented in two ways.1) The preferable syntax is a four-digit representation of the year, and a two-digit representation of the month and a two-digit representation of the day. The numbers of characters in this case, is eight.Example:199912312) The date can also consist of two digits for the year, followed by the letter W for week and two digits for the number of week. The numbers of characters in this case, is five.Example:99W12Range: 1 to 8, Default="" **********************************************************************************
RNC RBS MGWSW MOM CPP SW MOM CPP SW MOM CPPP4 F 4 P4 H 4 R3 R3 4P5 G 5.1 P5 J 5.1 R4.x R4.x 5.xP6 H 6 P6 K 6 R5 R5 6P7 J 7 P7 L 7
Finn Magnusson 2008-06-25 rev PA43 57/330
`2.5 MIB structure
The Management Information Base (MIB) is the set of all MOs existing in the node at any given time.The MOs are organised in a hierarchical tree.
Finn Magnusson 2008-06-25 rev PA43 58/330
`Distinguished names are used for addressing of MOs in the MIB.There are three ways to address an MO. Using:
- RDN, Relative Distinguished Name. Unique name in relation to the nearest parent. Eg: Slot=2. On the left of the ”=” sign is the MO class, on the right is the MO identity. The MO identity is stored in an attribute called “<moclass>Id” (e.g. slotId).The RDN is unique in relation to the nearest parent but not necessarily unique in the node.
- LDN, Local Distinguished Name. Unique name in the node. Eg: ManagedElement=1,Equipment=1,Subrack=MS,Slot=2
- FDN, Full Distinguished Name. Unique name in the network. Eg: SubNetwork=VodafoneUK,SubNetwork=RNS1,MeContext=RBS3,ManagedElement=1,Equipment=1,Subrack=MS,Slot=2
2.6 MO services
Configuration Management Service:
Operation Purpose Related moshell command(s) ProtocolGetChildren To list the LDNs of the MOs currently present in the MIB lt, lc
corba (CM)
GetAttribute To read the value of one or more attribute(s) get, hget, pget, st, prod, inv, etc.CallAction To call an action on an MO acc (acl)SetAttribute To change the value of an attribute (provided it is not restricted
or readonly)set, bl, deb
CreateMO To create an MO crDeleteMO To delete an MO del, rdelSubscribe To subscribe to notifications about changes in the MIB runClient.sh -c
A history of all configuration change operations (MO set/action/create/delete) is stored in the CommandLog (called CorbaAuditTrail from CPP5.1). Refer to CPP Core part 1 for more info about CommandLog/CorbaAuditTrail.
Fault Management Service:
Operation Purpose Related moshell command ProtocolGetAlarms List active alarms al
corba (FM)Acknowledge/unacknowledge Acknowledge/unacknowledge an alarm not supported in moshell
Finn Magnusson 2008-06-25 rev PA43 59/330
`Subscribe To subscribe to notifications about
alarms and events.runClient.sh –a
A history of all alarms and events raised and ceased is stored in the alarm and event logs. Refer to CPP Core part 1 for more info about alarm/event log.
2.7 Connecting to MIB
To be able to access the node’s MIB, you need to first run the command “lt all”.The command “lt all” reads the list of all MOs currently existing in the MIB and their LDN (Local Distinguished Name).Moshell builds a table containing the list of all MO LDNs and assigns each of them an arbitrary proxy number.This list can be printed with the “pr” command.
Checking ip contact...OK
HELP MENU : hBASIC MO COMMANDS : mOTHER MO COMMANDS : nOTHER COMMANDS : oPM COMMANDS : pQUIT : q
RNC11>
RNC10> lt allChecking MOM version...RNC_NODE_MODEL_G_1_4Using MOM version: RNC_NODE_MODEL_G_1_4_COMPLETEParsing MOM (cached): /home/eanzmagn/moshell/jarxml/RNC_NODE_MODEL_G_1_4_COMPLETE.xml.cache .................................Done.Fetching IOR file...Done.**** Welcome to the Simple Mo Browser (version 3.0)!Trying file=/home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20060707-231532_7185/ior7185**** Test Construction OK****
Connected to 137.58.194.88 (ManagedElement=1)Connected to 137.58.194.88 (ManagedElement=1)Last MO: 5203. Loaded 5203 MOs. Total: 5204 MOs.
If the MIB has changed on the node, for instance, due to upgrade or restart on a different CV, the moshell proxy table needs to be updated by running “lt all” again. This will normally be done automatically by moshell.
2.8 MO addressing
MO commands allow to perform Configuration Service operations (get, set, action, delete, create).The MOs on which the operation shall be performed are specified in the first field of the MO command. There are several syntaxes possible. Use the “pr” command to try out the different syntaxes and see which MOs will be affected.The “pr” does not perform any operation on the node, it just prints the MO LDNs from the internal proxy table in moshell.
2.8.1 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 betweenExample: pr 0 2 5 --> print MO proxies 0, 2, and 5 - Give a rangeExample: 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
MGW1> pr 3658
===================================================================================Proxy MO
Finn Magnusson 2008-06-25 rev PA43 61/330
`=================================================================================== 3658 InteractiveMessaging=1,ImMessageComposition=1800===================================================================================Total: 1 MOs
MGW1> lpr 3658
===================================================================================Proxy MO=================================================================================== 3658 InteractiveMessaging=1,ImMessageComposition=1800===================================================================================Total: 1 MOs
` 570 Equipment=1,Subrack=MS,Slot=1,PlugInUnit=1,Program=CXC1322250_R51LX04 569 Equipment=1,Subrack=MS,Slot=1,PlugInUnit=1===================================================================================Total: 9 MOs
MGW1> pr 3650 3652 3653
===================================================================================Proxy MO=================================================================================== 3650 InteractiveMessaging=1,ImMessageComposition=2107 3652 InteractiveMessaging=1,ImMessageComposition=2105 3653 InteractiveMessaging=1,ImMessageComposition=2104===================================================================================Total: 3 MOs
2.8.2 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", then the pattern will match against the RDN.Example:
RNC10> pr ms-26-2
===================================================================================Proxy MO=================================================================================== 1212 TransportNetwork=1,AtmPort=MS-26-2===================================================================================Total: 1 MOs
===================================================================================Proxy MO=================================================================================== 1215 TransportNetwork=1,AtmPort=MS-26-2,VplTp=40,VpcTp=1,VclTp=vc45===================================================================================Total: 1 MOs
RNC10> lpr ms-26-2.*=40.*vc45
===================================================================================Proxy MO
Finn Magnusson 2008-06-25 rev PA43 64/330
`=================================================================================== 1215 TransportNetwork=1,AtmPort=MS-26-2,VplTp=40,VpcTp=1,VclTp=vc45===================================================================================Total: 1 MOs
============================================================================================================ Id MO AdministrativeState Result============================================================================================================ 4692 IubLink=1,NbapDedicated=1 0 >>> Set. 4693 IubLink=1,NbapCommon=1 0 >>> Set. 4695 IubLink=1,NodeSynchTp=2 0 >>> Set. 4696 IubLink=1,NodeSynchTp=1 0 >>> Set.============================================================================================================Total: 4 MOs attempted, 4 MOs set
The “%” sign used at the beginning of the string is an additional moshell “meta-character” which can be used to specify the MOs in reverse order of their proxy number. This is useful when deleting MOs since the children have to be deleted before the parent.
RNC10> lpr !loadmodule|program==> all MOs except those matching "loadmodule" or "program" will be printed.
2.8.3 link handler, board group
See chapter 1.3 in CPP core presentation document
2.8.4 MO-group
See chapter 3.17
3 MO COMMANDS
3.1 lt command
To read the list of MOs in the MIB and store the LDNs in moshell memory.
Finn Magnusson 2008-06-25 rev PA43 70/330
`Most common is to use “lt all”.
RNC10> h lt
*******************************************************lt/ltc[1-9] <motype-filter>|root|all [<attribute==value> AND/OR <attribute==value>]*******************************************************Load MO tree (full or partial) and build proxy table......
3.2 pr command
To print LDNs and proxy numbers of MOs stored in moshell memory.
RNC10> h pr
*******************************************************pr/lpr [<moGroup>|<moFilter>|<proxy(s)>]*******************************************************Print MO LDNs and proxy ids for all or part of the MO tree currently loaded in moshell.
Examples: >> pr ==> print all MOs >> pr 0-1000 ==> print MOs with proxy id 0 to 1000 >> lpr slot=10 ==> print all MOs whose LDN match slot=10. This will print the MO slot=10 as well as all its children >> pr !utranrel ==> print all MOs except those whose RDN don’t match "utranrel"
3.3 get commands
RNC10> h get
*******************************************************get/lget [<moGroup>|<moFilter>|<proxy(s)>|all] [<attribute-filter>|all] [<value-filter>]*******************************************************This command fetches one of several attributes from one or several MO's. Doesn't fetch pm attributes; to view pm attributes, use pget/lpget.....
// GET ONLY READS CONFIGURATION AND FAULT MANAGEMENT ATTRIBUTES. (for PM attributes use pget, see below)
*******************************************************hget[c]/lhget[c] <moGroup>|<moFilter>|<proxy(s)> [<attribute-filter>] [<value1-filter>] [<value2-filter>] [<value3-filter>] etc...*******************************************************Similar to "get" but attribute values are printed horizontally, one line per MO (instead of one line per attribute).....
//KGET VERSUS GET: KGET IS IDENTICAL TO GET EXCEPT THAT THE OUTPUT HAS SLIGHTLY DIFFERENT FORMAT IN ORDER TO ALLOW IMPORTING OF DATA IN SOME EXTERNAL TOOLS LIKE MCOM. KGET should mainly be used when taking MO dumps (lt all ; kget)//one characteristic of kget is that the FDN is printed instead of the abbreviated LDN
Mo Dumps used for:- parameter audits- node configuration comparisons- offline viewing
Finn Magnusson 2008-06-25 rev PA43 80/330
`- etc.
3.4 st command
RNC10> h st
*******************************************************st/lst [<moGroup>|<moFilter>|<proxy(s)>|all] [<state-filter>]*******************************************************This command prints administrative state and operational state of MO's. It is similar to writing "get/lget <mo> state", the only difference is that it presents the two states side-by-side in a more visible way.The state filter matches towards both the Operational state and the Administrative state.....
===================================================================================Proxy Adm State Op. State MO=================================================================================== 2227 1 (ENABLED) TransportNetwork=1,AtmPort=MS-6-1===================================================================================Total: 1 MOs
*******************************************************st/lst [<moGroup>|<moFilter>|<proxy(s)>|all] [<state-filter>]*******************************************************Print state of MOs (operationalState and administrativeState when applicable).
===================================================================================Proxy Adm State Op. State MO=================================================================================== 2411 0 (LOCKED) 0 (DISABLED) MgwApplication=1,TdmTermGrp=2 2412 0 (LOCKED) 1 (ENABLED) MgwApplication=1,TdmTermGrp=1 2413 1 (UNLOCKED) 0 (DISABLED) MgwApplication=1,TdmTermGrp=17===================================================================================Total: 3 MOs
MGW01> st tdm ^0
===================================================================================Proxy Adm State Op. State MO=================================================================================== 2411 0 (LOCKED) 0 (DISABLED) MgwApplication=1,TdmTermGrp=2 2412 0 (LOCKED) 1 (ENABLED) MgwApplication=1,TdmTermGrp=1===================================================================================Total: 2 MOs
MGW01> st tdm dis
Finn Magnusson 2008-06-25 rev PA43 85/330
`
===================================================================================Proxy Adm State Op. State MO=================================================================================== 2411 0 (LOCKED) 0 (DISABLED) MgwApplication=1,TdmTermGrp=2 2413 1 (UNLOCKED) 0 (DISABLED) MgwApplication=1,TdmTermGrp=17===================================================================================Total: 2 MOs
MGW01> st tdm 1.*0
===================================================================================Proxy Adm State Op. State MO=================================================================================== 2413 1 (UNLOCKED) 0 (DISABLED) MgwApplication=1,TdmTermGrp=17===================================================================================Total: 1 MOs
RNC10> lst !rncfunc 1.*0 (or unlocked.*disabled)
===================================================================================Proxy Adm State Op. State MO=================================================================================== 436 1 (UNLOCKED) 0 (DISABLED) Equipment=1,Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=1 464 1 (UNLOCKED) 0 (DISABLED) Equipment=1,Subrack=MS,Slot=5,PlugInUnit=1,TimingUnit=1,TuSyncRef=1 473 1 (UNLOCKED) 0 (DISABLED) Equipment=1,Subrack=MS,Slot=4,PlugInUnit=1,TimingUnit=1,TuSyncRef=1===================================================================================Total: 4 MOs
RNC10> st . ^0
===================================================================================Proxy Adm State Op. State MO=================================================================================== 434 0 (LOCKED) 1 (ENABLED) Equipment=1,Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=2===================================================================================Total: 1 MOs
Recommended to also include the !!! to look for MOs whose state cannot be read
What happens in this case is that the state of a few MOs could not be read due to some fault on the node.Since moshell is reading the state of many MOs at the same time, the corruption appears to be on many MOs.To force moshell to read only one MO at a time, use the command “speed 1”
Have a look at the faulty MOs. Only 2682 is faulty. Since moshell reads all attributes of an MO in one request, if some attributes cannot be read, it affects all the other attributes.
To read attributes only one at a time, use command “sget” (“slow get”).We are then able to read some of the attributes that are not affected by the corruption.
Only supported for configuration attributes that are not restricted.
RNC10> h set
*******************************************************set[m]/lset[m] <moGroup>|<moFilter>|<proxy(s)> <attribute> [<value>]*******************************************************Sets an attribute on one or several MO's.
Setting an attribute of type Long (Integer) RNC10> set 434 administrativestate 1
============================================================================================================ Id MO administrativeState Result============================================================================================================ 434 Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=2 1 >>> Set.
Finn Magnusson 2008-06-25 rev PA43 99/330
`============================================================================================================Total: 1 MOs attempted, 1 MOs set
============================================================================================================ Id MO administrativeState Result============================================================================================================ 434 Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=2 0 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
Setting an attribute of type String
RNC10> set 0 userlabel RNC 10
============================================================================================================ Id MO userLabel Result============================================================================================================ 0 ManagedElement=1 RNC 10 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
RNC10> get 0 userlabel
=================================================================================================================MO Attribute Value=================================================================================================================ManagedElement=1 userLabel RNC 10=================================================================================================================Total: 1 MOs
============================================================================================================ Id MO sib1 Result============================================================================================================ 4764 Sid=1 sib1StartPos:i=2,sib1RepPeriod:i=16 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
RNC10> set sid=1 sib1 sib1repperiod=20,sib1startpos=4
============================================================================================================ Id MO sib1 Result============================================================================================================ 4764 Sid=1 sib1StartPos:i=4,sib1RepPeriod:i=20 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
============================================================================================================ Id MO atmTrafficDescriptor Result============================================================================================================ 2226 AtmPort=MS-6-1,VplTp=1 2433 >>> Set.============================================================================================================Total: 1 MOs attempted, 0 MOs set
RNC10> set jvm=1 admOptions Xms200000k,Dhttp.root=/c/public_html,Dse_ericsson_security_PropertyFileLocation=/c/java/SecurityManagement.prp
============================================================================================================ Id MO admOptions Result============================================================================================================ 7 Jvm=1 Xms200000k,Dhttp.root=/c/public_html,Dse_ericsson_security_PropertyFileLocation=/c/java/SecurityManagement.prp >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
##################################################################################################MO Class Attribute Type Flags##################################################################################################Aal2PathDistributionUnit aal2PathVccTpList sequence:moRef-Aal2PathVccTp --------------------------------------------------------------------------------------------------List of references to Aal2PathVccTp MO:s.Note that setting of this attribute removes the current list of Aal2PathVccTp's.Each reference must be unique among all paths within all Aal2PathDistributionUnit's belonging to the same Aal2Ap.**************************************************************************************************Ranap packetDataRouterRef sequence:moRef-ManagedObject --------------------------------------------------------------------------------------------------List of references to instances of PacketDataRouter MO or IpEthPacketDataRouter MO.To be used for Iu Flex.Unit: N/AResolution: N/A**************************************************************************************************Jvm admClasspath sequence:moRef-LoadModule --------------------------------------------------------------------------------------------------New classpath that will be activated at next restart of JVM. The classpath has a directory, which contains the load module, i.e. the classpath references the load module.**************************************************************************************************
RNC10> set ranap=iup packetDataRouterRef RncModule=1,PacketDataRouter=Pdr1Gtpu1 RncModule=1,PacketDataRouter=Pdr1Gtpu2
============================================================================================================ Id MO packetDataRouterRef Result============================================================================================================ 4912 Ranap=Iup2810 3314,3313 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
`=================================================================================================================Total: 1 MOs
RNC10> mom extern aliaspl
##################################################################################################MO Class Attribute Type Flags##################################################################################################ExternalGsmNetwork aliasPlmnIdentities sequence:structRef-PlmnIdentity --------------------------------------------------------------------------------------------------List of alias PLMN identities. When the Selective Handover feature is active, only UEs with Home PLMN id equal to the PLMN id of this GSM network, or to any of the alias PLMN ids, will be allowed handover to this GSM network.The default value "empty" indicates that the sequence length = 0, i.e. no alias PLMNs defined.Unit: N/AResolution: N/A**************************************************************************************************
RNC10> mom plmnident .
##################################################################################Struct StructMember Type##################################################################################PlmnIdentity mcc long----------------------------------------------------------------------------------The MCC part of a PLMN identity used in the radio network.Unit: N/AResolution: N/ARange: 0 to 999**********************************************************************************PlmnIdentity mnc long----------------------------------------------------------------------------------The MNC part of a PLMN identity used in the radio network.Unit: N/AResolution: N/ARange: 0 to 999**********************************************************************************PlmnIdentity mncLength long----------------------------------------------------------------------------------The length of the MNC part of a PLMN identity used in the radio networkUnit: 1 digit
Finn Magnusson 2008-06-25 rev PA43 108/330
`Resolution: 1Range: 2 to 3**********************************************************************************
RNC10> set ExternalGsmNetwork=1 aliasPlmnIdentities mcc=240,mnc=99,mnclength=2;mcc=234,mnc=03,mnclength=2
============================================================================================================ Id MO aliasPlmnIdentities Result============================================================================================================ 3787 ExternalGsmNetwork=1 mcc:i=240,mnc:i=99,mncLength:i=2;mcc:i=234,mnc:i=03,mncLength:i=2 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
Setting to an empty value
RNC10> set 0 userlabel
============================================================================================================ Id MO userLabel Result============================================================================================================ 0 ManagedElement=1 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
RNC10> set ranap=iup packetDataRouterRef
============================================================================================================ Id MO packetDataRouterRef Result============================================================================================================ 4912 Ranap=Iup2810 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
============================================================================================================ Id MO uarfcnDl,uarfcnUl Result============================================================================================================ 4495 UtranCell=301100 10713 9763 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
============================================================================================================ Id MO locationAreaRef,routingAreaRef,serviceAreaRef Result============================================================================================================ 4495 UtranCell=301100 4512 4585 4533 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
============================================================================================================ Id MO sib1,sib11 Result============================================================================================================ 4764 Sid=1 sib1RepPeriod:i=32,sib1StartPos:i=4 sib11RepPeriod:i=128,sib11StartPos:i=20 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
Exception handling, example of set failures
- In this case it failed because there was not enough free bandwidth
============================================================================================================ Id MO atmTrafficDescriptor Result============================================================================================================ 2226 AtmPort=MS-6-1,VplTp=1 2423 !!!! Processing failure :se.ericsson.cello.moframework.FroRequestFailedException TAG :"FroRequestFailed" VARIABLES :"$MO typename" = "VplTp", "$FRO typename" = "VpCp", "$Request type" = "SetAttrReq: AET_VPCPMI_RSP_RESERVE_BW_FAIL", "$result" = "10"============================================================================================================Total: 1 MOs attempted, 0 MOs set
NOTE: in earlier releases the exception code is not translated. Some exception codes translation can be found on http://utran01.epa.ericsson.se/utranwiki/CelloInformation/FroExceptionsSome exception codes translation may also appear in the “te log read” of the MP handling the FRO layer for that MO.
- In this case it failed because the attribute was restricted
`MO Class Attribute Type Flags##################################################################################################VclTp atmTrafficDescriptorId moRef:AtmTrafficDescriptor restricted,noNotification,mandatory--------------------------------------------------------------------------------------------------Reference to the AtmTrafficDescriptor profile.**************************************************************************************************
RNC10> set 2509 atmTrafficDescriptorId AtmTrafficDescriptor=U4P35000M500
============================================================================================================ Id MO atmTrafficDescriptorId Result============================================================================================================ 2509 AtmPort=MS-27-1,VplTp=1,VpcTp=1,VclTp=vc100 2171 !!!! Processing failure :se.ericsson.cello.moframework.NoSuchAttributeException TAG :"NoSuchAttribute" VARIABLES :"$attrName" = "atmTrafficDescriptorId", "$moTypeName" = "VclTp"============================================================================================================Total: 1 MOs attempted, 0 MOs set
NOTE: VclTp:AtmTrafficDescriptor is not restricted anymore from CPP5.1
More help on setting attributes:
RNC10> h set
RNC10> h syntax
3.6 bl/deb command
Purpose: a shortcut for setting the administrativeState
============================================================================================================ Id MO AdministrativeState Result============================================================================================================ 457 Subrack=MS,Slot=5,PlugInUnit=1 0 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
Unlock (deblock)
RNC10> deb 457
============================================================================================================ Id MO AdministrativeState Result============================================================================================================ 457 Subrack=MS,Slot=5,PlugInUnit=1 1 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
Soft LockGives the resource some time to shutdown graciously, handing over traffic to other resources.
RNC10> bls 457
============================================================================================================ Id MO AdministrativeState Result============================================================================================================ 457 Subrack=MS,Slot=5,PlugInUnit=1 2 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
`Proxy Adm State Op. State MO=================================================================================== 457 2 (SHUTTINGDOWN) 1 (ENABLED) Equipment=1,Subrack=MS,Slot=5,PlugInUnit=1===================================================================================Total: 1 MOs
RNC10> st 457
===================================================================================Proxy Adm State Op. State MO=================================================================================== 457 0 (LOCKED) 1 (ENABLED) Equipment=1,Subrack=MS,Slot=5,PlugInUnit=1===================================================================================Total: 1 MOs
Checking which MOs support soft-lock
RNC10> mom pluginunit admin
##################################################################################################MO Class Attribute Type Flags##################################################################################################PlugInUnit administrativeState enumRef:AdmState --------------------------------------------------------------------------------------------------The administrative state of the PlugInUnit.The possibility to rollback the setting of this attribute is limited.Default=locked **************************************************************************************************
##################################################################################################MO Class Attribute Type Flags##################################################################################################UtranCell administrativeState enumRef:SupportedAdminStates --------------------------------------------------------------------------------------------------The administrative state of the cell.Default=LOCKED **************************************************************************************************
Attribute 1 of 2, ftpServerIpAddress (string): 137.58.194.174
Attribute 2 of 2, upFilePathOnFtpServer (string): /TCM/UP/WENDY/CXP9012014_R4G04/CXP9012014_R4G05.xml
Following attributes are optional. Enter attribute value or "d" for default.Once the MO is created, these attributes cannot be changed (they are restricted).
Attribute 1 of 2, user (string): d
Attribute 2 of 2, password (string): d
!!!! Processing failure :se.ericsson.cello.upgradepackage.main.exception.FtpServerNotAccessibleException TAG :"FtpServerNotAccessible" VARIABLES :"$msg" = "Invalid user ID, password or IP address for FTP server"
Attribute 1 of 2, ftpServerIpAddress (string): 137.58.194.174
Attribute 2 of 2, upFilePathOnFtpServer (string): /TCM/UP/WENDY/CXP9012014_R4G04/CXP9012014_R4G05.xml
Following attributes are optional. Enter attribute value or "d" for default.Once the MO is created, these attributes cannot be changed (they are restricted).
Attribute 1 of 2, user (string): ftp
Attribute 2 of 2, password (string): ftp
>>> [Proxy ID = 5205] MO name :ManagedElement=1,SwManagement=1,UpgradePackage=CXP9012014_R4G05
To exit from a create statement, just type “enter” at one of the prompts
Attribute 1 of 2, ftpServerIpAddress (string): Empty value! Aborting...
To input an empty value, type “d” or “null”.
Finn Magnusson 2008-06-25 rev PA43 116/330
`3.8 acl/acc command
OFFLINE> h acl
*******************************************************acl/lacl <moGroup>|<moFilter>|<proxy(s)>|all [<action-filter>]*******************************************************Lists available MO actions.
....
RNC10> h acc
*******************************************************acc/lacc <moGroup>|<moFilter>|<proxy(s)>|all <action>*******************************************************Execute an MO action.
//PARAMETER VALUE IN ACC COMMAND USE SAME SYNTAX AS ATTRIBUTE VALUE IN SET COMMAND
RNC10> acl 0
=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 0 ManagedElement=1 manualRestart 3 0 ManagedElement=1 restart 1=================================================================================================================
RNC10> acc 0 manualrestart
Call Action manualrestart on following MOs ?=================================================================================== 0 ManagedElement=1===================================================================================Are you Sure [y/n] ? y
=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 0 ManagedElement=1 manualRestart 3
Parameter 1 of 3, restartRank (enumRef-RestartRank): Enter one of the following integers: 0:RESTART_WARM, 1:RESTART_REFRESH, 2:RESTART_COLD, 3:RESTART_COLDWTEST: 0
Parameter 2 of 3, restartReason (enumRef-RestartReason): Enter one of the following integers: 0:PLANNED_RECONFIGURATION, 1:UNPLANNED_NODE_EXTERNAL_PROBLEMS, 2:UNPLANNED_NODE_UPGRADE_PROBLEMS, 3:UNPLANNED_O_AND_M_ISSUE, 4:UNPLANNED_CYCLIC_RECOVERY, 5:UNPLANNED_LOCKED_RESOURCES, 6:UNPLANNED_COLD_WITH_HW_TEST, 7:UNPLANNED_CALL_PROCESSING_DEGRADATION, 8:UNPLANNED_LOW_COVERAGE: 0
Parameter 3 of 3, restartInfo (string): eanzmagn >>> Return value = null
Waiting 20 seconds before starting to poll...CORBA.COMM_FAILURE MO service not ready, retrying in 10 seconds...CORBA.TRANSIENT MO service not ready, retrying in 10 seconds...CORBA.TRANSIENT MO service not ready, retrying in 10 seconds...CORBA.TRANSIENT MO service not ready, retrying in 10 seconds...CORBA.OBJECT_NOT_EXIST MO service not ready, retrying in 10 seconds...CORBA.OBJECT_NOT_EXIST MO service not ready, retrying in 10 seconds...CORBA.OBJECT_NOT_EXIST MO service not ready, retrying in 10 seconds...CORBA.OBJECT_NOT_EXIST MO service not ready, retrying in 10 seconds...MO service is ready.
RNC10> acc 000900 manualrestart
Call Action manualrestart on following MOs ?=================================================================================== 485 Equipment=1,Subrack=MS,Slot=9,PlugInUnit=1===================================================================================Are you Sure [y/n] ? y
=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 485 Subrack=MS,Slot=9,PlugInUnit=1 manualRestart 3
Parameter 1 of 3, restartRank (enumRef-RestartRank): Enter one of the following integers: 0:RESTART_WARM, 1:RESTART_REFRESH, 2:RESTART_COLD, 3:RESTART_COLDWTEST: 0
Parameter 2 of 3, restartReason (enumRef-RestartReason): Enter one of the following integers: 0:PLANNED_RECONFIGURATION, 1:UNPLANNED_NODE_EXTERNAL_PROBLEMS, 2:UNPLANNED_NODE_UPGRADE_PROBLEMS, 3:UNPLANNED_O_AND_M_ISSUE, 4:UNPLANNED_CYCLIC_RECOVERY, 5:UNPLANNED_LOCKED_RESOURCES, 6:UNPLANNED_COLD_WITH_HW_TEST, 7:UNPLANNED_CALL_PROCESSING_DEGRADATION, 8:UNPLANNED_LOW_COVERAGE: 0
Parameter 3 of 3, restartInfo (string): eanzmagn >>> Return value = null
=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 162 Subrack=MS,Slot=19,PlugInUnit=1,Spu=1,Spm=1 restart 0 >>> Return value = null
=================================================================================================================Total: 1 MOs attempted, 1 MOs actioned
RNC10> acc jvm=1 restart
=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 7 Jvm=1 restart 0 >>> Return value = null
=================================================================================================================Total: 1 MOs attempted, 1 MOs actioned
RNC10> pol
CORBA.COMM_FAILURE MO service not ready, retrying in 10 seconds...CORBA.TRANSIENT MO service not ready, retrying in 10 seconds...CORBA.TRANSIENT MO service not ready, retrying in 10 seconds...CORBA.TRANSIENT MO service not ready, retrying in 10 seconds...CORBA.OBJECT_NOT_EXIST MO service not ready, retrying in 10 seconds...CORBA.OBJECT_NOT_EXIST MO service not ready, retrying in 10 seconds...CORBA.OBJECT_NOT_EXIST MO service not ready, retrying in 10 seconds...CORBA.OBJECT_NOT_EXIST MO service not ready, retrying in 10 seconds...MO service is ready.
=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 1505 AtmPort=MS-26-1,VplTp=16,VpcTp=1,VclTp=vc44 eteLoopBack 0=================================================================================================================
=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 1722 Mtp3bSpItu=Iu1,Mtp3bSls=Iup-2-2810-3,Mtp3bSlItu=1 activate 0 1722 Mtp3bSpItu=Iu1,Mtp3bSls=Iup-2-2810-3,Mtp3bSlItu=1 deactivate 0 1722 Mtp3bSpItu=Iu1,Mtp3bSls=Iup-2-2810-3,Mtp3bSlItu=1 emergencyActivate 0 1722 Mtp3bSpItu=Iu1,Mtp3bSls=Iup-2-2810-3,Mtp3bSlItu=1 localInhibit 0 1722 Mtp3bSpItu=Iu1,Mtp3bSls=Iup-2-2810-3,Mtp3bSlItu=1 localUninhibit 0=================================================================================================================
RNC10> acl iprouting
=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 2582 Ip=1,IpRoutingTable=1 addStaticRoute 5 2582 Ip=1,IpRoutingTable=1 deleteStaticRoute 1 2582 Ip=1,IpRoutingTable=1 getRoutingTableEntry 1 2582 Ip=1,IpRoutingTable=1 listRoutes 0 2582 Ip=1,IpRoutingTable=1 numberOfRoutes 0=================================================================================================================
RNC10> acc iprouting listroutes
Finn Magnusson 2008-06-25 rev PA43 121/330
`=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 2582 Ip=1,IpRoutingTable=1 listRoutes 0 >>> Return value = 3destinationIpAddr destinationNetMask nextHopIpAddr routeMetric routeType interface redistribute active0.0.0.0 0.0.0.0 137.58.194.1 100 2 le0 FALSE active127.0.0.1 255.255.255.255 0.0.0.0 1 2 lo0 FALSE active137.58.194.0 255.255.254.0 0.0.0.1 1 2 le0 FALSE active=================================================================================================================Total: 1 MOs attempted, 1 MOs actioned
RNC10> acc iprouting addstaticroute
=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 2582 Ip=1,IpRoutingTable=1 addStaticRoute 5
Parameter 1 of 5, ipAddress (string): 122.10.1.10
Parameter 2 of 5, subnetMask (string): 255.255.255.255
Parameter 3 of 5, hopIpAddress (string): 122.10.1.10
Parameter 4 of 5, routeMetric (long): 1
Parameter 5 of 5, redistribute (boolean): false >>> Return value = null
=================================================================================================================Total: 1 MOs attempted, 1 MOs actioned
`Proxy MO Action Nr of Params================================================================================================================= 2582 Ip=1,IpRoutingTable=1 numberOfRoutes 0 >>> Return value = 4
=================================================================================================================Total: 1 MOs attempted, 1 MOs actioned
RNC10> acc ipr getroutingtableentry
=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 2582 Ip=1,IpRoutingTable=1 getRoutingTableEntry 1
=================================================================================================================Total: 1 MOs attempted, 1 MOs actioned
RNC10> acc ipr deletestaticroute
=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 2582 Ip=1,IpRoutingTable=1 deleteStaticRoute 1
Finn Magnusson 2008-06-25 rev PA43 123/330
`Parameter 1 of 1, routingTableEntry (structRef-RoutingTableEntry): destinationIpAddr=122.10.1.10,destinationNetworkMask=255.255.255.255,nextHopIpAddr=122.10.1.10!!!! Processing failure :se.ericsson.cello.moframework.NoSuchFieldException TAG :"NoSuchField" VARIABLES :"$fieldName" = "routeMetric"
=================================================================================================================Total: 1 MOs attempted, 0 MOs actioned
RNC10> acc ipr deletestaticroute
=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 2582 Ip=1,IpRoutingTable=1 deleteStaticRoute 1
Parameter 1 of 1, routingTableEntry (structRef-RoutingTableEntry): destinationIpAddr=122.10.1.10,destinationNetworkMask=255.255.255.255,nextHopIpAddr=122.10.1.10,routemetric=1 >>> Return value = null
=================================================================================================================Total: 1 MOs attempted, 1 MOs actioned
RNC10> acc ipr listroutes
=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 2582 Ip=1,IpRoutingTable=1 listRoutes 0 >>> Return value = 30.0.0.0 0.0.0.0 137.58.194.1 100 2 le0 FALSE active127.0.0.1 255.255.255.255 0.0.0.0 1 2 lo0 FALSE active137.58.194.0 255.255.254.0 0.0.0.1 1 2 le0 FALSE active
=================================================================================================================Total: 1 MOs attempted, 1 MOs actioned
=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 793 Synchronization=1 addSyncRefResource 2 793 Synchronization=1 changeSyncRefPriority 2 793 Synchronization=1 removeSyncRefResource 1 793 Synchronization=1 resetLossOfTracking 1=================================================================================================================
RNC10> acc 793 removeSyncRefResource
Finn Magnusson 2008-06-25 rev PA43 125/330
`=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 793 Synchronization=1 removeSyncRefResource 1
Parameter 1 of 1, syncReference (moRef-ManagedObject): Enter mo LDN: Equipment=1,Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=1Last MO: 801. Loaded 8 MOs. Total: 799 MOs. MO Class: Os155SpiTtp. >>> Return value = null
=================================================================================================================Total: 1 MOs attempted, 1 MOs actioned
RNC10> acc 793 addSyncRefResource
=================================================================================================================Proxy MO Action Nr of Params================================================================================================================= 793 Synchronization=1 addSyncRefResource 2
Parameter 1 of 2, syncReference (moRef-ManagedObject): Enter mo LDN: Equipment=1,Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=1
Parameter 2 of 2, syncPriority (long): 3 >>> Return value = null
=================================================================================================================Total: 1 MOs attempted, 1 MOs actioned
To cancel an action, just type “enter” at one of the prompts.
RNC10> acc 0 restart
=================================================================================================================Proxy MO Action Nr of Params
Parameter 1 of 1, restartRank (enumRef-RestartRank): Enter one of the following integers: 0:RESTART_WARM, 1:RESTART_REFRESH, 2:RESTART_COLD, 3:RESTART_COLDWTEST: Empty value! Aborting...
=================================================================================================================Total: 1 MOs attempted, 0 MOs actioned
Parameter 1 of 6, cvName (string): Rb_CXP9012123_R5B02_061214_0853
Parameter 2 of 6, pathOnFtpServer (string): /home/eanzmagn
Parameter 3 of 6, cvBackupNameOnFtpServer (string): null (note: null is used for inputting an empty value)
Parameter 4 of 6, ftpServerIpAddress (string): 137.58.194.137
Parameter 5 of 6, ftpServerUserId (string): x
Parameter 6 of 6, ftpServerPassword (string): x >>> Return value = 115838507
=================================================================================================================Total: 1 MOs attempted, 1 MOs actioned
RNC37> get 1 actionre
=================================================================================================================MO Attribute Value=================================================================================================================ConfigurationVersion=1 actionResult Struct{6} >>> 1.actionId = 115838507 >>> 2.time = Date: 2007-01-09, Time: 11:59:02.136 >>> 3.invokedAction = 3 (PUT_TO_FTP_SERVER) >>> 4.mainResult = 2 (EXECUTION_FAILED) >>> 5.configurationVersionName = Rb_CXP9012123_R5B02_061214_0853 >>> 6.pathToDetailedInformation = ConfigurationVersion=1 additionalActionResultData t[1] = >>> Struct[0] has 2 members: >>> 1.information = 8 (FTP_ACCESS_OR_TRANSFER_FAILED) >>> 2.additionalInformation = se.ericsson.cello.configurationversion.export.control.FTP_AccessOrTransferFailedException TAG :"Class name: se.ericsson.cello.configurationversion.export.control.ExporterCould not export (put) the CV backup archive file to the FTP server due to FTP access or transfer failed. putCV_ZIP_ArchiveFileToFTP_Server(String aFilePath, String anIP_Address, String anUserID, String aPassword, String aPathOnFtpServer) Additional failure reason: Code: 1002
Purpose: To run a command file that contains moshell commands. No confirmations are needed in the command file. RNC10> h run
*******************************************************run <command file> [<var1>] [<var2>] ...*******************************************************The command file layout is the same as for monode and mobatch. See examples in moshell/example/mobatch_cmdfilesIt shall contain all lines to be sent to the moshell prompt, including password (for ose commands), but NOT confirmations ("y").This applies to commands such as "lt/ltc", "lc/lcc", "del", "bl", "set", where confirmation is automatically entered when running a command file.Comments can be put in the command file using the # sign.By typing <TAB>, the unix file system is displayed, making it easier to find the location of the command file.If some arguments are given after the command file, the scripting variables $1, $2, $3, etc. will be set to the corresponding values. Type "h scripting" for info.
`This command allows to run an EMAS/MoTester command files from within moshell.By typing <TAB>, the unix file system is displayed, making it easier to find the location of the command file.It is also possible to specify a file located on a web server (eg. when the script is located on the CPP node).By default, the command file will halt upon encountering any exceptions.By using the "truni" command, the script ignores all "Processing Failure" exceptions (it will still halt upon other kind of exceptions such as parsing failure and LDN not found).The command file layout is the same as for EMAS/MoTester command files.The following commands are supported: ECHO, CREATE, SET, DELETE, ACTION, CHECK, REFRESH, CALL.Lines can be commented out by adding // at the beginning of each line.See examples below (for more info, refer to MoTester documentation): CREATE ( parent "ManagedElement=1,SwManagement=1" identity "ROJ1192104_3_R4" moType PiuType exception none nrOfAttributes 3 productData Struct nrOfElements 5 productNumber String "ROJ1192104/3" productRevision String "R4" productName String "TUB" productInfo String "TU" productionDate String "20030116" boardWidth Integer 3 role Integer 2 ) DELETE ( mo "ManagedElement=1,SwManagement=1,PiuType=ROJ1192104_3_R4" exception none ) SET ( mo "ManagedElement=1,Equipment=1,Jvm=1" exception none admClasspath Array Reference 4 "ManagedElement=1,SwManagement=1,LoadModule=Oms" "ManagedElement=1,SwManagement=1,LoadModule=Asms" "ManagedElement=1,SwManagement=1,LoadModule=VbjOrb" "ManagedElement=1,SwManagement=1,LoadModule=Cma" )
An MO can only be deleted when its reservedBy list is empty and when it does not have any children. If the MO does have children and/or a non-empty reservedBy attribute, it is possible to use the rdel/lrdel command instead.
.....
RNC11> h rdel
*******************************************************rdel/lrdel <moGroup>|<moFilter>|<proxy(s)>*******************************************************Delete MO(s) together with children and reserving MOs.
......
RNC10> del 5204
Delete following MOs ?=================================================================================== 5204 RncFunction=1,IubLink=99===================================================================================Warning: Undo Mode is currently inactive !!!!Are you Sure [y/n] ? y
Deleting ...=================================================================================== 5204 RncFunction=1,IubLink=99 >>> Mo deleted===================================================================================Total: 1 MOs attempted, 1 MOs deleted
Finn Magnusson 2008-06-25 rev PA43 132/330
`RNC10> del iublink=1$
Delete following MOs ?=================================================================================== 4691 RncFunction=1,IubLink=1===================================================================================Warning: Undo Mode is currently inactive !!!!Are you Sure [y/n] ? y
Deleting ...=================================================================================== 4691 RncFunction=1,IubLink=1 !!!! Processing failure :se.ericsson.wcdma.rnc.roam.mao.commonmo.ProcessingFailureException TAG :"ProcessingFailureException" VARIABLES :"$Message" = "IubLink could not be deleted, there are still references to cell(s)"===================================================================================Total: 1 MOs attempted, 0 MOs deleted
RNC10> rdel iublink=1$
Recursive Delete following MOs ?=================================================================================== 4691 RncFunction=1,IubLink=1===================================================================================Warning: Undo Mode is currently inactive !!!!Are you Sure [y/n] ? n
RNC10> u+
Logging del/rdel/set/bl/deb commands to file: /home/eanzmagn/moshell_logfiles/logs_moshell/undo/undo_RNC10_060709-001748.log
RNC10> rdel iublink=1$
Recursive Delete following MOs ?=================================================================================== 4691 RncFunction=1,IubLink=1===================================================================================Are you Sure [y/n] ? y..Delete following MOs ?=================================================================================== 3776 RncFunction=1,UtranCell=30101,UtranRelation=30101_30103_softer_wo 3764 RncFunction=1,UtranCell=30102,UtranRelation=30102_30103_softer_wo
` 1689 TransportNetwork=1,AtmPort=MS-26-1,VplTp=1,VpcTp=1,VclTp=vc38 1688 TransportNetwork=1,AtmPort=MS-26-1,VplTp=1,VpcTp=1,VclTp=vc39 1687 TransportNetwork=1,AtmPort=MS-26-1,VplTp=1,VpcTp=1,VclTp=vc40 1686 TransportNetwork=1,AtmPort=MS-26-1,VplTp=1,VpcTp=1,VclTp=vc43 1685 TransportNetwork=1,AtmPort=MS-26-1,VplTp=1,VpcTp=1,VclTp=vc44 1684 TransportNetwork=1,AtmPort=MS-26-1,VplTp=1,VpcTp=1,VclTp=vc45===================================================================================Are you Sure [y/n] ? y
Deleting ...=================================================================================== 3776 RncFunction=1,UtranCell=30101,UtranRelation=30101_30103_softer_wo >>> Mo deleted 3764 RncFunction=1,UtranCell=30102,UtranRelation=30102_30103_softer_wo >>> Mo deleted 3755 RncFunction=1,UtranCell=30103,UtranRelation=30103_30102_softer_wo >>> Mo deleted 3756 RncFunction=1,UtranCell=30103,UtranRelation=30103_301107_soft_wo >>> Mo deleted 3760 RncFunction=1,UtranCell=30103,UtranRelation=30103_30165_soft_wo >>> Mo deleted 3761 RncFunction=1,UtranCell=30103,UtranRelation=30103_30166_soft_wo >>> Mo deleted 3757 RncFunction=1,UtranCell=30103,UtranRelation=30103_30185_soft_wo >>> Mo deleted 3758 RncFunction=1,UtranCell=30103,UtranRelation=30103_30186_soft_wo >>> Mo deleted 3759 RncFunction=1,UtranCell=30103,UtranRelation=30103_30187_soft_wo >>> Mo deleted 4419 RncFunction=1,UtranCell=301107,UtranRelation=301107_30103_soft_wo >>> Mo deleted 3001 RncFunction=1,UtranCell=30165,UtranRelation=30165_30103_soft_wo >>> Mo deleted 2992 RncFunction=1,UtranCell=30166,UtranRelation=30166_30103_soft_wo >>> Mo deleted 2766 RncFunction=1,UtranCell=30185,UtranRelation=30185_30103_soft_wo >>> Mo deleted 2740 RncFunction=1,UtranCell=30187,UtranRelation=30187_30103_soft_wo >>> Mo deleted 3752 RncFunction=1,UtranCell=30103,Fach=301030 >>> Mo deleted 3753 RncFunction=1,UtranCell=30103,Hsdsch=301034 >>> Mo deleted 3754 RncFunction=1,UtranCell=30103,Pch=301033 >>> Mo deleted 3762 RncFunction=1,UtranCell=30103,Rach=301032 >>> Mo deleted 3751 RncFunction=1,UtranCell=30103 >>> Mo deleted 4637 RncFunction=1,LocationArea=3015,RoutingArea=11 !!!! Processing failure :se.ericsson.wcdma.rnc.roam.mao.commonmo.ProcessingFailureException TAG :"ProcessingFailureException" VARIABLES :"$Message" = "RoutingArea could not be deleted, there are still references in reservedBy ! " 4634 RncFunction=1,LocationArea=3015,ServiceArea=1003 >>> Mo deleted 3766 RncFunction=1,UtranCell=30102,UtranRelation=30102_301106_soft_wo >>> Mo deleted 3774 RncFunction=1,UtranCell=30102,UtranRelation=30102_30123_soft_wo >>> Mo deleted 3772 RncFunction=1,UtranCell=30102,UtranRelation=30102_30144_soft_wo >>> Mo deleted 3773 RncFunction=1,UtranCell=30102,UtranRelation=30102_30145_soft_wo >>> Mo deleted 3769 RncFunction=1,UtranCell=30102,UtranRelation=30102_30165_soft_wo >>> Mo deleted 3770 RncFunction=1,UtranCell=30102,UtranRelation=30102_30166_soft_wo >>> Mo deleted 4434 RncFunction=1,UtranCell=301106,UtranRelation=301106_30102_soft_wo >>> Mo deleted 3519 RncFunction=1,UtranCell=30123,UtranRelation=30123_30102_soft_wo >>> Mo deleted
Finn Magnusson 2008-06-25 rev PA43 136/330
` 3253 RncFunction=1,UtranCell=30144,CoverageRelation=30144_30102 >>> Mo deleted 3256 RncFunction=1,UtranCell=30144,UtranRelation=30144_30102_soft_wo >>> Mo deleted 3236 RncFunction=1,UtranCell=30145,UtranRelation=30145_30102_soft_wo >>> Mo deleted 3004 RncFunction=1,UtranCell=30165,UtranRelation=30165_30102_soft_wo >>> Mo deleted 2990 RncFunction=1,UtranCell=30166,UtranRelation=30166_30102_soft_wo >>> Mo deleted 3771 RncFunction=1,UtranCell=30102,Fach=301020 >>> Mo deleted 3767 RncFunction=1,UtranCell=30102,Hsdsch=301024 >>> Mo deleted 3765 RncFunction=1,UtranCell=30102,Pch=301023 >>> Mo deleted 3768 RncFunction=1,UtranCell=30102,Rach=301022 >>> Mo deleted 3763 RncFunction=1,UtranCell=30102 >>> Mo deleted 4635 RncFunction=1,LocationArea=3015,ServiceArea=1002 >>> Mo deleted 3781 RncFunction=1,UtranCell=30101,UtranRelation=30101_301106_soft_wo >>> Mo deleted 3777 RncFunction=1,UtranCell=30101,UtranRelation=30101_30122_soft_wo >>> Mo deleted 3778 RncFunction=1,UtranCell=30101,UtranRelation=30101_30123_soft_wo >>> Mo deleted 3779 RncFunction=1,UtranCell=30101,UtranRelation=30101_30124_soft_wo >>> Mo deleted 3786 RncFunction=1,UtranCell=30101,UtranRelation=30101_30143_soft_wo >>> Mo deleted 3784 RncFunction=1,UtranCell=30101,UtranRelation=30101_30164_soft_wo >>> Mo deleted 4433 RncFunction=1,UtranCell=301106,UtranRelation=301106_30101_soft_wo >>> Mo deleted 3532 RncFunction=1,UtranCell=30122,UtranRelation=30122_30101_soft_wo >>> Mo deleted 3518 RncFunction=1,UtranCell=30123,UtranRelation=30123_30101_soft_wo >>> Mo deleted 3507 RncFunction=1,UtranCell=30124,UtranRelation=30124_30101_soft_wo >>> Mo deleted 3260 RncFunction=1,UtranCell=30143,UtranRelation=30143_30101_soft_wo >>> Mo deleted 3014 RncFunction=1,UtranCell=30164,UtranRelation=30164_30101_soft_wo >>> Mo deleted 3783 RncFunction=1,UtranCell=30101,Fach=301010 >>> Mo deleted 3785 RncFunction=1,UtranCell=30101,Hsdsch=301014 >>> Mo deleted 3780 RncFunction=1,UtranCell=30101,Pch=301013 >>> Mo deleted 3782 RncFunction=1,UtranCell=30101,Rach=301012 >>> Mo deleted 3775 RncFunction=1,UtranCell=30101 >>> Mo deleted 4636 RncFunction=1,LocationArea=3015,ServiceArea=1001 >>> Mo deleted 4693 RncFunction=1,IubLink=1,NbapCommon=1 >>> Mo deleted 4692 RncFunction=1,IubLink=1,NbapDedicated=1 >>> Mo deleted 4696 RncFunction=1,IubLink=1,NodeSynchTp=1 >>> Mo deleted 4695 RncFunction=1,IubLink=1,NodeSynchTp=2 >>> Mo deleted 4694 RncFunction=1,IubLink=1,NodeSynch=1 >>> Mo deleted 4691 RncFunction=1,IubLink=1 >>> Mo deleted 1916 TransportNetwork=1,Aal2RoutingCase=Iub1 >>> Mo deleted 1993 TransportNetwork=1,Aal2Sp=1,Aal2Ap=Iub1,Aal2PathDistributionUnit=Iub1 >>> Mo deleted 1992 TransportNetwork=1,Aal2Sp=1,Aal2Ap=Iub1 >>> Mo deleted 1867 TransportNetwork=1,Aal2PathVccTp=Iub1-1 >>> Mo deleted 1864 TransportNetwork=1,Aal2PathVccTp=Iub1-2 >>> Mo deleted 1861 TransportNetwork=1,Aal2PathVccTp=Iub1-3 >>> Mo deleted 1816 TransportNetwork=1,UniSaalTp=1 >>> Mo deleted 1815 TransportNetwork=1,UniSaalTp=2 >>> Mo deleted
Finn Magnusson 2008-06-25 rev PA43 137/330
` 1814 TransportNetwork=1,UniSaalTp=3 >>> Mo deleted 1813 TransportNetwork=1,UniSaalTp=4 >>> Mo deleted 1812 TransportNetwork=1,UniSaalTp=5 >>> Mo deleted 1811 TransportNetwork=1,UniSaalTp=6 >>> Mo deleted 2156 TransportNetwork=1,Aal0TpVccTp=1 >>> Mo deleted 2155 TransportNetwork=1,Aal0TpVccTp=2 >>> Mo deleted 1966 TransportNetwork=1,Aal5TpVccTp=1 >>> Mo deleted 1965 TransportNetwork=1,Aal5TpVccTp=2 >>> Mo deleted 1964 TransportNetwork=1,Aal5TpVccTp=3 >>> Mo deleted 1963 TransportNetwork=1,Aal5TpVccTp=4 >>> Mo deleted 1962 TransportNetwork=1,Aal5TpVccTp=5 >>> Mo deleted 1961 TransportNetwork=1,Aal5TpVccTp=6 >>> Mo deleted 1693 TransportNetwork=1,AtmPort=MS-26-1,VplTp=1,VpcTp=1,VclTp=vc34 >>> Mo deleted 1692 TransportNetwork=1,AtmPort=MS-26-1,VplTp=1,VpcTp=1,VclTp=vc35 >>> Mo deleted 1691 TransportNetwork=1,AtmPort=MS-26-1,VplTp=1,VpcTp=1,VclTp=vc36 >>> Mo deleted 1690 TransportNetwork=1,AtmPort=MS-26-1,VplTp=1,VpcTp=1,VclTp=vc37 >>> Mo deleted 1689 TransportNetwork=1,AtmPort=MS-26-1,VplTp=1,VpcTp=1,VclTp=vc38 >>> Mo deleted 1688 TransportNetwork=1,AtmPort=MS-26-1,VplTp=1,VpcTp=1,VclTp=vc39 >>> Mo deleted 1687 TransportNetwork=1,AtmPort=MS-26-1,VplTp=1,VpcTp=1,VclTp=vc40 >>> Mo deleted 1686 TransportNetwork=1,AtmPort=MS-26-1,VplTp=1,VpcTp=1,VclTp=vc43 >>> Mo deleted 1685 TransportNetwork=1,AtmPort=MS-26-1,VplTp=1,VpcTp=1,VclTp=vc44 >>> Mo deleted 1684 TransportNetwork=1,AtmPort=MS-26-1,VplTp=1,VpcTp=1,VclTp=vc45 >>> Mo deleted===================================================================================Total: 94 MOs attempted, 93 MOs deleted
RNC10> u-
To undo, execute command: run /home/eanzmagn/moshell_logfiles/logs_moshell/undo/undo_RNC10_060709-001748.mos
Logging del/rdel/set/bl/deb commands to file: /home/eanzmagn/moshell_logfiles/logs_moshell/undo/undo_RNC10_060709-002556.log
RNC10> del iublink=10
Delete following MOs ?=================================================================================== 4879 RncFunction=1,IubLink=10===================================================================================Note: Running in Simulated Undo mode. No actual deletion will be performed !!!!Are you Sure [y/n] ? y
Deleting ...=================================================================================== 4879 RncFunction=1,IubLink=10 >>> Simulated MO deletion===================================================================================Total: 1 MOs attempted, 1 MOs deleted
To undo, execute command: run /home/eanzmagn/moshell_logfiles/logs_moshell/undo/undo_RNC10_060709-002556.mos
RNC10> u+s
Logging del/rdel/set/bl/deb commands to file: /home/eanzmagn/moshell_logfiles/logs_moshell/undo/undo_RNC10_061003-112724.log
RNC10> rdel 2507
Recursive Delete following MOs ?
Finn Magnusson 2008-06-25 rev PA43 139/330
`=================================================================================== 2507 TransportNetwork=1,AtmPort=MS-27-1,VplTp=1,VpcTp=1,VclTp=vc100===================================================================================Note: Running in Simulated Undo mode. No actual deletion will be performed !!!!Are you Sure [y/n] ? y........Delete following MOs ?=================================================================================== 1991 TransportNetwork=1,Aal2Sp=1,Aal2Ap=Iub1,Aal2PathDistributionUnit=Iub1 1859 TransportNetwork=1,Aal2PathVccTp=Iub1-3 2507 TransportNetwork=1,AtmPort=MS-27-1,VplTp=1,VpcTp=1,VclTp=vc100===================================================================================Note: Running in Simulated Undo mode. No actual deletion will be performed !!!!Are you Sure [y/n] ? y
To undo, execute command: run /home/eanzmagn/moshell_logfiles/logs_moshell/undo/undo_RNC10_061003-112724.mos ($undocommandfile)
To generate the command file in EMAS/MoTester format:
RNC10> u! $undocommandfile
Example:
RNC10> u+s
Finn Magnusson 2008-06-25 rev PA43 140/330
`
Logging del/rdel/set/bl/deb commands to file: /home/eanzmagn/moshell_logfiles/logs_moshell/undo/undo_RNC10_070604-114040.log
RNC10> del 11
Delete following MOs ?=================================================================================== 11 Equipment=1,Subrack=MS,Slot=28,PlugInUnit=1===================================================================================Note: Running in Simulated Undo mode. No actual deletion will be performed !!!!Are you Sure [y/n] ? y
Deleting ...=================================================================================== 11 Equipment=1,Subrack=MS,Slot=28,PlugInUnit=1 >>> Simulated MO deletion===================================================================================Total: 1 MOs attempted, 1 MOs deleted
` exception none administrativeState Integer 1)SET( mo "ManagedElement=1,Equipment=1,Subrack=MS,Slot=28,PlugInUnit=1" exception none piuGroupNumber Integer 8)SET( mo "ManagedElement=1,Equipment=1,Subrack=MS,Slot=28,PlugInUnit=1" exception none userLabel String "")SET( mo "ManagedElement=1,Equipment=1,Subrack=MS,Slot=28,PlugInUnit=1" exception none allowedSeqRestarts Integer 3)
3.12rset command
Purpsose: to set an attribute that is restricted (use the “mom” command to see if an attribute is restricted)Works by deleting the MO and recreating it with the new value.Is equivalent to doing the following 5 steps: u+, del/rdel, u-, editing the undo file, run the undofile
============================================================================================================ Id MO atmTrafficDescriptorId Result============================================================================================================ 446 AtmPort=MS-27-1,VplTp=1,VpcTp=1,VclTp=vc100 448 !!!! Processing failure :se.ericsson.cello.moframework.NoSuchAttributeException TAG :"NoSuchAttribute" VARIABLES :"$attrName" = "atmTrafficDescriptorId", "$moTypeName" = "VclTp"============================================================================================================Total: 1 MOs attempted, 0 MOs set
RNC10> mom vcltp atmtraff
##################################################################################################MO Class Attribute Type Flags##################################################################################################VclTp atmTrafficDescriptorId moRef:AtmTrafficDescriptor restricted,noNotification,mandatory--------------------------------------------------------------------------------------------------Reference to the AtmTrafficDescriptor profile.**************************************************************************************************
Set restricted attribute atmtrafficdescriptorid on following MOs ?=================================================================================== 446 TransportNetwork=1,AtmPort=MS-27-1,VplTp=1,VpcTp=1,VclTp=vc100===================================================================================Are you Sure [y/n] ? y
etc....
Deleting ...=================================================================================== 595 TransportNetwork=1,Aal2Sp=1,Aal2Ap=Iub1,Aal2PathDistributionUnit=Iub1 >>> Mo deleted 510 TransportNetwork=1,Aal2PathVccTp=Iub1-3 >>> Mo deleted 446 TransportNetwork=1,AtmPort=MS-27-1,VplTp=1,VpcTp=1,VclTp=vc100 >>> Mo deleted
Finn Magnusson 2008-06-25 rev PA43 144/330
`===================================================================================Total: 3 MOs attempted, 3 MOs deleted
Note: from cpp5.1, the restriction has been removed on certain attributes such as VclTp::atmTrafficDescriptorId so it is then possible to use “set” instead of “rset”
*******************************************************al[atkc] [ | <unix cmds>]*******************************************************Print the list of active alarms.....
RNC10> al
Trying file=/home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20060708-224040_19846/ior19846Resolving the alarm service in OMS...Simple Alarm Client initialized...Starting to retrieve active alarmsNr of active alarms are: 11================================================================================================Sever Specific Problem Cause Mo-Reference================================================================================================Maj Loss of Signal loss_of_signal Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=1Maj Loss of Signal loss_of_signal Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=2Maj PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=1,PacketDataRouter=Pdr5Gtpu1Maj PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=1,PacketDataRouter=Pdr5Gtpu2Maj PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=8,PacketDataRouter=Pdr3Gtpu1Maj PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=8,PacketDataRouter=Pdr3Gtpu2Maj PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=8,PacketDataRouter=Pdr4Gtpu1Maj PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=8,PacketDataRouter=Pdr4Gtpu2Maj TU Synch Reference Loss of Signal loss_of_signal Subrack=MS,Slot=4,PlugInUnit=1,TimingUnit=1,TuSyncRef=1Maj TU Synch Reference Loss of Signal loss_of_signal Subrack=MS,Slot=5,PlugInUnit=1,TimingUnit=1,TuSyncRef=1Min Loss of Synch Reference Redundancy replaceable_unit_problem Synchronization=1>>> Total: 11 Alarms (0 Critical, 10 Major)
ALARM OPIs: http://cpistore.ericsson.se
4 Possible alarm severities:- Critical- Major- minor- warning
Trying file=/home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20060708-224040_19846/ior19846Resolving the alarm service in OMS...Simple Alarm Client initialized...Starting to retrieve active alarmsNr of active alarms are: 11UNACKNOWLEDGED ALARMS: 11================================================================================================Date & Time (Local) S Specific Problem Cause Mo-Reference================================================================================================2006-07-09 00:45:39 m Loss of Synch Reference Redundancy replaceable_unit_problem Synchronization=12006-07-09 00:45:40 M TU Synch Reference Loss of Signal loss_of_signal Subrack=MS,Slot=4,PlugInUnit=1,TimingUnit=1,TuSyncRef=12006-07-09 00:45:40 M TU Synch Reference Loss of Signal loss_of_signal Subrack=MS,Slot=5,PlugInUnit=1,TimingUnit=1,TuSyncRef=12006-07-09 00:45:41 M Loss of Signal loss_of_signal Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=22006-07-09 00:45:41 M Loss of Signal loss_of_signal Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=12006-07-09 00:48:21 M PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=8,PacketDataRouter=Pdr3Gtpu22006-07-09 00:48:21 M PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=8,PacketDataRouter=Pdr3Gtpu12006-07-09 00:48:22 M PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=8,PacketDataRouter=Pdr4Gtpu22006-07-09 00:48:22 M PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=8,PacketDataRouter=Pdr4Gtpu12006-07-09 00:51:03 M PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=1,PacketDataRouter=Pdr5Gtpu22006-07-09 00:51:03 M PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=1,PacketDataRouter=Pdr5Gtpu1
ACKNOWLEDGED ALARMS: 0================================================================================================================Date & Time (Local) S Specific Problem Cause Mo-Reference Operator================================================================================================================
Alarm Id : _2Event Time : Jul 9, 2006 12:45:40 AMPerceived Severity : MajorManaged Object Class : TuSyncRefManaged Object Instance : ManagedElement=1,Equipment=1,Subrack=MS,Slot=4,PlugInUnit=1,TimingUnit=1,TuSyncRef=1Specific Problem : TU Synch Reference Loss of SignalProbable Cause : loss_of_signalAdditional Text : Acknowledged by : Acknowledgement Time : Oct 15, 1582 1:00:00 AMAcknowledgement State: 2System DN : Notification Id : 2
Alarm Id : _71
Finn Magnusson 2008-06-25 rev PA43 147/330
`Event Time : Jul 9, 2006 12:51:03 AMPerceived Severity : MajorManaged Object Class : PacketDataRouterManaged Object Instance : ManagedElement=1,RncFunction=1,RncModule=1,PacketDataRouter=Pdr5Gtpu2Specific Problem : PacketDataRouter_CnNotRespondingToICMPEchoProbable Cause : communication_protocol_errorAdditional Text :
etc...
MGW1> alc
Trying file=/home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20080130-093624_13888/ior13888Resolving the alarm service in OMS...Simple Alarm Client initialized...Starting to retrieve active alarmsNr of active alarms are: 8Date;Time;Severity;Object;Problem;Cause;AdditionalText;AckState;Id2007-11-29;14:31:29;Major;SubNetwork=OSS38_ROOT_MO,MeContext=MGW1,ManagedElement=1,TransportNetwork=1,Mtp3bSpItu=2,M3uAssociation=m3ua_nwp168;M3UA Association Down;unavailable;m3ua_nwp168;2;SubNetwork=OSS38_ROOT_MO,MeContext=MGW1_72007-11-29;14:31:29;Major;SubNetwork=OSS38_ROOT_MO,MeContext=MGW1,ManagedElement=1,TransportNetwork=1,Mtp3bSpItu=2,M3uAssociation=m3ua_nwp169;M3UA Association Down;unavailable;m3ua_nwp169;2;SubNetwork=OSS38_ROOT_MO,MeContext=MGW1_82007-11-29;14:31:29;Major;SubNetwork=OSS38_ROOT_MO,MeContext=MGW1,ManagedElement=1,TransportNetwork=1,Mtp3bSpItu=2,Mtp3bSrs=bsc8;MTP3b Route Set Unavailable;routing_failure;bsc8;2;SubNetwork=OSS38_ROOT_MO,MeContext=MGW1_22007-11-29;14:31:29;Major;SubNetwork=OSS38_ROOT_MO,MeContext=MGW1,ManagedElement=1,TransportNetwork=1,Mtp3bSpItu=2,Mtp3bSrs=nwp169;MTP3b Route Set Unavailable;routing_failure;nwp169;2;SubNetwork=OSS38_ROOT_MO,MeContext=MGW1_32007-11-29;14:31:27;Major;SubNetwork=OSS38_ROOT_MO,MeContext=MGW1,ManagedElement=1,Equipment=1,Subrack=2,Slot=26,PlugInUnit=1,ExchangeTerminal=1,E1PhysPathTerm=2261;PDH Loss of Signal;loss_of_signal;E1PhysPathTerm 2261 for Etmc1 ATM Ext Sub slot 26;2;SubNetwork=OSS38_ROOT_MO,MeContext=MGW1_12007-11-29;14:31:29;Warning;SubNetwork=OSS38_ROOT_MO,MeContext=MGW1,ManagedElement=1,TransportNetwork=1,Mtp3bSpItu=2,Mtp3bSls=bsc8,Mtp3bSlItu=bsc8_0;MTP3b Link Out of Service;unavailable;bsc8_0;2;SubNetwork=OSS38_ROOT_MO,MeContext=MGW1_52007-11-29;14:31:29;Warning;SubNetwork=OSS38_ROOT_MO,MeContext=MGW1,ManagedElement=1,TransportNetwork=1,Mtp3bSpItu=2,Mtp3bSls=nwp163,Mtp3bSlItu=nwp163_1;MTP3b Link Out of Service;unavailable;nwp163_1;2;SubNetwork=OSS38_ROOT_MO,MeContext=MGW1_42007-11-29;14:31:29;Warning;SubNetwork=OSS38_ROOT_MO,MeContext=MGW1,ManagedElement=1,TransportNetwork=1,Mtp3bSpItu=2,Mtp3bSls=nwp169,Mtp3bSlItu=nwp169_0;MTP3b Link Out of Service;unavailable;nwp169_0;2;SubNetwork=OSS38_ROOT_MO,MeContext=MGW1_6
Finn Magnusson 2008-06-25 rev PA43 148/330
`>>> Total: 8 Alarms (0 Critical, 5 Major)
3.14Aborting an MO printout
CTRL-C works for aborting COLI commands but does not work to abort MO printouts. Use ctrl-z , then touch <stopfile> , then fgThe path of the stopfile appears in the window title
From RNC P5, RBS P5, MGW R4, the MOM that is stored on the node does not contain all attributes/actions information.Ericsson internal parameters and actions are now excluded from the MOM file stored on the node.The Complete MOM is stored on a server in the PDU and may be used by Ericsson personnel only.
=================================================================================================================1 RncFunction=1,RncSystemParameters=1==================================================================================================================================================================================================================================Total: 1 MOs
Checking MOM version...RNC_NODE_MODEL_G_1_4copying /vobs/rnc/rncNode/rnc.rose/mom/rnc_node_mimComplete.xml@@/main/wendy/wendy_Z_maint/1 to /home/eanzmagn/moshell/jarxml/RNC_NODE_MODEL_G_1_4_COMPLETE.xmlUsing MOM version: RNC_NODE_MODEL_G_1_4_COMPLETEParsing MOM: /home/eanzmagn/moshell/jarxml/RNC_NODE_MODEL_G_1_4_COMPLETE.xml ....................................................................Done.Caching MOM to: /home/eanzmagn/moshell/jarxml/RNC_NODE_MODEL_G_1_4_COMPLETE.xml.cache .....Done.Fetching IOR file...Done.**** Welcome to the Simple Mo Browser (version 3.0)!Trying file=/home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20060712-115757_29550/ior29550**** Test Construction OK****
Connected to 137.58.194.88 (ManagedElement=1)===================================================================================Proxy MO=================================================================================== 0 ManagedElement=1===================================================================================Total: 1 MOs
RNC10> lt rncsystempar
Load Proxys for MOs of following type...===================================================================================RncSystemParameters===================================================================================
Please Confirm [y/n]: y
Last MO: 1. Loaded 1 MOs. Total: 2 MOs. MO Class: RncSystemParameters.
If an MO, an attribute or an action is not in specified in the MOM, it will not be possible to access it via the “get/set/acc” commands.The “force” commands can be used instead, in order to bypass the MOM : fget, fset, facc
OFFLINE> h fget
*******************************************************fget/lfget <moGroup>|<moFilter>|<proxy(s)>|all <attribute>*******************************************************Read attributes that are not described in the MOM ("Force" get).
Can be useful in case the xml MOM isn't up to date with the node SW, or in case there is no xml MOM.
OFFLINE> h fsetFinn Magnusson 2008-06-25 rev PA43 152/330
`
*******************************************************fset/lfset <moGroup>|<moFilter>|<proxy(s)>|all <attribute> [<value>] [<attribute-type>]*******************************************************Set an attribute that is not described in the MOM ("Force" set).
Can be useful in case the xml MOM isn't up to date with the node SW, or in case there is no xml MOM (e.g. MGW application part).The syntax is similar to the "set" command except that the attribute type has to explicitely specified using the reference list below.Example:lfset subrack=ms,slot=20,pluginunit=1$ administrativestate 0 i
Following attribute types are supported: i : integer/long/enum l : longlong s : string b : boolean r : moref f : float t : struct ai : array of integer/long/enum al : array of longlong as : array of string ab : array of boolean ar : array of moref af : array of float at : array of structref
hOFFLINE> h facc
*******************************************************facc/lfacc <moGroup>|<moFilter>|<proxy(s)>|all <action> [<param1>] [<param2>] ...*******************************************************Perform actions that are not defined in the MOM ("Force" action).
Can be useful in case the xml MOM isn't up to date with the node SW, or in case there is no xml MOM.If the parameter is a an integer or a string, the parameter type does not need to be specified as in the example above.Example:>> lfacc Sector=1,Carrier=1,HsDschResources=1 startRDBTCellHidden 16>> facc CommContexts=1 readHsMusOnCCHidden 0
Otherwise it should be explicitely specified, using the reference list below.Examples:
Following parameter types are supported: i : integer/long/enum l : longlong s : string b : boolean r : moref f : float t : struct ai : array of integer/long/enum al : array of longlong as : array of string ab : array of boolean ar : array of moref af : array of float at : array of structref
RNC10> get pluginunit resourceid
=================================================================================================================MO Attribute Value==================================================================================================================================================================================================================================Total: 0 MOs
Please enter attribute type (i|l|f|b|r|t|ai|al|af|ab|ar|at): s
============================================================================================================ Id MO mibprefix Result============================================================================================================ 0 ManagedElement=1 SubNetwork=RNCLAB,SubNetwork=RNS11,MeContext=RNC11 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
RNC10> from 0Trying password from ipdatabase file: /home/eanzmagn/moshell_sitefiles/ipdatabase...Loading and starting osa_coli_lm (CXC1325608)....OK.
=================================================================================================================0 ManagedElement=1=================================================================================================================ProductType NodeModelType RNC_NODE_MODEL_GModelVersion 5.22userLabel RNC10ApplicationConfiguration [0]MibPrefix SubNetwork=RNCLAB,SubNetwork=RNS11,MeContext=RNC11=================================================================================================================Total: 1 MOs
Open two windows, one with “runClient.sh –c ipaddress” (CM notifications) and one with “runClient.sh –a ipaddress” (FM notifications):
** NONE ** eanzmagn@srld7243:=> runClient.sh -c rnc10Connecting to 137.58.194.88...Fetching IOR file...Done.Starting CS Notification Client...Trying file=/tmp/ior24646_100521**** Test Construction OK
**:srld7261@~> runClient.sh -a rnc11Connecting to 137.58.194.147...Fetching IOR file...Done.Trying file=/tmp/ior293_060458Starting the subscription to Alarm/Event ServiceSuccessful subscription: OK
RNC10> st os155 dis
===================================================================================Proxy Adm State Op. State MO=================================================================================== 434 1 (UNLOCKED) 0 (DISABLED) Equipment=1,Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=2 436 1 (UNLOCKED) 0 (DISABLED) Equipment=1,Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=1===================================================================================Total: 2 MOs
//Lock the faulty MO//a notification is sent on CM to inform that adminstate has changed//a notification is sent on FM to inform that alarm is ceased
RNC10> bl 434
============================================================================================================ Id MO AdministrativeState Result============================================================================================================
Finn Magnusson 2008-06-25 rev PA43 157/330
` 434 Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=2 0 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
//On the CM notification window we get:070528 10:45:15 AVC Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=2 administrativeState 0
//On the FM notification window, we get:2007-05-28 10:48:53 AL_CLEAR Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=2 Loss of Signal: loss_of_signal
//Unlock the faulty MORNC10> deb 434
============================================================================================================ Id MO AdministrativeState Result============================================================================================================ 434 Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=2 1 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
//On the CM notification window we get:070528 10:45:25 AVC Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=2 administrativeState 1
//On the FM notification window we get:2007-05-28 10:49:31 AL_MAJOR Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=2 Loss of Signal: loss_of_signal
//In the command log (lgo) we get:2007-05-28 08:45:13 MO-C SET Equipment=1,Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=2 administrativeState 02007-05-28 08:45:25 MO-C SET Equipment=1,Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=2 administrativeState 1
//In the alarm log (lga) we get:2007-05-28 08:48:53 AL * Loss of Signal loss_of_signal Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=22007-05-28 08:49:31 AL M Loss of Signal loss_of_signal Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=2
Finn Magnusson 2008-06-25 rev PA43 158/330
`3.17MO -groups commands
RNC10> h ma
*******************************************************ma/lma <moGroup> <moGroup>|<moFilter>|<proxy(s)>|all [<attribute-filter>] [<value-filter>]*******************************************************To put MO LDNs into an MO-Group.
RNC10> h mr
*******************************************************mr/lmr <moGroup> [<moGroup>|<moFilter>|<proxy(s)>|all] [<attribute-filter>] [<value-filter>]*******************************************************Exactly the same as "ma" but the MOs matching will be removed from the MO-Group instead of added.If the second argument is omitted, the whole MO-group is removed.
RNC10> h mp
*******************************************************mp*******************************************************To print the available MO-Groups. See ma command for more info.
3.17.1 Method 1 : based on the distinguished name of the MO
RNC10> pr ms-6-1
===================================================================================Proxy MO=================================================================================== 2225 TransportNetwork=1,AtmPort=MS-6-1===================================================================================Total: 1 MOs
RNC10> ma test ms-6-1
Added 1 MOs to group: test
RNC10> pr test
Finn Magnusson 2008-06-25 rev PA43 159/330
`===================================================================================Proxy MO=================================================================================== 2225 TransportNetwork=1,AtmPort=MS-6-1===================================================================================Total: 1 MOs
====================================================MO-Group Nr of MOs==================================================== 1. test 2 2. test1 2 3. test2 66
To view the contents of an MO group, type "pr <mogroup>"
RNC10> mr test
Finn Magnusson 2008-06-25 rev PA43 164/330
`Removed group: test
RNC10> mr test1
Removed group: test1
RNC10> mr test2
Removed group: test2
//NOTE: when attribute value changes the MO group stays the same
3.17.3 Method 2b: based on the attribute value of the MO, using “hget” command
Example: make an MO group with all pluginunits that are locked and enabled:
RNC10> hget plug state 0 1
=================================================================================================================MO administrativeState operationalState=================================================================================================================Subrack=MS,Slot=19,PlugInUnit=1 0 (LOCKED) 1 (ENABLED) =================================================================================================================Total: 1 MOs
Added 1 MOs to group: hget_group
RNC10> st hget_group
===================================================================================Proxy Adm State Op. State MO=================================================================================== 138 0 (LOCKED) 1 (ENABLED) Equipment=1,Subrack=MS,Slot=19,PlugInUnit=1===================================================================================Total: 1 MOs
RNC10> ma test hget_group
Finn Magnusson 2008-06-25 rev PA43 165/330
`
Added 1 MOs to group: test
RNC10> st test
===================================================================================Proxy Adm State Op. State MO=================================================================================== 138 0 (LOCKED) 1 (ENABLED) Equipment=1,Subrack=MS,Slot=19,PlugInUnit=1===================================================================================Total: 1 MOs
Example: make an MO group with all UtranCells who have maxtxpwr at 400 and primarycpichpwr at 300:
3. group containing all nbapcommon MOs belonging to a specific module, in order to lock them
RNC10> lt root
This will clear the proxy list. OK to proceed? [y/n]: yConnected to 137.58.194.88 (ManagedElement=1)
RNC10> pr
===================================================================================Proxy MO=================================================================================== 0 ManagedElement=1===================================================================================Total: 1 MOs
RNC10> lt iublink
Load Proxys for MOs of following type...===================================================================================IubLink===================================================================================
Please Confirm [y/n]: y
Finn Magnusson 2008-06-25 rev PA43 177/330
`
Last MO: 40. Loaded 40 MOs. Total: 41 MOs. MO Class: IubLink.
Load Proxys for children of following MOs and all subsequent children...=================================================================================== 10 RncFunction=1,IubLink=40
The CPP PM service supports counter-based measurements (all nodes) and event-based measurements (RNC/RBS only)
The following access methods are supported:Finn Magnusson 2008-06-25 rev PA43 180/330
`
- instantaneous counter values for CPP, RBS and MGW MOs can be read via the CM Service “GetAttribute” operation (moshell command “pget”).It is not possible to read instantaneous counters for RNC MOs via the CM Service. - counter values for a given ROP (Result Output Period) can be read from the XML ROP files, provided there is an active statistics scanner containing these values. - events that occurred in a given ROP can be read from the binary ROP files, provided there is an active event scanner containing these events.
A ROP can be defined to be 5 minutes, 15 minutes, or 60 minutes.
Storage of the ROP files
Up to CPP5
Finn Magnusson 2008-06-25 rev PA43 181/330
`The location of the ROP files is defined in the attribute performanceDataPath on ManagedElementData MO. It can be changed by setting that attribute.The maximum number of statistics ROP files stored on the node is 200.
RNC10> get man.*data path
=================================================================================================================MO Attribute Value=================================================================================================================ManagedElementData=1 performanceDataPath /p001200/pm=================================================================================================================Total: 1 MOs
CPP6 and above
The location of the ROP files is defined in the attribute performanceDataPath on PmService MO. It can be changed in the attribute performanceDataVolume.
RNC11> get pmserv path
=================================================================================================================MO Attribute Value=================================================================================================================PmService=1 performanceDataPath /p001200/pm_dataPmService=1 performanceDataVolume /p001200/=================================================================================================================Total: 1 MOs
The maximum number of statistics ROP files stored on the node is settable in the attribute maxNoOfPmFiles.
PM related commands can be printed from the “p” menu.
OFFLINE> p
****************************************************************************************************Command Name Purpose (type "h <command>" for detailed help on a command)****************************************************************************************************pmom[ac]/lmom[c] Print description of PM counters (pmom) or log attributes (lmom, CDMA only).pget/lpget Read PM attribute(s) from MO(s).hpget[c]/lhpget[c] Read PM attribute(s) from MO(s), print horizontally one line per MO (instead of one line per attribute).pdiff/lpdiff Print incrementation of PM attributes.pmx[hfdn] Display counter values, extracted from the statistics ROP files.pmr[ag] Produce PM KPI reports, based on counter values in statistics ROP files and formulas in CPI documentation.pme[fd][cgu] Fetch/decode event ROP files (RNC/RBS only).pst List all PM scanners and their state.pgets[n] Print scanner contents.pcr[cfd]/lpcr[cfd] Create a statistics scanner.pbl Suspend a scanner.pdeb Resume a scanner.pdel Delete a scanner.emom Display list of events available for each kind of event-based scanner.pset[d] Set the contents of an event-based scanner (RNC/RBS only).
View the pm counters description:
RNC10> h pmom
*******************************************************pmom[ac]/lmom[c] [<moclass>|all] [<attribute>|all] [<attr-desc>]*******************************************************Print description of PM counters (pmom) or log attributes (lmom, CDMA only)........
RNC10> pmom vcltp
##################################################################################MO Class Pm Counters##################################################################################
##################################################################################MO Class Pm Counter##################################################################################VclTp pmReceivedAtmCells----------------------------------------------------------------------------------Performance monitoring counter for number of received ATM cells.**********************************************************************************
RNC10> pmom vcltp .
##################################################################################MO Class Pm Counter##################################################################################VclTp pmReceivedAtmCells----------------------------------------------------------------------------------Performance monitoring counter for number of received ATM cells.**********************************************************************************VclTp pmTransmittedAtmCells----------------------------------------------------------------------------------Performance monitoring counter for number of transmitted ATM cells.**********************************************************************************
RNC10> pmom . receive.*cell
##################################################################################MO Class Pm Counter##################################################################################AtmPort pmReceivedAtmCells----------------------------------------------------------------------------------Performance monitoring counter for number of received ATM cells through the ATM port.**********************************************************************************VclTp pmReceivedAtmCells----------------------------------------------------------------------------------Performance monitoring counter for number of received ATM cells.**********************************************************************************VplTp pmReceivedAtmCells
Finn Magnusson 2008-06-25 rev PA43 185/330
`----------------------------------------------------------------------------------Performance monitoring counter for number of received ATM cells for the VplTp.**********************************************************************************
*******************************************************emom [uetr|gpeh|ctr|all] [<event-filter>]*******************************************************Display list of events available for each kind of event-based scanner.
...<cut>...
RNC10> emom uetr
The node's MOM version is: G_1_4_COMPLETE. Using following event files: - /home/eanzmagn/moshell/jarxml/event/EVENT_RNC_UETR_E_1_0.txt - /home/eanzmagn/moshell/jarxml/event/EVENT_RNC_CTR_E_1_0.txt - /home/eanzmagn/moshell/jarxml/event/EVENT_RNC_GPEH_G_1_0.txt==================================================================UETR EVENTS==================================================================MEASUREMENT 5 MEASUREMENT_DOWNLINK_TRANSPORT_CHANNEL_BLER MEASUREMENT_MAXIMUM_UE_TX_POWER MEASUREMENT_TRANSMITTED_CODE_POWER MEASUREMENT_UE_TRANSMITTED_POWER MEASUREMENT_UPLINK_SIRINTERNAL_EVENT 3 INTERNAL_MEAS_RLC_BUFFER_INFORMATION INTERNAL_MEAS_TRANSPORT_CHANNEL_BER INTERNAL_MEAS_TRANSPORT_CHANNEL_BLERRANAP 27 RANAP_DIRECT_TRANSFER RANAP_ERROR_INDICATION RANAP_IU_RELEASE_COMMAND....<cut>..... RNSAP_RADIO_LINK_DELETION_REQUEST RNSAP_RADIO_LINK_DELETION_RESPONSE RNSAP_RADIO_LINK_FAILURE_INDICATION RNSAP_RADIO_LINK_RECONFIGURATION_CANCEL RNSAP_RADIO_LINK_RECONFIGURATION_COMMIT RNSAP_RADIO_LINK_RECONFIGURATION_FAILURE RNSAP_RADIO_LINK_RECONFIGURATION_PREPARE
pget/pdiff can be used for reading instantaneous counter values It uses the corba CM service, like “get”It works on most MOs except RNC MOs (UtranCell).
RNC10> h pget
*******************************************************pget/lpget [<moGroup>|<moFilter>|<proxy(s)>|all] [<attribute-filter>|all] [<value-filter>]*******************************************************Like get/lget, but only for viewing pm attributes.....
*******************************************************hpget[c]/lhpget[c] <moGroup>|<moFilter>|<proxy(s)> [<attribute-filter>] [<value1-filter>] [<value2-filter>] [<value3-filter>] etc...*******************************************************Similar to "pget" but attribute values are printed horizontally, one line per MO (instead of one line per counter)....
FOR READING PM COUNTER INCREMENTATIONS USE PDIFF, MORE INFORMATION IN CPP NCH PRESENTATION
MGW4> pdiff os155 pmmsses
Logging to file: /home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20070411-034658_20440/boLog20440..waiting 25 seconds before next check....Log close: /home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20070411-034658_20440/boLog20440=================================================================================================================MO Counter DiffValue
Note: some counters get reset at the end of each ROP and some don’t
RNC10> pmom atmport received
##################################################################################MO Class Pm Counter##################################################################################AtmPort pmReceivedAtmCells----------------------------------------------------------------------------------Description: Number of received ATM cells through the ATM port.Condition: An ATM cell is received.Counter is reset after measurement period: NoCounter type: PEGUnit: Number of ATM cells**********************************************************************************
RNC10> pmom aal2ap inconnslocalqosclassa
##################################################################################MO Class Pm Counter##################################################################################
Finn Magnusson 2008-06-25 rev PA43 191/330
`Aal2Ap pmUnSuccInConnsLocalQosClassA----------------------------------------------------------------------------------Description: Number of unsuccessful attempts to allocate AAL2 path resources (Common Part Sublayer) during establishment of incoming connections on thisAccess Point (AP) caused by Channel Identifier (CID) and/or bandwidth collision or mismatch of Call Admission Control (CAC) between peers. The granularity period of 60 minutes is not supported.Condition: Unsuccessful incoming connection establishment caused by unsuccessful resource allocation (CID, B/W, CAC)Counter is reset after measurement period: YesCounter type: PEGUnit: Number of establishements**********************************************************************************
4.2.2 Scanner handling
Important: if the node is connected to OSS, it is not recommended to make changes to the PM scanners from moshell since the changes will be undone by OSS. RNC10> h pst
*******************************************************pst [<scan-filter>|<scan-proxy>] [<scan-state>]*******************************************************List all PM scanners and their state.....
Trying password from ipdatabase file: /home/eanzmagn/moshell_logfiles/ipdatabase...$ sqlcselect * from scannerdata;Note! Have you allocated enough of heap memory to the loadmodule CXC1325608 to be able to run SQLC in the way you want?
Note! CTRL+C is not supported!!!
Component sqlc (V06.03.0017/OSE4-powerpc)Copyright (C) 1994-2007 by Polyhedra Ltd
+------+------+---------------------+| id | size | data |+------+------+---------------------+| 87 | 3886 | X'aced0005740f2738' || 130 | 3540 | X'aced0005740dcd31' || 175 | 93 | X'aced000574005631' |+------+------+---------------------+Query Done: 3 records selectedSQL> exit;$
*******************************************************pgets[n] [<scan-filter>|<scan-proxy>] [<contents-filter>]*******************************************************The printout from this command shows the contents of one or more scanners. (Without argument, all scanners are printed.)....
===================================================================97 USERDEF.LArea.STATS ACTIVE 900 1===================================================================LocationArea 1 pmCnInitPagingToIdleUeLa-------------------------------------------------------------------MOClass/MOInstance NrOfCountersInstancesLocationArea 3
Finn Magnusson 2008-06-25 rev PA43 197/330
`Total Nr of Counter Instances: 3Last MO: 6. Loaded 3 MOs. Total: 7 MOs. MO Class: RoutingArea.===================================================================98 USERDEF.RArea.STATS ACTIVE 900 1===================================================================RoutingArea 1 pmCnInitPagingToIdleUeRa-------------------------------------------------------------------MOClass/MOInstance NrOfCountersInstancesRoutingArea 3Total Nr of Counter Instances: 3===================================================================>>> Total: 2 Scanners>>> Total: 6 Counter Instances
RNC10> h pcr
*******************************************************pcr[cfd] <scannerName> <moclass-filter>|<moinstance-filter>|<mo-group>|<counter-file> [<counter-filter>] [<granularity>]*******************************************************Purpose: To create a STATS scanner. (EVENT scanners are already created by default and shall be set with the "pset" command).....
Enter a second argument in the pmom command for description of a counter
RNC10> pmom atmp .
##################################################################################MO Class Pm Counter##################################################################################AtmPort pmReceivedAtmCells----------------------------------------------------------------------------------Performance monitoring counter for number of received ATM cells through the ATM port.**********************************************************************************AtmPort pmSecondsWithUnexp----------------------------------------------------------------------------------Performance monitoring counter for errored seconds with discarded cells due to protocol errors (unexpected, UNEX, events).I.610: With protcol errors is meant the reception of cells with either a non-standardized or a non-currently allocated header value.**********************************************************************************AtmPort pmTransmittedAtmCells----------------------------------------------------------------------------------Performance monitoring counter for number of transmitted ATM cells through the ATM port. **********************************************************************************
4.2.4 Processing counter values according to pre-defined KPI formulas
KPI=Key Performance Indicators - the UTRAN KPI formulas are based on the CPI SYSTEM PERFORMANCE STATISTICS 85/1553-HSD 101 02/5
Finn Magnusson 2008-06-25 rev PA43 213/330
` - the MGW KPI formulas are based on the CPI M-Mgw R4.1.1.0 "User Guide for Performance Measurements, M-MGw" 17/1553-AXM 101 01/4 Uen M
RNC10> h pmr
*******************************************************pmr[ag] [-l <PMfiles-directory>] [-i <iubCellModule-file>] [-f <formulafile>] [-c <configfile>] [-m <minushours>] [-p <plushours>] [-s <startdate>[.<starttime>]] [-e <enddate>[.<endtime>]] [-o <outputFormat>]*******************************************************To display a number of predefined RNC/RXI/RBS/MGW performance statistics reports, based on the counters stored in the PM XML files.
get /p001200/pm/A20060709.0930-0945:1.xml.gz /home/eanzmagn/moshell_logfiles/logs_moshell/pmfiles/137.58.194.88/pm/A20060709.0930-0945.1.xml.gz ... OKget /p001200/pm/A20060709.0845-0900:1.xml.gz /home/eanzmagn/moshell_logfiles/logs_moshell/pmfiles/137.58.194.88/pm/A20060709.0845-0900.1.xml.gz ... OK
Enter the report number followed by a piping command if postprocessing required.Eg "1" (no piping) or "3 | sort +2n". Type "m" to view the menu, type "x" to exit.Your Choice: 6 | sort +4nrgzip -dc /home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20060709-114521_1908/pmrbuffer1908.gz | /home/eanzmagn/moshell/pmXtab -fdef /home/eanzmagn/moshell/commonjars/pm/FORMULA_RNC_F_1_0.txt -x "^(NoRrcConnReq|NoRrcConnSuc|RrcFail|RrcFailContrib|RrcSuc)$" -i "NoRrcConnReq|NoRrcConnSuc|RrcFail|RrcFailContrib|RrcSuc" -m "UtranCell=([^\s,=\t]+)" -a -p 6.1 -pipe /home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20060709-114521_1908/pmrpipe1908 -fmt txt
6) RNC UtranCell RRC PerformanceReport from 2006-07-09 08:45 UTC to 2006-07-09 09:44 UTC
Enter the report number followed by a piping command if postprocessing required.Eg "1" (no piping) or "3 | sort +2n". Type "m" to view the menu, type "x" to exit.Your Choice: x
RNC10> pmr –m 0.25
FIXME
RNC10> pmr -m 5 -p 2
get /p001200/pm/A20060709.0630-0645:1.xml.gz /home/eanzmagn/moshell_logfiles/logs_moshell/pmfiles/137.58.194.88/pm/A20060709.0630-0645.1.xml.gz ... OK
Using formulafile /home/eanzmagn/moshell/commonjars/pm/FORMULA_RNC_F_1_0.txt
1) RNC Node Traffic Performance 2) RNC Node Traffic Performance, Hour by Hour 3) RNC Module Traffic Performance 4) RNC MP Load 5) RNC MP Load, Hour by hour 6) RNC UtranCell RRC Performance 7) RNC UtranCell Speech Performance 8) RNC UtranCell Data Performance 9) RNC UtranCell HSDPA Performance10) RNC HSDPA Average Number of Users, Hour by Hour11) RNC UtranCell IRAT Performance12) RNC UtranCell Soft HO Performance13) RNC Worst 20 UtranCells for RRC Failure Rate Contribution14) RNC Worst 20 UtranCells for Speech Drop Rate Contribution15) RNC Worst 20 UtranCells for HS Drop Rate Contribution16) RNC Worst 20 UtranCells for Soft HO Failure Contribution17) RNC IubLink RRC Performance
Finn Magnusson 2008-06-25 rev PA43 218/330
`18) RNC IubLink Speech Performance 19) RNC IubLink Data Performance20) RNC IubLink Soft HO Performance21) RNC AtmPort RRC Performance22) RNC AtmPort Speech Performance 23) RNC AtmPort Data Performance24) RNC UtranCell Availability Report, Hour by Hour25) RNC Q.Aal2 Setup Performance (Aal2Ap)Enter the report number followed by a piping command if postprocessing required.Eg "1" (no piping) or "3 | sort +2n". Type "m" to view the menu, type "x" to exit.Your Choice: 4gzip -dc /home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20060709-114521_1908/pmrbuffer1908.gz | /home/eanzmagn/moshell/pmXtab -fdef /home/eanzmagn/moshell/commonjars/pm/FORMULA_RNC_F_1_0.txt -cols time -a -m "Subrack=(.*,Slot=.*),Plu.*LoadControl=" -x "^(MpLoad)$" -i "MpLoad" -p 6.1 -fmt txt
4) RNC MP LoadReport from 2006-07-09 04:45 UTC to 2006-07-09 06:44 UTC
Enter the report number followed by a piping command if postprocessing required.Eg "1" (no piping) or "3 | sort +2n". Type "m" to view the menu, type "x" to exit.Your Choice: 5gzip -dc /home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20060709-114521_1908/pmrbuffer1908.gz | /home/eanzmagn/moshell/pmXtab -fdef /home/eanzmagn/moshell/commonjars/pm/FORMULA_RNC_F_1_0.txt -cols time -h -m "Subrack=(.*,Slot=.*),Plu.*LoadControl=" -x "^(MpLoad)$" -i "MpLoad" -p 6.1 -fmt txt
5) RNC MP Load, Hour by hourReport from 2006-07-09 04:45 UTC to 2006-07-09 06:44 UTC
Enter the report number followed by a piping command if postprocessing required.Eg "1" (no piping) or "3 | sort +2n". Type "m" to view the menu, type "x" to exit.Your Choice: x
MAKE YOUR OWN KPI REPORTS
FIXME: EXPLAIN THE Z AXIS
RNC10> l cat /home/eanzmagn/moshell/commonjars/pm/CONFIG_RNC_F_1_0.txt
#X/Y/Z Axis can be :# the counters/formulas# the MOClass (eg UtranCell, IubLink, RncModule)# the time: h (aggregate on hour), d (aggregate on day), a (aggregate on the whole period). If nothing specified there is no time aggregation, each ROP period is displayed separately.#Note1: The pmdiff flag has to be specified for Cello counters#Note2: It is possible to specify a mapfile that can specify any MO aggregation rules.# See the example report at the bottom of this file "RNC UtranCell Cluster RRC Performance"# In that example, each line of the mapfile would look like: UtranCell=XXX:Cluster=YYY
reportName RNC Node Traffic Performance X time aY counter NoRrcConnReq,RrcSuc,NoRrcConnSuc,SpchNoRabEstAtt,SpchRabSuc,SpchDrop,PSDrop,HsDrop,HsAccess,CS64Drop,SpchAccess,CS64Access,PSAccess,SpchCCSR,CS64CCSR,PSCCSR,HsTputAverg,HsTputGt100KbAverg,HsRetransmissionRate,HsAvergNoUsers,NoHsRel,CS57Drop,CS57RabSuc,PsDCHFACHRabSucc,PsDCHFACHDropRateZ mo ManagedElement=1precision 1
reportName RNC Node Traffic Performance, Hour by HourX time h
Finn Magnusson 2008-06-25 rev PA43 220/330
`Y counter NoRrcConnReq,RrcSuc,NoRrcConnSuc,SpchNoRabEstAtt,SpchRabSuc,SpchDrop,PSDrop,HsDrop,HsAccess,CS64Drop,SpchAccess,CS64Access,PSAccess,SpchCCSR,CS64CCSR,PSCCSR,HsTputAverg,HsTputGt100KbAverg,HsRetransmissionRate,HsAvergNoUsers,NoHsRel,CS57Drop,CS57RabSuc,PsDCHFACHRabSucc,PsDCHFACHDropRateZ mo ManagedElement=1precision 1
reportName RNC Module Traffic PerformanceY mo (UtranCell=[^\s,=\t]+) -r RncModule=([^\s,=\t]+)X counter NoRrcConnReq,RrcSuc,NoRrcConnSuc,SpchNoRabEstAtt,SpchRabSuc,SpchDrop,PSDrop,CS64Drop,SpchAccess,CS64Access,PSAccess,SpchCCSR,CS64CCSR,CS57Drop,CS57RabSucZ time a
reportName RNC MP LoadX time aY mo Subrack=(.*,Slot=.*),Plu.*LoadControl=Z counter MpLoadprecision 1
reportName RNC MP Load, Hour by hourX time hY mo Subrack=(.*,Slot=.*),Plu.*LoadControl=Z counter MpLoadprecision 1
reportName RNC UtranCell RRC PerformanceX counter NoRrcConnReq,RrcSuc,NoRrcConnSuc,RrcFail,RrcFailContribY mo UtranCell=([^\s,=\t]+)Z time a
reportName RNC UtranCell Speech Performance X counter SpchNoRabEstAtt,SpchRabSuc,SpchRabSucContrib,SpchDrop,SpchDropContrib,SpchAccess,SpchCCSRY mo UtranCell=([^\s,=\t]+)Z time a
reportName RNC UtranCell Data PerformanceX counter PSDrop,CS64Drop,CS64Access,PSAccess,CS64CCSR,PSCCSR,CS64DropContrib,PSDropContrib,CS57Drop,CS57RabSucY mo UtranCell=([^\s,=\t]+)Z time a
reportName RNC HSDPA Average Number of Users, Hour by HourX time hY counter HsAvergNoUsersZ mo UtranCell=([^\s,=\t]+)precision 2
reportName RNC UtranCell IRAT PerformanceX counter IRATU2GHOSuccRate,IRATU2GCellChangeFailRate,pmNoAttOutIratHoSpeechY mo (UtranCell=[^\s,=\t]+)Z time a
#MobilityreportName RNC UtranCell Soft HO PerformanceX counter SHOSuccess,pmNoTimesRlAddToActSet,pmNoTimesCellFailAddToActSet,SHOFailContribY mo (UtranCell=[^\s,=\t]+)Z time a
reportName RNC Worst 20 UtranCells for RRC Failure Rate ContributionX counter NoRrcConnReq,RrcSuc,NoRrcConnSuc,RrcFail,RrcFailContribY mo UtranCell=([^\s,=\t]+)Z time apipe sort +4nr | head -20
reportName RNC Worst 20 UtranCells for Speech Drop Rate ContributionX counter SpchNoRabEstAtt,SpchRabSuc,SpchRabSucContrib,SpchDrop,SpchDropContrib,SpchAccess,SpchCCSRY mo UtranCell=([^\s,=\t]+)Z time apipe sort +4nr | head -20
reportName RNC Worst 20 UtranCells for HS Drop Rate ContributionX counter HSDropContrib,HsAccess,HsAvergNoUsers,HsDrop,NoHsRel,NoAbnormalHsRelY mo UtranCell=([^\s,=\t]+)Z time apipe sort +1nr | head -20
reportName RNC Worst 20 UtranCells for Soft HO Failure ContributionX counter SHOSuccess,pmNoTimesRlAddToActSet,pmNoTimesCellFailAddToActSet,SHOFailContribY mo (UtranCell=[^\s,=\t]+)Z time apipe sort +1nr | head -20
Finn Magnusson 2008-06-25 rev PA43 222/330
`
reportName RNC IubLink RRC PerformanceX counter NoRrcConnReq,RrcSuc,NoRrcConnSuc,RrcFail,RrcFailContribY mo (UtranCell=[^\s,=\t]+) -r IubLink=([^\s,=\t]+)Z time a
reportName RNC IubLink Speech Performance X counter SpchNoRabEstAtt,SpchRabSuc,SpchRabSucContrib,SpchDrop,SpchDropContrib,SpchAccess,SpchCCSRY mo (UtranCell=[^\s,=\t]+) -r IubLink=([^\s,=\t]+)Z time a
reportName RNC IubLink Data PerformanceX counter PSDrop,CS64Drop,CS64Access,PSAccess,CS64CCSR,PSCCSR,CS64DropContrib,PSDropContrib,CS57Drop,CS57RabSucY mo (UtranCell=[^\s,=\t]+) -r IubLink=([^\s,=\t]+)Z time a
#MobilityreportName RNC IubLink Soft HO PerformanceX counter SHOSuccess,pmNoTimesRlAddToActSet,pmNoTimesCellFailAddToActSet,SHOFailContribY mo (UtranCell=[^\s,=\t]+) -r IubLink=([^\s,=\t]+)Z time a
reportName RNC AtmPort RRC PerformanceX counter NoRrcConnReq,RrcSuc,NoRrcConnSuc,RrcFail,RrcFailContribY mo (UtranCell=[^\s,=\t]+) -r AtmPort=([^\s,=\t]+)Z time a
reportName RNC AtmPort Speech Performance X counter SpchNoRabEstAtt,SpchRabSuc,SpchRabSucContrib,SpchDrop,SpchDropContrib,SpchAccess,SpchCCSRY mo (UtranCell=[^\s,=\t]+) -r AtmPort=([^\s,=\t]+)Z time a
reportName RNC AtmPort Data PerformanceX counter PSDrop,CS64Drop,CS64Access,PSAccess,CS64CCSR,PSCCSR,CS64DropContrib,PSDropContrib,CS57Drop,CS57RabSucY mo (UtranCell=[^\s,=\t]+) -r AtmPort=([^\s,=\t]+)Z time a
reportName RNC UtranCell Availability Report, Hour by HourX time hY counter AvailabilityZ mo (UtranCell=[^\s,=\t]+)precision 1
Finn Magnusson 2008-06-25 rev PA43 223/330
`#Note: This report requires the Aal2Ap counters to be activated in a scanner.reportName RNC Q.Aal2 Setup Performance (Aal2Ap)X counter Aal2SetupFail,Aal2Congestion,NoAal2SetupAttemptsY mo Aal2Ap=([^\s,=\t]+)Z time aprecision 2pmdiff
#reportName RNC Module VplTp Utilisation, Hour by Hour#X time h#Y counter VplTpUtilEgress,VplTpUtilIngress#Z mo (AtmPort=ES.*,VplTp=vp[^,]+)#precision 1
#reportName RNC UtranCell Cluster RRC Performance#X counter NoRrcConnReq,RrcSuc,NoRrcConnSuc,RrcFail,RrcFailContrib#Y mo (UtranCell=[^\s,=\t]+) -r Cluster=([^\s,=\t]+)#Z time a#mapfile /home/eanzmagn/clusterdef.txt
RNC10> l vi myconfig.txt
reportName RNC IubLink Data Performance hour by hourX counter PSDrop,CS64Drop,CS64Access,PSAccess,CS64CCSR,PSCCSR,CS64DropContrib,PSDropContrib,CS57Drop,CS57RabSucY mo (UtranCell=[^\s,=\t]+) -r IubLink=([^\s,=\t]+)Z time h
1) RNC IubLink Data Performance hour by hourEnter the report number followed by a piping command if postprocessing required.Eg "1" (no piping) or "3 | sort +2n". Type "m" to view the menu, type "x" to exit.Your Choice: 1
Enter the report number followed by a piping command if postprocessing required.Eg "1" (no piping) or "3 | sort +2n". Type "m" to view the menu, type "x" to exit.Your Choice: x
Unable to find the formulafile: Please specify path to the formulafile, using the "-f" option.Examples of formulafiles can be found in /home/eanzmagn/moshell/commonjars/pm
Unable to find the configfile: Please specify path to the configfile, using the "-c" option.Examples of configfiles can be found in /home/eanzmagn/moshell/commonjars/pm
Choose the correct CONFIG/FORMULA file according to the following table:
RNC RBS MGWSW MOM CPP SW MOM CPP SW MOM CPPP4 F 4 P4 H 4 R3 R3 4P5 G 5.1 P5 J 5.1 R4.x R4.x 5.xP6 H 6 P6 K 6 R5 R5 6
*******************************************************pme[fd][cgu] [<pm_logdir>] [-m <minushours>] [-p <plushours>] [-s <startdate>[.<starttime>]] [-e <enddate>[.<endtime>]]*******************************************************Applicable for RNC only.To fetch and/or decode event ROP files (UETR/CTR/GPEH) for a given period, specified by the -m/-p/-s/-e options, see below for more information about time options.The "f" option is for fetching the ROP files, the "d" option is for decoding them.etc....
FETCHING
RNC10> pmef
Finn Magnusson 2008-06-25 rev PA43 236/330
`get /p001200/pm/A20060709.1215-1230_UETR_10000.bin /home/eanzmagn/moshell_logfiles/logs_moshell/pmfiles/137.58.194.88/uetr/pm/A20060709.1215-1230_UETR_10000.bin ... OKget /p001200/pm/A20060709.1200-1215_UETR_10000.bin /home/eanzmagn/moshell_logfiles/logs_moshell/pmfiles/137.58.194.88/uetr/pm/A20060709.1200-1215_UETR_10000.bin ... OK
get /p001200/pm/A20060709.1215-1230_gpehfile:2.lnk /home/eanzmagn/moshell_logfiles/logs_moshell/pmfiles/137.58.194.88/gpeh/pm/A20060709.1215-1230_gpehfile.2.lnk ... OKget /p001200/pm/A20060709.1200-1215_gpehfile:2.lnk /home/eanzmagn/moshell_logfiles/logs_moshell/pmfiles/137.58.194.88/gpeh/pm/A20060709.1200-1215_gpehfile.2.lnk ... OK
get /p001200/A20060709.1200-1215_GPEH.lnk /home/eanzmagn/moshell_logfiles/logs_moshell/pmfiles/137.58.194.88/gpeh/p001200/A20060709.1200-1215_GPEH.lnk ... OKget /p001200/pm/A20060709.1215-1230_gpehfile:2.lnk /home/eanzmagn/moshell_logfiles/logs_moshell/pmfiles/137.58.194.88/gpeh/p001200/pm/A20060709.1215-1230_gpehfile.2.lnk ... OKget /p001200/pm/A20060709.1200-1215_gpehfile:2.lnk /home/eanzmagn/moshell_logfiles/logs_moshell/pmfiles/137.58.194.88/gpeh/p001200/pm/A20060709.1200-1215_gpehfile.2.lnk ... OK
get /p001400/A20060709.1215-1230_GPEH.lnk /home/eanzmagn/moshell_logfiles/logs_moshell/pmfiles/137.58.194.88/gpeh/p001400/A20060709.1215-1230_GPEH.lnk ... OK
get /p001600/A20060709.1215-1230_GPEH.lnk /home/eanzmagn/moshell_logfiles/logs_moshell/pmfiles/137.58.194.88/gpeh/p001600/A20060709.1215-1230_GPEH.lnk ... OK
etc....
DECODING
RNC10> pmed
Cannot find the decoder.pl: /vobs/iov/rnc/bin/decoder.pl Please make sure the path to decoder.pl is correctly set in the moshell uservariable "decoder"
A CPP node contains from 1 to 6 Subracks.Node type A = 1 subrack, B = 2 subracks, ...., F = 6 subracks.Each Subrack can contain 28 slots (except in RBS which has smaller subracks).Each Slot can contain one PlugInUnit. Some Slots contain no PlugInUnit (a dummy board is inserted). Some Slots are used by their neighbour’s PlugInUnit (e.g. ET-MC41 boards is 2 Slots wide).
Each PlugInUnit contains one or more processors:- an MP (Main Processor), for control plane processing.or:- a BP (Board processor) and its devices (SPU, SPM, DSP, FPGA, etc) for user plane processing.
Finn Magnusson 2008-06-25 rev PA43 238/330
`
Board type
Functionality
GPB General Purpose Board: layer 3 signaling, administration of node resources (MAO/FRO)
SCB SXB
Switch Control Board, Switch Extension Board: handles communication between boards (via backplane and InterSubrackLink). Distribution of power (-48 V) and system clock.
TUB Timing Unit Board. Generation of system clock (19.44 MHz)
ETB Exchange Terminal Board: termination of transmission links. Layer 1 (SDH/PDH) and ATM frames processing.
SPB Special Purpose Board: processing for layer 1, layer 2 and user plane in RNC
CBU Control Base Unit. A combined GPB + TUB + SCB + ETB.
MP Processor types: (taken from CPP Product description 1551-CSX10109/5)GPB2 GPB3
Connections within the subrack are switched by the SCB boards, located at each extremity of the subrack.Connections between main subrack and extension subrack are carried over the ISL bus (Inter Subrack Link).The ISL’s carry Control plane, User plane, and Timing signals.The ISL’s are terminated in an SCB or SXB.TUB are found only in main subrack and the clock signals are carried to the other subracks over ISL.Each SCB/SXB pair can connect up to 4 ISL but it is recommended to only use two ports on each SCB/SXB pair in order to get the maximum available bandwidth out of each ISL (~ 600 Mbps total bandwidth on one SCB/SXB output).The ISL is a redundant bus active + standby. SCB’s and SXB’s work in pair, one active and one standby. The maximum node size is 6 subracks (one main and 5 extension).
Node Type A B C D E FNr of Subracks 1 2 3 4 5 6
Example RNC:An RNC F-node cabinet with one main subrack and 5 extension subracks. The first two extension subracks connect into the SCB pair of the main surbrack.The next three extension subracks connect into one SXB pair.Each ISL has a capacity of ~ 300 Mbps. (Note: in MGW, 4 ISL are used for each extension subrack, giving a bandwidth of 1.2 Gbps)
Finn Magnusson 2008-06-25 rev PA43 240/330
`
5.1.3 Internal addressing of the processors
Each processor has a unique address (the link handler, LNH) to identify its position in the node.The address consists of the following three fields:
- Subrack Module Number (SMN): the subrack in which the processor is located. Can take values 0 to 99 as well as A0 to A9.- AtmSwitchCore Port Number (APN): the slot in which the processor is located. Can take values 0 to 27.- Execution Resource Number (ERN): to distinguish between several processors that are located in the same slot.
Finn Magnusson 2008-06-25 rev PA43 241/330
`
SMN value:The main subrack always has SMN=00.The SMN value of each extension subrack depends on which pair of slots it connects to in the main subrak. It can be calculated with the formula: SMN= 8 * int(APN/2) + islport where APN is the APN of the SCB/SXB and islport is the port number in SCB/SXB (islport=1 to 4)Example:
Finn Magnusson 2008-06-25 rev PA43 242/330
`
Note: HW of revision CPP2/CPP3 does not support SMN addresses A0 to A9APN of SCB/SXB SCB/SXB SMN of extension
Finn Magnusson 2008-06-25 rev PA43 243/330
`in main subrack subrack0/1 SCB 1 to 42/3 SXB 9 to 124/5 reserved for TUB N/A6/7 SXB 25 to 288/9 SXB 33 to 2610/11 SXB 41 to 4412/13 SXB 49 to 5214/15 SXB 57 to 6016/17 SXB 65 to 6818/19 SXB 73 to 7620/21 SXB 81 to 8422/23 SXB 89 to 9224/25 SXB 97 to 99, A026/27 SXB A5 to A9
APN value:
The APN value is identical to the slot number except for the last slot on the right which has APN=00. Example in a 28-slot subrack:
ERN value:The ERN value is always 00 for the MP/BP processor and 1 to 99 for the device processors.
Finn Magnusson 2008-06-25 rev PA43 244/330
`
5.1.4 Inter-processor communication
Processes running in different processors communicate with each other over ICP (internal control path, a point to point connection between two processors).When an ICP is not available or has not been setup yet (e.g. during restart phase), the meta-channel can be used.
The MPs form an MP Cluster (MPC). Each MP has an ICP with every other MP. Each BP has an ICP with every MP but not with the other BPs. The other processors have only one ICP with the nearest BP.The XP’s (auXiliary Processor) are controlled from a BP board, using RS485 cabling.
Finn Magnusson 2008-06-25 rev PA43 245/330
`
5.2 OSE shell access
Finn Magnusson 2008-06-25 rev PA43 246/330
`
When we log in to a node via telnet or ssh, we enter the OSE shell of the Central MP that is running the active instance of the telnet/ssh server program. To find out which board this is, we can look at the last line in the pdr printout, it tells us the smn/apn of the board we are currently logged into.
:srld7261@~> telnet 137.58.194.147Trying 137.58.194.147...Connected to 137.58.194.147.Escape character is '^]'.username: xpassword: Welcome to OSE Shell OSE4.6.1.$ vii----- VII SERVER INFO ----- registered clients: client FAULT LOAD_START NO_POWER BOOTTEST MISSING_RESOURCE BOARD_LOCKED BOARD_BUSY SHUTDOWN ---------- ----- ---------- -------- -------- ---------------- ------------ ---------- --------
aal05ccfro aal05ccfro <froId> | -l | -h.. Print CC_AalCrossConnaal05connid aal05connid [ <serverConnId> | -l | -h | ? ] Prints out NodeConnection specified by serverConnIdaal05portid aal05portid [ [-conn] <portId> | -l | -h | ? ] Prints out RiServer instance specified by portidaal05riconnref aal05riconnref [ <connref> | -h | ? ] Prints out riServerConnList[] array elementsaal05serverid aal05serverid [ [-conn] <serverId> | -l | -h | ? ] Prints out CiServer instance specified by serveridaal0cepfro aal0cepfro <cepId> | -l | -h.. Print ActAal0CepFro_CepFroaal0dynres aal0dynres [<resType> [<id> ... prints out Aal0ResourceDataInstance...aal0eficlient aal0eficlient <serverId> | -pid | -l | -h.. Print ActAal0CepFro_EfiClient
Finn Magnusson 2008-06-25 rev PA43 248/330
`aal0ericlient aal0ericlient [<id> | -l | -h ] prints out Aal0EriClientInstanceaal0statres aal0statres <rTyp><rId> | -h.. Print Aal0ResourceDataInstanceaal1ccfro aal1ccfro <froId> | -l | -h... Print AAL1CC_Aal1Ccaal1cepfro aal1cepfro <cepId> | -l | -h.. Print ActAal1CepFro_CepFroaal1connid aal1connid [<connId>|-l|-h|?] prints out NodeConnectionaal1portid aal1portid [[-c] <id>|-l|-h|?] prints out RiServerDataaal1riconnref aal1riconnref [<connref>|-h|?] prints out riServerConnList[]aal1serverid aal1serverid[[-c]<id>|-l|-h|?] prints out CiServerDataaal1stat aal1stat <argument> Possible options: reset and help. No argument=display stats.
aal1statres aal1statres <rId>[<cId>]| -h.. Print Aal1ResourceDataInstanceaal2nccadm Enter 'aal2nccadm ?' for available commands Prints AAL2 NCC ADM program dataaal2sscsadm Enter 'aal2sscsadm ?' for available commands Prints AAL2 SSCS ADM program dataaal5cepfro aal5cepfro <cepId> | -l | -h.. Print ActAal5CepFro_CepFroaal5dyncep aal5dyncep <cepId> | -l | -h.. Print dynamic ActAal5CepRoaal5dynres aal5dynres [<resType> [<id> ... prints out Aal5ResourceDataInstance...aal5eficlient aal5eficlient <serverId> | -pid | -l | -lpv1 | -lpv2 | -h.. Print ActAal5CepFro_EfiClientaal5ericlient aal5ericlient [<id> | -l | -h ] prints out Aal5EriClientInstanceaal5statcep aal5statcep <cepId>| -l | -h.. Print static ActAal5CepRoaal5statres aal5statres <rTyp><rId> | -h.. Print Aal5ResourceDataInstanceaatest aatest [[-i<ipaddr>] [-u] [-v] [-v]] | [-h] Diagnostics for AA server(s), -h for more help...<cut>....
To access the OSE shell of another board than the central MP, use the “lhsh” command followed by the link handler value of the board.Only the following processors have an OSE shell:
- MP and BP. The link handler ends with 00, e.g. 031700.- SPM. Use the link handler of the controlling BP followed by the position of the SP. E.g. : 001900/sp1.lnh- XP. Use the link handler of the controlling BP followed by the port/dev value (as per the “ps port*” printout. E.g: 000100/port_0_dev_7
$ lhsh 001400Welcome to OSE Shell OSE4.6.1.001400> vii----- VII SERVER INFO ----- registered clients: client FAULT LOAD_START NO_POWER BOOTTEST MISSING_RESOURCE BOARD_LOCKED BOARD_BUSY SHUTDOWN ---------- ----- ---------- -------- -------- ---------------- ------------ ---------- --------
LED State GREEN CLS_LEDI_ON RED CLS_LEDI_OFF YELLOW CLS_LEDI_OFF 001400> pdr
aal1stat aal1stat <argument> Possible options: reset and help. No argument=display stats.
aal2ap Enter 'aal2ap ?' for available commands Prints AAL2 AP program data.aal2ncc Enter 'aal2ncc ?' or 'aal2ncc subcommand ?' for available commands Prints AAL2 NCC program dataaal2sscsrc Enter 'aal2sscsrc ?' for available commands Prints AAL2 SSCS RC program dataaal5dyncep aal5dyncep <cepId> | -l | -h.. Print dynamic ActAal5CepRoaal5statcep aal5statcep <cepId>| -l | -h.. Print static ActAal5CepRoasconf asconf <asf-name> [<directory>] configure archive serverasconn asconn [-p <pri>] [<asf-name>] <remote-asf> connect archive serverasdisc asdisc [<asf-name>] <remote-asf> disconnect archive serveraslist aslist [<asf-name>] list connected archive serversasupdate asupdate <asf> <lmid update a disk archive server
Finn Magnusson 2008-06-25 rev PA43 250/330
`autodds autodds Set error check level and/or default tracebl bl [<block>...] list blocksboardtemp boardtemp [<tempSensorUnitId>] Read board temperature (hotspot or selected temp sensor)bs bs Execute a number of commands and print resultcapi capi <command> Available capi commands are: prio, type, name, tot, list and help.For more format information enter: capi help or capi <command> help....<cut>...001400> exit
$ lhsh 001900/sp0.lnhWelcome to OSE Shell OSE4.6.1.001900/sp0.lnh> splistloadedLoaded modules
$ lhsh 000100Welcome to OSE Shell OSE4.6.1.000100> ps port* pid name tpr block own status
Finn Magnusson 2008-06-25 rev PA43 251/330
`000500f8 port_0_dev_7/ose_she ph CXC1322166%3_R51 0 -000100ef port_0_dev_7/fanServ ph CXC1322166%3_R51 0 -000300ea port_0_dev_7/XcbcSer ph CXC1322166%3_R51 0 -Total 3 processes000100> lhsh port_0_dev_7Welcome to OSE Shell OSE4.4.3.port_0_dev_7> par get SYS_HW*Could not obtain name of terminal.'SYS_HW_PID' = 'BKV 301 487/1''SYS_HW_REV' = 'R3A''SYS_HW_NAME' = 'FAN''SYS_HW_DATE' = '20060112''SYS_HW_SERIAL' = 'X76CE99945'port_0_dev_7> exitCould not obtain name of terminal.000100> exit
Note: In case the ICP is unavailable, the “lhsh” command would not work.It may be possible to acces the board over the meta-channel, using the command “bs” instead.The syntax is: bs –d SMN APN –c “command”. Example: RNC10> bs -d 0 14 -c "te log read"
$ bs -d 0 14 -c "te log read"
==================================================================== STATUS FROM SMN=000 APN=14 =====================================================================
Print help for OSE SHELL commands with “?” command. These commands also described in 1/1553-CXA1103151 or 1553-CXA104203 (CPP) and 18/1551-AXD10503/1 (RNC). See http://utran01.epa.ericsson.se/moshell/training/references/cpp and http://utran01.epa.ericsson.se/moshell/training/references/rnc
`COLI commands can be typed from the moshell prompt, they are then sent transparently to the node via telnet or ssh communication. Whether telnet or ssh will be used is specified by the uservariable secure_shell (0=telnet, 1=ssh):
RNC10> uv secure_shell
secure_shell = 0
By default, COLI commands are sent to the central MP. To execute COLI commands on other processors, the lhsh command must be used. An important difference when running lhsh from moshell compared to telnet/ssh is that the command must be on the same line as lhsh. Examples:
RNC10> ?
Trying password from ipdatabase file: /home/eanzmagn/moshell_sitefiles/ipdatabase...$ ?Command Syntax Description. . <command-file> execute commands from file? ? [<command> ...] print syntax and descr. of commandsCentralRnh_pm_counter_disable CentralRnh_pm_counter_disable <one or more counterIds> disable trace for one or more counterIds in this load module. The counterIds are either integer values or symbolic counter names (as defined in roamIfPmCounter.h) separated by blank or tab. Counter names will be matched using substring matching so e.g the name ROAM_UTRANCELL will match all counters defined for this MOCentralRnh_pm_counter_disableall CentralRnh_pm_counter_disableall disable trace for all counterIds in this load module...<cut>...
$ lhsh 001400 ?Command Syntax Description. . <command-file> execute commands from file? ? [<command> ...] print syntax and descr. of commandsCell_pm_counter_disable Cell_pm_counter_disable <one or more counterIds> disable trace for one or more counterIds in this load module. The counterIds are either integer values or symbolic counter names (as defined in roamIfPmCounter.h) separated by blank or tab. Counter names will be matched using substring matching so e.g the name ROAM_UTRANCELL will match all counters defined for this MOCell_pm_counter_disableall Cell_pm_counter_disableall disable trace for all counterIds in this load module
Finn Magnusson 2008-06-25 rev PA43 254/330
`Cell_pm_counter_enable Cell_pm_counter_enable <one or more counterIds> enable trace for one or more counterIds in this load module. The counterIds are either integer values or symbolic counter names (as defined in roamIfPmCounter.h) separated by blank or tab. Counter names will be matched using substring matching so e.g the name ROAM_UTRANCELL will match all counters defined for this MOCell_pm_counter_enableall Cell_pm_counter_enableall enable trace for all counterIds in this load moduleCell_pm_counter_enabled Cell_pm_counter_enabled print each enabled counterId (or the string "all" if all are enabled)Cell_pm_counter_print Cell_pm_counter_print <zero or more counterIds> print all counter names that match the specified counterIds. The counterI.....<cut>....
RNC11> lhsh 001900/sp0.lnh ?
$ lhsh 001900/sp0.lnh ?Command Syntax Description <command> [<parameters>...] default shell command. . <command-file> execute commands from file? ? [<command> ...] print syntax and descr. of commandsaalcep aalcep < ri | edi | all > Query for AALX CEP informationaalpm aalpm Query for AALX performance informationasconf asconf <asf-name> [<directory>] configure archive serverasconn asconn [-p <pri>] [<asf-name>] <remote-asf> connect archive serverasdisc asdisc [<asf-name>] <remote-asf> disconnect archive serveraslist aslist [<asf-name>] list connected archive serversasupdate asupdate <asf> <lmid update a disk archive serverautodds autodds Set error check level and/or default trace...<cut>....unset unset <variable> ... unset (remove) shell variablesunsetenv unsetenv <env-var> ... unset (remove) environment variablesver ver print version of kernel and shellvols vols [<volume> ...] report volume statisticswho who list who is logged onzzosvarp zzosvarp Show the address of the OSE kernel data handle.[xxx] xxx is optional<yyy> replace yyy with actual valuezz/ww zz or ww... preceeding item may be specified multiple times$
RNC11> lhsh 000100/port_0_dev_7 ?
$ lhsh 000100/port_0_dev_7 ?Command Syntax Description. . <command-file> execute commands from file? ? [<command> ...] print syntax and descr. of commandsbl bl [<block>...] list blocks
Finn Magnusson 2008-06-25 rev PA43 255/330
`cls cls clear screen (using ANSI codes)...<cut>...time time [hh:mm[:ss]] print or set timeunset unset <variable> ... unset (remove) shell variablesunsetenv unsetenv <env-var> ... unset (remove) environment variablesver ver print version of kernel and shellvii vii [d] Displays current LED request. 'vii d' gives more detailswho who list who is logged on[xxx] xxx is optional<yyy> replace yyy with actual valuezz/ww zz or ww... preceeding item may be specified multiple times$
Sending several commands in the same session
RNC10> vii ; vols
$ vii----- VII SERVER INFO ----- registered clients: client FAULT LOAD_START NO_POWER BOOTTEST MISSING_RESOURCE BOARD_LOCKED BOARD_BUSY SHUTDOWN ---------- ----- ---------- -------- -------- ---------------- ------------ ---------- --------
RNC10> lhsh 001400 te filter set "([1] <> 8 OR [1] >= 9)" NBAP*
$ lhsh 001400 te filter set "([1] <> 8 OR [1] >= 9)" NBAP*Usage: te filter set <filter expr> <process>
Finn Magnusson 2008-06-25 rev PA43 257/330
`<filter expr> = <expr> [<bool op> <expr>] ... <expr> = '['<byte_no>[:<bit_no>]']' = <byte_value> <bool op> = AND | OR<process> = Name of process. Wildcard '*' can be used at end of name.$
Using the semicolon forces to log into the actual board (only needed for a couple of commands)
RNC10> lhsh 001400 ; te filter set "([1] <> 8 OR [1] >= 9)" NBAP*
$ lhsh 001400Welcome to OSE Shell OSE4.5.2.001400>001400> te filter set "([1] <> 8 OR [1] >= 9)" NBAP*001400>001400> exit$
>> lhsh 001400 ; te filter set "([1]<8 OR [1]>=9 AND LEN <> 33)" NBAP* >> lhsh 001400 ; te filter set "[1]<> 8 AND [1] <> $12 AND [1] <> $14 AND [1] <> $11" NBAP* >> lhsh 001400 ; te log freeze -grp state_change "WaitForActivation -> WaitForCapacity" 100 >> lhsh 012000 ; MsbHostMo_StartPing -d 10.173.137.130 -z 10.173.137.1
Running SQL commands
RNC10> sqlc
SQL command syntax: sql/sqlc ; command1 ; command2 ; command3; etc...E.g: sql select * from tables where name like '%pgm%' sql select * from cspgmresource_01 where pno='CXC 132 0784'; sql update cspgmresource_01 set poolsize=20000000 where pno='CXC 132 0784'; commit;
See also "h sql+" for help on how to start/stop/check the SQL LM
RNC10> sql select name from tables
$ sqlcUnknown command 'sqlc'.select name from tables;$ Unknown command 'select'.$ exit;
Finn Magnusson 2008-06-25 rev PA43 258/330
`Unknown command 'exit;'.$
RNC10> sql+Loading and starting osa_coli_lm (CXC1325608)....OK.
RNC10> sql-Trying password from ipdatabase file: /home/eanzmagn/moshell_sitefiles/ipdatabase...Stopping osa_coli_lm (CXC1325608)....OK.
RNC10> h sql+
*******************************************************sql+/sql-/sql? [<heap>]*******************************************************To start/stop/check the SQL client on the node (CXC1325608).This LM is usually on disk but in the case of UTRAN nodes, it is not loaded in RAM.The command checks if the LM is already loaded or started, if not, it finds the latest application version stored on disk, loads it and starts it. The argument can be used to specify a different heap size than the one that is pre-compiled in the LM. The heap size given will be in MB, should be an integer between 1 and 50. If no heap is given, the LM is loaded without specifying any heap value which means that it will use the default heap size that is specified in the LM.
RNC10> sql+ 10Loading and starting osa_coli_lm (CXC1325608)....OK.
RNC10> sql select name from tables
RNC1O> sql select name from tables ; select * from cspiuresource_01
Always check the size of a table before printing (to not run out of memory on the sql client)
RNC10> sql select COUNT(*) from cspiuresource_02
$ sqlcselect COUNT(*) from cspiuresource_02;Note! Have you allocated enough of heap memory to the loadmodule CXC1325608 to be able to run SQLC in the way you want?
Note! CTRL+C is not supported!!!
Component sqlc (V06.03.0017/OSE4-powerpc)Copyright (C) 1994-2007 by Polyhedra Ltd
Finn Magnusson 2008-06-25 rev PA43 259/330
`+-------------+| expression1 |+-------------+| 23 |+-------------+Query Done: 1 record selectedSQL> exit;
Here we compare the data in the FRO table and the data that we see with “get” command.
RNC10> sql select * from cspiuresource_01
$ sqlcselect * from cspiuresource_01;Note! Have you allocated enough of heap memory to the loadmodule:CXC1325608 to be able to run SQLC in the way you want??
RNC10> sql update cspiuresource_01 set apiuprev='R6' where apiupno='ROJ 119 2108/2' ; commit;
$ sqlcupdate cspiuresource_01 set apiuprev='R6' where apiupno='ROJ 119 2108/2';Note! Have you allocated enough of heap memory to the loadmodule:CXC1325608 to be able to run SQLC in the way you want??
Note! CTRL+C is not supported!!!
Component sqlc (V04.03.0034/OSE)Copyright (C) 1994-2005 by Polyhedra LtdSQL> commit;update cspiuresource_01 set apiuprev='R6' where apiupno='ROJ 119 2108/2';Transaction DoneSQL> exit;$
Navigating through the directories on the node
RNC10> cd /d/configuration/cv
$ cd /d/configuration/cv$
RNC10> pwd
$ pwd/d/configuration/cv/$
RNC10> cd ../../loadmodules
$ cd ../../loadmodules$
RNC10> pwd
$ pwd/d/loadmodules/$
Finn Magnusson 2008-06-25 rev PA43 261/330
`Navigating through the directories on the workstation
RNC10> l pwd
/home/eanzmagn
RNC10> l cd moshell_logfiles/
New directory: /home/eanzmagn/moshell_logfiles
RNC10> l pwd
/home/eanzmagn/moshell_logfiles
Piping the output
RNC10> lhsh 001200 te log read | grep ERROR
[2006-09-06 15:45:00.928] se.ericsson.wcdma.rnc.roam.roam_pmstat:Pms_PREDEF.PRIMARY.STATS PmStatInternalScanner$MoInstancesInfo:0 INFO:ERROR: Scanner not in finishedScanner list [PREDEF.PRIMARY.STATS]. Proceeding with execution.[2006-09-06 15:45:00.940] se.ericsson.wcdma.rnc.roam.roam_pmstat:Pms_USERDEF.utrancell.STATS PmStatInternalScanner$MoInstancesInfo:0 INFO:ERROR: Scanner not in finishedScanner list [USERDEF.utrancell.STATS]. Proceeding with execution.[2006-09-06 15:45:00.944] se.ericsson.wcdma.rnc.roam.roam_pmstat:Pms_USERDEF.rncfunction.STATS PmStatInternalScanner$MoInstancesInfo:0 INFO:ERROR: Scanner not in finishedScanner list [USERDEF.rncfunction.STATS]. Proceeding with execution.[2006-09-06 15:45:00.948] se.ericsson.wcdma.rnc.roam.roam_pmstat:Pms_USERDEF.CchFrameSynch.STATS PmStatInternalScanner$MoInstancesInfo:0 INFO:ERROR: Scanner not in finishedScanner list [USERDEF.CchFrameSynch.STATS]. Proceeding with execution.[2006-09-06 15:45:00.952] se.ericsson.wcdma.rnc.roam.roam_pmstat:Pms_USERDEF.DchFrameSynch.STATS PmStatInternalScanner$MoInstancesInfo:0 INFO:ERROR: Scanner not in finishedScanner list [USERDEF.DchFrameSynch.STATS]. Proceeding with execution.[2006-09-06 15:45:00.956] se.ericsson.wcdma.rnc.roam.roam_pmstat:Pms_USERDEF.IurLink.STATS PmStatInternalScanner$MoInstancesInfo:0 INFO:ERROR: Scanner not in finishedScanner list [USERDEF.IurLink.STATS]. Proceeding with execution.[2006-09-06 15:45:00.980] se.ericsson.wcdma.rnc.roam.roam_pmstat:Pms_USERDEF.LoadControl.STATS PmStatInternalScanner$MoInstancesInfo:0 INFO:ERROR: Scanner not in finishedScanner list [USERDEF.LoadControl.STATS]. Proceeding with execution.[2006-09-06 15:45:00.984] se.ericsson.wcdma.rnc.roam.roam_pmstat:Pms_USERDEF.UeRc.STATS PmStatInternalScanner$MoInstancesInfo:0 INFO:ERROR: Scanner not in finishedScanner list [USERDEF.UeRc.STATS]. Proceeding with execution.[2006-09-06 15:45:00.988] se.ericsson.wcdma.rnc.roam.roam_pmstat:Pms_USERDEF.Gsmrelation.STATS PmStatInternalScanner$MoInstancesInfo:0 INFO:ERROR: Scanner not in finishedScanner list [USERDEF.Gsmrelation.STATS]. Proceeding with execution.[2006-09-06 15:45:00.992] se.ericsson.wcdma.rnc.roam.roam_pmstat:Pms_USERDEF.UtranRelation.STATS PmStatInternalScanner$MoInstancesInfo:0 INFO:ERROR: Scanner not in finishedScanner list [USERDEF.UtranRelation.STATS]. Proceeding with execution.[2006-09-06 15:45:00.996] se.ericsson.wcdma.rnc.roam.roam_pmstat:Pms_USERDEF.Paging.STATS PmStatInternalScanner$MoInstancesInfo:0 INFO:ERROR: Scanner not in finishedScanner list [USERDEF.Paging.STATS]. Proceeding with execution.
Finn Magnusson 2008-06-25 rev PA43 262/330
`[2006-09-06 15:45:01.000] se.ericsson.wcdma.rnc.roam.roam_pmstat:Pms_USERDEF.LArea.STATS PmStatInternalScanner$MoInstancesInfo:0 INFO:ERROR: Scanner not in finishedScanner list [USERDEF.LArea.STATS]. Proceeding with execution.[2006-09-06 15:45:01.004] se.ericsson.wcdma.rnc.roam.roam_pmstat:Pms_USERDEF.RArea.STATS PmStatInternalScanner$MoInstancesInfo:0 INFO:ERROR: Scanner not in finishedScanner list [USERDEF.RArea.STATS]. Proceeding with execution.[2006-09-06 15:45:01.008] se.ericsson.wcdma.rnc.roam.roam_pmstat:Pms_PREDEF.SECONDARY.STATS PmStatInternalScanner$MoInstancesInfo:0 INFO:ERROR: Scanner not in finishedScanner list [PREDEF.SECONDARY.STATS]. Proceeding with execution.
RNC10> ls -l | sort +2n
$ $ ls -l-rw-rw-rw- 0 3081 10 Jul 2006 12:44:43 Trace_01.prop-rw-rw-rw- 0 11487 22 Dec 2005 08:08:55 CXC1321344_R50GN03 (pms.ppc750)-rw-rw-rw- 0 18689 22 Dec 2005 08:08:22 CXC1320992_R50HF01 (aal2_adm.ppc)-rw-rw-rw- 0 20072 11 Jan 2006 12:40:09 CXC1322165%12_R50HX01 (48vpowsup)-rw-rw-rw- 0 20082 22 Dec 2005 08:10:16 CXC1322165%12_R50HC03 (48vpowsup)-rw-rw-rw- 0 21217 11 Jan 2006 12:40:39 CXC1321407_R50HX01 (spas_link.pp)-rw-rw-rw- 0 21225 22 Dec 2005 08:09:01 CXC1321407_R50HC03 (spas_link.pp).....< cut > ........-rw-rw-rw- 0 1564295 22 Dec 2005 08:20:40 CXC1329863%2_R4G04 (RncLmDc)-rw-rw-rw- 0 1564300 22 Dec 2005 08:20:57 CXC1329863%3_R4G04 (RncLmDc)-rw-rw-rw- 0 1564639 11 Jan 2006 12:43:30 CXC1329863_R4J06 (RncLmDc)-rw-rw-rw- 0 1564645 11 Jan 2006 12:43:39 CXC1329863%2_R4J06 (RncLmDc)-rw-rw-rw- 0 1564667 19 Jan 2006 07:11:45 CXC1329863_R4J11 (RncLmDc)-rw-rw-rw- 0 1564680 19 Jan 2006 07:11:55 CXC1329863%2_R4J11 (RncLmDc)-rw-rw-rw- 0 1564692 19 Jan 2006 07:12:04 CXC1329863%3_R4J11 (RncLmDc)-rw-rw-rw- 0 1564703 11 Jan 2006 12:43:48 CXC1329863%3_R4J06 (RncLmDc)-rw-rw-rw- 0 1682531 11 Jan 2006 12:40:01 CXC1321447_R50HX06 (GpbBasic)-rw-rw-rw- 0 1682571 22 Dec 2005 08:09:26 CXC1321447_R50HX04 (GpbBasic)-rw-rw-rw- 0 3048154 22 Dec 2005 08:17:50 CXC1329856_R4G06 (RncLmCell)-rw-rw-rw- 0 3049921 11 Jan 2006 12:42:10 CXC1329856_R4J08 (RncLmCell)-rw-rw-rw- 0 3049923 19 Jan 2006 07:10:30 CXC1329856_R4J10 (RncLmCell)-rw-rw-rw- 0 3396654 22 Dec 2005 08:19:57 CXC1329860_R4G02 (RncLmFro)-rw-rw-rw- 0 3416818 11 Jan 2006 12:43:18 CXC1329860_R4J09 (RncLmFro)-rw-rw-rw- 0 3417860 19 Jan 2006 07:11:35 CXC1329860_R4J10 (RncLmFro)-rw-rw-rw- 0 6846040 22 Dec 2005 08:19:06 CXC1329857_R4G06 (RncLmUe)-rw-rw-rw- 0 6848725 11 Jan 2006 12:42:54 CXC1329857_R4J08 (RncLmUe)-rw-rw-rw- 0 6849049 19 Jan 2006 07:11:14 CXC1329857_R4J14 (RncLmUe)
RNC10> sql select name from tables | grep piu
| 'cspiuresource_01' |
Finn Magnusson 2008-06-25 rev PA43 263/330
`
More help
RNC10> h ose (or “h coli”)
*******************************************************<ose command> [|<unix command>] (type "h ose" for info)*******************************************************Sends an ose command to the node, via telnet or ssh. (See chap 0.5 for info about secure shell.)The password is not required if it is defined in the ipdatabase (otherwise, the user will be prompted to enter the password).To find out all available ose commands, type "?" or "lhsh <lnh> ?"It is possible to pipe the command to any external utility. Examples: >> ls -l /d/loadmodules | sort +2n (to sort LMs by size) >> ps | grep CXC (useful to see what processes belong to what LM) >> te log read | /home/eric/tools/decoder.pl | /home/eric/tools/flow.pl >> lhsh 001400 te log read | grep -i error (to search for errors in the te log)Several commands can be run on the same line by separating each command with a semicolon. Examples: >> vii ; pwd ; cd /d/loadmodules ; pwd ; llog >> lhsh 001100 ; vii ; te e trace1 NBAP* >> lhsh 001400 ; te filter set "([1]<8 OR [1]>=9 AND LEN <> 33)" NBAP* >> lhsh 001400 ; te filter set "[1]<> 8 AND [1] <> $12 AND [1] <> $14 AND [1] <> $11" NBAP*Note that it is safer to do "lhsh <lnh> <command>" instead of "lhsh <lnh> ; command" in case the board is not reachable.Eg: if you want to format /d on board 001400: if you do "lhsh 001400 ; formathd /d" and the board 001400 is not reachable then the command is sent to the Hub MP whereas with the command "lhsh 001400 formathd /d", if the board 001400 is not reachable then the command is not sent at all.To run sql commands use one of the following syntax examples: >> sqlc ; select * from tables >> sql select * from tables >> sql select * from tables where name like '%iur%' ; >> sql select * from cspgmresource_01 where pno='CXC 132 0784'; >> sql update cspgmresource_01 set poolsize=20000000 where pno='CXC 132 0784'; commit;To run corben commands use one of the following syntax examples: >> corben ; ts ; statistics >> corben ts ; corben statisticsTo run loco commands use one of the following syntax examples: >> loco ; ts ; ls >> loco ts ; loco lsNote: the "ts" command (stands for "termset") is for redirecting the printout to the telnet/ssh session instead of the serial port.To run 3gsim commmands use the following syntax: >> 3gsim lb >> 3gsim lssTo change the COLI password, use the following syntax: >> passwd ; <new password>
Finn Magnusson 2008-06-25 rev PA43 264/330
`To change security level (CPP5.1), use the following syntax: >> secmode -l 2 ; <password>To run against an AXE node, no need for semicolons, eg: >> allip >> rxmsp:mo=rxotg-17,subord >> rxbli:mo=rxotrx-17-1 (command will be auto-confirmed)Limitations: it is not possible to release the terminal in order to view "ordered" printouts.
5.4 Using board groups
RNC10> bo
Created following board-groups: all, allp, mp, bp, tu, coremp, ommp, sccpmp, ranapmp, rnsapmp, mod, modact, modsb, mod[0-9], cc, cc[0-9], dc, dc[0-9], pdr, pdr[0-9], spb, spb[0-9].>>> Type "bp" to view available board-groups and "bp <group>" to view group contents.
Created following MO-groups: cc[0-9]dev, dc[0-9]dev, pdr[0-9]dev.>>> Type "mp" to view available MO-groups and "pr <group>" to view group contents.
====================================================Board-Group Nr of Boards====================================================all 71allp 71bp 50ch 3coremp 2licdb 2
0004: [2006-06-07 16:26:42.052] Nss_tuControl_proc nss_tu_control_smAny.c:1137 ERROR:Unexpected signal 639489 received from Nss_tuDlRegu_proc0004: [2006-06-07 16:26:42.052] Nss_tuControl_proc nss_tu_control.c:290 CHECK:ERROR STATUS
Finn Magnusson 2008-06-25 rev PA43 271/330
`0004: [2006-06-07 16:26:42.052] Nss_tuControl_proc nss_tu_control.c:294 ERROR:Unexpected error occured, further investigation needed.0004: [2006-06-08 10:22:02.316] Nss_tuControl_proc nss_tu_control_smAny.c:1137 ERROR:Unexpected signal 639489 received from Nss_tuDlRegu_procetc..0016: [2006-07-08 22:48:15.996] uehUeCtxtC[1754] ../src/UehUeCtxtC.cpp:23484 ERROR:Timeout on Procedure Execution Timer for procedure : PROC 10: Soft Handover0016: [2006-07-08 22:48:15.996] UehSoftHoC[109] ../src/target/Cello/RTActor/badMessage.cc:196 ERROR:uehProcedures(109)@waitCellParams received unexpected message: uehUeCtxtAsynchIndicP%asynch_unknownSigInd data: void 0016: [2006-07-08 22:48:16.040] uehUeCtxtC[1755] ../src/UehUeCtxtC.cpp:23484 ERROR:Timeout on Procedure Execution Timer for procedure : PROC 10: Soft Handover0016: [2006-07-08 22:48:16.040] UehSoftHoC[110] ../src/target/Cello/RTActor/badMessage.cc:196 ERROR:uehProcedures(110)@waitCellParams received unexpected message: uehUeCtxtAsynchIndicP%asynch_unknownSigInd data: void 0016: [2006-07-08 22:48:16.360] uehUeCtxtC[1759] ../src/UehUeCtxtC.cpp:23484 ERROR:Timeout on Procedure Execution Timer for procedure : PROC 10: Soft Handover0016: [2006-07-08 22:48:16.360] UehSoftHoC[107] ../src/target/Cello/RTActor/badMessage.cc:196 ERROR:uehProcedures(107)@waitCellParams received unexpected message: uehUeCtxtAsynchIndicP%asynch_unknownSigInd data: void 0019: [2006-07-07 20:26:36.316] spp_superviser_ro sp_superviser_ro.cc:418 ERROR:Unknown signal 0x0 received from pid 0x101020019: [2006-07-08 22:46:27.508] spp_superviser_ro sp_superviser_ro.cc:418 ERROR:Unknown signal 0x2000e received from pid 0x101030020SP2: [2006-07-10 10:50:30.349] dcsIubDfpDlC[130] ../src/DcsIubDfpDlC.cpp:1819 ERROR:[ueRef 23, modId 0, rbId/rabType -1, instanceId -1 ] Previous state WaitCfnFromNew, Downlink traffic is sent to iub before is it ready...free the buffer0020SP2: [2006-07-10 10:50:30.369] dcsIubDfpDlC[130] ../src/DcsIubDfpDlC.cpp:1819 ERROR:[ueRef 23, modId 0, rbId/rabType -1, instanceId -1 ] Previous state WaitCfnFromNew, Downlink traffic is sent to iub before is it ready...free the buffer0020SP2: [2006-07-10 10:50:30.389] dcsIubDfpDlC[130] ../src/DcsIubDfpDlC.cpp:1819 ERROR:[ueRef 23, modId 0, rbId/rabType -1, instanceId -1 ] Previous state WaitCfnFromNew, Downlink traffic is sent to iub before is it ready...free the buffer0020SP2: [2006-07-10 10:50:30.409] dcsIubDfpDlC[130] ../src/DcsIubDfpDlC.cpp:1819 ERROR:[ueRef 23, modId 0, rbId/rabType -1, instanceId -1 ] Previous state WaitCfnFromNew, Downlink traffic is sent to iub before is it ready...free the buffer0020SP2: [2006-07-10 10:50:30.449] dcsIubDfpDlC[130] ../src/DcsIubDfpDlC.cpp:1819 ERROR:[ueRef 23, modId 0, rbId/rabType -1, instanceId -1 ] Previous state WaitCfnFromNew, Downlink traffic is sent to iub before is it ready...free the buffer0020SP2: [2006-07-10 10:50:30.469] dcsIubDfpDlC[130] ../src/DcsIubDfpDlC.cpp:1819 ERROR:[ueRef 23, modId 0, rbId/rabType -1, instanceId -1 ] Previous state WaitCfnFromNew, Downlink traffic is sent to iub before is it ready...free the buffer0020SP2: [2006-07-10 10:50:30.489] dcsIubDfpDlC[130] ../src/DcsIubDfpDlC.cpp:1819 ERROR:[ueRef 23, modId 0, rbId/rabType -1, instanceId -1 ] Previous state WaitCfnFromNew, Downlink traffic is sent to iub before is it ready...free the buffer0020SP2: [2006-07-10 10:50:30.509] dcsIubDfpDlC[130] ../src/DcsIubDfpDlC.cpp:1819 ERROR:[ueRef 23, modId 0, rbId/rabType -1, instanceId -1 ] Previous state WaitCfnFromNew, Downlink traffic is sent to iub before is it ready...free the buffer0020SP2: [2006-07-10 10:50:30.529] dcsIubDfpDlC[130] ../src/DcsIubDfpDlC.cpp:1819 ERROR:[ueRef 23, modId 0, rbId/rabType -1,
RBS121> lh ru fui get vswr
=============================================================================================$ lhsh 001200/port_0_dev_5 fui get vswr0012p0d5: vswr: 0.0[dB]=============================================================================================$ lhsh 001200/port_2_dev_6 fui get vswr0012p2d6: vswr: 0.0[dB]
Finn Magnusson 2008-06-25 rev PA43 272/330
`=============================================================================================$ lhsh 001200/port_4_dev_7 fui get vswr0012p4d7: vswr: 0.0[dB]=============================================================================================$ lhsh 001200/port_6_dev_8 fui get vswr0012p6d8: vswr: 0.0[dB]=============================================================================================$ lhsh 001200/port_8_dev_9 fui get vswr0012p8d9: vswr: 0.0[dB]=============================================================================================$ lhsh 001200/port_10_dev_10 fui get vswr0012p10d10: vswr: 0.0[dB]$
Run a local command file:
RNC10> l cat mod_traces.txt
te e bus_send bus_receive NBAP*te e bus_send bus_receive RANAP*te e bus_send bus_receive RRC*te e bus_send bus_receive Ans_aal2ap_proc
RNC10> lh mod run mod_traces.txt
put /home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20060710-094501_10988/lhCmd10988 /c/tmp/lhCmd10988 ... OK$ shell -f /c/tmp/lhCmd10988=============================================================================================$ lhsh 001400 te e bus_send bus_receive NBAP*=============================================================================================$ lhsh 001400 te e bus_send bus_receive RANAP*=============================================================================================$ lhsh 001400 te e bus_send bus_receive RRC*=============================================================================================$ lhsh 001400 te e bus_send bus_receive Ans_aal2ap_proc=============================================================================================$ lhsh 001500 te e bus_send bus_receive NBAP*=============================================================================================$ lhsh 001500 te e bus_send bus_receive RANAP*=============================================================================================$ lhsh 001500 te e bus_send bus_receive RRC*=============================================================================================
Finn Magnusson 2008-06-25 rev PA43 273/330
`$ lhsh 001500 te e bus_send bus_receive Ans_aal2ap_proc=============================================================================================$ lhsh 001600 te e bus_send bus_receive NBAP*=============================================================================================$ lhsh 001600 te e bus_send bus_receive RANAP*=============================================================================================$ lhsh 001600 te e bus_send bus_receive RRC*=============================================================================================$ lhsh 001600 te e bus_send bus_receive Ans_aal2ap_proc$
(for running a command file stored on the node, use “shell –f commandfile”)
RNC10> lh dc te e trace1 SP_HIST ; te log read
put /home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20060710-094501_10988/lhCmd10988 /c/tmp/lhCmd10988 ... OK$ shell -f /c/tmp/lhCmd10988=============================================================================================$ lhsh 001900/sp2.lnh te e trace1 SP_HIST=============================================================================================$ lhsh 001900/sp2.lnh te log read0019SP2: [1970-01-01 00:00:00.016] spp_bsp_server versiontrace.c:50 INFO:Kernel version: OSE Delta PowerPC/OSE4.5.20019SP2: [1970-01-01 00:00:00.017] spp_bsp_server versiontrace.c:58 INFO:LM Path: @(#)/vobs/cello/spp/SPP_CRX90153_1/SPP-SP1-BASIC_CNX9011075/SPP-SP1-BASIC_CXC1325828 spp_sp_basic.ppc750.ulf ppc750 xcssuve_icp_cpp (spp_sp_basic)0019SP2: [1970-01-01 00:00:00.017] spp_bsp_server versiontrace.c:64 INFO:LM Version: @(#)CXC1325828 R50HX05 2005-12-21 13:48:05 MET 868a2602-0b3c0b85-250a (spp_sp_basic)0019SP2: [1970-01-01 00:00:00.017] spp_supervisor supervision.c:492 INFO:Temperature limit set to 1050019SP2: [2006-07-08 22:47:13.835] spp_supervisor supervision.c:521 INFO:Received RTC update message. Time set to Sat Jul 8 22:47:13 20060019SP2: [2006-07-08 22:47:16.644] main_thread_func ../src/target/Cello/MAIN/main.cc:273 INFO:***RoseRT: PPC Environment0019SP2: [2006-07-08 22:47:16.644] main_thread_func ../src/target/Cello/MAIN/main.cc:457 INFO:***RoseRT: Adding rrt and rrt-CXC1329863_R4J11 shell command to Cello debugger (RncLmDc)0019SP2: [2006-07-08 22:47:16.645] RLIBTARGETOBSPROC RlibTargetObsProc.cc:374 INFO:OSE shell command handling process successfully started (pid 65618)etc..0023SP2: [2006-07-10 11:04:14.938] dcsMacDConfigC ../src/DcsMacDConfigC.cpp:4743 INFO:SpCtrlAgentRef 43 not found.$
To make your own board group
MGW1> ba scb scb
Added 6 boards to group: scb
Finn Magnusson 2008-06-25 rev PA43 274/330
`
MGW1> h ba
*******************************************************bo[r]/ba[swdp]/br[wd]/be[0-50]/bp*******************************************************Manage board groups that can be used for running COLI commands on multiple boards.
ETC............ (SEE HELP FOR FULL PRINTOUT)
5.5 File handling
File transfer with ftp/sftp
RNC10> uv secure_ftp
secure_ftp = 0
RNC10> h ftget
*******************************************************ftget[c]/ftput[c] [<options>] <source> [<destination>]*******************************************************Transfer files or directories to/from the node, using ftp or sftp.
Syntax:****** * ftput[c] [<options>] localfile/localdir [remotefile/remotedir] * ftget[c] [<options>] remotefile/remotedir [localfile/localdir]Where "local" refers to the workstation and "remote" refers to the CPP node.It is possible to transfer a whole directory to/from the node by specifying a source directory instead of a source file.The "c" switch stands for conditional and means that if the file already exists on the workstation/node, it will not be overwritten.The options can be place anywhere on the comand line but the source must be given before the destination. If the destination is omitted then the current working directory is chosen.
Filtering option:****************The "-f" option allows to specify a regular expression to only transfer the files matching that expression. See examples below.
Finn Magnusson 2008-06-25 rev PA43 275/330
` Time options:************The "-s" and "-e" options are used for specifying an absolute timespan: -s gives the starting date and -e gives the ending date. The format is yyyymmdd[.hhmm], for instance 20071230, or 20071230.0800. The "-m" and "-p" options are used for specifying a timespan relative to today's date: -m gives how long time backward and -p gives how long time forward. The format is in days, hours, or minutes, eg. 10d (10 days), 2h (2 hours), 30m (30 minutes).
Examples:********>> ftget /c/logfiles --> fetch the folder /c/logfiles and all of its contents and store it in the current working directory on the workstation>> ftget /c/logfiles /home/eric --> fetch the folder /c/logfiles and all of its contents and store it in the folder /home/eric on the workstation>> ftputc /home/eric/rnc10/configuration/cv/cv-10 /d/configuration/cv --> put the folder cv-10 from the workstation to the node, files that already exist on the node will not be overwritten (conditional transfer)>> ftget -f A.*xml.gz -m 3h /c/pm_data /home/eric/rnc10 --> download files from the folder /c/pm_data whose path matches the string A.*xml.gz and whose timestamp is from the last 3 hours.>> ftget /c/loadmodules_norepl /home/eric/rnc10 -f (xml|jar)$ --> fetch all files matching who have the extension "xml" or "jar" from the folder /c/loadmodules_norepl and any of its subfolders.
drwxr-xr-x eanzmagn - May 7 2007 moshell/examplesdrwxr-xr-x eanzmagn - Jan 14 12:30 moshell/examples/audit_files-rwxr-xr-x eanzmagn 57125 Jul 17 2003 moshell/examples/audit_files/CDR_celldata.txt-rwxr-xr-x eanzmagn 259072 Jan 9 2006 moshell/examples/audit_files/CDR_ExcelFormat.xls-rwxr-xr-x eanzmagn 13695 Jul 17 2003 moshell/examples/audit_files/CDR_utranrelations.txt-rwxr-xr-x eanzmagn 61440 Feb 20 11:06 moshell/examples/audit_files/EAB_FJW-08_0071.docdrwxr-xr-x eanzmagn - May 7 2007 moshell/examples/mobatch_files-rwxr-xr-x eanzmagn 1278 Oct 16 2003 moshell/examples/mobatch_files/commandfile-rwxr-xr-x eanzmagn 45685 Jan 14 21:58 moshell/examples/mobatch_files/ipdatabase-rwxr-xr-x eanzmagn 802 May 7 2007 moshell/examples/mobatch_files/sitefiledrwxr-xr-x eanzmagn - May 7 2007 moshell/examples/netcheck_swup_cvmsdrwxr-xr-x eanzmagn - May 7 2007 moshell/examples/netcheck_swup_cvms/cvms_file-rwxr-xr-x eanzmagn 372 Jun 11 2003 moshell/examples/netcheck_swup_cvms/cvms_file/swversions
Recursive deletion of a directory on the node (equivalent to “rm –Rf” in unix)
fclean <directory>
Example:
>> fclean /c/pmd
>> fclean 000400/f
Copy files, rename files
Same commands as in unix: cp, mv
5.6 Tracing
5.6.1 te commands
Traces are produced by the SW and written in an area of the RAM memory called the trace and error log (T&E log), 72 KB in size.The trace and error log is handled by the “te” commands. More information about the te commands can be found in the document 1553-CXA104203 (COLI UG).
Examples:- te log read: to print the contents of the T&E log. Traces come in the following format:
Finn Magnusson 2008-06-25 rev PA43 278/330
`
$ te log read[2008-06-04 07:06:54.964] sshd_handler_150.236.178.94:2190 packet.c:926 INFO:Connection closed by 150.236.178.94[2008-06-04 11:20:47.000] Sys_OMCSF_teGlobal te_global.c:2050 INFO:Process not found: NBAP[2008-06-04 11:35:05.272] Osa_sysmgr_proc sysmgr.c:4979 INFO:Node uptime 3 days[2008-06-04 11:35:29.692] TargetMonitor_router_proc te_monitor_router_proc.c:212 INFO:Starting up a new Trace & Error Target Monitor Router[2008-06-04 11:35:29.692] TargetMonitor_router_proc te_monitor_router_proc.c:212 INFO:Starting up a new Trace & Error Target Monitor Router[2008-06-04 11:36:23.036] TargetMonitor_router_proc te_monitor_socket.c:398 INFO:The Trace & Error Target Monitor connection has been closed[2008-06-04 11:37:20.740] TargetMonitor_router_proc te_monitor_router_proc.c:156 INFO:Target Monitor router no 1 is being killed on user request[2008-06-04 11:37:20.740] TargetMonitor_router_proc te_monitor_router_proc.c:110 INFO:Failed to set up the socket[2008-06-04 11:37:20.740] TargetMonitor_router_proc te_monitor_router_proc.c:111 INFO:Target monitor router process 0x16306e2 is being terminat
List of trace groups according to RNC trace guide 18/1551-AXD10503/1 (http://utran01.epa.ericsson.se/moshell/training/references/rnc) - bus_send bus_receive: messages sent and received on external interfaces- info: Used for tracing informational messages. The intention is to use it only for important events, e.g. during a system start to generate some sort of start report.- error: This primitive is used for tracing errors.- enter: Used for tracing a call to a function.- return: Used for tracing a return from a function.- rec_sig: Used for tracing reception of a signal.- send_sig: Used for tracing sending of a signal.- param: This primitive is used for logging of formatted parameters and other values that can be presented as ASCII.- state_change: Used for tracing state changes on a process level.- trace1: Error reporting via Trace Objects. This is either made via one of the function Trace Objects in case the error can be related to a specific function or via the Trace
Object GENERAL_ERROR in case the error can not be related to a specific function Trace Object.- trace2: Start, stop and expirations of timers.- trace3: General Trace Information- trace4: Incarnation, Destruction, Importation, Deportation of Capsule/process.
`- trace5: Decisions, e.g. if, else, choicepoints etc.- trace6: Tracing Incoming/Outgoing messages- trace7: Tracing Incoming/Outgoing message data- trace8: SP bag tracing (for uehUeCtxt)- trace9: not specified
For CPP, the information contained in each trace group is set on a subsystem basis. Refer to the following documents (can be found in http://utran01.epa.ericsson.se/moshell/training/references/cpp )- CPP Design Rules for T&E 2/10260-CSX10109 (cdmweb.ericsson.se) - Trace and Error Usage Guide 10/1553-CSX 101 09/3- - http://utran01.epa.ericsson.se/utranwiki/CelloInformation/CelloSubsystemTracing
If not sure which trace groups to enable, just enable “all” and then check which traces have the most relevant information, then just enable those trace groups.
- te status: to print which trace objects and processes exist and which trace groups are currently enabled$ te s pid name enabled groups00010057 Sys_Spas_metatag_proc check error info interface object - CLS_ATMPDR_IF_1 check error info interface object - CLS_ATMPDR_IF_2 check error info interface object - CLS_ATMPDR_IF_3 check error info interface object0001004a Sys_OMCSF_teGlobal check error info interface object - CELLO_TEMI_IF check error info interface object - OSA_CMI_IF check error info interface object - Spas_RgRo check error info interface object - SPAS_SGTI_IF check error info interface object0001004f Sys_Spas_seci_proc check error info interface object00010045 Cls_bpID_proc check error info interface object0001004b Sys_OMCSF_teLogMain check error info interface object00010036 Cs_visualIndication_proc check error info interface object00010017 Cs_boardManager_proc check error info interface object0001005b Sys_Spas_smid_proc check error info interface object0001005a Sys_Spas_id_proc check error info interface object00010055 Sys_Spas_linktable_proc check error info interface object00010054 Sys_Spas_link_proc check error info interface object00010015 Cls_atmPdr_proc check error info interface object...<cut>...
RNC10> te s | grep NBAP
$ te s pid name enabled groups - NBAP_ASN check error info interface object
` - NBAP_ASN_PEEK check error info interface object - NBAP_ASN check error info interface object - NBAP_ASN_PEEK check error info interface object - NBAP_ASN check error info interface object - NBAP_ASN_PEEK check error info interface object - NBAP_ASN check error info interface object - NBAP_ASN_PEEK check error info interface object - NBAP_ASN check error info interface object - NBAP_ASN_PEEK check error info interface object$
- te enable: to enable some trace groups on a particular trace object or process$ lhsh 001400 te e bus_send bus_receive NBAP_ASN$ lhsh 001400 te e all RANAP_ASN$ lhsh 001400 te e bus_send bus_receive Ans_aal2ap_proc
- te default: to reset all tracing back to default$ lhsh 001400 te default
- te config -run (or te save): to enable traces that will survive a restart$ lhsh 001400 te config -run bus_send bus_receive NBAP_ASNor:$ lhsh 001400 te e bus_send bus_receive NBAP_ASN$ lhsh 001400 te save NBAP_ASN
- te status -restart: to view which traces have been configured to survive a restart$ lhsh 001400 te s -restart pid name enabled groups - NBAP_ASN check error info bus_send bus_receive interface object
- te default -restart: to reset all traces that have been configured to survive a restart$ lhsh 001400 te default –restart
Be careful to not overload the processor by putting too many traces
Checking which additional trace conditions have been activated:
RNC26> cabe
==========================================================================Board Process Status AdditionalTraceGroups==========================================================================
COLI user guide in http://cdmweb.ericsson.se : 1/1553-CXA1103151 or 1553-CXA104203or on http://utran01.epa.ericsson.se/moshell/training/references/cpp/
`Description This command manages the Trace and Error function. The subcommands are described in separate man pages and can be read with command 'man te_ <subcmd> '.
Subcommands config Configure saved traced groups.
default Set trace groups to default.
disable Disable trace groups.
disk Log to disk.
enable Enable trace groups.
filter Set and reset trace bus filter.
log Trace and error logging.
monitor Enable or disable log monitoring.
preset Preset trace groups during interception
save Save current enabled trace groups.
status Display trace group status.
Copyright (c) Ericsson AB 2005 - All Rights Reserved
1/190 80-CNX 901 1047 2005-08-18 te(1)$
RNC11> man te_log
$ man te_logte log(1) Shell Commands te log(1)
Finn Magnusson 2008-06-25 rev PA43 286/330
`
Name te log - trace and error logging
Synopsis te log clear
te log freeze [-grp <group>] [<message> [<count>]]
te log read [-rel | -mon] [<time>]
te log resume
Description This command manages the Trace and Error logs.
Limitations Settings made with the command, te log freeze do not survive a board restart.
Subcommands clear This subcommand clears the Trace and Error log. All currently stored log entries are removed.
freeze This subcommand freezes the Trace and Error log. A frozen log disables any further logging. If no option is specified, the log is frozen immediately. -grp is specified, the log is frozen when the trace event matches the group. If <message> is specified, the message will be matched with every logged message. If a match is found, the <count> operand controls the number of additional messages that are logged when a matching freeze message has been found.
read This subcommand reads the Trace and Error log. During the reading of the log, all logging is disabled, that is, the log is frozen.
resume This subcommand immediately resumes the logging in the Trace and Error log. It also clears not yet activated freeze commands.
Options -grp Specify that the <message> is to be matched only for log entries with the specified trace <group>. If this option is used without specifying a freeze <message>, the log is frozen when the first
Finn Magnusson 2008-06-25 rev PA43 287/330
` entry, belonging to the specified trace <group>, is logged.
-mon Dump the log to the monitor instead of to the shell itself. A monitor must be connected when using this option.
NOTE The -rel option cannot be used in combination with the -mon option, as the monitor itself controls the format of the timestamp.
-rel Present the timestamps for the log entries, using the time relative to when the node was started. If this option is not specified, the default is to display the timestamps using absolute time.
Operands...<cut>....
Examples Resume the logging in the Trace and Error log:
$ te log resume
Freeze the log immediately:
$ te log freeze
Freeze the log whenever the freeze message, my_log_string is matched:
$ te log freeze "my_log_string"
Freeze the log whenever the freeze message, my_log_string is matched in a log entry in trace group info :
$ te log freeze -grp info "my_log_string"
Freeze the log whenever the first log entry, belonging to the trace group, error is logged:
$ te log freeze -grp error
Finn Magnusson 2008-06-25 rev PA43 288/330
` Start freezing the log whenever the freeze message, my_log_string is matched, and then save 100 more messages:
$ te log freeze "my_log_string" 100
Clear the trace and error log:
$ te log clear
Read the log, and dump it to the shell:
$ te log read
Read the log, and dump it to the monitor:
$ te log read -mon
Read the log, and dump only those log records created within the last 60 seconds, to the shell:
$ te log read 60
The following is an example of what log entries can look like:
[1997-10-02 15:31:52.510] OMCSF_teTest2 test.c:619 TRACE2:The board has been loaded [1997-10-02 15:31:52.960] OMCSF_teTest11 test.c:492 ENTER:testFunction [1997-10-02 15:31:52.964] OMCSF_teTest11 test.c:494 RETURN [1997-10-02 15:31:53.520] OMCSF_teTest1 test.c:618 TRACE1:Received parameter value 4 [1997-10-02 15:31:53.520] OMCSF_teTest1 test.c:632 BUS SEND:Sending control data 0000 54 68 69 73 20 69 73 20 61 20 6C 6F 74 20 6F 66 'This is a lot of' 0010 20 62 69 6E 61 72 79 20 64 61 74 61 3A 20 01 02 ' binary data: ..' 0020 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 80 '................' 0030 80 82 83 84 85 86 87 F5 FF '.........' [1997-10-02 15:31:54.510] OMCSF_teTest2 test.c:619 TRACE2:The board has been loaded [1997-10-02 15:31:54.620] OMCSF_teTest1 test.c:618 TRACE1:Received parameter value 5
See also See also te.
Copyright (c) Ericsson AB 2006 - All Rights Reserved
Finn Magnusson 2008-06-25 rev PA43 289/330
`7/190 80-CNX 901 1047 2006-04-06 te log(1)$
5.6.2 target monitor
The target monitor is a program running in the Core MPs which allows to send the contents of the trace and error log to a monitoring client so that the traces can be viewed in real time as they are written to the “te log”The target monitor program is activated in different ways depending on the CPP version. This is handled by the moshell command “mon”. The moshell package also includes a monitor client called monitor6054.Board groups can be used as input to the mon command to specify which boards shall be monitored.
RNC11> h mon
*******************************************************mon+/mon-/mon?/mon [<boardGroup(s)>]*******************************************************Purpose: To start/stop/check the target monitor server on the node and/or start the monitor client for one or more board Group(s)....<cut>...
Opening the ports
(using linkhandlers)
RNC11> mon 000400 000500
or:
(using board groups)
RNC11> mon tu
******** Opening new handle:$ lhsh 001100 tm -tcp -win 1New monitor router process 0x10348 is started and listening to port 33080.To attach link handlers, use handle 4.
** NONE ** eanzmagn@srld7243:=> /home/eanzmagn/moshell/monitor6054 137.58.194.147 33080 | tee logfile[Welcome to the Trace & Error Client: Press Ctrl-C to exit][Monitor Client v0.4 - By David Smith (esmidav)][No parameters sent to target][Attempting connection to TargetMonitor on port: 33080][Trying to contact the Trace & Error Log via link handler '000400'...][Trying to contact the Trace & Error Log via link handler '000500'...][Contact established with the Trace & Error Log via link handler '000400'][Connection accepted by the Trace & Error Log via link handler '000400'][Contact established with the Trace & Error Log via link handler '000500'][Connection accepted by the Trace & Error Log via link handler '000500'][2008-06-04 12:24:16.496] 000400/Nss_tuControl_proc nss_tu_control_smAny.c:1619 ENTER:function: forwardSignalToSystemClock[2008-06-04 12:24:16.496] 000400/Nss_tuControl_proc nss_tu_control_smAny.c:1714 RETURN[2008-06-04 12:24:16.496] 000400/Nss_tuControl_proc nss_tu_control_sm.c:553 ENTER:ctrlMapStateIndex[2008-06-04 12:24:16.496] 000400/Nss_tuControl_proc nss_tu_control_sm.c:572 RETURN[2008-06-04 12:24:16.496] 000400/Nss_tuControl_proc nss_tu_control_sm.c:493 ENTER:ctrlMapSignalIndex[2008-06-04 12:24:16.496] 000400/Nss_tuControl_proc nss_tu_control_sm.c:537 RETURN[2008-06-04 12:24:16.496] 000400/Nss_tuControl_proc nss_tu_control_smState.c:596 ENTER:storeDacValuesToFlash[2008-06-04 12:24:16.496] 000500/Nss_tuControl_proc nss_tu_control_smAny.c:1619 ENTER:function: forwardSignalToSystemClock[2008-06-04 12:24:16.496] 000400/Nss_tuControl_proc nss_tu_control_smState.c:597 TRACE2:Recv: TU_OSE_TIMER_STORE_DAC_IND
Checking status
RNC11> mon?
$ lhsh 001000 tm -status
Finn Magnusson 2008-06-25 rev PA43 291/330
`Target Monitor Status=====================Channel is TCP-channel connected
Monitor Information:===================Monitor handle 1 active - handling process PID = 0x40161Monitor handle 3 active - handling process PID = 0x13046e
Link handler information:=========================Log number 0 : connected to link handler 000400, monitor handle 3, absolute time stampLog number 1 : connected to link handler 000500, monitor handle 3, absolute time stamp$
Closing ongoing monitoring session
ctrl-C on the monitor6054 session in workstation
or
RNC11> mon-
$ lhsh 001000 tm -disconnectAll monitored boards are disconnected and Target Monitor has shut down.$
Saving target monitor configuration to survive board/node restart
RNC10> tm –save
$ tm -save$
Removing target monitor configuration file
RNC10> tm -rm
$ tm -rm$
Monitoring to background (useful in script)
Finn Magnusson 2008-06-25 rev PA43 292/330
`
RNC10> l $moncommand > /path/to/logfile &
$background_pid = 1234
RNC10> wait 120
RNC10> l kill –9 $background_pid
5.7 Translation of COLI printouts
5.7.1 Translation of CXC numbers
LM name is appended at the end of lines that contain CXC numbers (eg. in te log read, lgsv, pglist, etc)Translation of error codes is appended at the end of lines that contain the trace9 on Ans_aal2ncc2_proc as well as MTP3/SCCP traces and rnhCellProc traces.The lmid command can be used to lookup LM names.Use “bo” to update the lmid table (or just look up an LM that is not present in the lmid database)
`-rw-rw-rw- 0 7233507 25 Jul 2006 07:20:32 CXC1722118_R2G01.jar -rw-rw-rw- 0 8429 14 Aug 2006 08:39:25 CXC1328917_R51EF04.jar (vls)-rw-rw-rw- 0 1417234 14 Aug 2006 08:39:27 CXC1320960_R51EJ01.jar (oms)-rw-rw-rw- 0 3518760 14 Aug 2006 08:39:41 CXC1320959_R51EF02.jar (cma)-rw-rw-rw- 0 4446 14 Aug 2006 08:39:58 CXC1720729_R1D01.jar (prngcApi)-rw-rw-rw- 0 339483 14 Aug 2006 08:41:55 CXC1720482_R51EJ02.jar (ncliserver)-rw-rw-rw- 0 85531 14 Aug 2006 08:42:08 CXC1327582_R51EJ01.jar (aue_framewor)-rw-rw-rw- 0 17256 14 Aug 2006 08:42:09 CXC1324872%4_R51EJ02.jar (cma_collecto)-rw-rw-rw- 0 63082 14 Aug 2006 08:42:09 CXC1322491%8_R51EF03.jar (cma_converte)-rw-rw-rw- 0 6185 14 Aug 2006 08:42:10 CXC1329353_R51EA01.jar (cma_et_conv)-rw-rw-rw- 0 5514 14 Aug 2006 08:42:10 CXC1721388_R51EF04.jar-rw-rw-rw- 0 4747 14 Aug 2006 08:42:11 CXC1721390_R51EF04.jar-rw-rw-rw- 0 199525 14 Aug 2006 08:42:19 CXC1720327_R51EJ01.jar (cmaserv)-rw-rw-rw- 0 218047 14 Aug 2006 08:44:47 CXC1722124%1_R1A01.jar-rw-rw-rw- 0 47013 14 Aug 2006 08:44:49 CXC1722125%1_R1A01.jar-rw-rw-rw- 0 7239769 14 Aug 2006 09:10:09 CXC1722118_R2K03.jar-rw-rw-rw- 0 7239851 21 Aug 2006 08:36:43 CXC1722118_R2L01.jar$
Updating the CXC translation table
RNC10> bo
OR:
RNC10> lmid 721388
Checking MOM version...RNC_NODE_MODEL_H_1_0Using MOM version: RNC_NODE_MODEL_H_1_0_COMPLETEParsing MOM (cached): /home/eanzmagn/moshell/jarxml/RNC_NODE_MODEL_H_1_0_COMPLETE.xml.cache ................................Done.Fetching IOR file...Done.**** Welcome to the Simple Mo Browser (version 3.0)!Trying file=/home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20060830-085918_27869/ior27869**** Test Construction OK****
Connected to RNC10 (ManagedElement=1)Last MO: 406. Loaded 406 MOs. Total: 407 MOs. MO Class: LoadModule.
Logging to file: /home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20060830-085918_27869/invLog27869...................................................Log close: /home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20060830-085918_27869/invLog27869
`0016: [2007-04-09 12:21:37.100] RncLmUePT(UEH_EXCEPTION) ../src/UehRabHandlingC.cpp:6334 TRACE1:Exception code 21; RRCConNotRel; UeRef = 586; IMSI = 301001820000000; cellId = 1083; cellFroId = 82, RLs in DRNC = 0, Best RL in DRNC: No; causecode = 67108963; ConnType: uehRrcConn; RabsToSetup: uehRabSpeech ; proc: rabEst; the clientConnId is 1; the cepId is 396; the rejectType is 1; Aal2 Connection Request Rejected from Cello (AMBIGUOUS_FAULT_NO_CPSRC_PROGRAM)
For summary of all UEH exception , the tool excep.pl can be used: http://utran01.epa.ericsson.se/utranwiki/RncTraceTools UEH exceptions description: 32/1551-CRA40338/1
Call termination codes in trace1:IU_IF
RNC10> lh mod te e trace1 IU_IF
RNC10> lh mod te log read
0014: [2007-03-30 21:29:46.732] RncLmUePT(IU_IF) ../src/UehUeCtxtC.cpp:7782 TRACE1:IuReleaseCommand received for circuit switched CN with nas cause 83, UeRef = 1013; IMSI = 301001620010002; cellId = 1003; cellFroId = 2, RLs in DRNC = 0, Best RL in DRNC: No; connType = uehRrcConn (Normal Release)
Printing the cause codes
RNC10> lmidc .
Aal2 Reject Cause 1 = LOCALAal2 Reject Cause 1000001 = USAGE_FAULT_CLIENT_NOT_ATTACHEDAal2 Reject Cause 1000002 = USAGE_FAULT_CEP_CONNECT_REJECTAal2 Reject Cause 1000003 = USAGE_FAULT_CEP_DISC_IND---------------< cut >------------------------
RNC10> lmidc aal2.*disc
Aal2 Reject Cause 1000003 = USAGE_FAULT_CEP_DISC_IND
RNC10> lmidc 50000d1
Aal2 Reject Cause 50000d1 = CONGESTION_FAULT_CONG_TRAF_CLASS
5.7.3 Parseline utility
CAN BE USED TO PIPE DIRECTLY FROM WITHIN MOSHELL OR FROM ANY OTHER UTILITY (E.G. MONITOR CLIENT) IN ORDER TO DO THE LMID/ERROR CODE DECODING
`RNC10> sql select id,lmtype,loadclass,productnumber,productrevision from spppgmresource_02 | parseline
$ sqlcselect id,lmtype,loadclass,productnumber,productrevision from spppgmresource_02;Note! Have you allocated enough of heap memory to the loadmodule:CXC1325608 to be able to run SQLC in the way you want?? (OsaColi)
Scripting variables are named by string with a “$” in front, eg: $myvarVariables of type “hashtable” are named in the same way but the index is specified in brackets, just after the name, eg: $mytable[1]When a command contains a variable, its name is replaced by its value.Eg:$myvar = readte log $myvar --> will be replaced with “te log read”
$myvar = read$table[$myvar] = te log ---> the variable $table[read] is assigned the value ”te log”lhsh 001200 $table[$myvar] $myvar --> will be replaced with “lhsh 001200 te log read”
Note! user variables should not be confused with scripting variables.User variables (whose values can be printed with the “uv” commands) are not scripting variables, they are configuration settings for moshell. To use the value of a user variable, its value should first be saved into a scripting variable.Eg: uv secure_shell > $secure_shell
6.2 Preset variables
Finn Magnusson 2008-06-25 rev PA43 300/330
`The following variables are set immediately after moshell startup: $moshelldir ---> path to the moshell directory $gawk ---> path to gawk $ipaddress ---> IP address to the node that moshell is connected to $moshell_version ---> the moshell version $logdir ---> path to the moshell_logfiles/logs_moshell directory $tempdir ---> path to the directory containing all temporary files for this moshell session. Gets deleted at the end of the session.
The following variables are set after the MOM has been parsed: $momversion ---> the MOM version of the node (eg: RNC_NODE_MODEL_E_5_3, MGW_NODE_MODEL_R3_9_0) $cellomomversion ---> the CPP MOM version (eg: 3.3, 4.3, 5.1, etc) of the nodeThese two variables can be handy to have when a script needs to know what SW revision is running in the node or what kind of node it is. $momdocnumber --> document number and revision of the MOM $momdocrevision
The following variables are set after running certain MO commands: $nr_of_mos --> the number of MOs that were printed on screen by the last run of the pr/st/get/prod/fro/set/del/acc commands. $nr_of_mos_ok --> the number of MOs that were successfully operated upon by the last run of the set/del/acc commands. $command_result --> set after the cr/pcr/pset/trun commands. Possible values: 0 for success, 1 for failure. $nr_of_alarms --> the number of active alarms on the node. Set after the last run of the "al" command. $nr_of_cvs --> the number of CV:s that exist on the node, is set after the last run of the "cvls" command. $nr_of_scanners --> the number of scanners printed by the last run of the pst/pgets/pdel/pbl/pdeb commands. $nr_of_counter_instances --> the number of counter instances printed by the last run of the pgetsn command.
RNC10> pr
Checking MOM version...RNC_NODE_MODEL_G_1_4
Finn Magnusson 2008-06-25 rev PA43 301/330
`Using MOM version: RNC_NODE_MODEL_G_1_4_COMPLETEParsing MOM (cached): /home/eanzmagn/moshell/jarxml/RNC_NODE_MODEL_G_1_4_COMPLETE.xml.cache .................................Done.Fetching IOR file...Done.**** Welcome to the Simple Mo Browser (version 3.0)!Trying file=/home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20060710-075643_9102/ior9102**** Test Construction OK****
Connected to 137.58.194.88 (ManagedElement=1)===================================================================================Proxy MO=================================================================================== 0 ManagedElement=1===================================================================================Total: 1 MOs
============================================================================================================ Id MO userLabel Result============================================================================================================ 0 ManagedElement=1 RNC10 >>> Set.============================================================================================================Total: 1 MOs attempted, 1 MOs set
============================================================================================================ Id MO ManagedElementId Result============================================================================================================ 0 ManagedElement=1 2 !!!! Processing failure :se.ericsson.cello.moframework.NoSuchAttributeException TAG :"NoSuchAttribute" VARIABLES :"$attrName" = "ManagedElementId", "$moTypeName" = "ManagedElement"============================================================================================================Total: 1 MOs attempted, 0 MOs set
The following variables are set after running one of the l+/u+/u- commands. $logfile ---> the logfile that is currently open. Set immediately after executing the "l+" command, stays set even after "l-" and will only be reset the next time a new logfile is open with "l+" $undologfile ---> the logfile used by the undo command. Set immediately after executing the "u+/u+s" command, stays set even after "u-" and will only be reset the next time a new undo mode is started with "u+/u+s". $undocommandfile --> the command file that can be used to undo the commands that were run between "u+/u+s" and "u-". Set immediately after executing the "u-" command. $undodelcommandfile --> the file containing the delete commands. Only applicable to simulated undo mode "u+s".
RNC10> l+
Logging to file: /home/eanzmagn/moshell_logfiles/logs_moshell/sessionlog/060710-075833_RNC10.log
RNC10> al
Trying file=/home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20060710-075643_9102/ior9102Resolving the alarm service in OMS...Simple Alarm Client initialized...Starting to retrieve active alarmsNr of active alarms are: 11================================================================================================Sever Specific Problem Cause Mo-Reference================================================================================================Maj Loss of Signal loss_of_signal Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=1
Finn Magnusson 2008-06-25 rev PA43 304/330
`Maj Loss of Signal loss_of_signal Subrack=MS,Slot=7,PlugInUnit=1,ExchangeTerminal=1,Os155SpiTtp=2Maj PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=1,PacketDataRouter=Pdr5Gtpu1Maj PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=1,PacketDataRouter=Pdr5Gtpu2Maj PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=8,PacketDataRouter=Pdr3Gtpu1Maj PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=8,PacketDataRouter=Pdr3Gtpu2Maj PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=8,PacketDataRouter=Pdr4Gtpu1Maj PacketDataRouter_CnNotRespondingToICMPEcho communication_protocol_error RncModule=8,PacketDataRouter=Pdr4Gtpu2Maj TU Synch Reference Loss of Signal loss_of_signal Subrack=MS,Slot=4,PlugInUnit=1,TimingUnit=1,TuSyncRef=1Maj TU Synch Reference Loss of Signal loss_of_signal Subrack=MS,Slot=5,PlugInUnit=1,TimingUnit=1,TuSyncRef=1Min Loss of Synch Reference Redundancy replaceable_unit_problem Synchronization=1>>> Total: 11 Alarms (0 Critical, 10 Major)
The following variable is set after having logged on to the node via telnet/ssh or ftp/sftp. $passwordThe contents of the variable can not be printed, it will only show if it's empty or not. By unsetting this variable or setting it to empty, this will force moshell to check the password again. Useful in case the password has changed on the node during the moshell session.
RNC10> pv pass
Finn Magnusson 2008-06-25 rev PA43 305/330
`RNC10> vii
Trying password from ipdatabase file: /home/eanzmagn/moshell_sitefiles/ipdatabase...$ vii----- VII SERVER INFO ----- registered clients: client FAULT LOAD_START NO_POWER BOOTTEST MISSING_RESOURCE BOARD_LOCKED BOARD_BUSY SHUTDOWN ---------- ----- ---------- -------- -------- ---------------- ------------ ---------- --------
LED State GREEN CLS_LEDI_ON RED CLS_LEDI_OFF YELLOW CLS_LEDI_OFF $
RNC10> pv pass
$password = *******
RNC10> unset $password
RNC10> vii
Trying password from ipdatabase file: /home/eanzmagn/moshell_sitefiles/ipdatabase...$ vii----- VII SERVER INFO ----- registered clients: client FAULT LOAD_START NO_POWER BOOTTEST MISSING_RESOURCE BOARD_LOCKED BOARD_BUSY SHUTDOWN ---------- ----- ---------- -------- -------- ---------------- ------------ ---------- --------
LED State GREEN CLS_LEDI_ON RED CLS_LEDI_OFF YELLOW CLS_LEDI_OFF $
RNC10> $password =
$password =
RNC10> vii
Trying password from ipdatabase file: /home/eanzmagn/moshell_sitefiles/ipdatabase...
Finn Magnusson 2008-06-25 rev PA43 306/330
`$ vii----- VII SERVER INFO ----- registered clients: client FAULT LOAD_START NO_POWER BOOTTEST MISSING_RESOURCE BOARD_LOCKED BOARD_BUSY SHUTDOWN ---------- ----- ---------- -------- -------- ---------------- ------------ ---------- --------
LED State GREEN CLS_LEDI_ON RED CLS_LEDI_OFF YELLOW CLS_LEDI_OFF $
The following variable is set after running the "pv" command. $nr_of_varsThis variable indicates the number of scripting variables that were printed in the last "pv" printout. By using "pv" together with a filtering pattern (eg: pv $table), it is possible to find out the number of variables that had matched the pattern, for instance the number of elements in a hashtable.
To assign your own variables or hashtables, use the “=” sign, surrounded by spacesTo print variable values, use the command “pv”, or “print”, or “l echo”
//FIND OUT HOW MANY ELEMENTS IN THE HASHTABLE: RUN THE PV COMMANDS, THEN PRINT THE VARIABLE $nr_of_vars
RNC10> pv table
$table[2] = the RBS$table[1] = the RNC
RNC10> print $nr_of_vars
2
RNC10> print $table[$i]
the RBS
RNC10> l echo “$table[$i]”
the RBS
RNC10> pv $i
Finn Magnusson 2008-06-25 rev PA43 308/330
`
$i = 2$ipaddress = 137.58.194.88
RNC10> pv $i$
$i = 2
It is good practice to unset variables after they are not needed in order to keep the number of variables to a minimum.This is because the variable lookup in moshell will take more time if there are too many variables defined (around 1000 variables the performance starts to decrease)
RNC10> unset $i
RNC10> pv $i$
RNC10> unset $table
RNC10> pv table
If there are many variables, it is easier to use the command “unset all”, which unsets all variables except the preset variables.
$gawk = LANG=C LC_ALL=C /home/eanzmagn/moshell/gawk$logdir = /home/eanzmagn/moshell_logfiles/logs_moshell$tempdir = /home/eanzmagn/moshell_logfiles/logs_moshell/tempfiles/20060710-080430_9319$password = *******$gawk_pid = 9344$nodename = RNC10$ipaddress = 137.58.194.88$moshelldir = /home/eanzmagn/moshell$moshell_version = 6.1zu It is also possible to define “resilient” variables which survive the “unset small” command (but not the “unset all”)
0) from the ~/.moshellrc filecat .moshellrc$myvar=0
1) at moshell startup, using the "-v" optionIn this case, the "$" sign should be omitted (otherwise it gets interpreted by the unix shell)Example:
Finn Magnusson 2008-06-25 rev PA43 311/330
`>> moshell -v upmo=CXP9011008_R1A03,ftpserv=10.1.0.16,secure_shell=1,secure_ftp=1 rnc34In this case, we can see that scripting variables ($upmo and $ftpserv) and user variables (secure_shell and secure_ftp) have been mixed in the same statement. This is ok because any variable that is not recognised as a user variable will be treated as a scripting variable.
##################################################################### Welcome to MoShell 6.1zu ## Finn Magnusson, Jan Pettersson ## http://utran01.epa.ericsson.se/moshell ## Contact: [email protected] ## [email protected] #####################################################################
Checking ip contact...OK
HELP MENU : hMO COMMANDS : mOTHER COMMANDS : nPM COMMANDS : pQUIT : q
RNC10> pv upmo|password
$upmo = CXP9012014_R4J04$password = ******
RNC10> uv secure_ftp
secure_ftp = 1
2) from the following commands: get, fro, ip2d/d2ip, h2d/d2h, b2h, h2b, uv.The mo-filter and attribute-filter must be specified, then comes the redirection sign (">"), then the variable name.If several attributes are printed, only the last attribute value gets assigned into the variable.
`ManagedElement=1 userLabel RNC10=================================================================================================================Total: 1 MOs
$node = RNC10
RNC10> get configuration currentupgrade > $currentup
=================================================================================================================MO Attribute Value=================================================================================================================ConfigurationVersion=1 currentUpgradePackage UpgradePackage=CXP9012014_R9AA05=================================================================================================================Total: 1 MOs
$currentup = UpgradePackage=CXP9012014_R9AA05
RNC10> get $currentup administrativedata > $currentupproduct
3) using an arithmetic operationThe following numeric operations are supported: + addition - substraction * muliplication / division % modulo (returns the remainder of an integer division operation)
Note: Only one operation per line is allowed. A space must exist between each element of the operation. There cannot be more than two members in the operation (ie: $i = $j + $k ==> OK. But $i = $j + $k + $l ===> NOTOK)
4) using string manipulationThe following string operations are supported: concatenation and substitution/replacement.The concatenation is performed by juxtaposing the strings. Syntax for concatenation: $var = string1string2string3 (the strings are concatenated without space in between) or $var = string1 string2 string3 (the strings are concatenated with spaces in between)The substitution/replacement is performed using the "-s" switch to specify the string to substitute and the "-r" switch to specify the string it should be replaced with. If the "-r" switch is not used, then the string will be replaced by nothing. If the "-g" switch is specified, then all instances of the string to substituted, otherwise, only the first instance.Syntax for substitution/replacement: $var = originalString -s stringToSubstitute [-r stringToReplaceItWith [-g ] ]Regular expressions can be used in the string manipulations.
RNC10> $var = my book is green
$var = my book is green
RNC10> $var1 = $var and red
Finn Magnusson 2008-06-25 rev PA43 315/330
`$var1 = my book is green and red
RNC10> $var2 = $var1ish
$var2 = my book is green and redish
RNC10> $var3 = $var2 -s green -r blue
$var3 = my book is blue and redish
RNC10> $var3 = $var2 -s red -r blue
$var3 = my book is green and blueish
RNC10> $var4 = $var3 -s $var
$var4 = and blueish
RNC10> $var5 = $var4 -s a.*e
$var5 = ish
RNC10> $var6 = $var$var5
$var6 = my book is green ish
RNC10> $var6 = $var6 -s .ish -r ish
$var6 = my book is greenish
RNC10> $var7 = $var6 -s \x020
$var7 = mybook is greenish
RNC10> $var7 = $var6 -s \x020 -g
$var7 = mybookisgreenish
5) using output from a unix command:The unix command must be surrounded by back-quotes (`). Variables can be used within the unix command.
RNC10> $date = `date +%y%m%d-%H%M`
Finn Magnusson 2008-06-25 rev PA43 316/330
`
$date = 060710-0841
RNC10> $nr_of_errors = `$moshelldir/moshell -v password=$password $ipaddress 'lh all te log read' | grep -c ERROR`
6) using output from a predefined functionCurrently, the following functions exist: * fdn(proxy) ---> input is the proxy id, output is the FDN * ldn(proxy) ---> input is the proxy id, output is the LDN * rdn(proxy) ---> input is the proxy id, output is the RDN * motype(proxy) ---> input is the proxy id, output is the MO type * proxy(string) ---> input is the LDN or FDN (NOT RDN!), output is the proxy id * readinput(sring) ---> input is a prompt that should appear on the screen, so that the user can input an answer which will then be assigned to the variable. * readfile(file) ---> input is a filename. Each line of the file is assigned into an element of the hashtable into which we have assigned the result of the function. If the file is not found, the variable $nr_of_lines is set to 0, otherwise it is set to the number of lines in the file. Note, this should not be used on large files as it will slow down things very much. * testfile(file) ---> input is a filename. If the file is not found, the variable $nr_of_lines is set to 0, otherwise it is set to 1. * split(string) --> The string is split into the array specified on the left side of the equal sign (see example below). The separator used to split the string can be specified in the variable "$split_separator". By default it is a space. If the $split_separator has been changed and needs to be reset to the default value, just run the command "unset $split_separator". The number of elements in the array is stored in the variable $split_last
`RNC37> $reply = readinput(please type something: )please type something: hoho
RNC37> pv reply
$reply = hoho
RNC37> l cat testfile
this is the first linethis is the second linethis is the third linethis is the last line of this file
RNC37> $lines = readfile(./testfile)
RNC37> pv lines
$lines[2] = this is the second line$lines[1] = this is the first line$lines[4] = this is the last line of this file$lines[3] = this is the third line$nr_of_lines = 4
RNC37> for $i = 1 to $nr_of_linesEnter commands (one per line), then type "done"> pv $lines[$i]> done
---------------------------------------------------------------------------------------------061003-14:14:57 Index 1 of 4: 1---------------------------------------------------------------------------------------------
RNC37> pv $lines[$i]
$lines[1] = this is the first line
RNC37>
---------------------------------------------------------------------------------------------061003-14:14:57 Index 2 of 4: 2---------------------------------------------------------------------------------------------
Finn Magnusson 2008-06-25 rev PA43 319/330
`RNC37> pv $lines[$i]
$lines[2] = this is the second line
RNC37>
---------------------------------------------------------------------------------------------061003-14:14:57 Index 3 of 4: 3---------------------------------------------------------------------------------------------
RNC37> pv $lines[$i]
$lines[3] = this is the third line
RNC37>
---------------------------------------------------------------------------------------------061003-14:14:57 Index 4 of 4: 4---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------061003-14:19:10 Index 2 of 5: 2---------------------------------------------------------------------------------------------
RNC37> pv $words[$i]
$words[2] = is
RNC37>
---------------------------------------------------------------------------------------------061003-14:19:10 Index 3 of 5: 3---------------------------------------------------------------------------------------------
RNC37> pv $words[$i]
$words[3] = the
RNC37>
---------------------------------------------------------------------------------------------061003-14:19:10 Index 4 of 5: 4---------------------------------------------------------------------------------------------
RNC37> pv $words[$i]
$words[4] = third
RNC37>
---------------------------------------------------------------------------------------------061003-14:19:10 Index 5 of 5: 5---------------------------------------------------------------------------------------------
RNC37> pv $words[$i]
Finn Magnusson 2008-06-25 rev PA43 321/330
`
$words[5] = line
To specify another field separator, set the variable $split_separator.
6.4 If/Else constructs
- The if statement must be followed by a condition. The comparison operator of the condition must be surrounded by spaces. - Zero or more "else if" statements can be used after the "if" statement. - Zero or one "else" statements can be after the "if" or "else if" statements. - The end of the if/else structure must be specified with a "fi" statement. - Each statement must be on its own line and can be followed by one or more commands. - Several conditions can be combined, using the logical AND (&&), or the logical OR (||). - Any number of AND/OR can be put on a line but NOT BOTH on the same line. - Grouping conditions with brackets is NOT supported. - The "return" command can be used to exit from the command file in case a certain condition is met (type "h return" for more information on how to use this command).
Syntax examples: a) if <condition> command1 command2 fi b) if <condition1> || <condition2> command1 command2 else command3 fi c) if <condition> && <condition2> && <condition3> command1 else if <condition4> command2 else return fi
A condition can use the following comparison operators: = equals ~ matches != is not equal to
Finn Magnusson 2008-06-25 rev PA43 322/330
` !~ does not match > greater than < less than >= greater or equal than <= less or equal thanThe words around the operator can be either a variable or a single word but NOT a string containing spaces or a concatenation of a variable and string.Following conditions are syntaxically correct: if $var1 = $var2 if mystring ~ $var if $i < 2Following conditions are NOT syntaxically correct and will return unexpected results: if mystring_$var1 ~ $var2 if mystring is this ~ your string A condition can also just contain one variable, in which case it will check if the variables exists.
Examples:>> if $var ---> check if the variable $var exists>> get 0 productname > $nodeType>> if $nodeType ~ 3202 || $nodeType ~ 3104 set feeder attenuation 4 else if $nodeType ~ 3101 set feeder attenuation 16 else return fi
6.5 For constructs
The parameter to the "For" construct can be: a) "ever" : to repeat the loop an infinite number of times
$var = 0 for ever $var = $var + 1
if $var = 10break
fi done
Finn Magnusson 2008-06-25 rev PA43 323/330
` b) <numberOfIterations> : to repeat the loop a specific number of times
for 10 command1 command2 wait 5 done
c) $var in <moGroup> : to run the body of the loop on each MO of the specified moGroup. At each loop iteration, the $var variable will take the value of the proxy id of one of the MOs of the moGroup.
for $mo in mymogroup get $mo attribute > $var $var = $var + 1 set $mo attribute $var $rdn = rdn($mo) set $mo userlabel $rdn done
d) $var in <boardGoup> : to run the body of the loop on each board of the specified board group. At each loop iteration, the $var variable will take the value of the linkhandler of one of the boards of the boardGroup.
for $board in myboardgroup bl $board facc $board restart 0 1 wait 10 deb $board lhsh $board vii done
f) $var in $table : for each iteration of the loop, $var will take one of the index values of the hashtable $table
for $proxy in $proxytable bl $proxy st $proxy deb $proxy st $proxy get $proxy operational > $opstate if $opstate != 1 break fi done
Finn Magnusson 2008-06-25 rev PA43 324/330
`
g) $var = $start to $stop : $var is assigned every integer value between $start and $stop. $start and $stop can be variables or constants but must be an integer. If $start is smaller than $stop than the order will be ascending, otherwise it will be descending.
for $var = $maxproxy to $minproxy del $var done
for $var = 1 to 6 te e trace$var process done
Notes:- The end of the "for" structure must be specified with a "done" statement.
- The "wait" command can be used in the body of the loop to specify a delay to wait in between each iteration.The delay can be in seconds, minutes, hours, or even ROP periods. (Type "h wait" for info.)Do not use the "sleep" command as this will result in hanging if the loop is aborted.
- The loop can be aborted any time by typing ctrl-z , then "touch <stopfile>", then "fg".The <stopfile> path is shown in the window title bar. Type "h ctrl-z" for more info about aborting.
- The break command can be used within the loop to exit from the loop.
- The return command can be used to exit from the script but without exiting from moshell. Return shall always be used within an “if” construct.
6.6 User-defined functions
It is possible to nest one or more if/else statement within a for statement and vice-versa.But it is not possible to nest an if/else statement within an if/else statement and a for statement within another for statement.
The following is ok:for xxx command1 if yyy command2 else
Finn Magnusson 2008-06-25 rev PA43 325/330
` command3 fidone
But not this:for xxx command1 if yyy command2 for zzz command4 if aaa break fi done else command3 fidone
INSTEAD:func myfunction for zzz command4 if aaa break fi doneendfunc
for xxx command1 if yyy command2 myfunction else command3 fidone
The workaround is to put the for/if constructs into functions. Users can define their own functions, using the func/endfunc construct.
Finn Magnusson 2008-06-25 rev PA43 326/330
`If the function is called with arguments, these are assigned to the variables $1, $2, $3, etc
Example: 1. Define the function (the function definitions can be run in a different command file)Here we are defining a function which checks the state of the mirrored disks and returns once the disks are in sync
func check_disk_state#if $1 is undefined or different to an integer value then we set it to 10 secondsif $1 ~ ^[0-9]+$
2. Call the functionHere we have made a small script which makes use of our user-defined function.First we are running a file containing all the definitions for our user-defined functions.(Note that the functions can also be defined within the same script, but by keeping all functions in a separate file means that several command files can use the same functions)We have called the function with an argument "5" which in this case will be used as the "$wait_interval" parameter in the function
run ~/myfunctions_define.mosfor ever
check_disk_state 5acc 0 restartpol
done
6.7 Examples
Example scripts can be found under moshell/commonjars/scripts and moshell/examples/scripting/Note two types of comments can be used in scripts:
Finn Magnusson 2008-06-25 rev PA43 327/330
` - visible comments: start with the "#" sign. These comments are printed on the screen while the script is executing. - invisible comments: start with the "//" sign. These comments are not printed on the screen.
Examples:
a) increase the primaryCpichPower by 0.1 dBm on each UtranCell>> lt ^utrancell>> ma cell ^utrancell>> for $mo in cell get $mo primarycpichpower > $pich $pich = $pich + 1 set $mo primarycpichpower $pich done
b) make an MO group with all UtranCells supporting HSDPA:
(rncfunction=1,utrancell=30112,hsdsch=1 )
ma hs ^hsdsch=for $mo in hs $ldn = ldn($mo) $cell = $ldn -s ,Hsdsch=.*$ lma hscell $cell$done
c) checking the progress of a UP installation, every 10 seconds.Break from the loop if the result is "1 (INSTALL_COMPLETED)", and continue with upgrade action.Abort the command file if the result is "6 (INSTALL_NOT_COMPLETED)">> lt upgrade>> acc upgradepackage=xxx nonblockinginstall>> for ever
$return = 0 wait 10 get upgradepackage=xxx state > $upstate if $upstate ~ ^1 break else if $upstate ~ ^6 $return = 1 break fi
done if $return = 1 return
Finn Magnusson 2008-06-25 rev PA43 328/330
` fi acc upgradepackage=xxx upgrade
d) run a testcase 50 times>> func testcase31 command1 command2 etc. endfunc>> for 50 testcase31
wait 2m done
e) restart all boards in a board group>> ba spb spb>> for $board in spb acc $board restart 0 1 wait 30 done
f) restart some boards in a specific order>> for $var = 20 to 14 $board = 00$var00 facc $board restart 0 1 wait 30 done
g) save the fro values of all programs into a table and then restart every program>> lma programs_on_slot_19 subrack=ms,slot=19,.*program>> $i = 0>> for $prog in programs_on_slot_19 $i = $i + 1 fro $prog ^res > $frolist[$i] done>> for $i in $frolist restartObj pgm $frolist[$i] done
Finn Magnusson 2008-06-25 rev PA43 329/330
`
Other examples: See the folders moshell/commonjars/scripts and moshell/examples/scripting/