0% found this document useful (0 votes)
898 views4 pages

Some Useful Commands of Moshell

This document provides instructions and examples for using useful commands in Moshell to manage network elements. Some key commands include loading MOs with "lt", printing MO information with "pr", getting and setting attribute values with "get" and "set", blocking and restarting boards with "bl", "deb", and "acc", managing software upgrades with "acc upgradepackage", and working with alarms using "al" commands. The document also covers opening and closing log files, monitoring upgrade progress with "polu", and provides an example software upgrade sequence.

Uploaded by

Mangata Acaronar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
898 views4 pages

Some Useful Commands of Moshell

This document provides instructions and examples for using useful commands in Moshell to manage network elements. Some key commands include loading MOs with "lt", printing MO information with "pr", getting and setting attribute values with "get" and "set", blocking and restarting boards with "bl", "deb", and "acc", managing software upgrades with "acc upgradepackage", and working with alarms using "al" commands. The document also covers opening and closing log files, monitoring upgrade progress with "polu", and provides an example software upgrade sequence.

Uploaded by

Mangata Acaronar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Some Useful Commands of Moshell 

:
- First Connection ( Moshell IP)
- all build a proxy table with all MOs contained in the node ( lt all )
- lt iub - load all iublinks
- lt utrancell operationalState==0 - load proxys for all disabled cells
- lt utrancell primaryCpichPower==270 - load proxys for all cells that have
- lt all operationalState==0 OR administrativeState==0 - load proxys for
all MOs in the node that have opstate 0 or admstate 0.

- pr - print all Mos


- pr 0-1000 - prints the MOs with proxy id 0 to 1000.
- get 10-30 Get all attributes from MOs whose proxies range from 10 to 30.
- get cable atten get attenuation values for all cables (in RBS).
- get cell iub view which cells are connected to which iub’s (in RNC).
- st - view state of all MOs.
- st all dis - view all disabled Mos.
- lst equip dis - view all disabled MOs under "Equipment".
- st all 1.*0 view all MOs which are unlocked and disabled.
- st all ^0 - view all MOs which are locked:
- lst sector - view state of all MOs under "Sector" (in RBS).
- lst cell - view state of all channels in all 3 cells in the RBS.
- lst cell=120 - view state of all channels in cells starting with 120 (in RNC).
- set cell primarycpichpower 250 - set primarycpichpower to 250 on all cells (in
RNC).
- bl aal2.*ca[246] - block aal2paths ca2, ca4, ca6.
- lbl subrack=ms,slot=19 - block all MO(s) under subrack=ms,slot=19.
- bl 234 256 248 - block proxys 234, 256, and 248.
- bl 001500 - block a board. Same as lbl subrack=ms,slot=15,pluginunit=1$.
- bls 001500 - soft-block a board.
- ldeb subrack=ms,slot=19 - deblock all MO(s) under subrack=ms,slot=19.
- deb 001900 - deblock a board. Same as ldeb subrack=ms,slot=19,pluginunit=1$).
- Restart a board:
acc 001400 restart - Same as------ lacc subrack=ms,slot=14,pluginunit=1$ restart

- acc 0 manualrestart Restart the node.


- acc ip listroutes List the IP routing table.
- lacc atmport=ms-24-1 eteloopback Perform End-To-End loopback on VclTp MOs.
- acc nodes performPhaseMeasurement Perform PhaseMeasurement on NodeSynchTp MOs.
- acc sync addSyncRefResource Add a new synchronization reference.
- del commands to remove created MOs.
- cr commands to put back deleted MOs.
- bl/deb commands to change MOs back to their original administrative state.
- set commands to change MOs back to their original attribute values.
- acc commands to revert certain MO actions. This only works on actions that have an
- opposite, see note below.
- UpgradePackage :
- acc upgradepackage=CXP9012014_R10CD nonblockinginstall.
- Polu.
- acc upgradepackage=CXP9012014_R10CD verifyupgrade.
- Polu.
- acc upgradepackage=CXP9012014_R10CD rebootnodeupgrade.
- cvls [<cv-filter>] display both the current cv
information (equivalent of cv cu) and cv list (equivalent of cv ls). It is possible to filter
the output of cvls to only show CVs where the CV name or CV attributes match
- cvcu display the current cv information only (equivalent of "cv cu").
- cvmk <cvname> [<operator>] [<comment>] create a local cv backup.
Operator name and comments (not longer than 40 characters) can be given as argument.
- cvset <cvname> set a cv as startable.
- cvms <cvname> [<operator>] [<comment>] create a cv and make it startable.
- cvget <cvname> make a remote backup of a cv
to the workstation. The second argument is optional. If not given, a default folder is
chosen for the backup.
- cvrm <cvname> remove one or more cv’s.
- Examples:
- cvls: List all CVs.
- cvls CXP9011274_R9A: List all CVs using Upgradepackage CXP9011274_R9A.
- cvms RNC11_Final: Create a cv and make it startable(no userid or comments given).
- cvms RNC11_Final eanzmagn cell power increased to 33dBm: Create a cv
- and make it startable (userid and comments given).
- cvrm Temp: Remove all cv’s whose name match the string "Temp".
- cvrm !Final: Remove all cv’s whose name don’t match the string "Final".
- cvrm !Final|RNC: Remove all cv’s whose name don’t match the string "final" or the
string "RNC".
- cvget RNC11_Final: Make a remote backup of a CV to the workstation where
moshell is runing.
- diff . - Compare all MOs with the relevant baseline parameter file stored in
moshell/commonjars/pm.

