Comments (6)
I change detectProducts like this:
detectProducts() {
OUT=$1
if rpm -q SLES_SAP-release &>/dev/null
then
log_write $OUT "#==[ System ]=======================================#"
log_write $OUT "# Product"
log_write $OUT "SUSE Linux Enterprise Server for SAP Applications"
log_write $OUT
log_cmd $OUT ls -lA --time-style=long-iso /etc/products.d/baseproduct
log_cmd $OUT rpm -qf /etc/products.d/baseproduct
And I reordered the function calls in basic_environment to put the /etc/os-release on top:
conf_files $BASIC_ENVF $RELEASE
detectProducts $BASIC_ENVF
detectVirtualization $BASIC_ENVF
from supportutils.
After further thought, I think these two commands should be directly in the basic_environment function.
We could use this output on any/all OS version.
log_cmd $BASIC_ENVF ls -lA --time-style=long-iso /etc/products.d/baseproduct
log_cmd $BASIC_ENVF rpm -qf /etc/products.d/baseproduct
ie:
basic_environment() {
# This is a minimum required function, do not exclude
printlog "Basic Environment..."
test $MIN_OPTION_ENV -eq 0 && { echolog EXCLUDED; return 1; }
addHeaderFile $BASIC_ENVF
get_customer_info $BASIC_ENVF
log_cmd $BASIC_ENVF 'date'
log_cmd $BASIC_ENVF 'uname -a'
RELEASE=$(ls -1 /etc/release)
detectVirtualization $BASIC_ENVF
conf_files $BASIC_ENVF $RELEASE
detectProducts $BASIC_ENVF
log_cmd $BASIC_ENVF ls -lA --time-style=long-iso /etc/products.d/baseproduct
log_cmd $BASIC_ENVF rpm -qf /etc/products.d/baseproduct
from supportutils.
The ls
is a bit redundant with the rpm -qf
, but I like the idea.
from supportutils.
The ls is a bit redundant with the rpm -qf, but I like the idea.
The "ls" here would let us see if there is a product mismatch between the file on disk and the rpm claiming to own the file.
Another bit of troubleshooting data.
from supportutils.
Some more product details in basic-environment to make product clear is useful, since os-release doesn't hint to SLES for SAP. But the ls
of /etc/products.d/ already exists in updates.txt if someone need to troubleshoot that.
from supportutils.
Some more product details in basic-environment to make product clear is useful, since os-release doesn't hint to SLES for SAP. But the
ls
of /etc/products.d/ already exists in updates.txt if someone need to troubleshoot that.
Good point. problem solved!
from supportutils.
Related Issues (20)
- supportconfig from rescue mode - boot.txt and lsinitrd
- autofs - includes inside dir (+dir:<path>) HOT 1
- Request to add features column to supportconfig output, for easier/quicker matching. HOT 1
- get iSCSI initiator HOT 1
- iscsiadm iface dump HOT 1
- If rsyslog not installed collect more from journalctl HOT 1
- Request to add ip neigh command output to show ARP cache on recent systems HOT 1
- request to add systemctl status output for every running service HOT 5
- Request add all available CPU schedulers to support config HOT 1
- Some log files aren't "exported" (as expected) HOT 1
- Add information about IO scheduler HOT 2
- Modify usage of df command within supportconfig HOT 6
- gather all files in /etc/security/limits.d/ HOT 1
- include more yast and hardware related info HOT 5
- change -x OPTION to really be exclude only HOT 3
- SLES15 pacemaker logs default location HOT 2
- collect `/var/log/zypp/history` HOT 6
- sed performance issues HOT 4
- Removal of confidential data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supportutils.