• We had to restore from a backup today after a failed software update. Backup was from 0000 EDT and restored it at 0800 EDT so we lost about 8hrs. Today is 07/20/2024. More info here.

Search results

  1. G

    How to connect to a server via ssh once and collect various commands into separate variables

    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...
  2. G

    Command to identify rpmdb open failed message

    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...
  3. G

    Command to identify rpmdb open failed message

    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.
  4. G

    Command to identify rpmdb open failed message

    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...
Top