Tech Tip: Running CA Remote Engineer (CA RE) in Linux environments with /tmp set to noexec

Document created by kk_sup Employee on Mar 30, 2017
Version 1Show Document
  • View in full screen mode

If the Linux system you are trying to run CA Remote Engineer on has /tmp mounted with

noexec permissions this can cause issues when running CA Remote Engineer.
 

Example:
 

[root@capmhost RemoteEngineer]# ./re.sh

 
CA Remote Engineer

Enter the name of the CA product that is affected>
IMDataCollector

Do you want to send the zip file to the CA FTP site? (y|N) >n

----------------------------------
CA Product is IMDataCollector
DO NOT send file to CA FTP site.

Is this correct?(Y|n) >
y
Answers are correct
Checking for newer version
there is a newer version, do you want to download it now? (Y|n) >
n
Can't load '/tmp/p2xtmp-13168/IO.so' for module IO: /tmp/p2xtmp-13168/IO.so: failed to map segment from shared object: Operation not permitted at PERL2EXE_STORAGE/DynaLoader.pm line 203.
at PERL2EXE_STORAGE/IO/Handle.pm line 263
Compilation failed in require at PERL2EXE_STORAGE/IO/Handle.pm line 263.
BEGIN failed--compilation aborted at PERL2EXE_STORAGE/IO/Handle.pm line 263.
Compilation failed in require at PERL2EXE_STORAGE/IO/Seekable.pm line 101.
BEGIN failed--compilation aborted at PERL2EXE_STORAGE/IO/Seekable.pm line 101.
Compilation failed in require at PERL2EXE_STORAGE/IO/File.pm line 133.
BEGIN failed--compilation aborted at PERL2EXE_STORAGE/IO/File.pm line 133.
Compilation failed in require at PERL2EXE_STORAGE/Archive/Zip.pm line 10.
BEGIN failed--compilation aborted at PERL2EXE_STORAGE/Archive/Zip.pm line 10.
Compilation failed in require at /opt/IMDataCollector/RemoteEngineer/linux/Re_l64.so line 1782.
BEGIN failed--compilation aborted at /opt/IMDataCollector/RemoteEngineer/linux/Re_l64.so line 1782.

 
To select another temp location, set TMP before running the command (this will not persist in environment if set as follows)

 
Example:

 
[root@capmhost RemoteEngineer]# pwd
/opt/IMDataCollector/RemoteEngineer

[root@capmhost RemoteEngineer]# mkdir retemp
[root@capmhost RemoteEngineer]# TMP=/opt/IMDataCollector/RemoteEngineer/retemp ./re.sh

 

CA Remote Engineer

 

Enter the name of the CA product that is affected>
IMDataCollector

 

Do you want to send the zip file to the CA FTP site? (y|N) >N

----------------------------------
CA Product is IMDataCollector
DO NOT send file to CA FTP site.

Is this correct?(Y|n) >
Y
Answers are correct
Checking for newer version
there is a newer version, do you want to download it now? (Y|n) >
N
Version 2.00

 

Date/Time is Tue Mar 28 10:57:54 2017

 

