Sunday, October 11, 2009

Blogger Built-in Read More

Posted by Brian Bohanon

I have been searching and searching for the best way to accomplish the "Read More", "Summaries", or "Show/Hide". Blogger has answered the call. Rather than needing all of the scripts and HTML edits to accomplish this functionality, Blogger has added this by using either the editor or by entering a simple comment into the HTML of your post

Monday, October 5, 2009

PowerShell: Conditional Snapins Using Profile.ps1

Posted by Brian Bohanon

I redirect My Documents from our office file server to whatever Windows machine I log into. As part of this, my Windows PowerShell Profile.ps1 script is executed. Unfortunately, the snapins referenced in this script aren't necessarily available on the host I am currently logged into. To combat this, I use a conditional statement to check both the computer I'm logged into as well as if the snapin is already loaded.

Monday, August 24, 2009

Disabling Samba Master Browser

Posted by Brian Bohanon

When implementing a Samba server to serve Windows shares or AD authentication, there is a stumbling block to look out for. This problem is inherit to Windows networks and the defaults in Samba. Windows networks utilize a "browsing" service that keeps a list of all the computers on the local subnet that are serving CIFS (Common Internet File System). To keep things straight, the local subnet has a master browser (also known as the Local Master Browser).If Samba is not configured, one-way or another (to be a browser or not), by default it is set to be a potential browser that participates in elections. To ensure that this default configuration doesn't produce unexpected results, it is best to disable this functionality, if not needed.
To disable this behavior, simply enter the following line into the smb.conf global configuration:

[global]
local master = no

Tuesday, July 21, 2009

Configuring Nagios - Overview

Posted by Brian Bohanon

Since my original posting "How-To Install Nagios on Ubuntu Linux", I have received many requests for more information about configuring Nagios. Figuring this out was no small undertaking for me. I want to start with an overview of the files that Nagios uses for configuration, starting and stopping Nagios, and some other helpful information.

Saturday, July 18, 2009

Excel VBA NSLookup

Posted by Brian Bohanon

I was looking for this very thing the other day and found it on Experts-Exchange. I am simply placing it here for my own reference and if anyone else is looking for it. Basically, you have a list of computer names and need to quickly get all of their IP addresses. Follow the directions in this post and BOOM!

http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_22048616.html

The author is zorvek: http://www.experts-exchange.com/M_1677072.html

Very handy thing.

Wednesday, June 17, 2009

VBScript to Check Server Health

Posted by Brian Bohanon

This script creates a mini-report of server health. At my current company, we are required to send a report twice per day of critical systems. For the first couple of weeks I did this report by hand, but after a couple of times doing that I had to script it.

The script loops through a list of servers in a text file, gathers disk space and critical service state, writes the info to an Excel sheet, and then sends the sheet via email.

Tuesday, May 12, 2009

VBScript to Find Users with Password Set to Never Expire

Posted by Brian Bohanon

The script below will search the current directory or one specified by the user and search for all of the accounts that have the attribute "Password Never Expires" set to true. The results are placed in a CSV file in the directory that the script is run from.

Monday, May 11, 2009

Setting the Default Gateway on SunOS

Posted by Brian Bohanon

Setting the default gateway in Sun's OS is different than any other system I have used. If the gateway isn't set using the means below, it will default to using the local interface as the default gateway. This works fine if everything is on the same subnet.

I handle this in two steps, setting the default gateway instantly and setting the default gateway to be active upon reboot. Otherwise, to only create the /etc/defaultrouter file would require that the system reboot before it becomes active.

  © Blogger template 'A Click Apart' by Ourblogtemplates.com 2008

Back to TOP