ERZ057001E/0277: Cannot access message catalog cics.cat for message ERZ096131I

今天在整理 普通用戶SSH 到遠程伺服器並啟停CICS時。總是遇到如下報錯:

[root@co2 ~]# ssh wasadmin@192.168.179.11 ‘/home/wasadmin/FBM.sh’
wasadmin@192.168.179.11’s password:
ERZ058502I/0101: RPC daemon is already running.
ERZ057001E/0277: Cannot access message catalog cics.cat for message ERZ096131I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0277: Cannot access message catalog cics.cat for message ERZ096160I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0288: Cannot access message catalog cics.cat for message ERZ096135I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0290: Cannot access message catalog cics.cat for message ERZ096134I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0003: Cannot access message catalog cics.cat for message ERZ096002I
Please check if NLSPATH or LANG variable is set
ERZ058502I/0101: RPC daemon is already running.
ERZ057001E/0264: Cannot access message catalog cics.cat for message ERZ096122I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0264: Cannot access message catalog cics.cat for message ERZ096158I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0024: Cannot access message catalog cics.cat for message ERZ010013I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0224: Cannot access message catalog cics.cat for message ERZ096111I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0224: Cannot access message catalog cics.cat for message ERZ096141I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0168: Cannot access message catalog cics.cat for message ERZ038214I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0029: Cannot access message catalog cics.cat for message ERZ105102I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0034: Cannot access message catalog cics.cat for message ERZ105107I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0175: Cannot access message catalog cics.cat for message ERZ038216I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0157: Cannot access message catalog cics.cat for message ERZ038272I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0179: Cannot access message catalog cics.cat for message ERZ038219I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0189: Cannot access message catalog cics.cat for message ERZ038228I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0182: Cannot access message catalog cics.cat for message ERZ038182I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0231: Cannot access message catalog cics.cat for message ERZ096113I
Please check if NLSPATH or LANG variable is set
ERZ057001E/0382: Cannot access message catalog cics.cat for message ERZ038216I
Please check if NLSPATH or LANG variable is set

[root@co2 ~]# ssh wasadmin@192.168.179.11 ‘echo $PATH’
wasadmin@192.168.179.11’s password:
/usr/local/bin:/bin:/usr/bin
[root@co2 ~]# ssh wasadmin@192.168.179.11 ‘echo $PATH’
wasadmin@192.168.179.11’s password:
/usr/local/bin:/bin:/usr/bin
[root@co2 ~]# ssh wasadmin@192.168.179.11 ‘echo $PATH’
wasadmin@192.168.179.11’s password:
/opt/ibm/cics/bin:/opt/mqm/bin:/usr/local/bin:/bin:/usr/bin

最後解決問題:在/home/wasadmin/.bashrc 文件。加上下面兩個變數:

export PATH=”/opt/ibm/cics/bin:/opt/mqm/bin:$PATH”
export NLSPATH=”/opt/ibm/cics/msg/%L/%N:/opt/ibm/cics/msg/C/%N:$NLSPATH”
因為SSH 到目標機器,並沒有獲得目標伺服器的mqm與cics 的bin路徑,並且也沒有獲得NLSPATH,因而需要在/home/wasadmin的.bashrc文件指定:
最後在客戶端機B機執行如下命令:
ssh -l  wasadmin A機IP “/home/wasadmin/FBM-wasadmin.sh”
或者: ssh wasadmin@A機IP ‘/home/wasadmin/FBM-wasadmin.sh’

以下文章點擊率最高

Loading…

     

如果這文章對你有幫助,請掃左上角微信支付-支付寶,給於打賞,以助博客運營