Sponsored Content
Top Forums Shell Programming and Scripting Script to find Error: rpmdb open failed on list of servers Post 303036255 by greavette on Thursday 20th of June 2019 10:03:25 PM
Old 06-20-2019
Script to find Error: rpmdb open failed on list of servers

Hello all,

I have a task to patch red hat servers and some servers have a corrupted rpm database and return the error:

Error: rpmdb open failed

I know how to fix this when it occurs. What I'm hoping to do is scan a list of servers by IP and report back which server have this error.

Would someone be able to assist or point me in the right direction on how I capture this? My thought is to run the following:

Code:
sudo yum update infolist

On each server and capture the output to find the error.

Thanks in advance for any assistance or pointers you can provide me.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Failed to open output file Error

Hi guys, I Have written a script,In that it will call another file which contains the sql quaries. while wxecuting that I am getting the below exception 01/16|06:28:06:16800: Operating System Error|Failed to open output file Can anybody help me about this,,Its urgent (0 Replies)
Discussion started by: Anji
0 Replies

2. Shell Programming and Scripting

Script Error: 13192.sumr: 0403-016 Cannot find or open the file.

Hello, i am familiar enough with unix to do some damage but thats about it. We have a set of RS/6000 43P Model 150's running AIX for our Catia V4 programmers. back in the 90's a script was written to automate the conversion of files into machine code. that script has started giving us... (0 Replies)
Discussion started by: jgruenwald
0 Replies

3. Shell Programming and Scripting

Telnet script to test open ports on mult servers

Hello All, Can somebody help me with this script. I have an output file with a list of servers ips and ports. I need to be able to run this script to list all the server ips in the outfile and find out if the port is open or not. #!/bin/sh IFS=#;for i in $(cat portTest); do # check... (2 Replies)
Discussion started by: liketheshell
2 Replies

4. Solaris

Error:: libm.so.2:open failed

Hi, I am working with solaris 9 and I want to install perforce on that,so I downloaded the p4v.bin file and try to install it by the command ./p4v after that it is giving the error--- ld.so.1: ./p4v.bin: fatal: libm.so.2: open failed: No such file or directory Killed I am not... (3 Replies)
Discussion started by: smartgupta
3 Replies

5. Solaris

Error- ld.so.1: expr: fatal: libgmp.so.3: open failed:No such file or directory

Hi Friends I have a compiler(Sun Forte,I believe) running in my Solaris 9 box. since y'day my development team is finding this error when they compile: ld.so.1: expr: fatal: libgmp.so.3: open failed: No such file or directory I ran a search for this file and found it in one of my file... (2 Replies)
Discussion started by: Hari_Ganesh
2 Replies

6. UNIX for Dummies Questions & Answers

NDM: Source file open failed. Error= 2

Hi, I have try to ndm to one server to another server. but i am getting this error. what is this error? are files not in source folder? Source file open failed. Error= 2 Regards, Balamurgan (1 Reply)
Discussion started by: krbala1985
1 Replies

7. Red Hat

rpmdb open failed

Hi, # yum --skip-broken -y update rpmdb: Thread/process 6657/3078387392 failed: Thread died in Berkeley DB library error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db3 - (-30974) error: cannot open... (3 Replies)
Discussion started by: sef alislam
3 Replies

8. Shell Programming and Scripting

How to find out list of all proccess which are running on unix servers from last two days.

Hi All, I have a requirment, i need to get the list of all the process which are running from last two days on my unix server and also to put this list into an another file. i am giving you a sample example : $ ps -ef UID PID PPID C STIME TTY TIME CMD (1 Reply)
Discussion started by: akshu.agni
1 Replies

9. UNIX for Beginners Questions & Answers

Rdesktop - ERROR: Failed to open keymap en-us

I just updated my rdesktop to 1.8.3 from source ( on Slackware 11 ) and had troubles with arrow keys/page up/page down not working. I see this on the console: ERROR: Failed to open keymap en-us The fix is a permission change. I initially looked at /usr/share/rdesktop/keymaps and everything... (1 Reply)
Discussion started by: agentrnge
1 Replies

10. Shell Programming and Scripting

Linux open failed: No such file or directory error

