Moshell Install

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 5

Moshell for RNC/NODE-B (2009-08-09 19:33:33)???

??: it ??: ??&??


1?????java,RNC3810,RBS3418/3206 ??????JAVA1.5?????(???www.java.com???)?
2?????cygwin
??cygwin_setup.zip,??setup.exe
- Choose "install from Local Directory"
- Root Directory "C:\cygwin" (It is not recommended to choose a different
directory, especially if it contains spaces)
- Select Packages: Add the following packages,????????:
-under Archive select unzip
-under Interpreters select perl
-under Net select inetutils, openssh, and openssl
-under Shells select rxvt
-optional: under Editors select vim (if you want to be able to edit files with
vi)
- install
3?cygwin????
?????????C:\Cygwin\cygwin.bat,?????
- In the directory C:\Cygwin , edit the file cygwin.bat:
Delete the line: bash --login -i. At the end of the file add the following (replace
xxxx with your user id,xxxx?????????,??????????):
set USER=xxxx
set HOME=/home/xxxx
set SHELL=/bin/bash
rxvt -sl 65000 -e /bin/bash --login -i
?:???????????????????,?????UNIX??!
Open the file C:\Cygwin\etc\profile in a text editor and add the following 6 lines
at the
end of the file (replace xxxx with your user id!):
export USER=xxxx
export HOME=/home/xxxx
export SHELL=/bin/bash
mkdir -p $HOME
cd $HOME
source $HOME/.bashrc
?:???????????????????,?????UNIX??!
Start a Cygwin Terminal window by clicking on the icon in start menu or on desktop,
then
run the following commands:
- Type "pwd" at the cygwin prompt and make sure you are in the directory
"/home/xxxx".
CREATE the following 3 files in your "/home/xxxx" directory: .bashrc, .inputrc, and
.Xdefaults.
This can be done with the commands:
touch .bashrc
touch .inputrc
touch .Xdefaults
- Go to the directory C:\Cygwin\home\xxxx (from windows explorer) and open the
following 3 files in a text editor:
In the ".bashrc" file, put the following lines :
unset PROMPT_COMMAND
export PS1="\[\033[1m\][\w]\\$\[\033[0m\] "
alias ls='ls -hF �show-control-chars �color=tty'
set -o notify
set -o ignoreeof
shopt -s cdspell
shopt -s cdable_vars
shopt -s checkhash
shopt -s checkwinsize
shopt -s sourcepath
shopt -s histappend
export PATH=$PATH:/home/xxx/moshell
#(where xxxx is your userid) (appending the moshell directory to your PATH
variable will enable you to call moshell from any directory).
?:???????????????????,?????UNIX??!
In the ".inputrc" file, put the following lines:
set bell-style visible
set convert-meta Off
set meta-flag on
set output-meta On
set input-meta On
set completion-ignore-case on
set completion-query-items 150
set mark-directories on
set visible-stats On
set show-all-if-ambiguous On
set expand-tilde On
"\e[D": backward-char
"\e[C": forward-char
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[7~": beginning-of-line
"\e[8~": end-of-line
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[3~": delete-char
"\e[2~": menu-complete
"\M-[2~": paste-from-clipboard # Insert
"\M-q": menu-complete
"\C-d": delete-char
"\C-l": clear-screen
"\C-xdf": dump-functions
"\C-xdv": dump-variables
"\C-xdm": dump-macros
(Type "man bash" if you want to get more information about what these lines do)
?:???????????????????,?????UNIX??!
In the ".Xdefaults" file, put the following lines:
Rxvt*background: Black
Rxvt*foreground: LightGrey
Rxvt*saveLines: 65535
Rxvt*termName: xterm
Rxvt*geometry: 144x64+0+0
Rxvt*loginShell: true
Rxvt*font: "Lucida Console-11"
Rxvt*cutchars: `"'&()*,;<=>? []{|}
(These are just examples of terminal properties, you can change them to fit your
needs. Type "man rxvt" to view all available properties)
?:???????????????????,?????UNIX??!
Open a new cygwin terminal window. The window should be black with white text and
the prompt should like this: [~]$
4?Moshell installation:
Moshell??:
Put the moshell7.0y.zip file in c:/cygwin/home/xxxx/
Open the cygwin shell and run:
unzip -o moshell7.0y.zip
bash moshell_install
????�Please choose the type of installation.�?? 0
�Please enter the following absolute pathes(auto-completion using<TAB>):�?? ~
�Path to Java = /cygdrive/c/windows/system32/java . OK ? [y/n]�?? y
�Path to perl (used by mobatch)=/usr/bin/perl . OK ?[y/n]�?? y
???????file_copy.rar,?jar.rar????iaik_jce_full_us.jar?oms.jar?vbjorb.jar???
c:\cygwin\home\xxx\moshell\jarxml\???
vista??????]?cygwin1.dll?file.dll???c:\windows\system32\??,moshell7.0y???vista?????
- Running moshell for the first time:
??[~]$ ???????
??:?? moshell ????????

If you have set the PATH variable correctly in your ~/.bashrc file, you should be
able to run moshell from any directory. E.g:
>> moshell <ip-address>
moshell x.x.x.x
lt all
l+
command.....
l-

----------------------------------- BASIC MO COMMANDS


----------------------------------
mom[tc] 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.
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 table modata_r2 instead of via MO service.
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] Poll the node until the CM service is up.
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).
facc/lfacc Perform actions that are not defined in the MOM ("Force"
action).
----------------------------------- OTHER MO COMMANDS
----------------------------------
cvls/cvmk/cvms/cvset/cvrm/cvcu/cvls1 ConfigurationVersion (CV) handling.
inv[hr] Complete HW/SW inventory. Includes information about RPUs,
licensing, JVM, devices, XPs, etc.
cab[slxradgtm] Display of miscellaneous COLI printouts relating to hw, sw,
restarts, leds, cpu load, errors, disk/ram usage
stc[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.
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 Print UE context data for all active calls (RNC only).
al[atk] Print the list of active alarms.
lg[aevsmircdyuolh] Fetching and processing of 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]/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] Program Upgrade. For STP use only, eg, to load black LMs.
ftree Recursive listing on the node's file system (equivalent to
"ls -lR" in unix).
ftget[c]/ftput[c] Transfer files or directories to/from the node, using ftp.
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.
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[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).
----------------------------------- HELP CHAPTERS
----------------------------------
0 Installation, security, and user settings
1 Revision History
2 Tutorial
3 Command syntax, regular expression_rs
4 Command descriptions

You might also like