rc.ntx ファイル・フォーマット

目的

Network Terminal Accelerator アダプター・カードの構成情報を提供します。

説明

/etc/rc.ntx ファイルは、 hty_load コマンドを呼び出して、 /etc/hty_config ファイルをロードします。 このファイルは、 ntx_route コマンドを使用して、ゲートウェイへの経路を指定することもできます。 また、 rc.ntx ファイルは SNMP を使用可能にします。

/etc/rc.ntx ファイルを使用して、さまざまな構成タスクを実行することができます。 例えば、追加のゲートウェイへの経路を指定するには、追加の経路に関するコメントの直後に以下の行を追加し、 目的地 パラメーターと ゲートウェイ パラメーターに IP アドレスを指定します。

/usr/bin/ntx_route -drhp$i net Destination 
Gateway

以下は、ソフトウェア・パッケージに同梱されているファイルです。 上記のように、ファイルに追加のコマンドを追加することができます。

echo "Executing hty_load"
/usr/bin/hty_load -f /etc/hty_config
echo "Finished executing hty_load"
    
#
# Maximum number of Network Terminal Accelerator adapters
# supported on each workstation.
#
   
MAX_RHP_DEVICES=7
   
i=0
while [ $i -le $MAX_RHP_DEVICES ]
do
     if [ -f /etc/rhp$i.ntx_comun.conf ]; then
           echo "Configuring SNMP communities on NTX
                     Adapter rhp$i"       
           /usr/bin/ntx_comun -d /dev/rhp$i -f
                     /etc/rhp$i.ntx_comun.conf
     fi
     if [ -f /etc/rhp$i.ntx_traps.conf ]; then
             echo "Configuring SNMP traps on NTX Adapter rhp$i"
             /usr/bin/ntx_traps -d /dev/rhp$i -f
                     /etc/rhp$i.ntx_traps.conf
     fi
     if [ -f /etc/rhp$i.ntx_nms.conf ]; then
             echo "Configuring SNMP nms on NTX Adapter rhp$i"
             /usr/bin/ntx_nms -d /dev/rhp$i -f
                    /etc/rhp$i.ntx_nms.conf
     fi
     if [ -f /etc/rhp$i.ntx_descr.conf ]; then
             echo "Configuring SNMP site-specific variables on
                    NTX Adapter rhp$i"
             /usr/bin/ntx_descr -d /dev/rhp$i -f
                    /etc/rhp$i.ntx_descr.conf
     fi
     if [ -c /dev/rhp$i ]; then
             STATE=`lsattr -E -l rhp$i -a snmp -F value`
             echo "Turning $STATE SNMP on NTX Adapter rhp$i"
             /usr/bin/ntx_snmp -d /dev/rhp$i $STATE
     fi
     # Additional routes for each NTX Adapter can be added here
     # example: /usr/bin/ntx_route -d /dev/rhp$i X.X.X X.X.X.X
   
     i=`expr $i + 1` # increment count
   
 done