Some Useful Commands of Moshell
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.
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.
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.
Note: if polu was not run after performing rebootnodeupgrade, the upgrade will have to be
manually confirmed: Information.
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