Category Archives: CentOS

Change files back to 644 and folders back to 755 with chmod

If you want to get rid of the nasty 777 on all files/folders see: find /path/to/base/dir -type d -print0 | xargs -0 chmod 755 find /path/to/base/dir -type f -print0 | xargs -0 chmod 644

Posted in CentOS, Linux | Tagged , , , | Leave a comment

remove files older than X days

find example to remove files older than 5 days: find /path/to/files* -mtime +5 -type f -exec rm {} \; Note that this command will not work when it finds too many files. It will yield an error like: bash: /usr/bin/find: … Continue reading

Posted in CentOS, Linux | Tagged , , , | Leave a comment

/opt/dell/srvadmin/sbin/omcliproxy: error while loading shared libraries: libdsupt.so.1

After restoring DellOpenmanage from backup i got the following error: /opt/dell/srvadmin/sbin/omcliproxy: error while loading shared libraries: libdsupt.so.1: cannot open shared object file: No such file or directory The files (and symlinks) are located in: /usr/local/opt/dell/srvadmin/lib64/libdsupt.so /usr/local/opt/dell/srvadmin/lib64/libdsupt.so.1 /usr/local/opt/dell/srvadmin/lib64/libdsupt.so.1.100.147 I didn’t reboot … Continue reading

Posted in CentOS, Dell, Hardware | Tagged , , , , | Leave a comment

Dell Openmanage SNMP No Such Object

After upgrading your openmanage you could get a No Such Object in your monitoring. snmpget -v2c -c public localhost .1.3.6.1.4.1.674.10892.1 SNMPv2-SMI::enterprises.674.10892.1 = No Such Object available on this agent at this OID To fix this issue: sed -r -i ‘s/^(SNMP)=disable$/\1=enable/’ … Continue reading

Posted in CentOS, Dell, SNMP | Tagged , , , , | Leave a comment

Creating a custom SNMP oid for a bash script

I would like to know how many files are in a certain directory, so i create a little one liner that counts them: In my case i want to know the files on my replicated slave of postgres. I make … Continue reading

Posted in CentOS, SNMP | Tagged , , , , , , | Leave a comment

Could not parse output, bad xml for package: dell_dup_componentid_00159

We sometimes see problems updating our Dell machines to the latest firmware, ie. update_firmware –yes fails: Running updates… – Installing dell_dup_componentid_00159 – 1.11.0Installation failed for package: dell_dup_componentid_00159 – 1.11.0 aborting update… The error message from the low-level command was: Could … Continue reading

Posted in CentOS, Dell, Hardware | Tagged , , , , , , | Leave a comment