unix
A Basic Shell Script for FTP
Basic FTP Shell Script for uploading files
Introduction
There are occasions where you might want to FTP data off site from a server or other host onto an FTP server
NOTE! Think a little before using FTP. It doesn't send login credentials (username / password) it an encrypted form and the data it transfers is not encrypted either. There are some security implications to using FTP as transfer protocol over public links.
#!/bin/bash
Deleting Duplicated default gateways on AIX
Ever had that weird problem on AIX where your routing table has a second default gateway?
I had and this is how i fixed it. In my case when I changed a ip address and default gateway in smitty, the routing table ended up with TWO default gateways. This is bad news if your machine is a seperate vLAN or subnet and needs to communicate outside of this vLAN or subnet.
The example below shows the output of a netstat -rn. In it you can see two default gateways. One is correct 10.2.98.113 and the other 10.0.72.16 is incorrect.
Setup Centos 5 Linux as a TFTP server for backing up routers and other network devices
If you need to backup your network device's (you know Cisco, HP etc) running configuration, one of the most common ways to do this is via a TFTP server. There are various tftp solutions out there and this guide covers setting up a centos box on how to become a tftp server. There a few guides out there already but this one covers Centos 5 Linux specifically.
Step 1.
You need to install the tftp-server service and the xinetd service software using yum.
The xinetd service is required as this controls the tftp server daemon.
Creating an NFS share on a Windows 2008 Server
Creating an NFS share on a Windows 2008 server for unix / linux clients
Windows 2008 has the ability to "share" file resources using NFS. This guide will guide you through doing this. In this scenario we will have two machines named "WIN-NFS" which will be our Windows 2008 Server and "redcloud" which will be our Red Hat linux client.
This can also be done on Windows 2003 check here for details Setup Windows 2003 NFS
Setup and mount NFS Filesystems
What it is: A basic guide to sharing and mounting remote NFS shares
Create an NFS share with Microsoft Services for UNIX 3.5
As unlikely as it sounds to a UNIX die hard there are times when you require a Windows Server to share out an NFS folder. This document explains how to setup a simple scenario which will create a NFS disk resource on a Windows box which is mountable from a Unix client (a Sun Solaris 5.10 machine in this case). For those of us who use both Windows and Unix daily this is quite a handy ability to have.

