How to setup MTU value for btlan based card during on HP-UX 11i v1

From Wiki-UX.info
Jump to: navigation, search

Abstract[edit]

This article discribe how to create a custom startup script to define MTU values for btlan based network cards on HP-UX 11i v1. This workaround a know problem of the hpbtlanconf configuration file that don't provide a MTU variable to automatically perform the task

Create btlanmtu script[edit]

/etc/rc.config/btlanmtu:

#!/sbin/sh
#
# /etc/rc.config/btlanmtu
# Set MTU values for btlan based cards. Add as many lanadmin statements as network cards to change the MTU value.
PATH=/usr/sbin:/usr/bin:/sbin
export PATH
 
case $1 in
'start_msg')
        echo "Setting MTU value of PPA(s): <PPAs> to <MTU_VALUE>"
        ;;
 
'stop_msg')
        echo "Returning MTU value of PPA(s): <PPAs> to default 1500"
        ;;
 
'start')
        # All required instruction to start the process. Can be a call to another script.
        lanadmin -M <MTU_VALUE> <PPA>   
        rval=1
        ;;
 
'stop')
        # All required instruction to stop the process. Can be a call to another script.
        lanadmin -M 1500 <PPA>  
        rval=1
        ;;
 
*)
        echo "usage: $0 {start|stop|start_msg|stop_msg}"
        rval=1
        ;;
esac
 
exit $rval
# chown bin:bin /etc/rc.config/btlanmtu
# chmod 555 /etc/rc.config/btlanmtu

Linked the start and stop points[edit]

# ln -s /sbin/init.d/btlanmtu /sbin/rc2.d/S341mtu
# ln -s /sbin/init.d/btlanmtu /sbin/rc1.d/K659mtu

Authors[edit]

Based on previous available information.