ssh -i localkey -L local_port:localhost:remote_port user@ip I had to look this up again. I haven’t had to use this in a while, maybe five years? I also wanted multiple ports forwarded, and that works like ssh -i localkey -L local_port:localhost:remote_port -L local_port:localhost:remote_port user@ip And… jenkins host inside remote VPC: ssh -i catalyst -L 8080:localhost:18080 centos@bastion-host-ip…
Continue ReadingUNIX
Real Sysadmins Work WITH yum and pip…
I was just handed a new revised Amazon Machine Image to employ, a fully-compliant corporate beast intended to facilitate keeping servers secure. I have extensive experience stripping builds for security purposes. The Solaris OS I worked with at Fidelity had stripped out all the graphical pieces integral to Solaris at that time, and paid SUN…
Continue ReadingBash Rocks (Direct Access to System)
This script will be re-written in python with test coverage in the next several months. For an ad hoc tool, though, to create POC and raw methods, bash rocks.
Continue Readingfiles hidden under a filesystem mount
I ran into a server that showed 83% used on the / filesystem. But… A du -ak | sort -nr | more showed no files or folders using the space. The server had a back history of a missing mount, which had caused the filesystem to fill up to 100%. I suspected that the now-mounted…
Continue Readingvi(m) tricks
I had copied a section of text from a pdf. When I pasted it into an email I got: insurance against loss or damage by fire, including an extended coverage endorsement, for all buildings and personal property which comprise the Property. Owner agrees to maintain property liability insurance in full force and effect during the…
Continue ReadingHow NOT to buy a laptop
I have a 10.1" Dell Netbook that I love – except… Except that it has an Atom processor and even with an upgrade to 2GB RAM, every once in a while it just chugs, spinning and processing for minutes, unable to respond at all. It has a 600 x 1028 screen – it turns out,…
Continue Readingcygwin tools
I love the cygwin shell. It makes windows marginally useful as a sysadmin platform. It's one of the first tools I add to a base windows install. I go to Cygwin setup.exe, down load it and run it. I download first without installing. Create a local package directory (I use 20120518_cygwin…
Continue ReadingSED (stream editor)
/dev/null; else cp ${i} ${i}.bak; sed “s/#Force all traffic through secure http/#Force all traffic through secure http\n RewriteCond \%\{REQUEST_URI\} \!\^\/jmx\/app_status.jsp/” ${i}.2; mv ${i}.2 ${i}; fi; done and in func… [root@p1-qaut1 ~]# func p1-vm167* call command run ‘for i in /etc/httpd/conf/ConstantContact*.conf; do if [[ `egrep “RewriteCond \%\{REQUEST_URI\} \!\^\/jmx\/app_status.jsp” ${i}` ]]; then echo $i…
Continue ReadingMapping applications to VMs
I use XEN in RedHat linux (CentOS) for our QA environment. Within each XEN server I might have 20 – 30 servers. There are three XEN servers per QA environment, three QA environments. A constant problem is tracking where applications are installed within the VMs. I use puppet throughout the environments, including deployments of applications…
Continue Readingcombining pdf files into one
I scanned a book I wanted to read on the go (and that was not available as an electronic version). I used vuescan and an Epson V750 Pro scanner. It was tedious. Especially tedious because about halfway through the (windows) system crapped out and vuescan crashed and I lost the pdf creation, thus having to…
Continue Reading- 1
- 2