配置环境变量:
declare -x PERL5LIB="/home/airocov/WAPS_automation/Dev/waps_mainline/fmk/core/Common/wapslib"
修改/etc/profuile
airocov@ubuntu:~/testforap$ cat /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "$PS1" ]; then
if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
# The file bash.bashrc already sets the default PS1.
# PS1='\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi

本文介绍了如何配置环境变量PERL5LIB来调用Perl自己编写的模块WAPSlib,该库位于/home/airocov/WAPS_automation/Dev/waps_mainline/fmk/core/Common/wapslib下。通过示例代码展示了如何使用H3CSwitch和AP模块进行设备的ping测试,并将结果写入文件。

2495

被折叠的 条评论
为什么被折叠?