Print the list of active alarms. Acknowledge/Unacknowledge an alarm.


- al : active alarm list is printed in overview format, only four fields are shown per alarm.
- ala : same as al, but the full detailed list is added underneath the overview table.
- alt : same as al, but the time field is added to the table and the alarms are sorted
chronologically.
- alk : same as al, but the list is separated in two parts, one for the unacknowledged
alarms, and one for the acknowledged alarms.
- alc : same as al, but each alarm is displayed in CSV format and all fields are shown for each
alarm.

The options -a/-u can be used for acknowledging/unacknowledging an alarm. The alarm
is identified by its alarm id which can be printed with ala or alc.
Examples
- altk : sort active alarm list by timestamp and show alarms in two separate tables
depending on acknowledgment state.
- altkc : same as above but alarms are displayed in CSV format and more fields are
shown.
- al | grep -i atmport : only print the alarms that match "atmport" (case
insensitive).
- al -a 18 : acknowlege alarm number 18 (the alarm id is shown in "alc" or "ala").
Note: in alt and alk, the severity field is shortened to one character:
• C for Critical
• M for Major
• m for minor
• w for warning.

Open/close moshell logfiles


l+ is to open a logfile. If no logfile is given, then a default unique logfile is chosen.
l- is for closing the logfile.

Note that it is safer to do lhsh <lnh> <command> instead of lhsh <lnh> ; command in
case the board is not reachable. Example: 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. But for certain commands
like "te filter set", "te log freeze", or "MsbHostMo_StartPing", the semicolon has to be entered
after the "lhsh" in order to force moshell to actually log into the board.

5.1 Software Upgrade


Create the UpgradePackage MO:
cr swmanagement=1,upgradepackage=<name>
At the prompt, enter FTP Server Address where the UP is stored and the path to the UCF
(Upgrade Control File) At the next prompts, enter FTP Server UserID and Password, or just d
for default value (will be anonymous)

Perform the SW installation:


acc upgradepackage=<name>$ nonblockinginstall

Monitor installation progress:


polu

Perform the SW upgrade:


acc upgradepackage=<name>$ rebootnodeupgrade

Monitor upgrade progress (confirmUpgrade will be done automatically):


polu

Check that the new cv is using the new upgrade package


cvls

Note: if polu was not run after performing rebootnodeupgrade, the upgrade will have to be
manually confirmed: Information.

get upgradepackage=<name>$ state —> wait until state "awaitingconfirmation"

acc upgradepackage=<name>$ confirmupgrade

Note: in case the upgrade was started via the OSSRC SMO application, the polu command
should not be used to monitor the progress since it will automatically confirm the upgrade
which will confuse SMO.

Example of Upgrade :
$UP = upgradepackage=CXP9011123_R12F
acc $UP nonblockinginstall
for ever
wait 10
get $UP state > $state
if $state ~ ^1
break
fi
done
get $UP state > $state
if $state ~ ^1
acc $UP upgrade
fi
wait 120
for ever
wait 10
get $UP state > $state
if $state ~ ^3
break
fi
done
if $state ~ ^3
acc $UP confirmupgrade
fi

Ericsson job account


alaj
alaa@libya1

You might also like