CentOS – KickStart File command

Below is a simple example of the KickStart command that can be used to do an install via a Kickstart file that is located on an accessible Web Site.

linux ks=http://172.168.1.xx/ks/KickStartFile.cfg "enter_the_appropriate_cfg_file" ksdev=eth0 ip="IP_of_the_server" netmask=255.255.255.0 DNS="DNS machine is pointing to"

EXAMPLE: The command below will do an install on the server the command will run on:

linux ks=http://172.168.1.xx/ks/KickStartFile.cfg ksdev=eth0 ip=192.168.11.02 netmask=255.255.255.0 DNS=192.168.1.20
Share Button

BASH – Generic Linux report scripts.

These scripts are generic reporting scripts that provide general information regarding CPU-Filesystem-RAM usage, uptime, detection if the server is a VMware server or not, Version of Operating System, active TCP sockets and more. These scripts can entered in a for loop and run on multiple servers in order to get an overall picture of the servers.

Continue reading

Share Button

BASH – Script that distinguishes between a Database Server and a Web Server and does service checks.

The script can be used in a for loop. It generates an Error Alarm only when a critical condition is at hand. These specific conditions are as follows. The script can detect if the server is running Apache or PostgreSQL. So if for example it sees that Apache is not installed it will not do a check for the Apache process. It will move on to do a check for PostgreSQL and perform the same check as mentioned above. In other words the script is not blindly checking for processes.

If Apache is down.
If PostgreSQL is down.
If CPU load exceeds normal levels
If the root partition has reached 90% usage
If /storage (other specific directory of your choosing) has reached 90% usage.

Continue reading

Share Button

Python – Reference point script for services and default ports.

This is really my first Python Script. It is meant more as an exersice for me to learn Python. It uses a dictionary that stores services and default ports being used. This is really a useless script 🙂

Continue reading

Share Button