Hello,
We use as bash script to connect to servers listed in an .csv file to issue commands against these servers and retrieve data to be saved in a .csv file. The data we want to collect is saved in variables. We issue an ssh command for each variable we want to capture. I'm thinking this...
Here is an example of what I'm trying to do. If someone can help me formulate this line properly to get what I need please:
sudo yum repolist | grep -qi 'Error: rpmdb open failed ' ; case "$?" in "0") echo "match" ;; "1") echo "no match" ;; *) echo "error" ;; esac
Would that give me what I'm...
Hello @arochester , thank you for this reply.
I'm looking to use this one line command from a script (chef eventually) to help me determine proactively before we patch that servers have this yum database issue.
Thank you.
Hello,
We run CentOS and some Red Hat servers. Is there a one line command I can issue from the terminal to tell me if my yum database has become corrupted with the 'rpmdb open failed' message?
I know I can see this when I try to update a server. But I'd like to issue a one line command to...