How to kickstart CentOS 7 without DHCP

  01-18-2015 · Tagged under: red-hat, kickstart

Red Hat has altered the “ks” parameter for kickstart installations in RHEL7. If you are in an environment where you don’t have DHCP servers on certain subnets and can’t PXE, you’ll need to pass parameters in manually through the Grub boot menu. It took me a bit of time to figure out the new parameters so thought I would share. When you boot off the RHEL7/Centos 7 boot media hit escape during the boot screen.

Read more...

How to list all Splunk indexes

  01-18-2015 · Tagged under: splunk

This is the first post in a series revolving around a Splunk usage. Something I always forget how to do is to list the current Splunk indexes on my indexers. The command: | eventcount summarize=false index=* | dedup index | fields index This provide a table listing of all indexes on the indexer.

Read more...

How to migrate your Docker containers to another host

  01-18-2015 · Tagged under: docker

I was running Docker happily on Ubuntu one day and got an email from Digital Ocean notifying me that my droplet was involved in a DDOS with some foreign nations servers. Not happy about this and not wanting to spend an hour troubleshooting, I decided to vacate the droplet and move to a proper build of Coreos rather than risk getting banned by DO. Why else use Docker right? You can abandon the host and just move your container and be back in business in no time.

Read more...

How to open a new window using a HTML button

  01-18-2015 · Tagged under: html

Recently I struggled figuring out how to make a HTML button tag open a new window when the button link was clicked. My original button only opened a link within the same window. What I wanted to achieve was getting the button to open a separate window and keep everything using HTML without the need to bring in javascript. With the following snippet of code: <button onClick="location.href='http://google.com'" type="button">Click me</button> The button simply uses the same tab to visit google.

Read more...

How to prevent Network manager from overwriting resolv.conf in RHEL7

  01-18-2015 · Tagged under: red-hat

I recently upgraded to Red Hat 7 from 6 and noticed an issue where my /etc/resolv.conf file kept getting over written by network manager after every reboot. Specifically the search domain I set would be over written by something assigned by the dynamic dns server. To stop this behavior you can edit /etc/NetworkManager/NetworkManager.conf and add the following parameter. dns=none This will stop the search domain from being altered across future reboots.

Read more...

How to set the timezone in CoreOS

  01-18-2015 · Tagged under: coreos

By default CoreOS’s timezone is set to UTC. If you want to set it to a specific time zone run: In my case I’m in the Eastern timezone so I would run: sudo /usr/bin/timedatectl set-timezone EST

Read more...

How to use the Splunk oneshot command

  01-18-2015 · Tagged under: splunk

Today I had to index an entire directory full of IIS logs into Splunk, I didn’t want to create a input on the forwarder so had to look for another solution. Fortunately Splunk has a command called “oneshot” that will do just that. The command is a oneoff method to send all your logs off to your indexer. I couldn’t figure out how to run it against a directory full of logs, so I had to create a for loop and wrap the command in it.

Read more...