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 Readinglinux
Blue Green w/S3, Cloudfront, Route53
I tend to code and architect devops with an eye toward NOT being locked into any particular cloud or service. Netsaint -> Nagios -> Icinga Hudson -> Jenkins VMWare -> Vagrant -> Docker -> Kubernetes -> ECS Everything changes. That ideal cloud you are moving on to right now – will change in five years,…
Continue Readingwget and then clean up links in php website
I am helping a friend set up a wordpress website. She found a website that she like the structure and look of. I wanted to capture the site including links and each individual page as a reference for what she likes and how to build the site for her. I won’t copy it, but I…
Continue Readingupdating iLO, HP’s Integrated Lights Out Connection
I was handed an HP server to rebuild. The server had rebooted for no logged reason. Two other servers bought at the same time and built with the same OS and firmware had also experienced this spontaneous reboot. These had been rebuilt and the rebuild at updated firmware and updated Ubuntu version had resolved the…
Continue Readingfaillog and PAM…
I just spent a couple of hours discovering faillog integration into PAM… The original ticket was to reset a user password from the ubuntu root recovery session at the console. The ticket was old-ish. The server involved was DR (Disaster Recovery). No disaster, no urgency, therefore not a priority immediately. Once the password was reset,…
Continue ReadingJuniper VPN on linux
I am required to connect to a VPN, even internally. This means that using linux at work requires getting that VPN session to complete, on any version of linux I am going to productively use. I have used Crunchbang for the last four months, primarily because it connected to our Juniper VPN right out…
Continue Readinggrub2 custom configuration
I run windows for Adobe Lightroom, an occasional foray into outlook, and for iTunes, Adobe Elements and Photoshop. I run linux for the terminal, the native command line for system administration, and for development. I am working with Jenkins Continuous Integration platform, which runs easily on Ubuntu. I’ve run development versions of a LAMP stack…
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 ReadingFunc: Fedora Unified Network Controller
This is a replacement for remote command execution on servers via ssh. It has some serious security advantages – it is never a shell, for example. In managing five environments and over 1400 servers and 92 applications, tools are key. The install and configuration is at https://fedorahosted.org/func. Once installed, you can verify that you…
Continue Reading- 1
- 2