Skip to main content

Posts

Showing posts from 2012

Disable GRO for a ethernet interface

Use this to disable the GRO (Generic Receive Offload) on a RHEL system: # /sbin/ethtool -K eth4 gro off You can also add this to the /etc/rc.local file to persist across restarts. There are also other options you can set with the ethtool utility.  Please see the man page for ethtool for more information

Configure default MTA on Red Hat Enterprise Linux

1.  Install postfix # yum install postfix 2.  Stop and Disable sendmail (if running) # service sendmail stop # chkconfig sendmail off 3.  Enable and start postfix # chkconfig postfix on # service postfix start 4.  Update postfix config with correct relay host # postconf -e relayhost=yoursmtphost.com 5.  Make postfix the default MTA # alternatives –config mta There are 2 programs which provide 'mta'.   Selection    Command ----------------------------------------------- *+ 1           /usr/sbin/sendmail.sendmail       2           /usr/sbin/sendmail.postfix Enter to keep the current selection[+], or type selection number: 2 5.  Test mail relay # echo TEST | mail -s TEST youremail@yoursmtphost.com

HP-UX tape configuration

Here are few commands to configure tape drives in HP-UX 1.  Scan for new devices: # ioscan –fnC tape 2.  List tape drives currently recognized by the OS (without performing an actual hardware scan) # ioscan –fnkC tape 3.  remove all the special files used by the tape drives # rmsf  /dev/rmt/* 4.  Recreate the specil files for the tape drives # insf –C tape –e 5.  Remove a tape drive (that has a NO_HW state) # rmsf –H 0/7/1/0.1.24.255.5.5.0 Find the WWN for the HBAs: # ioscan –fnkC fc # fcmsutil /dev/fcd0 Find the WWN for the tape drives connected to the HBA: # fcmsutil /dev/fcd0 get remote all   **These are just a handful of commands to deal with the tape drives.  Not to be used as a procedure