????6?????????LR ????????higkoo
????[root@bogon Linux]# useradd -g 0 -s /bin/csh higkoo
??????????????????higkoo?????????????shell?csh??
????????????£?shell???linux????????????linux?????????????shell??????centos?£????shell?????bash??????LR????csh????????????????????????????????????????棬????????????????????????£?higkoo???????????????csh??
????[root@bogon Linux]# more /etc/passwd

????7????????LR?????á?
????csh??bash????????????????????shell?????????????????á?
????csh??????????? /etc/csh.cshrc ?£?bash??????????? /etc/profile ??????????????????У?
????????????Щshell???????????
????LR??????????????????????????????????? /opt/HP/HP_LoadGenerator/env.csh ???????????*.csh??????????????????csh????????????????????????????????

????env.csh ??????????????????csh????????????棬????????????£?????????????????????????????????
????[root@bogon HP_LoadGenerator]# vi /etc/csh.cshrc
??????????????м??? source /opt/HP/HP_LoadGenerator/env.csh ???????????lr?????????csh????????á?
????8???л???higkoo??????????3????????????
????[root@bogon HP_LoadGenerator]# su higkoo
????[higkoo@bogon HP_LoadGenerator]$ env

?????????3??????????????????? /opt/HP/HP_LoadGenerator/bin/verify_generator
????[higkoo@bogon bin]$ cd /opt/HP/HP_LoadGenerator/bin
????[higkoo@bogon bin]$ ./verify_generator
????????????????????£?

??????????????????DISPLAY ????????????????env.csh??????????
???????л???root????£???????????
????1??env.csh?????higkoo?????????????????
????2?????env.csh????????????csh??????????????????????????csh????????Ч
??????????????????root?£????env.csh ?????
????[root@bogon HP_LoadGenerator]# vi /opt/HP/HP_LoadGenerator/env.csh
?????????????????? setenv DISPLAY 0.0

?????л???higkoo???????????????????
????[root@bogon HP_LoadGenerator]# su higkoo
????[higkoo@bogon HP_LoadGenerator]$ cd /opt/HP/HP_LoadGenerator/bin
????[higkoo@bogon bin]$ ./verify_generator

????????????????????
????9?????LR ??????
????[higkoo@bogon bin]$ cd /opt/HP/HP_LoadGenerator/bin
????[higkoo@bogon bin]$ ./m_daemon_setup start
????????????£????????????????????????????????????????????????

??????????log??log??/tmp ·???£???????????????????????????????????????????????????ip??????????????????????????????ip??
????27/08/2013 00:10:25 Error: Communication error: Failed to get the server host IP by calling the gethostbyname function

????????μ??shell?μ????????????????????????bogon????ping ???bogon????????????
?????л???root?£?????hosts???????bogon???127.0.0.1 .

????????л???higkoo??????????????????????????
????[root@bogon HP_LoadGenerator]# su higkoo
????[higkoo@bogon HP_LoadGenerator]$ cd /opt/HP/HP_LoadGenerator/bin
????[higkoo@bogon bin]$ ./m_daemon_setup start
????m_agent_daemon ( 26299 )??
????[higkoo@bogon bin]$ ps aux | grep m_agent_daemon

?????????LR??linux????????????ɡ?
?????????
??????????????csh?°??????????????bash?°??????????HP_LoadGenerator ???????? env.sh???????????????£????????? ???? /etc/profile ?????У?????? /etc/passwd?е?higkoo?????bash?????????bash????????????????????
????#/bin/bash
????export PRODUCT_DIR=/opt/HP/HP_LoadGenerator
????export M_LROOT=$PRODUCT_DIR
????export LD_LIBRARY_PATH=$M_LROOT/bin:$M_LROOT/lib:/usr/lib
????export DISPLAY='0.0'
????export PATH=$PATH:$M_LROOT/bin