TC2823en-Ed04 Infocollect Usage Features Bug Fixes Debug Methods
TC2823en-Ed04 Infocollect Usage Features Bug Fixes Debug Methods
This document provides information about usage, fixes, new features & debug methods for the infocollect tool in the
context of the OmniPCX® Enterprise.
Revision History
Edition 1: October 22, 2020 creation of the document. Correspond to infocollect version: 6.2
Edition 2: January 13, 2021 creation of the document. Correspond to infocollect version: 6.3
Edition 3: February 8, 2021 creation of the document. Correspond to infocollect version: 6.4
Edition 3: March 8, 2021 creation of the document. Correspond to infocollect version: 6.5
Edition 4: January 25, 2022 creation of the document. Correspond to infocollect version: 6.6 & 6.7
Legal notice:
www.al-enterprise.com The Alcatel-Lucent name and logo are trademarks of Nokia used under license by ALE. To view other
trademarks used by affiliated companies of ALE Holding, visit: www.al-enterprise.com/en/legal/trademarks-copyright. All other
trademarks are the property of their respective owners. The information presented is subject to change without notice. Neither
ALE Holding nor any of its affiliates assumes any responsibility for inaccuracies contained herein.
© Copyright 2022 ALE International, ALE USA Inc. All rights reserved in all countries.
Table of contents
1 Goal ....................................................................................................................................................... 4
2 Result file ............................................................................................................................................... 4
3 Usage ..................................................................................................................................................... 4
3.1 Syntax .............................................................................................................................................. 5
3.2 Auto-installable program .................................................................................................................. 5
3.3 Short description of modules ............................................................................................................. 6
3.4 GAS module ...................................................................................................................................... 7
3.5 “search.vbs” .................................................................................................................................... 7
4 Debug .................................................................................................................................................... 7
5 Availability .............................................................................................................................................. 8
6 Reporting an issue, suggestions ............................................................................................................... 8
It is not OXE version dependent: infocollect is also delivered on the Business Portal as an auto-installable
file that can be installed in versions as far as R5.0 Lx (bugs may happen, no impact on OXE functioning)
The goal is to help either our Business Partners, the ALE Tech support & RnD
In this document, it is possible that some functions or files that are described are not available for older oxe
versions due to constant evolutions of the tool.
2 Result file
Result file is named “infocollect_<cpu name>_<yyy-mm-dd>_<hhmm>.tbz” & placed under “/tmpd”
It is a tar zipped file that can be decompressed easily on any computer.
3 Usage
Infocollect is organized in a set of independent modules that are launched by a master program.
Those modules can be launched separately & it is possible to skip some of them.
Most of the modules will not require any interaction with the admin; modules concerning GD, OMS, GAS …
may have to ask the account/password to be able to retrieve the relevant information.
Infocollect can be launched with arguments depending on what the admin wants to do.
Infocollect must be launched as root user, CPU can be in main or stdb or even telephone not started. Lots of
tools launched in stand-by or telephone not running will print warnings, but it is harmless for the CPU.
In main cpu state some logs are retrieved from twin cpu (modules “twin” or “twin_extra”). So, there is no
need to launch infocollect in stand-by mode.
3.1 Syntax
List of arguments & explanations:
- “infocollect -v” (or --version) shows infocollect current version
- “infocollect -h” help on syntax
- “infocollect -list” prints the list of all modules
- “infocollect” with no argument launches the tool without some modules
(gas/gd/netw_incid/pcs_logs)
- “infocollect -db”: to force to show the mao backup menu for an immediate backup action. “mao” +
“cho-dat” are retrieved. If this option is missing only “DAY” backup is taken.
- “infocollect -remote”: most modules are not executed. Incidents from local & remote nodes are
retrieved: only netw_incid.mtcl, CCR, chlog modules. Option not recommended: use option “-a”
instead if incidents from distant nodes are needed
- “infocollect -lite”: option not recommended & will be removed soon. Only some modules are
executed in order to decrease the size of result file
- “infocollect -a” launches the tool with ALL modules. Some of them will ask for admin password
towards remote equipment (like GDs, GAS …)
- “infocollect -i” launches the tool in interactive mode. All modules will ask to be executed or not
(y/n/q) or even a possibility to quit the tool (q: next modules will be skipped and archive will be
created with previous modules that were executed – option from version 5.7)
- “infocollect -gas” ONLY launches the module dedicated to GAS & FLEX server (admin password
requested). See chap. 3.4 “GAS module”
- Other arguments: see chap. 4 “Debug”
Notes:
- Case of mao database: done in module “mao”. Infocollect with no option provided: will do a copy of
DAY database. The options “-db” or “-a” will ask for an immediate backup with copy in result file.
- In case of native encryption with external gateway configured it will be asked to give the root
password of the EEGW & to perform the “ostimport” manually operation on twincpu.
- The new option “-nc” does not compress the result file & gives much faster operation. Size of the
tar file gets a lot bigger. The “anti_loop” module is watching for sufficient free space under “/usr4”
and stops operation eventually.
3.5 “search.vbs”
This tool is copied into the result file at the root of directory. It is a standalone tool intended to be
launched on Windows.
From version 6.1 a text file named “LIST_OF_ALL_FILES_4_SEARCH.txt” contains the name and location of
all files created by infocollect.
“search.vbs” opens an input box. Then the string entered will be searched & result will be printed in a
message box. This can help localizing a file into the infocollect structure.
Note: due to vbs limitations (no scrollbar in the “messagebox”) the result can be truncated if it contains too
many lines.
4 Debug
In case of issue/bug found in infocollect, to help finding & fixing the issue follow the guidelines below:
Add the “TRAP” argument: it will print the result of commands “ps, df, ls of infocollect current directory if
a ctrl+c is performed.
During infocollect execution a “ctrl + c” will stop the tool & remove result file being constructed
5 Availability
Infocollect is installed in all current oxe patches & releases but versions are not the same.
Auto-installable program (sfx) is available as well as this documentation in the Business Portal at the OXE
version page.
This program can be used safely for all Linux OXE versions (see chap. 3.2).
New features:
- Interactive mode (option "-i") gives access to new modules. File will get bigger! Not accessible in auto
mode in order to keep a reasonable file size
* New module “netw_incid.mtcl” -> get all incidents + all excvisu from all accessible nodes (ip
hybrid links only)
Information is sorted by machine (main & stdb)
* New module “pcs_logs” -> get all incidents + all excvisu from all accessible PCS machines
Fixed:
- blocking at “boards.mtcl” due to modifications done in “compvisu” tool.
New:
- Sip module: added quarantines addresses
- Installation tool “sfx-infocollect.sh”: option “-v” to know the installer version & “infocollect” version to
be installed.
New functionalities:
- “ipdomains”: added QOS information
- “ops.mtcl”: added FLEX information (memory + database)
- “mao.mtcl”: added file “Config_BT.cfg”
- “applications.mtcl”: added command “cryptview”
- “sysinfo”: added command « top –b –n 1 » (request from R&D India)
Fixes:
- added flex info in ccd module + fix in « ls » commands
Fixes:
- module « account »: command »account –v » did not work (do not use « tool »)
- date error in the name of the generated file(detected by Mani Azhaguvel – internal crms)
- do not use anymore the command cmdcpl (module « boards.mtcl »: errors on console port)
Fixes:
« chlog.mtcl »: files « excvisu » empty on main cpu.
Fixes:
- Module « _anti_loop »: improvement in the loop detection process (module > 1gb + partition > 20%)
Added:
- Module « mao »:
o it is possible to copy mao + linux backup at the following conditions:
o The most recent backup is taken between DAY & IMMED
o No copy if option « -remote » ou « -lite » is given
o Option « -i » (interactive) will give the possibility to choose:
▪ No copy at all or
▪ Copy of the most recent backup between DAY & IMMED or
▪ Perform an immediate backup & copy in the archive
- Module « mao »:
o Adding database content of tables « flshvglng » & « smloc »
o Added result of « cfgUpdate »
o Copy of files « inimao.log » & iniflex.log » from « /tmpd »
o Added spadmin counters from file + memory
▪ Result is: « SP_admin_COUNTERS » & « SP_admin_FILE »
- Module « terms.mtcl »:
o added « opstat »
- Module « ressources.mtcl »:
o added voice guides commands like:
o vgclass, vgemis, vgmespos, vgmultilang, vgdigit, vgfile, vgmulti, vgstart ,vgton & vgstat for GD,
GA &GPA boards. Put under a new directory « vg »
o added « ls -lR /DHS3ext/vg* »
- Module « trunks.mtcl »:
o added « visu_catjr »
- Module « sysinfo »:
o added result of « cat /proc/sys/fs/file-nr » (number of opened files in the system)
- Module « chlog »:
o renaming incvisu files in 2 digits (like incvisu-0.txt to incvisu-00.txt)
o copy of /tmpd/ipl_ipc.log & /tmpd/package.log
- Module « twin »:
o Added iplink duplication data from ilpdebug tool (like keep alive, udp lost tempo, udp port …)
Generated file: « Display_Dupli_Dl ».
- Module « term.mtcl »:
o added « nsipsets » command (noe in sip)
Other:
- Module « chlog »:
o command « siteid » removed (already present in « version.mtcl »)
- auto-installer « sfx » file:
o copy of that file + infocollect installation on twin cpu if exist & reachable. No more needed to
install manually infocollect on twincpu.
Fixes:
- crms00303072: issue with option « I » from the « tar » tool (version 1.2x that came in j1.410.26). Option
replaced by “j”. Compatibility with old version supporting « I » option. Warning: version 3.x cannot
create the archive on OXE versions containing the 1.25 tar version (like j1.410.26).
Fixes:
- Module « mao » & « mao.mtcl »: the 2 tools « checkdb » & « checkinitrem » are back to the module
« mao.mtcl » due to a bug that modify the crontab of root (insertion of pcscopy + delete of 2 commands
+ modification of the PATH).
- Modules « twin » & « varlog »: get only the last 10000 lines of iplink stat files
- Modules « twin » & « varlog »: all files iplink.log are added
- Module « trunks.mtcl »: added « abcfip.log » log files
Other:
- Module « mao »: does only database copy now
- Module « mao.mtcl »: identical to 3.9
Fixes:
- Module « twin_extra »: the tools “checkdb” & “checkinitrem” are modifying the twincpu crontab for the
root user… (Delete of “adjtime”, modification of the path, adding “pcscopy” ). This version does NOT
correct the crontab (this needs to be done manually (“crontab –e”). A future version will fix that
automatically.
Fixes:
- Nothing
Fixes:
- module « gd.mtcl »: wait timer modified to 20sec (corrupted archive if transfert starts too early)
- module « gd.mtcl »: text warning to notify the 20sec delay to retreive the archive.
- module « ipdomains.mtcl »: added « echo | » for « cnx domcpl » (module/infocollect are blocked until a
return is made)
Fixes:
- nothing.
Fixes:
- module « boards.mtcl »: problem with PCS (UNACTIVE*: impossible to decompress, in case where some
pcs are not seen)
Fixes:
- module « term.mtcl »: misc issues around « getnoeversion » tool. To be executed only for the lastest
versions (oxe fixes)
- module « x25.mtcl »: x25visu option 2 was nok
- module « bics »: removed function for OT (cannot start the logzipper/ file to retrieve is too big).
Fixes:
- module « boards.mtcl »: misc issues around some boards names containing blanks
- module « term.mtcl »: « getnoeversion » tool is removed due to misc malfunctions
- module « pcslogs »: add functionality to select one or several pcs
Fixes:
- module “boards.mtcl”: option “DEBUG” was missing.
- module “ressources.mtcl”: SR 1-154278743 // better way to handle "vgstat" loop (previously could cause
infocollect to block if too many GPA boards)
Added/modified:
- “feml” main program. Request from BC: to shorten the result name (like CEST).
- “feml” main program. Request from BC: possible to execute infocollect logged as swinst user (function
"check()")
- “feml” main program. Ortaugraffe: tar in grogress !!
- NEW: module “CCR”: for Cloud Connect + Rainbow. To be continued with more maintenance tools & info
…
- module “sysinfo”: added: list applied patches in 's conf file (“memloader -D TEL”) on request of RnD
India (GURUMOORTHY NATARAJAN; Karthik GUNASEKARAN; Vijayakumar CHINNAPPAN; Praveen Kumar
GOVINDARAJ; Bhuvaneswari A S; Vaishnavi SRIRAM)
- module “sysinfo”: added flexlmlog (move from ccd.mtcl)
- module “sysinfo”: added WBM logs, down. time on tdm sets
Fixes:
- module “sysinfo”: only take sysstat files. R12.0 has capability to have new chorus-syscalls + linux-
syscalls files stats. Their size will drastically increase the time of compression. M1.403.6 patch does not
store those files unless a configuration is done. See eSR 1-204657851 & CROXE-3428
- module “twin”: ipldebug: change menu to 5.1 (from 4.1). Request from TS Brest (A.C.)
- module “twin”: changed to rsh to get twincpu info. Local data will go to "sysinfo"
Fixed:
- module “sysinfo” : ipldebug ok now (menu 5.1)
- module “oms” : was not working
- module “oms” : added command “downstat v” for each OMS in service.
Fixed:
- Module “mao.mtcl” : forbid mao_hist on all CPU6
Fixed:
- Module “boards.mtcl” : characters < and > to be escaped. Errors were thrown &
incomplete boards description
- Module “chlog” : "exit 0" before copying the flexlog files. They were never retrieved
- Module “twin_extra” : option -a was never used: NOARG line was always called before.
Possibility removed: always get the extra logs.
Fixed:
- Module “boards.mtcl” : misc. errors were thrown & incomplete boards
description
- Module “oms” : oms get logs was not working. Noted that if at
least 1 manual generation of logs at the 1rst time after installation is not done the infocollect method
will not work (directory ~/home/sftplogs for admin does not exist by default)
- Module “chlog” : test of black box files. Avoid reading 0 size file
(tool gets stuck)
Fixed:
- Module “x25.mtcl” : error with "cat ../trunks.mtcl" – changed to "cat
../../trunks.mtcl"
Fixed:
- Nothing
Fixed:
- Nothing
Fixed:
- nothing
From April/2020
- [gas] : new module to be used to inject/r-execute "infocollect_gas.bash"
in a GAS/Flex server & retrieve logs outside infocollect archive
- [infocollect_gas.bash] : new module located in new "sh" directory. Contains all commands to be
executed on a GAS or FLEX server (any Suse)
- [twin] : all /usr/netadm/data/netdata files (rcp
/usr/netadm/data/netdata*)
- [sysinfo] : all /usr/netadm/data/netdata files (rcp
/usr/netadm/data/netdata*)
- [ressources.mtcl] : added cnx co (OMS check config) + cnx fax (fax issues - request
from Au. Sch.)
- [mao.mtcl] : added the spinner placed for maohist extractions
- [feml] : no more option "-kauto" due to modem removal + file too big to
retreive. Manual transfer still possible by using the "kermit" tool
- [feml] : "gas" option: only execute the gas module & quit
- [feml] : tar was executed twice !! only "nice" is kept
- [feml] : test on files ".sh": continue on loop
- [anti_loop] : text modified: "infocollect: anti-loop launched__partition full
detection"
- [feml] : during the modules loop all ".sh" files are skipped as well as
directories
- [gas.sh] functionning : option "gas" is analyzed during the args check & immediately
executed (/usr/sbin/feml.d/gas.sh & exit).
- [feml] : added option "-nc": no compression of result file (modify tar command)
- [feml] : option “-db” to force the backup menu - modif on arg.: added $DB to all modules
(to be caught by "mao")
- [twin] : added “vmware-toolbox-cmd -v”
- [applications.mtcl] : added tool “dsstat” (options 1-7) + “dsstat” help menu
- [applications.mtcl] : copy of “ost” log tar file from main & stdb cpu (requested to perform
“ost_import” log on both cpus).
- [term.mtcl] : added edabv - requested by Corinne - result file : edmcs-abreviated-number
- [term.mtcl] : added ipcheck -all (from oxe R12.4 MD4)
- [mao] : module reworked. Argument "-db" will ask for IMMED bck otherwise DAY is copied.
NODB option removed.
- [CCR] : result of command “getRainbowInfo”
- [trunks.mtcl] : DL links information (N1 preparation). Commands done: “dlvisu”, “trkvisu dl”,
“hybvisu dl”
Fix:
- [gas.sh] : BASH_INFOC_LOCATION changed to /usr/sbin... etc ! otherwise works only
under this directory
- [gas.sh] : misc errors. DEBUG handling (only "-DEBUG -gas")
- [infocollect_gas.sh] : V1.3 - misc errors + added new logs & commands from HD ... etc
- [trunks.mtcl] : avoid "remote" trunks in trkstat <trk nb>. CROXE-21983: module is stuck!
fix also in oxe N1 patch (direct link case only).
Added:
- [dect.mtcl] : ibsstat
- [gd.mtcl] : added ioip3 : $TOOL config $1 $2 | egrep -i "gd3|ga3|intip3|ioip3"
>/dev/null & other functions to add IOIP3 ...
- [gd.mtcl] : added GA/GD4 logs generation & retrieval
Fix:
- [gas.sh] : misc modifs
- [infocollect_gas.sh] : V1.4 - modifs + result file is zipped. No more tar due to parasite files
PaxHeaders
- [ops.mtcl] : devnull on copy .zip
Added:
- [sysinfo] : request from A.P. to add vmware tools logs (/tmp/vmware-root directory
& logs checks+copy)
- [twin_extra] : vmware tools logs on twin cpu
- END OF DOCUMENT -