系统下安装
更新时间:2024-01-10 21:31:01 阅读量: 教育文库 文档下载
LoadGenerator在unix(linux)下的安装及运行
Loadgenerator在unix和linux下的安装包可以在hp网站下到。安装难度应该不是很大,关键是安装完成后的环境变量设置,以及verify_generator.
安装完成后,/opt/HP/HP_LoadGenerator/会有一个env.csh。需要把它里面的环境变量加到.csh或.profile文件中。
? For C shell users, the startup configuration file is the .cshrc file
? For Bourne and Korn shell users, the startup configuration file is the .profile file.
我当时是在linux,bash环境下,所以在root目录找到.bashrc文件,添加以下几句话:
export PRODUCT_DIR=/opt/HP/HP_LoadGenerator
export M_LROOT=$PRODUCT_DIR
export LD_LIBRARY_PATH=${M_LROOT}/bin
export PATH=${M_LROOT}/bin:$PATH 需要注消再登录后bash生效。
然后运行/opt/HP/HP_LoadGenerator/bin目录下的verify_generator
结果提示:[root@localhost bin]# ./verify_generator
Environment variable M_LROOT must be set to the product directory in order for verify_generator to execute.
Please setenv/export (csh/sh) it and run verify_generator again
通过[root@localhost bin]# env |grep PRODUCT_DIR 输出:exportT_DIR=/opt/HP/HP_LoadGenerator 于是尝试用切换到csh环境 [root@localhost bin]# csh 再次运行verify_generator 提示如下:
[root@localhost bin]# ./verify_generator
=================================================== HP
Vuser Environment Verification Utility
===================================================
Product: HP LoadRunner 9.50 Version: 09.50.0000 Build: 3378
verify_generator can not run as superuser, please login again
切换到普通用户:
[root@localhost bin]# su lxj bash: /home/lxj/.bashrc: 权限不够 bash-3.1$ bash-3.1$ bash-3.1$ bash-3.1$ bash-3.1$ bash-3.1$ csh
再次运行verify_generator
[lxj@localhost bin]$ ./verify_generator
=================================================== HP
Vuser Environment Verification Utility
===================================================
Product: HP LoadRunner 9.50 Version: 09.50.0000 Build: 3378
localhost.localdomain:
verify_generator...OK verify_generator...OK verify_generator...OK
Warning: The file .rhosts does not exist in the home directory of the user. Verify $M_LROOT ...Failed
_____It was not possible to set the $M_LROOT from
_____the shell dot files. One of several things might be happening: _____1) $M_LROOT is not set at all in the shell dot files.
_____2) There is some error in the shell dot files which stops their execution _____ before it sets $M_LROOT.
_____3) There is conditional code in the shell dot files (most likely related to _____ interactive and non interactive shells) and $M_LROOT is set _____ only in one of the sections.
_____Aborting virtual user tests on host localhost.localdomain verify_generator...OK
看到了大家期望的ok.
至于和Controller Connection
有两种方式:
Checking Controller Connection
By default, the Controller connects remotely to the load generator using rsh (remote shell). You need to make sure that the load generator can be remotely accessed by the Controller.
To make sure that the load generator can be remotely accessed by the Controller:
1 On the load generator machine, go to the .rhosts file, located in the user home directory.
2 In the .rhosts file, verify that the Controller is included in the list of machines. If it is not listed, add it to the list.
If the Controller still cannot connect to the load generator, contact your system administrator.
Note: You can configure the Controller to connect to the load generator not using rsh. In this case, you need to activate the agent daemon on the load generator. For more information, see the “Connecting to a UNIX Load Generator Without Using RSH” below.
Connecting to a UNIX Load Generator Without Using RSH
This section describes how to connect to a UNIX load generator without using RSH.
To connect to a UNIX load generator without RSH:
1 On the UNIX load generator, run the agent daemon by running the following command from
This runs a daemon called m_agent_daemon, and if successful you will receive a message: m_agent_daemon
The agent will now keep running, even if the user is logged off. It will only stop running using the command explained in step 3 below, or by rebooting the machine.
Note: If you look at the log file m_agent_daemon[xxx].log in the temp directory, you may see communication errors, even if the installation succeeded:
These messages appear because the LoadRunner agent always tries to open port number 443 (because any agent can be a MI Listener, and the MI
Listener always listens to this port), and in UNIX machines, this port cannot be opened by any user except for the root user. However, this will not interfere with using this agent for the load generator.
2 In the Controller, in the Generators > Load Generator Information > UNIX Environment tab, select the Don’t use RSH option. Connect as usual. 3 To stop the agent daemon, run the following command from the
This stops the m_agent_daemon, and if successful, you will receive a message: m_agent_daemon is down.
rsh方式,记得Controller机器需要有rsh客户端。
正在阅读:
系统下安装01-10
四川省成都外国语学校2016-2017学年高一上学期期末考试试卷 数学06-27
第二节 双容自衡水箱液位特性测试实验09-30
高中政治生活问题式复习纲要05-25
那些曾经与过往07-06
语文高中必修二复习07-20
09 PVD 金属化工艺 - 图文10-24
教育心理学各章试题答案10-16
病理学练习题及答案 - 图文04-03
- exercise2
- 铅锌矿详查地质设计 - 图文
- 厨余垃圾、餐厨垃圾堆肥系统设计方案
- 陈明珠开题报告
- 化工原理精选例题
- 政府形象宣传册营销案例
- 小学一至三年级语文阅读专项练习题
- 2014.民诉 期末考试 复习题
- 巅峰智业 - 做好顶层设计对建设城市的重要意义
- (三起)冀教版三年级英语上册Unit4 Lesson24练习题及答案
- 2017年实心轮胎现状及发展趋势分析(目录)
- 基于GIS的农用地定级技术研究定稿
- 2017-2022年中国医疗保健市场调查与市场前景预测报告(目录) - 图文
- 作业
- OFDM技术仿真(MATLAB代码) - 图文
- Android工程师笔试题及答案
- 生命密码联合密码
- 空间地上权若干法律问题探究
- 江苏学业水平测试《机械基础》模拟试题
- 选课走班实施方案
- 安装
- 系统
- 苏教版五年级数学下册 第4单元 分数的意义和性质 达标测试卷
- 小学语文北师大版《一年级下》《第十一单元 愿望》《想飞的乌龟》精品专题课后练习含答案考点及解
- 三菱PLC原理及综合实训(全)
- 2014版大型矿山开采装备产业升级改造项目(立项及贷款用)可行性研究报告编制机构服务流程及案例展示 - 图文
- 02《工务段静态验收内业资料检查项目》
- 中药化学成分新提取技术研究
- 高三数学-2018年全国第一次高考研讨会 - -高考数学备考建议 精品
- 物理初二下苏科版9.1二力平衡同步练习
- 5.2物质探究—探索成分
- 《简爱》选择题(一)1、2班
- 最新2018高考语文一轮语言运用全真模拟题100题(附答案)
- 电气试验标准化作业指导书(精简版) - 图文
- 参考 规章制度修订工作计划
- 学术规范测试
- 个人手工制作新牛津高中英语模块十第一单元知识点整理及单元练习
- 八年级上册数学《全等三角形》《轴对称》期末复习题及答案解析
- 2016年安徽省事业单位招聘专业知识笔试大纲(水利类)
- 人际关系心理学结课作业
- 复兴小学优质生源培养实施方案
- 人教版小学语文教案《观潮》