guilgome@mvsbrcuas2> amosbatch -h
Unknown option: h
Usage: mobatch [options] <sitefile>|<sitelist>|<dumpdir> <command(s)>|<commandfile>|<commanddir> [logdirectory]
Purpose: To send moshell commands to several nodes in parallel.
Arguments:
- The first argument is the sitefile, sitelist, or dumpdir.
The sitefile is a file containing the list of sites to connect to. Each line in the sitefile contains:
* the IP/DNS addresses and/or site names whose IP address are defined in the IP database.
* optionally: the uservariables/scriptingvariables to input with -v option.
See example of sitefile and ipdatabase in: moshell/examples/mobatch_files/
If using the sitelist, the sites are listed on the command line and separated by commas.
Alternatively it possible to specify a whole subnet of nodes with the IP address syntax x.y.z.* (using wildcard on the last
part of the IP address)
The dumpdir is a directory containing:
* MO dumps (format: <kget.log.gz> or <modump.zip>)
* or CVs/dbdat files (format: <cv.zip> or <db.dat>) -> only supported with option "-d"
- The second argument is the commmands or commandfile.
See example of commands below and commandfile in moshell/examples/mobatch_files
If a directory is given, then a different commandfile will be used for each node:
the name of each commandfile should be <node-name>.cmd or <node-name>.mos
the <node-name> should be the same as given in the sitefile.
example: node-name is rbs602 ==> commandfile should be rbs602.cmd or rbs602.mos
- The third argument (logdirectory) is optional. If no logdirectory is specified, a default one will be used.
Options:
-t <minutes> Specify the number of minutes before timing out. Set to 0 for no timeout (default=30 minutes)
-p <processes> Specify the maximum number of moshell sessions that will run in parallel (default=10 parallel
sessions)
-i <seconds> Specify the interval in seconds between spawning of each moshell session (default=0 seconds).
Can be a decimal number. Eg: 0.5 for half a second.
-w <seconds> Specify the interval in seconds between the checks on running sessions (default= 2.5 seconds)
-v <userVariables> Specify moshell uservariables. Type "moshell" on its own for more info about this option.
-o Print output of every moshell session both to screen and to logfile.
-s Silent. No output is printed.
-d Run moshell in sql mode. Only applicable when first argument is a directory ("dumpdir")
-r Recursive folder search. Only applicable when first argument is a directory ("dumpdir").
-g Gzip logfiles after completion
-n Skip the IP connectivity check at moshell startup
-e Skip sourcing of the global moshellrc file (moshell/jarxml/moshellrc)
-f Skip sourcing of the user's moshellrc file (~/.moshellrc)
-a <rcfile> Source an additional moshellrc file
-b Use a common amos request broker for all spawned amos sessions in order to reduce CPU usage. Only
applicable to amosbatch.
Examples:
mobatch -p 15 -t 60 ~/sitefiles/victoria-sites 'lt all ; get'
mobatch 10.1.128.10 ./cmdfiles/kget.mos
mobatch 10.1.128.10,rnc34,rbs10,mgw1.ericsson.se ./cmdfiles/kget.mos
mobatch ./sitefiles/all-rbs.txt ./cmdfiles/do_healthCheck.mos
mobatch -p 5 -t 1 ./sitefiles/all-rbs.txt 'cv cu ; rbs'
mobatch ./sitefiles/all-rnc.txt 'lt ^utrancell ; st cell'
mobatch ./sitefiles/all-bsc.txt ~/bsc-commandfiles/
mobatch -v security_method=2,sa_credential=~/sam.pbe,sa_password=oemas -p 20 ./all_mgw.txt 'hc'
mobatch -v ip_database=~/utran_network/ipdatabase ~/utran_network/ipdatabase 'lt all ; get '
mobatch modumpfolder/ 'str;std;sti;stv;inv'
mobatch -r modumpfolder/ 'str;std;sti;stv;inv'
mobatch -dr dbdatfolder/ dbc
guilgome@mvsbrcuas2>
4A0661> help
170609-17:48:07 10.44.224.73 16.0n ERBS_NODE_MODEL_F_1_108 stopfile=/tmp/2322
$ help
Command Description
default shell command
? print description of commands
EtHostMo_getPmCounters Get PM counters for a specified host
EtHostMo_startPing
GtpShDump Command syntax:
GtpShPrintProc Command syntax:
Ippmlh Umbrella function for internal COLI commands
IppsrhInfo The IppsrhInfo command has several subcommands;
UdpShDump Command syntax:
UdpShPrintProc Command syntax:
aaconfig Sets TTL timeout for DNS lookups or rejection login interval
aatest Diagnostics for AA server(s), -h for more help
acpapi ACP34DR ACP34API status and control
acparp ACP34DR ARP status and control
acpbasicbh ACP34 Basic BH status and control
acpbasiccmn ACP34BASIC CMN status and control
acpbasicproc ACP34 Basic PROC status and control
acpbh ACP34DR BH status and control
acpcmn ACP34DR CMN status and control
acpdscp ACP34DR DSCP
acpflc ACP34DR FLC status and control
acpfpc ACP34DR FPC
acpfsm ACP34DR FSM status and control
acpiac ACP34DR IAC
acpicmp ACP34DR ICMP status and control
acpix ACP34BASIC IX
acplaid ACP34DR LAID
acplh ACP34DR LH status and control
acppath ACP34DR PATH
acppd ACP34DR PD
acpph ACP34DR PH status and control
acppol ACP34DR POL Policies and counters
acpsa ACP34DR SA and counters
acpsh ACP34DR SH status and control
acpsync ACP34DR SYNC status and control
acptm ACP34DR TM status and counters
arm print LLP armament info
arp Display ARP cache entries
arplist Display ARP table entries
atfConnect Connect an AU via ATFI
autodds Set error check level and/or default trace
banner
bh CommandName:
biosls List installed bios modules
bl list blocks
bmlmdata List loaded modules data
bmpgmconfig Management of Board Manager configuration
bmrdump
boardtemp Read and display values from all configured board temp sensors.
bs Execute a number of commands and print result
buffel Display buffel configuration and usage
bvlq Get value from BVL. BVL_AREA default name if no area-name
capi
cat copy files to stdout
cd change the working directory
cease cease ...
cell Coli commands connected to cell
chkdsk Request a checkdisk on given volume
chmod change access mode of files
cls clear screen (using ANSI codes)
cp copy files. If multiple names are given, the last name must be a directory. Option -R means recursive. Option --
bufsize sets the size of the internal heap buffer to be used.
cpridump Dumps CPRI related info
csti CSTI SERVER TOPOLOGY INFORMATION
cv Configuration version command
dda Send DDA command
devinfo Display real and virtual device info
dhcpinfo DHCP client internal state transition history and message counter info
dig DNS lookup utility
disableBPAIrestart Disables the Restart Board Procedure (No dumps,no stopping of DPs and no board restart)
disableCBCIrestart Disables the Restart Board Procedure (Dump, stop and no board restart)
diskcredit Disk credit command
dnsrinfo display DNS resolver information or reset counters
domlist list all regions in one/all domain(s), optionally showing used physical memory fragments.
dpSetMemDumpAreas Set user memory area to be dumped for <snid>
dpcmd Executes a list of commands
dspMemChange Write DSP Memory
dspMemDump Read DSP Memory
dsp_nmi trigger NMI for DSP with given snid number
dspload Load is presented as: mean [min, max], ...
dspmem Memory is presented as: Pool1, Pool2, ...
dump Print a post mortem dump.See dump -h for more options.
dumpcap dumps OAM IP-communication in pcap format on file
dumpelg Prints HW log entries.
echo echo arguments (-n no newline)
ecodes List the entries in the error code log.
errno print description of errno number
errorlist Print all registrered error codes.
etcmd Type etcmd help for detailed help.
ethernet ethernet shell command
ethmode Ethernet speed/duplex control cmd's
exc Exception Handling: same command as exception
exception Exception Handling: same command as exc
exit exit the current shell
fault fault ...
formathd Format the Hard Disk
froInfo A detailded description
froInfo-lmcentral A detailded description
froInfo-lmmonitor A detailded description
froLog-lmcentral A detailded description
froLog-lmmonitor A detailded description
fssls list fss objects
gdbtp Command for handling trace point experiment
getAttrObj Get attributes for an object.
getDiskDataObj Get attributes for disk for an object.
getProcessorLoad Get processor load for a PIU.
getpri This command has been disabled
getstat Internal Event Statistics
gpax Accessing and setup the internal GPA_X switch
gps01reset Reset GPS01 receiver and clear positioning data
gps02reset Command used to clear and/or reset GPS02 receiver
gpscapture Capture NMEA messages to and from GPS receivers
gpsprot Change protocol between Furuno and Ericsson Combined
gpssend Send message to the GPS receiver
gpsstatus Print the status of GPS receiver
gz Compress/decompress file(s)
hanging_ues Coli command to check and count the number of hanging UEs in all active cells
hdinfo Hard disk parameter information
hdstat Hard disk statistics printout
heapinfo Heap information (for proc/seg)
help print description of commands
hicap Used to enable, disable hicap or toget current hicap settings
hili Hardware Inventory Log Handling commands
hooks Print all registered error, dump and reset hooks.
hostname show or set hostname
hwpid Read hardware pid from specified target
iacrh IACRH debug and utilities
idux IDUX_DRV
iexsCt Usage:
iexsrm Displays IEXS resource manager specific info.
ifconfig Print IP address
ifmcstat Dump multicast group management statistics per interface
iked IKE debug commands
ikepeerfh IKEPEERFH SWB debug
ikerh IKERH SWB debug
ikev2 IKEv2 debug commands
ipac_ipadm Status info for the IPAC IP Adm administrator program
ipac_ipsyncref Status info for the IPAC IP Sync Ref administrator program
ipcp_bh Status info for the IPCP board handler administrator program
ipcp_dh Status info for the distribution handler administrator program
ipcp_lh Status info the IPCP link handler administrator program
iphoststatus Status info for the hosts
ipiffh IPIFFH SWB debug
ipsecfh IPSECFH SWB debug
ipsectunnelfh IPSECTUNNELFH SWB debug
iptransmode information about ip transport settings
ixrh IEXS::IXRH Topology
jdumpthreads Dump the stack trace of Java threads
jheapdump Dump the heap statistics of Java classes
jheapinfo Java heap information
keys configure/display terminal key settings
killIfc Kill a named interface
lhsh Execute command on remote processor
license License server command (license <cmd>)
linkstat HDLC state and statistics for MP-ATF.
linxeth Tool for getting information about LINX ethernet connections
linxtrace Enable or Disable LINX dc_disconnect trace
listObj List an object.
list_filterobj Print filter data
list_traceobj Print trace data
listenv list environment variables for <processes> and their corresponding block.
listloaded List Loaded Modules
lkmcfg View/create/delete Linx Ethernet links
llog Read error log
ln make a link from one file to another
load_zone Command to display LoadZone information
log Log server command
logattributes List the attributes for a log
loglevel Set loglevel for OSENET.
loglist Lists all available logs
ls list files
maciDumpSession Dump session related information
man man command
mch MCH info
md5 prints MD5 checksum for a file
mdio read registers from devices connected to mdio bus
memwatch Keeps track of memory allocations
migrate Migrate a program to a core
mkdir create directories
mm Display MM run-time state information
mpcmd Type mpcmd help for detailed help.
mploadctrl Coli commands of MP Load Control data
msi_list Print region data for MSI
mv rename/move files
namelookup List registered services and pending lookups
nattstatus Show NAT-T status
nbs NBS
ncdbi Dumps nc internal structure
ncli ncli: start NCLI session to access CS.
ncpLinkStatus This command displays the EIOA link status.
ncpMacAutoNegGet This command displays the state of the port Auto Negotiation enable flag
ncpMacStatistics This command displays the contents of the MAC statistics registers.
ncpMacStatus This command displays MAC port status.
ncpMtmGlobalStats This command reads and prints the MTM global statistics counters.
ncpVersion This command displays the version of RTE being used.
ndp Display NDP cache entries
netstat Display net statistics
node_id node identity commands
nsdbg nsdbg enable
nsinfo Nameserver information commands
nssbasicinfo gets current pll state
nssgetidl2jb prints jitter buffer depth on a given port
nssmpinfo Get NSS MP status information
nssrefchangeinfo Get 20 latest reference switches
nssscspiinfo Get all client and subscriber info
nsssysclkinfo Get 20 latest SystemClock changes
nsstableinfo Get NSS MP table information
nsstraceidl2jb traces jitter buffer depth on in trace5 ofNSS_SYNCDRIVER_MEASURE with given timeout in ms
ntp NTP handling commands.
ntpconfig get ntp info
ntprecover ceases an NTP alarm and adjusts the node system time to the external NTP reference time
ospi_CXC1321315 Prints ospi status
pcapexplorer Lists dumpcap traces. Traces can be deleted with the -d option
pci PCI configuration read/write utility.
pgmUpgradeObj Soft program upgrade
ping The command verifies the IP connectivity to a host.
ping6 Verify the IPv6 connectivity to another IPv6 system
pm With the pm command it is possible to enable trace for a set of pm counters which is used together with the trace
object PM_COUNTERS
pm_create Create a program.
pm_ff Print all file formats supported.
pm_install install a load module
pm_kill Kill program
pm_lmconf Print configuration for a load module image.
pm_lminfo Print information for a/all load module image(s).
pm_pgconf Print configuration for a program.
pm_pginfo Print information for a/all program(s).
pm_pt Print all program types supported.
pm_start Start a program.
pm_uninstall Uninstall a load module image
poolinfo List information about pools
preload Loads the flash with the specified programs
printf ,redirect printf or end redirections
ps list processes
pwd print the working directory
qs List signals in a process signal queue
rcmd remote command execution
rdfpga Reads registers from the FPGA.
rdsfp Reads info related to given SFP.
readclock Read system clock [unix date format]
readdspeventlog Read event log from DSP
reload Restart the board (default warm)
restartObj restarts an object.
ricm Print selected debug info. Call without args for help.
rlc Clear the ramlog
rld Display ramlog
rlw Write a string to the ramlog
rm remove files
rmdir remove (empty) directories
route Display or modify route table
rpmm ram pmm commands
rrt-cell rrt-cell commands for one instance of Cell
rrt-cell_1 Type 'rrt-cell_1 help' to display RoseRT debugger commands
rrt-central Type 'rrt-central help' to display RoseRT debugger commands
rrt-monitor Type 'rrt-monitor help' to display RoseRT debugger commands
rsock Configure/query rsock deamon.
run Runs all intercepted processes
sadprint Printout of the Security Association Database (SAD)
sctp_config prints some SCTP-ROF configuration data
sctpadm cmd sctpadm lists info about all Sctp Associations in SCTP ADM
sctpadm_config cmd sctpadm_config lists some configuration data in SCTP ADM.
sctpadm_info cmd sctpadm_info lists all process info in SCTP ADM
sctpadmrofcmd cmd sctpadmrofcmd send trace settings to user plane.
sctphost Prints some SCTP-ROF configuration data, statistical information and lists association or endpoint info in SCTP
Host.
sctphost_info cmd sctphost_info lists association or endpoint info in SCTP HOST
sctphost_stat cmd sctphost_stat prints some statistical information
sctphosttrace Configure log filtering and dumping internal log.
serialport UART device driver settings
setclock Set Clock
setkey Configure manual SAs and SPs
setlowsp Set terminal speed to 9600 baud
setpri This command has been disabled
shell invoke shell
sigs List information about signals
sleep This command has been disabled
sma Prints SMA status and container data
sockstat List open sockets
spdel Delete a system parameter.
spdprint Printout of the Security Policy Database (SPD)
spedit Edit system parameters interactively
splitethcdbg Returns debug information fetched from split eth client.
splitethevent controls logging frequency for eventID 5
splitethsdbg Returns debug information fetched from ose_split_server.
splitethstat Shows/clears statistics of split ethernet server/client.
spmod Stepwise view and modify system parameters.
spr Read a system parameter.
spray
spw Write a system parameter.
srioconf Read/write srio device registers
ss Show maximum process stack usage
stat report information about file/directory
supervision enables/disables supervision of DSP's
swcon Set or print srio switch congestion stats
swdump Print srio switch registers
switchObj Switch an object.
swperf Enable/Disable or print srio switch performance stats
swport Enable/Disable port on srio switch
sync synchronize volume with disk
syncinfo Get general Synchronization information
syspar Get or set system parameters
te Trace & Error Handling commands
tempmostorage Coli commands showing temporary MO storage data
term display info about terminal
tetxt Adds INFO trace to CPP T&E log.
tm target monitor command
traceroute The command finds the routing path to a certain host.
traceroute6 Verify IPv6 routing to another IPv6 system
uart UART device driver statistics and settings
ue Coli commands connected to ue monitoring
umask display/set the current file system mask
uptime display system uptime
uselmc Selects an LMC
vii VII info
vlandev Create or remove VLAN device
vols report volume statistics
wrfpga Writes to a register in the FPGA.
zzosvarp Show the address of the OSE kernel data handle.
4A0963> u! $undocommandfile
170622-12:38:43 10.44.177.9 16.0n ERBS_NODE_MODEL_F_1_108 stopfile=/tmp/9215
Result saved to: /var/opt/ericsson/amos/moshell_logfiles/guilgome/logs_moshell/undo/undo_4A0963_170622-121559.mo
($undotrunfile).
4A0963> u! $undodelcommandfile
170622-12:39:30 10.44.177.9 16.0n ERBS_NODE_MODEL_F_1_108 stopfile=/tmp/9215
Result saved to: /var/opt/ericsson/amos/moshell_logfiles/guilgome/logs_moshell/undo/undo_4A0963_170622-
121559_del.mo ($undotrunfile).
4A0963>