Hi, The below commands works fine on serverB . /etc/profile; cd /export/home/user2/utils/plugin/ ./runme.shHowever, when i run the same commands from serverA it fails $ ssh -q user2@serverB ". /etc/profile; cd /export/home/user2/utils/plugin; ./runme.sh"Output Error: Please find the below... (8 Replies)
Discussion started by: mohtashims
8 Replies
yum-filter-data(1)														yum-filter-data(1)

NAME
yum filter data plugin SYNOPSIS
yum [options] [command] [package ...] DESCRIPTION
This plugin extends yum with some options, currently just for "update" and "list update" type commands, to allow filters to be placed on which packages should be used based on the data in those packages. Note that due to some of the data being unknown, and thus could possibly match, all unknown data is treated as a match. GENERAL OPTIONS
These are the options added to yum that are available in the "list updates", "info updates", "check-update" and "update" commands. They are: --filter-vendors This option includes packages which have a vendor which matches one of the passed vendor wildcard strings, or is unknown. Note that vendors can have spaces in their value, so "," is the only way to specify multiple vendors as one option argument. --filter-rpm-groups This option includes packages which have a group which matches one of the passed rpm group wildcard strings, or is unknown. Note that rpm groups can have spaces in their value, so "," is the only way to specify multiple rpm groups as one option argument. --filter-packagers This option includes packages which have a packager which matches one of the passed packager wildcard strings, or is unknown. Note that vendors can have spaces in their value, so "," is the only way to specify multiple packagers as one option argument. --filter-licenses This option includes packages which have a license which matches one of the passed license wildcard strings, or is unknown. Note that licenses can have spaces in their value, so "," is the only way to specify multiple licenses as one option argument. --filter-arches This option includes packages which have a arch which matches one of the passed arch wildcard strings, or is unknown. --filter-committers This option includes packages which have a committer which matches one of the passed committer wildcard strings, or is unknown. Note that committers can have spaces in their value, so "," is the only way to specify multiple committers as one option argument. Also, committer values are so loosely formed that they could contain commas too, it is recommended to not do that but you can work around it by using "?". --filter-buildhosts This option includes packages which have a buildhost which matches one of the passed buildhost wildcard strings, or is unknown. --filter-urls This option includes packages which have a url which matches one of the passed url wildcard strings, or is unknown. --filter-package-sizes This option includes packages which have a packagesize which is within one of the passed packagesize ranges, or is unknown. --filter-archive-sizes This option includes packages which have a archivesize which is within one of the passed archivesize ranges, or is unknown. --filter-installed-sizes This option includes packages which have a installedsize which is within one of the passed installedsize ranges, or is unknown. --filter-groups This option includes packages which are in a yum group which matches one of the passed yum group id strings, or is unknown. Note that yum groups can have spaces in their value, so "," is the only way to specify multiple yum groups as one option argument. EXAMPLES
To list all updates that are 1 MB or less use: yum --filter-package-sizes=-1m check-update To apply updates that Dan Walsh has committed use: yum --filter-committers='Dan Walsh *' update To list updates for a specific group use: yum --filter-rpm-groups='App*/Sys*' list updates To apply updates to a specific set of groups use: yum --filter-rpm-groups='App*/System,Devel*/Lib*,System Environment/Base' update To list updates for a set of yum groups use: yum --filter-groups='PostgreSQL Database,Web Server' list updates To apply updates to a specific set of yum groups use: yum --filter-groups='KDE,Core,Printing Support' update SEE ALSO
yum-list-data (1) yum (8) yum.conf (5) AUTHORS
James Antill <james.antill@redhat.com>. BUGS
Currently yum can't filter packages in all of the commands, so for instance "yum list 'yum*'" doesn't get the results filtered. Apart from that there are no bugs, but should you find any, you should first consult the FAQ section on http://yum.baseurl.org/wiki/Faq and if unsuccessful in finding a resolution contact the mailing list: yum-devel@lists.baseurl.org. To file a bug use http://bugzilla.red- hat.com for Fedora/RHEL/Centos related bugs and http://yum.baseurl.org/report for all other bugs. James Antill 04 February 2008 yum-filter-data(1)
All times are GMT -4. The time now is 01:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy