Moshell 64bit Installation UserGuide
Moshell 64bit Installation UserGuide
Moshell 64bit Installation UserGuide
Moshell supports the following operations from the performance management service:
• List Scanners and Event Filters
• Create Scanner
• Stop Scanner
• Resume Scanner
• Delete Scanner
• Set Event Filter
Moshell can download/upload files and directories to/from the node, using http, ftp or sftp.
Copy the moshell installation package moshellxxx.zip to your home directory /home/youruser or to the temp directory /tmp.
Very important: do not store the zip file inside the moshell folder otherwise the installation will be corrupted.
Then go to the folder containing the zipfile (cd <folder>) and run the following commands:
unzip -o moshellxxx.zip
bash moshell_install
When prompted to enter the directory where you want to install moshell, it is recommended to specify your HOME directory ( ~).
If you have executed moshell_install from your home directory then you can press the enter key and the current directory is
selected.
If a previous moshell installation already exists, it is recommended to install in the same directory as the old one. This way, all
your custom files (jar/xml files, site files, etc.) get copied across to the new revision and the old revision gets moved to a different
location so you can still access it if needed.
When prompted to enter the path to java, make sure to use Oracle Java. Other Java distributions such as OpenSDK are not
supported by moshell.
Note: In the case of AMOS installation use option -a, ie: bash moshell_install -a (must be run as root on OSS
masterserver).
Informational
USER GUIDE 12(189)
Prepared (also subject responsible, if other) No.
EAB Finn Magnusson 1553-CXC1328930
Document responsible/Approved Checked Date Rev. File
EAB Finn Magnusson 2022-09-04 EM moshellUserGuide.tex
Note: for linux 64-bit, the 32-bit libc library is required, the package name is libc6-i386 or glibc.i686 or ia32-libs.
(Other packages which may be needed for certain commands are python and expect.)
Running moshell for the first time:
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 <ipaddress>
If this is the first time moshell is installed in this location, then it will download a number of jar files from the node. No progress
indicator will be shown so just be patient as it will take a few minutes. Progress can be seen by doing "ls -l" in the moshell/jarxml
directory. For more information about user settings etc, check the user guide.
If the Moshell execution fails on linux with the following error:
If Moshell is unable to connect to the node on port 22, try executing the program moshell/commonjars/ssh manually. If it fails with
the following error:
moshell/commonjars/ssh: error while loading shared libraries: cannot restore segment prot after reloc:
When running on Windows, Moshell uses a unix emulator known as Cygwin. From Windows 10 it is also possible to run Ubuntu
or Debian directly on Windows, using the Windows Subsystem for Linux (WSL).
Go directly to step 10, MoShell Installation, if you have already installed and configured Cygwin previously.
• Copy the moshell installation package moshellxxx.zip to your home directory c:/cygwin64/home/youruserid
• Open the cygwin shell and run:
unzip -o moshellxxx.zip
bash moshell_install
When prompted to enter the directory where you want to install moshell, it is recommended to specify your HOME directory
( ~).
If you have executed moshell_install from your home directory then you can press the enter key and the current
directory is selected.
If a previous moshell installation already exists, it is recommended to install in the same directory as the old one. This way,
all your custom files (jar/xml files, site files, etc.) get copied across to the new revision and the old revision gets moved to a
different location so you can still access it if needed.
When prompted to enter the path to Java, just type java .
11. Running moshell for the first time
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>
•
sudo apt-get install openssh-server openssl python2.7 libxml-simple-perl libio-pty-perl default
• sudo dpkg-reconfigure tzdata (then select your timezone, eg "Europe" and "Stockholm")
6. Download moshellxx.zip from http://newtran01.au.ao.ericsson.se/moshell/ and store somewhere such as your downloads
folder C:/users/xxxx/downloads
Then copy the moshellxx.zip installation package to your WSL file system by doing the following command in the linux shell:
cp /mnt/c/users/xxxx/downloads/moshellxx.zip ~/
Then run the moshell installation from the linux shell, eg:
unzip -o moshellxx.zip
bash moshell_install
0
~/
7. Update the linux PATH environment variable to be able to run moshell from anywhere:
echo export PATH="${PATH}:$HOME/moshell" >> ~/.bashrc
INFO: Unlike CYGWIN, WSL does not support handling files of the WSL file system from the Windows file explorer.
However it is possible to access files of the Windows file system from the WSL shell by putting "/mnt" in front of the path.
For instance , in order to copy a dcgm.zip from c:/users/myusername/downloads to the WSL home folder, do the following
command from a WSL shell:
mv /mnt/c/users/myusername/downloads/xxxx_dcgm.zip ~/
Procedure to upgrade from WSL1 to WSL2 (for better performance)
1. Check if BIOS virtualization is enabled. Start "Task Manager" and go to "Performance" and CPU and on the left hand side
check "Virtualization" that it is in state "Enabled".
2. Enable Virtual Machine feature. Open PowerShell as administrator and execute the following command:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
3. Set WSL 2 as default version. Open PowerShell as administrator and execute the following command:
wsl --set-default-version 2
4. Restart machine.
5. Check WSL version assigned to Linux distributions right now: wsl -l -v
6. Set WSL2 version to linux dist. Will take a few minutes. If it only takes 1-3s, please restart PC again to make sure WSL has
taken effect. wsl --set-version Ubuntu-20.04 2 wsl -l -v
7. Other useful commands wsl --update wsl --shutdown
• logfiles/ To store the logfiles generated by the various utililites (moshell, mobatch, swstat, etc.)
• examples/ Example of input files required by the utilities (command files, site files, etc.)
• cmdfiles/ Place to store your command files (to be used by mobatch, monode, telbatch, telnode, etc)
• sitefiles/ Place to store your sitefiles (to be used by mobatch, telbatch, swstat, swup, etc.)
• jarxml/ Place to store jar files (oms.jar and vbjorb.jar) and xml-MOM files (used by Moshell). Specific to certain nodes.
• commonjars/ Place to store jar files common to all nodes
• moshell The file used to startup moshell. Contains some customizable variable settings.
• mobatch Run moshell commands on several nodes in parallel
• gawk Script interpreter used by the various utilities
• prog.awk, funcs.awk Main code for moshell, cannot be run on its own.
• moshellUserGuide.pdf Help file
• rncaudit Audit and consistency check of rnc data towards cell data CDR, utranrelations CDR, baseline, uerc, etc.
• swstat To view SW revisions, CV’s and delete old upgrade packages
• rbsaudit Audit and consistency check of rbs data towards rbs data and baseline. Generation of mobatch corrective scripts.