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…

     

如果这文章对你有帮助,请扫左上角微信支付-支付宝,给于打赏,以助博客运营