Archive for Quick Tip

Safari providing an SSL error “client certificate rejected” when other browsers work

If you’re receiving an error message such as: Safari can’t open the page “https://example.com”. The error was: “client certificate rejected” (NSURLErrorDomain:-1205) Please choose Report Bug to Apple from the Safari menu, note the error number, and describe what you did before you saw this message. It’s likely because the web server you are connecting to […]

Read more

How little you know, and some useful commands for the week

Early in my career, I was writing a shell script and needed to print a line-number for each line in a text file. I ended up coming up with some function that did just what I needed. I don’t recall the exact method, but it was something like:

Read more

Automatically purge old configuration from Nagios deployed by Puppet

A problem that Puppet administrators have likely noticed when deploying its built-in Nagios functionality (called Naginator) is that creating configuration is very easy but ‘cleaning’ old configuration isn’t as straight-forward. If you are like me, you’d delete the affected file(s) that had cruft and let Puppet re-build the service configuration without the old services or […]

Read more

Building an Empty RPM

When searching for information on creating an empty, or null rpm file, I was unable to locate the spec file details needed. In another post, I will describe my need for this empty rpm, but for now here is the minimal spec file needed to build an empty rpm: Place the following in a file […]

Read more

Server Management Best Practices – Firewall

Every week at MNX solutions we handle issues from server security and patch management to system recovery and performance tuning. In this blog series, we will review a number of firewall best practices that you can implement today on your server infrastructure. First things first, do you utilize a firewall on your server? If your […]

Read more

bash_history date

Bash_history date Ever try to determine what caused the latest outage by trying to determined when a command was last executed? Look in your .bash_history (if you are running a bash shell), and you will see your recently executed commands. However, it is generally impossible to tell when the command was executed.

Read more

MySQL Backup User Privilege Grant

LOCK TABLES and SELECT are the minimal requirements to use ‘mysqldump’. You can use the following grant statement to create a user with as little privileges as possible:

Read more

CUPS Purging not-completed print jobs older than..

When working with CUPS using remote print queues, you may find that the remote printer is not always available, has timed out, ran out of paper, has a paper jam, etc. Sometimes this causes a job to ‘not-complete’ and when running ‘lpstat -o’, you see old print jobs. We put together a quick script to […]

Read more

Extracting files from rpm and deb packages

We ran into an issue where an init script was missing and we needed to restore the file.  The backup (of course) did not include the file we needed.  We had to download the package, extract the contents, and move the init script back into place.  Below are the commands used: DEB: $ dpkg-deb -x […]

Read more

Retrieve Ensim MySQL root password

You can display the current root password for mysql (if the host is running ensim), by using the following command. # ensim-python -c “import sys;sys.path.append(\”/usr/lib/opcenter/mysql\”);import mysqlbe;print mysqlbe.read_mysqlpass()”

Read more