HP UX – CIFS – Mount Windows Share

A quick tutorial on how to mount a Windows shared folder onto HP UX. 1) Create your mount folder mkdir /backup 2) Setup the cifsclient to start on boot up. vi /etc/rc.config.d/cifsclient changed RUN_CIFSCLIENT=0 to =1. 3) Start the cifsclient dameon. /opt/cifsclient/bin/cifsclient start 4) Mount the Windows Share cifsmount //WindowsHost/backup /backup -s * You will […]

AIX – Unix – Script to Clean/Shrink WTMP file size

Today I came across an AIX wtmp file that was 1.9 GB in size. Needed to shrink the file down to keep at least the last 300 lines. Once I was completed, the file was less than 1 MB. I wrote the below script to clean the wtmp file, you are able to choose where […]