Moshell 安装中文.doc_第1页
Moshell 安装中文.doc_第2页
Moshell 安装中文.doc_第3页
Moshell 安装中文.doc_第4页
Moshell 安装中文.doc_第5页
已阅读5页,还剩6页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、首先安装java,MGW R4用j2re-1_4_2_11-windows-i586-p.exe。直接安装j2re-1_4_2_11-windows-i586-p.exe2、本地安装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) - install3、cygwin相关设置安装完成后双击打开C:Cygwincygwin.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=xxxxset HOME=/home/xxxxset SHELL=/bin/bashrxvt -sl 65000 -e /bin/bash -login -i注:每行后面不能带有任何包括空格在内的字符,保持文件为UNIX格式!Open the file C:Cygwinetcprofile in a text editor and add the following 6 lines at theend of the file (replace xxxx with your user id!):export USER=xxxxexport HOME=/home/xxxxexport SHELL=/bin/bashmkdir -p $HOMEcd $HOMEsource $HOME/.bashrc注:每行后面不能带有任何包括空格在内的字符,保持文件为UNIX格式!Start a Cygwin Terminal window by clicking on the icon in start menu or on desktop, thenrun 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 .bashrctouch .inputrctouch .Xdefaults - Go to the directory C:Cygwinhomexxxx (from windows explorer) and open the following 3 files in a text editor:In the .bashrc file, put the following lines :unset PROMPT_COMMANDexport PS1=0331mw$0330m alias ls=ls -hF show-control-chars color=ttyset -o notifyset -o ignoreeofshopt -s cdspellshopt -s cdable_varsshopt -s checkhashshopt -s checkwinsizeshopt -s sourcepathshopt -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 visibleset convert-meta Offset meta-flag onset output-meta Onset input-meta Onset completion-ignore-case onset completion-query-items 150set mark-directories onset visible-stats Onset show-all-if-ambiguous Onset expand-tilde OneD: backward-chareC: forward-chareA: history-search-backwardeB: history-search-forwarde7: beginning-of-linee8: end-of-linee1: beginning-of-linee4: end-of-linee3: delete-chare2: menu-completeM-2: paste-from-clipboard # InsertM-q: menu-completeC-d: delete-charC-l: clear-screenC-xdf: dump-functionsC-xdv: dump-variablesC-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: BlackRxvt*foreground: LightGreyRxvt*saveLines: 65535Rxvt*termName: xtermRxvt*geometry: 144x64+0+0Rxvt*loginShell: trueRxvt*font: Lucida Console-11Rxvt*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.zipbash moshell_install窗口提示“Please choose the type of installation.”选择 0“Please enter the following absolute pathes(auto-completion using):”输入 “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:cygwinhomexxxmoshelljarxml根目录vista系统可能需要将cygwin1.dll、file.dll拷贝到c:windowssystem32目录,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 moshell x.x.x.xlt alll+command.l- - BASIC MO COMMANDS -momtc Print description of MO classes, CM/FM attributes, actions, enums and structs.lt/ltc1-9 Load MO tree (full or partial) and build proxy table.lc1-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).hgetc/lhgetc 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/lfrom 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 MOs 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.setm/lsetm Set an attribute value on one or several MOs.rset/lrset Set attribute value on a restricted attribute or change the MOid of an MO.bls/lbls 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.truni Run a command file in EMAS/MoTester format.ctrl-z Abort an MO command or a for loop. Type touch /tmp/;fg to resume the moshell session.pols Poll the node until the CM service is up.rei 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.invhr Complete HW/SW inventory. Includes information about RPUs, licensing, JVM, devices, XPs, etc.cabslxradgtm Display of miscellaneous COLI printouts relating to hw, sw, restarts, leds, cpu load, errors, disk/ram usagestcpr Display state and configuration of AtmCrossConnections.std Display state and configuration of devices (RNC and MGW only).stvbr Display state, user, and bandwidth usage for ATM ports and channels.sttr 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.str12ft Print status of the IubLinks/AbisLinks and their associated Cells and Channels (RNC/BSC only).lki Resource usage and configuration of IubLinks (RNC only).remodu2 Remodule an IubLink (RNC only).tgrcd Print Resource Object information for all MOs in LmCell (RNC only).uer Print UE context data for all active calls (RNC only).alatk Print the list of active alarms.lgaevsmircdyuolh 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+mmso/l-/l? Open/close moshell logfiles.ose/coli command Send a COLI command to the nodes OSE shell. Type h ose for syntax help and ? to view available commands.bor/baswdp/brwd/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).pgucf Program Upgrade. For STP use only, eg, to load black LMs.ftree Recursive listing on the nodes file system (equivalent to ls -lR in unix).ftgetc/ftputc 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.fcleanf|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.lmidc Print translation of loadmodule product number or T&E error codes.p/w/pw/b Change moshell prompt and/or window x Toggle display of proxy identities in printout of get command.col Toggle display of colors.ul Toggle display of userlabel in st/lst and pget/lpget printout.confbld 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 -pmomac/lmomc Print description of PM counters (pm

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论