2. 설치방법
JS PARM은SPARC 머신용과 i386 머신용으로 2개의 페키지 S/W가 있다.
SPARC(Solaris) 머신은 parm.V10.6.pkg 파일을 다운받고, i386(Solaris x86) 머신은 parm.V10.6.x86.pkg 파일을
다운받아서 다음과 같이 pkgadd 명령어로 설치할 수 있으며, /opt/JSparm 디렉토리에 설치된다.
(Download: http://www.junsoft.com)
# pkgadd -d parm.V10.6.pkg
The following packages are available:
1 JSparm parm V10.6 - Performance Analysis Report Maker
(sparc) V10.6
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: <ENTER>
Processing package instance from
parm V10.6 - Performance Analysis Report Maker(sparc) V10.6
JunSoft; http://www.junsoft.com
Using as the package base directory.
## Processing package information.
## Processing system information.
4 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
The following files are being installed with setuid and/or setgid
permissions:
/opt/JSparm/bin/amd64/jtop
/opt/JSparm/bin/amd64/procinfo
/opt/JSparm/bin/amd64/psinfo
/opt/JSparm/bin/i86/jtop
/opt/JSparm/bin/i86/procinfo
/opt/JSparm/bin/i86/psinfo
Do you want to install these as setuid/setgid files [y,n,?,q] y
Installing parm V10.6 - Performance Analysis Report Maker as
## Installing part 1 of 1.
/etc/rc2.d/S90cpuviewd
/etc/rc2.d/S90get_mdbxx
/etc/rc2.d/S90gwserv
/etc/rc2.d/S90jlogmon
/etc/rc2.d/S90mmonx
/etc/rc2.d/S90parmagentx
/opt/JSparm/bin/JSpsinfo-D.sh
/opt/JSparm/bin/JSvminfo.sh
/opt/JSparm/bin/adjmaxmin
/opt/JSparm/bin/amd64/jmeminfo
.... Skip ....
/opt/JSparm/bin/proctime <linked pathname>
/opt/JSparm/parmview/mrepx.cgi <linked pathname>
Installation of <JSparm> was successful.
|
설치 후에 /opt/JSparm/bin을 PATH에 추가해 주십시오.
parm의 이전 버전이 설치되어 있으면 새 버전을 설치할 수 없다. 이 경우에는
다음과 같은 명령어로 이전 버전을 제거한 후에 새 버전을 설치하여야 한다.
페키지를 제거하기 전에 구 버전에서 실행되고 있는 데몬 프로세스가 있으면, 먼저 종료시킵니다.
# ps -eaf | grep JSparm
root 653 1 0 13:28:20 ? 0:00 /opt/JSparm/bin/cpuviewd -O
root 672 1 0 13:28:27 ? 0:00 /opt/JSparm/bin/parmagentx -O
root 668 1 0 13:28:25 ? 0:00 /opt/JSparm/bin/gwserv -Bc /etc/parmview.conf
root 666 1 0 13:28:24 ? 0:02 /opt/JSparm/bin/mmonx -O
# kill 653 672 668 666
|
# pkgrm JSparm
The following package is currently installed:
JSparm parm V10.4 - Performance Analysis Report Maker
(all) V10.4
Do you want to remove this package? y
|
이전 버전의 패키지를 제거하더라도 라이센스 파일(/etc/JSlicense.d/parm.lic)과
데이타 파일들(/opt/JSparm/dbspace/*)과 /opt/JSparm/conf 디렉토리에 사용자가 새로 만든 구성파일은 지워지지 않는다.
웹 애플리케이션 ParmView와
ParmClient를 사용하려면,
각각 구성파일을 /etc 디렉토리에 복사하고,
부팅 쉘 스크립트를 실행하여, 데몬 프로세스를 실행하여야 한다.
다음은 ParmView를 시스템 기동시에 자동으로
실행할 수 있도록 parmview.conf 파일을 /etc 디렉토리에 복사한다.
그리고 쉘 스크립트 /etc/rc2.d/S90mmonx을 실행한다.
# cp /opt/JSparm/etc/parmview.conf /etc
# sh /etc/rc2.d/S90mmonx start
mmonx[2033] is started
gwserv[2035] is started on port 9900
|
위와 같이 데몬 프로세스를 실행한 뒤에, 다음과 같은 URL로 서버에 접속하면
ParmView의 페이지를 볼 수 있다.
다음은 ParmClient를 시스템 기동시에 자동으로
실행할 수 있도록 parmclient.conf 파일을 /etc 디렉토리에 복사한다.
그리고 쉘 스크립트 /etc/rc2.d/S90parmagentx를 실행한다.
# cp /opt/JSparm/etc/parmclient.conf /etc
# sh /etc/rc2.d/S90parmagentx start
parmagentx[2042] is started on port 9810
|
위와 같이 데몬 프로세스를 실행한 뒤에,
/opt/JSparm/parmclient 디렉토리에 있는 sysmon.exe 와
hostview.exe 명령어를 PC에 가져와서 실행하면
PC에서 서버 시스템의 통계정보를 실시간으로 볼 수 있다.
/opt/JSparm/htmldoc 디렉토리에는 HTML로 구성된 메뉴얼이 있다. 이 메뉴얼을 보기 위한
두 가지 방법이 있다.
파일을 바로 보는 법
netscape에서 다음과 같은 내용을 URL로 지정한다.
file:///opt/JSparm/htmldoc/index.html
웹 서비스를 통하여 보는 법
먼저 parm에 포함된 미니 웹 서버를 다음과 같이 실행하고,
# gwserv -d /opt/JSparm/htmldoc
gwserv is started on port 8008
|
URL로 그 서버의 이름과 포트번호 8008을 다음과 같이 지정한다.
http://hostname:8008
Parm V7.0부터는 ParmView 홈 디렉토리에 메뉴얼 디렉토리 htmldoc을 doc으로 심볼릭
링크로 만들어 두었다. 따라서 ParmView가 실행된 시스템에서는
다음과 같이 9900 포트로 메뉴얼을 쉽게 볼 수 있다.
http://hostname:9900/doc
|