Creating ZIP file with doc for CA Contact CA Issue RE SiteID 1
Adding file to list: /etc/services
Adding file to list: /var/log/messages*
Adding file to list: dmidecode.out
Adding file to list: /etc/security/limits.conf
Adding file to list: /etc/security/limits.d/*.conf
Adding file to list: /etc/init.d/dcmd
Adding file to list: /etc/init.d/activemq
Adding file to list: /etc/default/dcmd
Adding file to list: /etc/default/activemq
Adding file to list: /opt/DCM.cfg
Adding file to list: /opt/IMDataCollector/Logs/*
Adding file to list: /opt/IMDataCollector/ICMPD/*.log
Adding file to list: /opt/IMDataCollector/log-backup/*
Adding file to list: /opt/IMDataCollector/apache-karaf-2.4.3/shutdown.log
Adding file to list: /opt/IMDataCollector/apache-karaf-2.4.3/data/karaf.out
Adding file to list: /opt/IMDataCollector/apache-karaf-2.4.3/data/log/*log*
Adding file to list: /opt/IMDataCollector/apache-karaf-*.*.*/bin/setenv
Adding file to list: /opt/IMDataCollector/apache-karaf-2.4.3/data.*/karaf.out
Adding file to list: /opt/IMDataCollector/apache-karaf-2.4.3/data.*/log/*log*
Adding file to list: /opt/IMDataCollector/apache-karaf-*.*.*/deploy/*
Adding file to list: /opt/IMDataCollector/apache-karaf-*.*.*/etc/*
Adding file to list: /Logs/*
Adding file to list: /ICMPD/*.log
Adding file to list: /log-backup/*
Adding file to list: /apache-karaf-2.4.3/shutdown.log
Adding file to list: /apache-karaf-2.4.3/data/karaf.out
Adding file to list: /apache-karaf-2.4.3/data/log/*log*
Adding file to list: /apache-karaf-*.*.*/bin/setenv
Adding file to list: /apache-karaf-2.4.3/data.*/karaf.out
Adding file to list: /apache-karaf-2.4.3/data.*/log/*log*
Adding file to list: /apache-karaf-*.*.*/deploy/*
Adding file to list: /apache-karaf-*.*.*/etc/*
Adding file to list: /opt/IMDataCollector/broker/apache-activemq-*.*.*/conf/activemq.xml
Adding file to list: /opt/IMDataCollector/broker/apache-activemq-*.*.*/data/*.log
Adding file to list: /opt/IMDataCollector/broker/apache-activemq-*.*.*/data/*.log.*
Adding file to list: /broker/apache-activemq-*.*.*/conf/activemq.xml
Adding file to list: /broker/apache-activemq-*.*.*/data/*.log
Adding file to list: /broker/apache-activemq-*.*.*/data/*.log.*
Adding file to list: scripts/treeview*
Adding file to list: imgs/*.gif
Adding file to list: re_log.txt
Adding file to list: probinfo.txt
Preparing to execute diagnostic command: cat /proc/version
Preparing to execute diagnostic command: cat /proc/cpuinfo
Preparing to execute diagnostic command: cat /proc/meminfo
Preparing to execute diagnostic command: cat /proc/devices
Preparing to execute diagnostic command: cat /proc/interrupts
Preparing to execute diagnostic command: cat /proc/diskstats
Preparing to execute diagnostic command: cat /proc/partitions
Preparing to execute diagnostic command: cat /proc/modules
Preparing to execute diagnostic command: cat /proc/swaps
Preparing to execute diagnostic command: cat /proc/vmstat
Preparing to execute diagnostic command: cat /proc/iomem
Preparing to execute diagnostic command: cat /proc/ioports
Preparing to execute diagnostic command: cat /proc/zoneinfo
Preparing to execute diagnostic command: cat /proc/loadavg
Preparing to execute diagnostic command: cat /proc/config.gz
Preparing to execute diagnostic command: /bin/df -k
Preparing to execute diagnostic command: /sbin/ifconfig -a
Preparing to execute diagnostic command: uname -a
Preparing to execute diagnostic command: /bin/netstat -a
Preparing to execute diagnostic command: /bin/ps -ef
Preparing to execute diagnostic command: /sbin/lspci -vvv
Preparing to execute diagnostic command: /sbin/lsusb -vvv
Preparing to execute diagnostic command: /bin/rpm -q -a
Preparing to execute diagnostic command: /bin/dmesg
Preparing to execute diagnostic command: /usr/bin/env
Preparing to execute diagnostic command: dmidecode > dmidecode.out
Adding file to list: diaginfo.txt
=================================
RE writing output to /opt/IMDataCollector/RemoteEngineer/capmhost_IMDataCollector_1_CA_RE.zip

1 person found this helpful

Attachments

    Outcomes