JEUS SNMP 안내서 JEUS v7.0 Fix#1 Copyright 2013 TmaxSoft Co., Ltd. All Rights Reserved.
Copyright Notice Copyright 2013 TmaxSoft Co., Ltd. All Rights Reserved. 대한민국경기도성남시분당구서현동 272-6 우 ) 463-824 Restricted Rights Legend All TmaxSoft Software (JEUS ) and documents are protected by copyright laws and international convention. TmaxSoft software and documents are made available under the terms of the TmaxSoft License Agreement and may only be used or copied in accordance with the terms of this agreement. No part of this document may be transmitted, copied, deployed, or reproduced in any form or by any means, electronic, mechanical, or optical, without the prior written consent of TmaxSoft Co., Ltd. 이소프트웨어 (JEUS ) 사용설명서의내용과프로그램은저작권법과국제조약에의해서보호받고있습니다. 사용설명서의내용과여기에설명된프로그램은 TmaxSoft Co., Ltd. 와의사용권계약하에서만사용이가능하며, 사용권계약을준수하는경우에만사용또는복제할수있습니다. 이사용설명서의전부또는일부분을 TmaxSoft의사전서면동의없이전자, 기계, 녹음등의수단을사용하여전송, 복제, 배포, 2차적저작물작성등의행위를하여서는안됩니다. Trademarks JEUS is registered trademark of TmaxSoft Co., Ltd. Other products, titles or services may be registered trademarks of their respective companies. JEUS 는 TmaxSoft Co., Ltd. 의등록상표입니다. 기타모든제품들과회사이름은각각해당소유주의상표로서참조용으로만사용됩니다. Open Source Software Notice Some modules or files of this product are subject to the terms of the following licenses. : APACHE2.0, CDDL1.0, EDL1.0, OPEN SYMPHONY SOFTWARE1.1, TRILEAD-SSH2, Bouncy Castle, BSD, MIT, SIL OPEN FONT1.1 Detailed Information related to the license can be found in the following directory : ${INSTALL_PATH}/lib/licenses 본제품의일부파일또는모듈은다음의라이선스를준수합니다. : APACHE2.0, CDDL1.0, EDL1.0, OPEN SYM PHONY SOFTWARE1.1, TRILEAD-SSH2, Bouncy Castle, BSD, MIT, SIL OPEN FONT1.1 관련상세한정보는제품의다음의디렉터리에기재된사항을참고해주십시오. : ${INSTALL_PATH}/lib/licenses 안내서정보안내서제목 : JEUS SNMP 안내서발행일 : 2013-04-30 소프트웨어버전 : JEUS v7.0 Fix#1 안내서버전 : v2.1.2
내용목차 안내서에대하여... ix 제1장 소개... 1 1.1. 개요... 1 1.2. 컴포넌트... 1 제2장 SNMP Agent 설정... 3 2.1. 개요... 3 2.2. SNMP Adaptor 설정... 3 제3장 SNMP MIB... 7 3.1. 개요... 7 3.2. MIB 브라우징... 7 3.3. 객체식별 (OID)... 7 3.4. JEUS SNMP OID 접미어... 9 3.5. Static OID와 Dynamic OID... 9 제4장 SNMP Manager 애플리케이션... 11 4.1. 개요... 11 4.2. 간단한 SNMP 클라이언트프로그램... 11 제5장 SNMP 사용예제... 15 Appendix A. JEUS SNMP MIB 정보... 17 A.1. 개요... 17 A.2. OID와속성값의매핑... 17 A.3. TMAX-JEUS7.0-MIB.mib... 33 색인... 159 JEUS iii
그림목차 [ 그림 2.1] JMX Manager 설정화면... 4 [ 그림 2.2] SNMP Adaptor 설정... 5 [ 그림 3.1] JEUS MIB의 OID... 8 JEUS v
예목차 [ 예 4.1] <<SnmpclientSample.java>>... 12 JEUS vii
안내서에대하여 안내서의대상 본안내서는 JEUS 시스템관리자와 SNMP 를사용하여 JEUS 를모니터링하려는네트워크관리자및개 발자를대상으로한다. 안내서의전제조건 JEUS 서버에대한전반적인이해와일반적인 SNMP 애플리케이션개발및 SNMP 관련환경설정에대한이해를필요로한다. 본안내서를원활하게이해하기위해서는다음과같은사항을미리알고있어야한다. JEUS 서버에대한이해 ("JEUS Server 안내서 " 참고 ) SNMP와관련한환경설정에대한이해와애플리케이션개발에대한이해 (http://www.oracle.com/technetwork/java/index.html 또는 http://www.ietf.org/rfc.html 참고 ) 안내서의제한조건 본안내서는 Java EE 나 SNMP 에대한기본적인내용에대해서는설명하지않는다. 따라서해당내용은 Java 관련문서를참고한다. 안내서에대하여 ix
안내서구성 본안내서는총 5개의장과 Appendix로구성되어있다. 제1장소개 JEUS SNMP Agent의기본적인개념과구성에대해서설명한다. 제2장 SNMP Agent 설정 JEUS SNMP Agent의특징과환경설정에대해서설명한다. 제3장 SNMP MIB JEUS에서사용하는 SNMP MIB에대해서설명한다. 제4장 SNMP Manager 애플리케이션 SNMP Manager 애플리케이션의개발에대해서설명한다. 제5장 SNMP 사용예제 SNMP의사용예제에대해서설명한다. Appendix A. JEUS SNMP MIB 정보 MIB 파일에대해서설명한다. x JEUS SNMP 안내서
안내서규약 표기 <<AaBbCc123>> <Ctrl>+C [Button] 진하게 " "( 따옴표 ) ' 입력항목 ' 하이퍼링크 > +---- ---- 참고주의 [ 그림 1.1] [ 표 1.1] AaBbCc123 의미프로그램소스코드의파일명 Ctrl과 C를동시에누름 GUI의버튼또는메뉴이름강조다른관련안내서또는안내서내의다른장및절언급화면 UI에서입력항목에대한설명메일계정, 웹사이트메뉴의진행순서하위디렉터리또는파일있음하위디렉터리또는파일없음참고또는주의사항주의할사항그림이름표이름 Java 코드, XML 문서 [ command argument ] < xyz > 옵션파라미터 < 와 > 사이의내용이실제값으로변경됨선택사항. 예 ) A B: A나 B 중하나파라미터등이반복되어서나옴 안내서에대하여 xi
시스템사용환경 본안내서의모든예제와환경구성은 UNIX의스타일에준하여작성되어 Microsoft Windows ( 이하 Windows) 와같이다른환경에서작업하는경우몇가지사항을고려해야한다. 예를들어경로구분자의경우 UNIX 스타일인 / 를 Windows 스타일인 \ 로바꿔서사용한다. 또한환경변수도 Windows 스타일로변경해서사용하면된다. 문서의내용은 Java 표준을고려해서작성했기때문에대부분의내용은동일하게적용된다. 관련안내서 안내서 JEUS Server 안내서 JEUS JMX 안내서 JEUS Reference Book 설명 JEUS 시스템과서버의개요와시스템관리를위한안내서이다. JMX를사용하여 JEUS를관리하기위한내용을기술한안내서이다. JEUS를사용할때도움이되는 Reference를기술한안내서이다. 참고자료 Java EE 6 스펙 J2EE Management 1.1 스펙 SNMP 스펙 xii JEUS SNMP 안내서
연락처 Korea TmaxSoft Co., Ltd 272-6, Seohyeon-dong, Bundang-gu, Seongnam-si, Gyeonggi-do, 463-824 South Korea Tel: +82-31-8018-1000 Fax: +82-31-8018-1115 Email: info@tmax.co.kr Web (Korean): http://www.tmax.co.kr 기술지원 : http://technet.tmaxsoft.com USA TmaxSoft, Inc. 560 Sylvan Avenue Englewood Cliffs, NJ 07632 U.S.A Tel: +1-201-567-8266 Fax: +1-201-567-7339 Email: info@tmaxsoft.com Web (English): http://www.tmaxsoft.com Japan TmaxSoft Japan Co., Ltd. 5F Sanko Bldg, 3-12-16 Mita, Minato-Ku, Tokyo, 108-0073 Japan Tel: +81-3-5765-2550 Fax: +81-3-5765-2567 Email: info@tmaxsoft.co.jp Web (Japanese): http://www.tmaxsoft.co.jp 안내서에대하여 xiii
China TmaxSoft China Co., Ltd. Beijing Silver Tower, RM 1508, 2# North Rd Dong San Huan, Chaoyang District, Beijing, China, 100027 China Tel: +86-10-6410-6145~8 Fax: +86-10-6410-6144 Email: info.cn@tmaxsoft.com Web (Chinese): http://www.tmaxsoft.com.cn xiv JEUS SNMP 안내서
제 1 장소개 본장에서는 JEUS SNMP 의기본적인개념과구성에대해서알아보고, JEUS SNMP Agent 와 JEUS 시스 템과의관계, JEUS JMX 와의관계및 SNMP Agent 에메시지를보내고받는 SNMP Manager 애플리케이 션에대해서간단하게설명한다. 1.1. 개요 SNMP(Simple Network Management Protocol) 는네트워크의여러하드웨어및소프트웨어를모니터링하기위한표준프로토콜이다. JMX 1.2 스펙은 SNMP를지원하는프로토콜어댑터를제공한다. J2EE Management 1.1 스펙은인터넷통신에서네트워크나시스템관리프로토콜을사용하기위한 MIB(Management Information Base) 를정의하고있다. 1.2. 컴포넌트 JEUS SNMP Agent가동작하기위한메인컴포넌트는다음과같다. JEUS SNMP Agent JMX MBean 서버와통신을하며논리적으로 JEUS에위치한다. JEUS SNMP Agent는 JEUS를관리하기위한기반구조를제공하며, J2EE Management 1.1을구현했다. JEUS 서버의구조에대해서는 "JEUS Server 안내서 " 를참조한다. MIB(Management Information Base) JEUS Management 정보구조를제공한다. MIB 파일명은 TMAX-JEUS7.0-MIB.mib이다. SNMP Manager SNMP Agent와메시지를주고받는다. SNMP Manager 애플리케이션이 SNMP 메시지를전송할때 SNMP Agent는설정한포트번호를 Listen 하고있다. 해당포트번호로요청이들어오면먼저 MIB-tree에서 OID를찾고, 그것의 Protocol Data Unit( 이하 PDU) 타입을알아내서 JEUS JMX MBean 서버를호출한다. 정보를찾아내면 SNMP Manager 애플리케이션에그값을리턴한다. 제 1 장소개 1
SNMP Agent JEUS SNMP Agent 모듈은 SNMP를통해 JEUS 시스템을관리할때유용한컴포넌트이다. 웹애플리케이션서버 (Web Application Server, 이하 WAS) 의관리프토토콜로 SNMP를사용하기위해 JEUS JMX MBean 서버와통신하며 SNMP Manager 애플리케이션을지원한다. JEUS SNMP Agent는다음과같은프로토콜을제공한다. SNMPv1 SNMPv2 SNMPv3 JEUS SNMP Agent는 JEUS JMX와완전히통합된다. JEUS SNMP Agent가검색할수있는모든정보는 JEUS JMX API를통해서가능하다. JEUS JMX API를 JEUS Management System의 Second-Level 서비스컴포넌트로사용하여각각의 JEUS SNMP Agent는 JEUS 시스템의서버와같은 JVM 중의하나와연관되어있다. 예를들어 JMX Mbean은 EJB 엔진에 deploy된모든모듈에대한정보를관리하고, SNMP Manager는이정보 (JEUS SNMP OID) 를 EJB 엔진에해당하는 SNMP Agent에전송하여 deploy된모듈을알수있다. SNMP Agent 인스턴스는 JEUS JMX의프로토콜어댑터로운영되며, SNMP Manager 애플리케이션으로부터 SNMP 패킷을받아처리한다. 즉, 특정포트번호를계속 Listen하고있으면서 SNMP Manager의요청을기다린다. Listen Port는 WebAdmin을사용해설정하고, 설정하지않으면동작하지않는다. 모든 Agent 인스턴스들은같은방법으로동작한다. 그러므로각각의 Agent는 JEUS Management System 의모든정보를얻을수있다. 만일하나이상의 Agent 인스턴스가한머신에서기동하려면, 포트번호가달라야한다. 참고 JEUS SNMP Agent 를운영하려면 SNMP Adaptor Port 를반드시설정해야한다. SNMP Manager 애플리케이션 일반적으로 SNMP Manager는시스템, 특히통신장비를관리하는애플리케이션를나타낸다. J2EE에서 SNMP Manager는엔터프라이즈애플리케이션, 특히 WAS와같은미들웨어를관리한다. SNMP Manager 애플리케이션은 MIB를참조하여 SNMP Agent에서관리정보를요청한다. 애플리케이션은 MIB 파일을 Parsing해서정보의구조를분석하고, 관리자가읽고관리하기쉽게한다. 2 JEUS SNMP 안내서
제 2 장 SNMP Agent 설정 본장에서는 JEUS SNMP Agent 환경설정방법에대해서설명한다. 2.1. 개요 JEUS SNMP Agent는 J2EE의컴포넌트뿐만아니라엔터프라이즈메시지미들웨어의특징을가지고있다. JMX Management 1.1 스펙을완전하게제공한다. 일반적으로 NMS 프로토콜로사용되는 SNMPv1과 SNMPv2를제공한다. SNMPv1과 SNMPv2를사용하는모든 SNMP Manager들은 Agent를통해서 JEUS 내부정보를조회할수있다. SNMP Agent와보안통신을하기위한 SNMPv3를제공한다. 안정적으로 SNMP Agent와통신하기위해서는 SNMP Manager가필요하다. SNMPv3를사용하는모든 SNMP Manager들은안전하게정보를가져올수있다. JEUS SNMP Agent들은각각의 JEUS JVM( 서버 ) 에서실행할수있다. 2.2. SNMP Adaptor 설정 다음은 JEUS WebAdmin에서 SNMP Agent 환경을설정하는방법에대해서설명이다. SNMP Adaptor에관한설정들은동적변경을지원하지않기때문에설정을완료한후서버를재시작해야한다. 1. WebAdmin 메인화면에서설정을변경할서버이름을클릭하거나, 왼쪽메뉴에서 [Servers] 를선택한후서버목록화면에서변경할서버를선택한다. 서버환경을설정한후 [Resource] 탭에서 [Jmx Manager] 메뉴를선택하면 Jmx Manager 화면으로이동한다. 화면에 Jmx Connector 영역아래의 Snmp Adaptor 영역에서 SNMP Agent에관련한설정을변경할수있다. 설정을변경하기전에 [LOCK & EDIT] 버튼을클릭해서 Lock 설정을변경해야한다. 설정변경모드에대한자세한설명은 JEUS WebAdmin 안내서 의 2.4.4. Lock 기능 을참고한다. 제 2 장 SNMP Agent 설정 3
[ 그림 2.1] JMX Manager 설정화면 4 JEUS SNMP 안내서
2. Jmx Manager 설정화면에서 'Snmp Adaptor' 항목의체크박스를체크해서설정항목을활성화시키고 정보를설정한다. 설정이완료된후 [ 확인 ] 버튼을클릭해서설정정보를저장한다. [ 그림 2.2] SNMP Adaptor 설정 다음은설정항목에대한설명이다. 항목 Snmp Adaptor Port Snmp Version Snmp Max Packet Size Snmp Security Trap Demon 설명 SNMP 서버가 Listen하고있는 Port를설정한다. SNMP Manager는이포트번호를통해 Management 정보를요청할수있다. Agent가사용할 SNMP 버전을명시한다. 1, 2, 3의정수값으로설정한다. SNMP 패킷에대한최댓값을설정하며최소 256Bytes부터설정할수있다. 보안의적용여부를설정한다. 보안은 SNMPv3에서만설정이가능하다. 장애상황이발생했을때 TRAP 메시지를보낼서버를설정한다. 여러개설정이가능하며설정된모든 IP 주소 (Address) 로메시지를전송한 다. Pooling SNMP Agent 로많은요청이동시에들어오는경우 Thread Pool 을사용하여 처리하도록설정한다. Min, Max : Worker Thread 의최소, 최대개수 Period : Worker Thread 체크주기 제 2 장 SNMP Agent 설정 5
참고 Thread Pool의동작에대해서는 JEUS의여러다른컴포넌트에서공유하는설정이므로자세히설명하지않는다. 3. 설정정보를서버에반영하기위해서 [Activate Changes] 버튼을클릭한다. 6 JEUS SNMP 안내서
제 3 장 SNMP MIB 본장에서는 SNMP MIB 에대해설명한다. 3.1. 개요 사용자는모든 JEUS 서버의속성에접근할수있는데이것은 JEUS MIB 에정의되어있다. MIB 는표준 SNMP 의한부분이다. 참고 MIB 에대한자세한내용은 www.ietf.org 사이트를참조한다. 3.2. MIB 브라우징 JEUS MIB 파일은다음의디렉터리에존재하는 TMAX-JEUS7.0-MIB.mib 파일에정의되어있다. %JEUS_HOME%/lib/system 직접적으로 MIB 파일을볼수있으며 Appendix A. JEUS SNMP MIB 정보 에서 OID 속성값의매핑을확인할수있다. JEUS에서는 MIB 브라우저를제공하지않지만 3rd-Party MIB 브라우저를사용할수있고, SNMP 유틸리티벤더대부분에서 MIB 브라우저를제공한다. 3.3. 객체식별 (OID) OID(Object ID) 는관리되는객체를구별하기위해정수를나열한것으로 OID 트리구조를사용해서객체의경로를정의한다. OID는 MIB 파일에서정의한다. 각 OID는 JEUS MBean의각속성과매핑된다. JEUS SNMP Agent로특정한 OID 값을가진 SNMP 패킷을전송하면 OID와일치하는정보를리턴한다. 제 3 장 SNMP MIB 7
다음은 JEUS MIB 의 OID 트리이다. [ 그림 3.1] JEUS MIB 의 OID TmaxSoft 의엔터프라이즈 OID 는 1.3.6.1.4.1.14586 이다. 즉, 모든 JEUS 속성값의접두어는 1.3.6.1.4.1.14586.100 이된다. 예를들어 JEUS 서버버전속성값의 OID 는 1.3.6.1.4.1.14586.100.77.2 이 다. 3.4. JEUS SNMP OID 접미어 객체열을가져오는표준접미어는다음과같다. 접미어 0 1 설명 모든객체를가져온다. 전체객체중에서첫번째객체만가져온다. 예를들어 1.3.6.1.4.1.14586.100.9.1.1 OID에서 1.3.6.1.4.1.14586.100.9.1은 EJB 모듈의객체이름의속성을의미하고, 1.3.6.1.4.1.14586.100.9.1.1은첫번째 EJB 모듈의객체이름을의미한다. 그러므로 GET_NEXT 1.3.6.1.4.1.14586.100.9.1을사용하면 1.3.6.1.4.1.14586.100.9.1.1의결과가아닌 1.3.6.1.4.1.14586.100.9.2의값이리턴된다. 8 JEUS SNMP 안내서
JEUS SNMP Agent 는객체들의개수를리턴하는특별한 OID 접미어인 "9999" 를제공한다. 예를들어 GET 1.3.6.1.4.1.14586.100.9.1.9999 라고했을때 JEUS 에 10 개의 EJB 가 deploy 되어있다면 10 을리턴한다. 참고 모든 OID 트리에접미어가있는것이아니므로실제 OID 만탐색할수있다. 3.5. Static OID 와 Dynamic OID JEUS에서는다음과같이 2가지 OID 버전을지원한다. Static OID( 정적 OID) MIB 기반의정보만으로구성되는 OID이다. Static OID는동일한특성의객체에대해서동일한 OID가할당된다. 그래서하나의 OID에대해서해당객체가여러개존재할경우에는값들이목록으로리턴된다. 예를들어 JEUS에 2개의서버가실행되고있을때서버의이름에해당하는 OID로요청을하면, [server name1, server name2] 와같이목록이리턴된다. 동일한 OID에대해서여러객체가존재할경우해당객체에대한모니터링이쉽지않다. Dynamic OID( 동적 OID) Dynamic OID는객체에대한유일한값을부여하기위해서 MIB에의한정보로구성된 OID에 "." 으로구분된 32개의숫자를나열하여구성된다. ( 예 : [MIB 기반 OID].1.2.3.4.5.---. 31.32) 32자리의 ID는객체가생성될때 SNMP Agent에서동적으로생성된다. 각각의객체에 Dynamic OID 를부여하여특정객체에대한모니터링이용이하다. 예를들어서 2개의서버를운용중인 JEUS에각서버의 Thread Pool의최댓값과최솟값을알고싶을경우에 Static OID와 Dynamic OID의차이는다음과같다. Static OID의경우다음의형식으로된 MIB 기반의 OID에해당객체들의목록이리턴된다. [ 최댓값에해당하는 OID]=[ maximum, maximum' ], [ 최솟값에해당하는 OID]=[ minimum, minimum' ] 이때결과값의목록에서동일한위치의 maximum과 minimum이같은서버의값인지보장되지않기때문에같은서버에연관된값을알수없다 ( 하나의서버에해당하는값이첫번째나올수도있고, 두번째나올수도있다 ). Dynamic OID의경우다음의형식으로결과값이출력되기때문에특정객체에대한연관된값을정확하게알수있다. 제 3 장 SNMP MIB 9
[ 최댓값에해당하는 OID].[server1 의동적생성 OID]=maximum, [ 최솟값에해당하는 OID].[server1 의동적생성 OID]=minimum JEUS 에서 SNMP 는 Dynamic OID 를기본으로동작한다. Static OID 로 SNMP 를사용하고싶다면 JEUS 실행스크립트에서다음과같이실행한다. -Djeus.management.snmp.dynamic=false 10 JEUS SNMP 안내서
제 4 장 SNMP Manager 애플리케이션 본장에서는 JEUS SNMP Manager 애플리케이션의개발및설정방법에대해서설명한다. 4.1. 개요 SNMP(SNMPv1, SNMPv2, SNMPv3) 표준을준수하는 SNMP Manager 들은 JEUS SNMP 와함께동작할 수있다. 참고 SNMP 에대한자세한설명은 SNMP Management Framework 관련스펙을참조한다 (J2EE manage ment 1.1 스펙참조 ). 4.2. 간단한 SNMP 클라이언트프로그램 애플리케이션은필요에따라다양한형태를가지지만, 본절에서는 SNMP4J API 를사용한클라이언트프 로그램을설명한다. SNMP4J는오픈소스이며, J2SE 1.4 및이후버전에맞는 SNMP 구현체를제공하고있다. SNMP4J API 를이용한 SNMP 클라이언트애플리케이션은다음단계를수행해야한다. 1. PDU 타입을설정한다. 정보를가져올 SNMP 객체의 OID를설정하고, PDU 타입을설정한다. 2. target을설정한다. SNMP 정보를가져올 Target의주소및포트번호를설정하고, SNMP 버전을설정한다 (JEUS SNMP는 UDP를사용하기때문에 UDPAddress를사용 ). 3. SNMP 메시지객체를생성한다. 전송할메세지를생성한다. 4. 메세지전송및응답을수신한다. 메시지전송후응답을받는과정이다. 제 4 장 SNMP Manager 애플리케이션 11
예제 다음은 SNMP4J API를이용한 SNMP 클라이언트애플리케이션프로그램의예제이다. [ 예 4.1] <<SnmpclientSample.java>> import java.net.*; import java.util.*; import org.snmp4j.*; import org.snmp4j.pdu; import org.snmp4j.mp.snmpconstants; import org.snmp4j.event.responseevent; import org.snmp4j.transport.*; import org.snmp4j.smi.*; public class SnmpclientSample{ static int defaultport = 9999; static String defaultip = "127.0.0.1"; static String defaultoid = "1.3.6.1.4.1.14586.100.77.1"; static void testgetnext(string oid) throws java.io.ioexception { //1. Make Protocol Data Unit PDU pdu = new PDU(); pdu.add(new VariableBinding(new OID(defaultOID))); pdu.settype(pdu.getnext); //2. Make target CommunityTarget target = new CommunityTarget(); UdpAddress targetaddress = new UdpAddress(); targetaddress.setinetaddress(inetaddress.getbyname(defaultip)); targetaddress.setport(defaultport); target.setaddress(targetaddress); target.setcommunity(new OctetString("public")); target.setversion(snmpconstants.version1); //3. Make SNMP Message. Simple! Snmp snmp = new Snmp(new DefaultUdpTransportMapping()); //4. Send Message and Recieve Response snmp.listen(); ResponseEvent response = snmp.send(pdu, target); if (response.getresponse() == null) { System.out.println("Error: There is some problems."); } else { Vector variablebindings = response.getresponse().getvariablebindings(); for( int i = 0; i < variablebindings.size(); i++){ System.out.println(variableBindings.get(i)); 12 JEUS SNMP 안내서
} } } snmp.close(); public static void main(string[] args) throws java.io.ioexception { // get the SNMP port number if (args.length > 0) { defaultport = Integer.parseInt (args[0]); } System.out.println ("PORT : " + defaultport); // get the ip address of the machine that the SNMP agent runs on if (args.length > 1) { defaultip = args[1]; } System.out.println ("IP : " + defaultip); } } // get the OID number that you want to get the value of if (args.length > 2) { defaultoid = args[2]; } System.out.println ("OID : " + defaultoid); try { testgetnext(defaultoid); } catch (Exception ex) { System.out.println ("ex *** : " + ex); ex.printstacktrace (); } 참고 SNMP4J API 는 www.snmp4j.org 에서제공한다. SNMP4J API 에대한자세한내용은 SNMP4J 문서 를참고한다. 제 4 장 SNMP Manager 애플리케이션 13
제 5 장 SNMP 사용예제 본장에서는 JEUS SNMP Agent를기동하는방법과 SNMP 클라이언트애플리케이션이 JEUS로부터모니터링정보를가져오는방법에대해서예제를이용하여설명한다. 1. 4.2. 간단한 SNMP 클라이언트프로그램 에있는 SNMP 클라이언트예제프로그램을작성한후컴파일한다. 예제프로그램을컴파일하기위해서는 SNMP4J가필요하다. SNMP4J API는 www.snmp4j.org 에서구할수있다. 2. 제2장 SNMP Agent 설정 의설정항목을참고하여 SNMP Adaptor를설정한다. 예제프로그램은기본적으로 9999 포트를사용하게설정되어있으므로, SNMP Adaptor Port 항목을 '9999' 로설정한다. 3. 서버를재시작한다. SNMP Adaptor가사용중이라면서버가시작되는도중아래와같은로그를확인할수있다.... [2012.06.19 16:32:12][0] [adminserver-1] [SNMP-0004] The SNMP agent is ready on the port 9999.... 참고 본안내서에서는 JEUS 서버이름을 adminserver 로가정한다. 4. 1번항목에서작성한예제프로그램을실행한다. 예제프로그램을정상적으로실행하기위해서는클래스패스에서 SNMP4J를찾을수있게설정해놓아야한다. 아래실행예제는 '/home/user1/lib 아래에 SNMP4J.jar' 라는이름으로 SNMP4J가존재한다고가정하였다. user1@host1:~/java -classpath /home/user1/lib/snmp4j.jar SnmpclientSample PORT : 9999 IP : 127.0.0.1 OID : 1.3.6.1.4.1.14586.100.77.1 1.3.6.1.4.1.14586.100.2.1.32.55.49.98.52.101.102.97.49.101.57.100.97.101.99.97.53.55.99.50.53.99.99. 55.51.52.51.102.98.53.48.50.48.0 = [JEUS:JMXManager=adminServer,j2eeType=J2EEDomain,name=domain1] 참고 예제프로그램은기본적으로 127.0.0.1:9999 으로접속하게설정되어있다. 예제프로그램을실행할 때 'PORT', 'IP' 순으로인자를주고실행하면다른주소와포트번호로접속할수있다. 제 5 장 SNMP 사용예제 15
Appendix A. JEUS SNMP MIB 정보 본부록에서는 JEUS SNMP MIB 에대해자세히설명한다. A.1. 개요 SNMP Manager 개발자는개발하면서참조할 MIB 파일이필요하다. JEUS의 MIB 파일인 TMAX-JEUS7.0- MIB.mib 파일은다음의디렉터리에위치한다. %JEUS_HOME%/lib/system 이파일에서는 JEUS SNMP MIB 파일의내부적인부분과그것들의속성값그리고 OID의매핑을확인할수있다. A.2. OID 와속성값의매핑 TMAX-JEUS-MIB의이해를돕기위해서간단한 OID와속성값의 Table을제공한다. 매핑의포맷은다음과같다. [OID( 그룹이름 )] [ 속성 ( 속성이름 ] 모든 OID의공통적인 prefix인 1.3.6.1.4.1.14586.100. 은생략한다 (TmaxSoft의엔터프라이즈넘버는 14586이고, JEUS 제품의넘버는 100이다 ). JEUS 4.X 버전과달라진점은 MIB 파일에서중복되는 MIB 객체명이생성되는것을방지하기위해서포맷의 [ 속성 ( 속성이름 )] 의앞에 [OID( 그룹이름 )] 을입력한다. 다음은 OID와속성값의 Table이다. 2.1 j2eedomainobjectname 2.2 j2eedomainservers 2.3 j2eedomaintroubles 2.4 j2eedomainowntroubles 3.1 j2eeserverobjectname 3.2 j2eeserverserverversion 3.3 j2eeserverservervendor 3.4 j2eeserverjavavms 3.5 j2eeserverdeployedobjects 3.6 j2eeserverresources 3.8 j2eeserverjeusservices 3.9 j2eeserverengines 3.10 j2eeserverenginesfromdescriptor Appendix A. JEUS SNMP MIB 정보 17
3.15 j2eeserverdistributedmodules 3.17 j2eeservernodename 3.18 j2eeserverapppaths 3.19 j2eeservertroubles 3.20 j2eeserverowntroubles 4.1 jvmobjectname 4.2 jvmjavaversion 4.3 jvmjavavendor 4.4 jvmnode 4.6 jvmosname 4.7 jvmosversion 4.8 jvmallproperties 4.9 jvmtroubles 4.10 jvmowntroubles 4.101 jvmheapsize-upperbound 4.102 jvmheapsize-lowerbound 4.103 jvmheapsize-highwatermark 4.104 jvmheapsize-lowwatermark 4.105 jvmheapsize-current 4.111 jvmuptime-count 4.121 jvmtotalsize-highwatermark 4.122 jvmtotalsize-lowwatermark 4.123 jvmtotalsize-current 6.1 j2eeapplicationobjectname 6.2 j2eeapplicationdeploymentdescriptor 6.3 j2eeapplicationserver 6.4 j2eeapplicationmodules 6.5 j2eeapplicationmoduletype 6.6 j2eeapplicationapplicationtype 6.7 j2eeapplicationjeusdeploymentplan 6.8 j2eeapplicationtargetmoduleid 6.9 j2eeapplicationtroubles 6.10 j2eeapplicationowntroubles 8.1 appclientmoduleobjectname 8.2 appclientmoduledeploymentdescriptor 8.3 appclientmoduleserver 8.4 appclientmodulejavavms 8.5 appclientmoduleapplicationtype 8.6 appclientmodulemoduletype 8.7 appclientmodulejeusdeploymentplan 8.8 appclientmoduletargetmoduleid 8.9 appclientmoduletroubles 8.10 appclientmoduleowntroubles 9.1 ejbmoduleobjectname 9.2 ejbmoduledeploymentdescriptor 9.3 ejbmoduleserver 9.4 ejbmodulejavavms 18 JEUS SNMP 안내서
9.5 ejbmoduleejbs 9.6 ejbmoduleejbcount 9.7 ejbmoduleclientviewpath 9.8 ejbmodulejeusdeploymentplan 9.9 ejbmoduletargetmoduleid 9.10 ejbmodulemoduletype 9.11 ejbmoduleapplicationtype 9.12 ejbmoduletroubles 9.13 ejbmoduleowntroubles 11.1 messagedrivenbeanobjectname 11.2 messagedrivenbeantroubles 11.3 messagedrivenbeanowntroubles 11.101 messagedrivenbeancreatecount-count 11.111 messagedrivenbeanremovecount-count 11.121 messagedrivenbeanrequestcount-count 11.131 messagedrivenbeancommittedcount-count 11.141 messagedrivenbeanrolledbackcount-count 11.151 messagedrivenbeantimeoutrolledbackcount-count 11.161 messagedrivenbeanmessagecount-count 11.171 messagedrivenbeanactiveejbbeancount-highwatermark 11.172 messagedrivenbeanactiveejbbeancount-lowwatermark 11.173 messagedrivenbeanactiveejbbeancount-current 11.181 messagedrivenbeantotalejbbeancount-highwatermark 11.182 messagedrivenbeantotalejbbeancount-lowwatermark 11.183 messagedrivenbeantotalejbbeancount-current 12.1 entitybeanobjectname 12.2 entitybeantroubles 12.3 entitybeanowntroubles 12.101 entitybeancreatecount-count 12.111 entitybeanremovecount-count 12.121 entitybeanrequestcount-count 12.131 entitybeancommittedcount-count 12.141 entitybeanrolledbackcount-count 12.151 entitybeantimeoutrolledbackcount-count 12.161 entitybeanreadycount-highwatermark 12.162 entitybeanreadycount-lowwatermark 12.163 entitybeanreadycount-current 12.171 entitybeanpooledcount-highwatermark 12.172 entitybeanpooledcount-lowwatermark 12.173 entitybeanpooledcount-current 12.181 entitybeanautoremovedejbobjectcount-count 12.191 entitybeantotalejbbeancount-highwatermark 12.192 entitybeantotalejbbeancount-lowwatermark 12.193 entitybeantotalejbbeancount-current 12.201 entitybeanactiveejbbeancount-highwatermark 12.202 entitybeanactiveejbbeancount-lowwatermark 12.203 entitybeanactiveejbbeancount-current Appendix A. JEUS SNMP MIB 정보 19
12.211 entitybeantotalthreadcount-highwatermark 12.212 entitybeantotalthreadcount-lowwatermark 12.213 entitybeantotalthreadcount-current 12.221 entitybeanactivethreadcount-highwatermark 12.222 entitybeanactivethreadcount-lowwatermark 12.223 entitybeanactivethreadcount-current 12.231 entitybeantotalejbobjectcount-highwatermark 12.232 entitybeantotalejbobjectcount-lowwatermark 12.233 entitybeantotalejbobjectcount-current 12.241 entitybeanactiveejbobjectcount-highwatermark 12.242 entitybeanactiveejbobjectcount-lowwatermark 12.243 entitybeanactiveejbobjectcount-current 12.251 entitybeanpassivecount-highwatermark 12.252 entitybeanpassivecount-lowwatermark 12.253 entitybeanpassivecount-current 14.1 statefulsessionbeanobjectname 14.2 statefulsessionbeantroubles 14.3 statefulsessionbeanowntroubles 14.101 statefulsessionbeancreatecount-count 14.111 statefulsessionbeanremovecount-count 14.121 statefulsessionbeanrequestcount-count 14.131 statefulsessionbeancommittedcount-count 14.141 statefulsessionbeanrolledbackcount-count 14.151 statefulsessionbeantimeoutrolledbackcount-count 14.161 statefulsessionbeanmethodreadycount-highwatermark 14.162 statefulsessionbeanmethodreadycount-lowwatermark 14.163 statefulsessionbeanmethodreadycount-current 14.171 statefulsessionbeanpassivecount-highwatermark 14.172 statefulsessionbeanpassivecount-lowwatermark 14.173 statefulsessionbeanpassivecount-current 14.181 statefulsessionbeanautoremovedejbobjectcount-count 14.191 statefulsessionbeantotalejbbeancount-highwatermark 14.192 statefulsessionbeantotalejbbeancount-lowwatermark 14.193 statefulsessionbeantotalejbbeancount-current 14.201 statefulsessionbeanactiveejbbeancount-highwatermark 14.202 statefulsessionbeanactiveejbbeancount-lowwatermark 14.203 statefulsessionbeanactiveejbbeancount-current 14.211 statefulsessionbeantotalthreadcount-highwatermark 14.212 statefulsessionbeantotalthreadcount-lowwatermark 14.213 statefulsessionbeantotalthreadcount-current 14.221 statefulsessionbeanactivethreadcount-highwatermark 14.222 statefulsessionbeanactivethreadcount-lowwatermark 14.223 statefulsessionbeanactivethreadcount-current 14.231 statefulsessionbeantotalejbobjectcount-highwatermark 14.232 statefulsessionbeantotalejbobjectcount-lowwatermark 14.233 statefulsessionbeantotalejbobjectcount-current 14.241 statefulsessionbeanactiveejbobjectcount-highwatermark 20 JEUS SNMP 안내서
14.242 statefulsessionbeanactiveejbobjectcount-lowwatermark 14.243 statefulsessionbeanactiveejbobjectcount-current 14.251 statefulsessionbeanfiledbsizecount-highwatermark 14.252 statefulsessionbeanfiledbsizecount-lowwatermark 14.253 statefulsessionbeanfiledbsizecount-current 15.1 statelesssessionbeanobjectname 15.2 statelesssessionbeantroubles 15.3 statelesssessionbeanowntroubles 15.101 statelesssessionbeancreatecount-count 15.111 statelesssessionbeanremovecount-count 15.121 statelesssessionbeanrequestcount-count 15.131 statelesssessionbeancommittedcount-count 15.141 statelesssessionbeanrolledbackcount-count 15.151 statelesssessionbeantimeoutrolledbackcount-count 15.161 statelesssessionbeanmethodreadycount-highwatermark 15.162 statelesssessionbeanmethodreadycount-lowwatermark 15.163 statelesssessionbeanmethodreadycount-current 15.171 statelesssessionbeantotalejbbeancount-highwatermark 15.172 statelesssessionbeantotalejbbeancount-lowwatermark 15.173 statelesssessionbeantotalejbbeancount-current 15.181 statelesssessionbeanactiveejbbeancount-highwatermark 15.182 statelesssessionbeanactiveejbbeancount-lowwatermark 15.183 statelesssessionbeanactiveejbbeancount-current 15.191 statelesssessionbeantotalthreadcount-highwatermark 15.192 statelesssessionbeantotalthreadcount-lowwatermark 15.193 statelesssessionbeantotalthreadcount-current 15.201 statelesssessionbeanactivethreadcount-highwatermark 15.202 statelesssessionbeanactivethreadcount-lowwatermark 15.203 statelesssessionbeanactivethreadcount-current 16.1 webmoduleobjectname 16.2 webmoduledeploymentdescriptor 16.3 webmoduleserver 16.4 webmodulejavavms 16.5 webmoduleservlets 16.6 webmodulecontextgroupobjectname 16.7 webmodulecontextgroup 16.8 webmodulerealdocbase 16.9 webmodulejeusdeploymentplan 16.10 webmoduletargetmoduleid 16.11 webmodulemoduletype 16.12 webmoduleapplicationtype 16.13 webmoduleautoreload 16.14 webmoduletroubles 16.15 webmoduleowntroubles 16.101 webmodulerequestcount-count 16.111 webmoduleallsessionssize-count 16.121 webmoduleactivesessionssize-count Appendix A. JEUS SNMP MIB 정보 21
16.131 webmodulepassivatesessionssize-count 16.141 webmodulelocalsessionssize-count 16.151 webmoduleprocessingtime-count 17.1 servletobjectname 17.2 servletservletinfo 17.3 servletaverageexecutiontime 17.4 servlettroubles 17.5 servletowntroubles 17.101 servletservicetime-count 17.102 servletservicetime-maxtime 17.103 servletservicetime-mintime 17.104 servletservicetime-totaltime 18.1 resourceadaptermoduleobjectname 18.2 resourceadaptermoduledeploymentdescriptor 18.3 resourceadaptermoduleserver 18.4 resourceadaptermodulejavavms 18.6 resourceadaptermodulemoduletype 18.7 resourceadaptermoduleapplicationtype 18.8 resourceadaptermodulejeusdeploymentplan 18.9 resourceadaptermoduletargetmoduleid 18.10 resourceadaptermodulemin 18.11 resourceadaptermodulemax 18.12 resourceadaptermodulestep 18.13 resourceadaptermodulekeepalivetime 18.14 resourceadaptermodulereleasetimeout 18.15 resourceadaptermodulerejecttimeout 18.16 resourceadaptermoduletroubles 18.17 resourceadaptermoduleowntroubles 19.1 resourceadapterobjectname 19.2 resourceadaptertroubles 19.3 resourceadapterowntroubles 21.1 javamailresourceobjectname 21.2 javamailresourceproperty 21.3 javamailresourcetroubles 21.4 javamailresourceowntroubles 22.1 jcaresourceobjectname 22.4 jcaresourcecminfo 22.5 jcaresourcetroubles 22.6 jcaresourceowntroubles 23.1 jcaconnectionfactoryobjectname 23.2 jcaconnectionfactorycminfo 23.3 jcaconnectionfactorymin 23.4 jcaconnectionfactorymax 23.5 jcaconnectionfactorymaxwaiter 23.6 jcaconnectionfactorymaxdisposablecount 23.7 jcaconnectionfactorywaittrial 23.8 jcaconnectionfactorywaitingtime 22 JEUS SNMP 안내서
23.9 jcaconnectionfactorypooledtimeout 23.10 jcaconnectionfactorydissociationtimeout 23.11 jcaconnectionfactoryinvalidationtimeout 23.13 jcaconnectionfactoryskipmatching 23.14 jcaconnectionfactoryusewrapper 23.15 jcaconnectionfactorytroubles 23.16 jcaconnectionfactoryowntroubles 24.1 jcamanagedconnectionfactoryobjectname 24.2 jcamanagedconnectionfactorytroubles 24.3 jcamanagedconnectionfactoryowntroubles 25.1 jdbcresourceobjectname 25.2 jdbcresourcejdbcdatasources 25.3 jdbcresourcecpinfo 25.4 jdbcresourcetroubles 25.5 jdbcresourceowntroubles 25.101 jdbcresourceconnectionpools-createcount-count 25.111 jdbcresourceconnectionpools-closecount-count 25.121 jdbcresourceconnectionpools-poolsize-upperbound 25.122 jdbcresourceconnectionpools-poolsize-lowerbound 25.123 jdbcresourceconnectionpools-poolsize-highwatermark 25.124 jdbcresourceconnectionpools-poolsize-lowwatermark 25.125 jdbcresourceconnectionpools-poolsize-current 25.131 jdbcresourceconnectionpools-freepoolsize-upperbound 25.132 jdbcresourceconnectionpools-freepoolsize-lowerbound 25.133 jdbcresourceconnectionpools-freepoolsize-highwatermark 25.134 jdbcresourceconnectionpools-freepoolsize-lowwatermark 25.135 jdbcresourceconnectionpools-freepoolsize-current 25.141 jdbcresourceconnectionpools-waitingthreadcount-highwatermark 25.142 jdbcresourceconnectionpools-waitingthreadcount-lowwatermark 25.143 jdbcresourceconnectionpools-waitingthreadcount-current 25.161 jdbcresourceconnectionpools-waittime-count 25.162 jdbcresourceconnectionpools-waittime-maxtime 25.163 jdbcresourceconnectionpools-waittime-mintime 25.164 jdbcresourceconnectionpools-waittime-totaltime 25.171 jdbcresourceconnectionpools-usetime-count 25.172 jdbcresourceconnectionpools-usetime-maxtime 25.173 jdbcresourceconnectionpools-usetime-mintime 25.174 jdbcresourceconnectionpools-usetime-totaltime 25.181 jdbcresourceconnectionpools-jdbcdatasource 26.1 jdbcdatasourceobjectname 26.2 jdbcdatasourcejdbcdriver 26.3 jdbcdatasourceconfig 26.4 jdbcdatasourcecpinfo 26.6 jdbcdatasourcetroubles 26.7 jdbcdatasourceowntroubles 26.101 jdbcdatasourcecreatecount-count 26.111 jdbcdatasourceclosecount-count Appendix A. JEUS SNMP MIB 정보 23
26.121 jdbcdatasourcepoolsize-upperbound 26.122 jdbcdatasourcepoolsize-lowerbound 26.123 jdbcdatasourcepoolsize-highwatermark 26.124 jdbcdatasourcepoolsize-lowwatermark 26.125 jdbcdatasourcepoolsize-current 26.131 jdbcdatasourcefreepoolsize-upperbound 26.132 jdbcdatasourcefreepoolsize-lowerbound 26.133 jdbcdatasourcefreepoolsize-highwatermark 26.134 jdbcdatasourcefreepoolsize-lowwatermark 26.135 jdbcdatasourcefreepoolsize-current 26.141 jdbcdatasourcewaitingthreadcount-highwatermark 26.142 jdbcdatasourcewaitingthreadcount-lowwatermark 26.143 jdbcdatasourcewaitingthreadcount-current 26.151 jdbcdatasourcereconnectcount-count 26.161 jdbcdatasourcewaittime-count 26.162 jdbcdatasourcewaittime-maxtime 26.163 jdbcdatasourcewaittime-mintime 26.164 jdbcdatasourcewaittime-totaltime 26.171 jdbcdatasourceusetime-count 26.172 jdbcdatasourceusetime-maxtime 26.173 jdbcdatasourceusetime-mintime 26.174 jdbcdatasourceusetime-totaltime 27.1 jdbcdriverobjectname 27.2 jdbcdrivertroubles 27.3 jdbcdriverowntroubles 28.1 jmsresourceobjectname 28.3 jmsresourceclusterinfo 28.5 jmsresourcejmsconnectionfactoryresourcenames 28.6 jmsresourcejmsdestinationresourcenames 28.7 jmsresourcejmsclientresourcenames 28.9 jmsresourcefreememory 28.10 jmsresourcetotalmemory 28.11 jmsresourcejmsconnectionfactoryresources 28.12 jmsresourcetroubles 28.13 jmsresourceowntroubles 28.101 jmsresourceconnections-sessions-messagecount-count 28.111 jmsresourceconnections-sessions-pendingmessagecount-count 28.121 jmsresourceconnections-sessions-expiredmessagecount-count 28.131 jmsresourceconnections-sessions-messagewaittime-count 28.132 jmsresourceconnections-sessions-messagewaittime-maxtime 28.133 jmsresourceconnections-sessions-messagewaittime-mintime 28.134 jmsresourceconnections-sessions-messagewaittime-totaltime 28.141 jmsresourceconnections-sessions-durablesubscriptioncount-count 28.151 jmsresourceconnections-sessions-producers-destination 28.161 jmsresourceconnections-sessions-producers-messagecount-count 28.171 jmsresourceconnections-sessions-producers-pendingmessagecount-count 28.181 jmsresourceconnections-sessions-producers-expiredmessagecount-count 24 JEUS SNMP 안내서
28.191 jmsresourceconnections-sessions-producers-messagewaittime-count 28.192 jmsresourceconnections-sessions-producers-messagewaittime-maxtime 28.193 jmsresourceconnections-sessions-producers-messagewaittime-mintime 28.194 jmsresourceconnections-sessions-producers-messagewaittime-totaltime 28.201 jmsresourceconnections-sessions-consumers-origin 28.211 jmsresourceconnections-sessions-consumers-messagecount-count 28.221 jmsresourceconnections-sessions-consumers-pendingmessagecount-count 28.231 jmsresourceconnections-sessions-consumers-expiredmessagecount-count 28.241 jmsresourceconnections-sessions-consumers-messagewaittime-count 28.242 jmsresourceconnections-sessions-consumers-messagewaittime-maxtime 28.243 jmsresourceconnections-sessions-consumers-messagewaittime-mintime 28.244 jmsresourceconnections-sessions-consumers-messagewaittime-totaltime 29.1 jndiresourceobjectname 29.2 jndiresourcetroubles 29.3 jndiresourceowntroubles 30.1 jtaresourceobjectname 30.2 jtaresourceaverageexecutiontime 30.3 jtaresourceactivetimeout 30.4 jtaresourcepreparetimeout 30.5 jtaresourcepreparedtimeout 30.6 jtaresourcecommittimeout 30.7 jtaresourcerecoverytimeout 30.8 jtaresourceuncompletedtimeout 30.9 jtaresourceheuristicrollback 30.10 jtaresourceresolution 30.11 jtaresourcethreadpool 30.12 jtaresourcetroubles 30.13 jtaresourceowntroubles 30.101 jtaresourceactivecount-count 30.111 jtaresourcecommittedcount-count 30.121 jtaresourcerolledbackcount-count 30.131 jtaresourcetimeoutcount-count 30.141 jtaresourcetimeoutrolledbackcount-count 30.151 jtaresourceactivetimeoutcount-count 30.161 jtaresourcepreparetimeoutcount-count 30.171 jtaresourcepreparedtimeoutcount-count 30.181 jtaresourcecommittimeoutcount-count 30.191 jtaresourceheuristicrolledbackcount-count 30.201 jtaresourceexecutiontime-count 30.202 jtaresourceexecutiontime-maxtime 30.203 jtaresourceexecutiontime-mintime 30.204 jtaresourceexecutiontime-totaltime 32.1 urlresourceobjectname 32.2 urlresourceurlinfo 32.3 urlresourcetroubles 32.4 urlresourceowntroubles 33.1 jmsconnectionresourceobjectname Appendix A. JEUS SNMP MIB 정보 25
33.2 jmsconnectionresourcejmssessionresourcenames 33.3 jmsconnectionresourcetroubles 33.4 jmsconnectionresourceowntroubles 33.101 jmsconnectionresourcesessions-messagecount-count 33.111 jmsconnectionresourcesessions-pendingmessagecount-count 33.121 jmsconnectionresourcesessions-expiredmessagecount-count 33.131 jmsconnectionresourcesessions-messagewaittime-count 33.132 jmsconnectionresourcesessions-messagewaittime-maxtime 33.133 jmsconnectionresourcesessions-messagewaittime-mintime 33.134 jmsconnectionresourcesessions-messagewaittime-totaltime 33.141 jmsconnectionresourcesessions-durablesubscriptioncount-count 33.151 jmsconnectionresourcesessions-producers-destination 33.161 jmsconnectionresourcesessions-producers-messagecount-count 33.171 jmsconnectionresourcesessions-producers-pendingmessagecount-count 33.181 jmsconnectionresourcesessions-producers-expiredmessagecount-count 33.191 jmsconnectionresourcesessions-producers-messagewaittime-count 33.192 jmsconnectionresourcesessions-producers-messagewaittime-maxtime 33.193 jmsconnectionresourcesessions-producers-messagewaittime-mintime 33.194 jmsconnectionresourcesessions-producers-messagewaittime-totaltime 33.201 jmsconnectionresourcesessions-consumers-origin 33.211 jmsconnectionresourcesessions-consumers-messagecount-count 33.221 jmsconnectionresourcesessions-consumers-pendingmessagecount-count 33.231 jmsconnectionresourcesessions-consumers-expiredmessagecount-count 33.241 jmsconnectionresourcesessions-consumers-messagewaittime-count 33.242 jmsconnectionresourcesessions-consumers-messagewaittime-maxtime 33.243 jmsconnectionresourcesessions-consumers-messagewaittime-mintime 33.244 jmsconnectionresourcesessions-consumers-messagewaittime-totaltime 33.251 jmsconnectionresourcesessioncount-count 33.261 jmsconnectionresourceconnectionconsumercount-count 33.271 jmsconnectionresourceconnectionconsumers-origin 33.281 jmsconnectionresourceconnectionconsumers-messagecount-count 33.291 jmsconnectionresourceconnectionconsumers-pendingmessagecount-count 33.301 jmsconnectionresourceconnectionconsumers-expiredmessagecount-count 33.401 jmsconnectionresourceconnectionconsumers-messagewaittime-count 33.402 jmsconnectionresourceconnectionconsumers-messagewaittime-maxtime 33.403 jmsconnectionresourceconnectionconsumers-messagewaittime-mintime 33.404 jmsconnectionresourceconnectionconsumers-messagewaittime-totaltime 34.1 jmsconsumerresourceobjectname 34.2 jmsconsumerresourcedestination 34.3 jmsconsumerresourcedestinationresourceobjectname 34.4 jmsconsumerresourcedurablesubscriberresourceobjectname 34.5 jmsconsumerresourcesendtimeavg 34.6 jmsconsumerresourcetroubles 34.7 jmsconsumerresourceowntroubles 34.101 jmsconsumerresourceorigin 34.111 jmsconsumerresourcemessagecount-count 34.121 jmsconsumerresourcependingmessagecount-count 26 JEUS SNMP 안내서
34.131 jmsconsumerresourceexpiredmessagecount-count 34.141 jmsconsumerresourcemessagewaittime-count 34.142 jmsconsumerresourcemessagewaittime-maxtime 34.143 jmsconsumerresourcemessagewaittime-mintime 34.144 jmsconsumerresourcemessagewaittime-totaltime 34.151 jmsconsumerresourcesendtime-count 34.152 jmsconsumerresourcesendtime-maxtime 34.153 jmsconsumerresourcesendtime-mintime 34.154 jmsconsumerresourcesendtime-totaltime 35.1 jmsproducerresourceobjectname 35.3 jmsproducerresourcedestinationresourceobjectname 35.4 jmsproducerresourcedurablesubscriberresourceobjectname 35.5 jmsproducerresourcesendtimeavg 35.6 jmsproducerresourcedestination 35.7 jmsproducerresourcetroubles 35.8 jmsproducerresourceowntroubles 35.111 jmsproducerresourcemessagecount-count 35.121 jmsproducerresourcependingmessagecount-count 35.131 jmsproducerresourceexpiredmessagecount-count 35.141 jmsproducerresourcemessagewaittime-count 35.142 jmsproducerresourcemessagewaittime-maxtime 35.143 jmsproducerresourcemessagewaittime-mintime 35.144 jmsproducerresourcemessagewaittime-totaltime 35.151 jmsproducerresourcesendtime-count 35.152 jmsproducerresourcesendtime-maxtime 35.153 jmsproducerresourcesendtime-mintime 35.154 jmsproducerresourcesendtime-totaltime 36.1 jmssessionresourceobjectname 36.2 jmssessionresourcejmsendpointconsumernames 36.3 jmssessionresourcetroubles 36.4 jmssessionresourceowntroubles 36.101 jmssessionresourcemessagecount-count 36.111 jmssessionresourcependingmessagecount-count 36.121 jmssessionresourceexpiredmessagecount-count 36.131 jmssessionresourcemessagewaittime-count 36.132 jmssessionresourcemessagewaittime-maxtime 36.133 jmssessionresourcemessagewaittime-mintime 36.134 jmssessionresourcemessagewaittime-totaltime 36.141 jmssessionresourcedurablesubscriptioncount-count 36.151 jmssessionresourceproducers-destination 36.161 jmssessionresourceproducers-messagecount-count 36.171 jmssessionresourceproducers-pendingmessagecount-count 36.181 jmssessionresourceproducers-expiredmessagecount-count 36.191 jmssessionresourceproducers-messagewaittime-count 36.192 jmssessionresourceproducers-messagewaittime-maxtime 36.193 jmssessionresourceproducers-messagewaittime-mintime 36.194 jmssessionresourceproducers-messagewaittime-totaltime Appendix A. JEUS SNMP MIB 정보 27
36.201 jmssessionresourceconsumers-origin 36.211 jmssessionresourceconsumers-messagecount-count 36.221 jmssessionresourceconsumers-pendingmessagecount-count 36.231 jmssessionresourceconsumers-expiredmessagecount-count 36.241 jmssessionresourceconsumers-messagewaittime-count 36.242 jmssessionresourceconsumers-messagewaittime-maxtime 36.243 jmssessionresourceconsumers-messagewaittime-mintime 36.244 jmssessionresourceconsumers-messagewaittime-totaltime 36.251 jmssessionresourcesendtime-count 36.252 jmssessionresourcesendtime-maxtime 36.253 jmssessionresourcesendtime-mintime 36.254 jmssessionresourcesendtime-totaltime 36.261 jmssessionresourcecommitcount-count 36.271 jmssessionresourcerollbackcount-count 36.281 jmssessionresourcetransactioncount-count 41.1 ejbenginemoobjectname 41.2 ejbenginemoblockthreadcount 41.3 ejbenginemostats 41.4 ejbenginemotroubles 41.5 ejbenginemoowntroubles 51.1 contextgroupmoobjectname 51.2 contextgroupmowebmodules 51.3 contextgroupmoweblisteners 51.4 contextgroupmosessioncontainer 51.5 contextgroupmosessiontimeout 51.6 contextgroupmotroubles 51.7 contextgroupmoowntroubles 52.1 dbconnectionpoolmoobjectname 52.2 dbconnectionpoolmoblockduration 52.3 dbconnectionpoolmodbconnectionpoolinfo-dbconnectioninfo 52.4 dbconnectionpoolmodbconnectionpoolinfo-currentpoolsize 52.5 dbconnectionpoolmodbconnectionpoolinfo-freeconnectionnum 52.6 dbconnectionpoolmodbconnectionpoolinfo-activeconnectionnum 52.7 dbconnectionpoolmodbconnectionpoolinfo-connectionpoolid 52.8 dbconnectionpoolmodbconnectionpoolinfo-connectionpoolingrule 52.9 dbconnectionpoolmodbconnectionpoolinfo-connectionurl 52.10 dbconnectionpoolmodbconnectionpoolinfo-driverclassname 52.11 dbconnectionpoolmodbconnectionpoolinfo-connectionargs 52.12 dbconnectionpoolmodbconnectionpoolinfo-initcapacity 52.13 dbconnectionpoolmodbconnectionpoolinfo-maxcapacity 52.14 dbconnectionpoolmodbconnectionpoolinfo-incrementrate 52.15 dbconnectionpoolmodbconnectionpoolinfo-maxidletime 52.17 dbconnectionpoolmodbconnectionpoolinfo-dynamicincrement 52.18 dbconnectionpoolmodbconnectionpoolinfo-connectiontimeout 52.19 dbconnectionpoolmodbconnectionpoolinfo-logindelay 52.20 dbconnectionpoolmodbconnectionpoolinfo-closedelay 52.21 dbconnectionpoolmodbconnectionpoolinfo-closelongactiveconnection 28 JEUS SNMP 안내서
52.22 dbconnectionpoolmodbconnectionpoolinfo-maxactivetime 52.23 dbconnectionpoolmodbconnectionpoolinfo-maxusecount 52.24 dbconnectionpoolmodbconnectionpoolinfo-checkquery 52.26 dbconnectionpoolmomin 52.28 dbconnectionpoolmomax 52.30 dbconnectionpoolmostep 52.31 dbconnectionpoolmodbconnectionpoolinfo-maxalivetime 52.33 dbconnectionpoolmomaxidletime 52.35 dbconnectionpoolmomaxalivetime 52.37 dbconnectionpoolmodynamicincrement 52.38 dbconnectionpoolmogetconnectiontimeout 52.39 dbconnectionpoolmocloselongactiveconnection 52.40 dbconnectionpoolmomaxactivetime 52.42 dbconnectionpoolmomaxusecount 52.43 dbconnectionpoolmotroubles 52.44 dbconnectionpoolmoowntroubles 52.101 dbconnectionpoolmoactivethreadcount-count 52.111 dbconnectionpoolmoblockthreadcount-count 52.121 dbconnectionpoolmoallthreadcount-count 53.1 threadpoolmoobjectname 53.3 threadpoolmomin 53.5 threadpoolmomax 53.7 threadpoolmostep 53.9 threadpoolmomaxidletime 53.11 threadpoolmomaxqueue 53.13 threadpoolmomaxwaitqueue 53.14 threadpoolmomaxthreadactivetime 53.15 threadpoolmonotifythreshold 53.16 threadpoolmorestartthreshold 53.17 threadpoolmotroubles 53.18 threadpoolmoowntroubles 53.101 threadpoolmoactivethreadcount-count 53.111 threadpoolmoblockthreadcount-count 53.121 threadpoolmoallthreadcount-count 53.131 threadpoolmomaxthreadcount-count 53.141 threadpoolmowaitqueuecount-count 54.1 webenginemoobjectname 54.2 webenginemocontextgroups 54.3 webenginemoconfiginfo 54.4 webenginemoserverstatus 54.5 webenginemodbconnectionpool 54.6 webenginemocontextgroupnames 54.7 webenginemosessioncontainer 54.8 webenginemowebtconnectiongroup 54.9 webenginemoconfiguration 54.11 webenginemocheckthreadpool 54.13 webenginemocheckclassreload Appendix A. JEUS SNMP MIB 정보 29
54.15 webenginemochecksession 54.17 webenginemocheckdbconnectionpool 54.18 webenginemotroubles 54.19 webenginemoowntroubles 54.101 webenginemofreememory-count 54.111 webenginemototalmemory-count 55.1 weblistenermoobjectname 55.2 weblistenermothreadpools 55.3 weblistenermotype 55.4 weblistenermoport 55.6 weblistenermoreadtimeout 55.8 weblistenermoreconnecttimeout 55.10 weblistenermopostdatareadtimeout 55.11 weblistenermotroubles 55.12 weblistenermoowntroubles 56.1 webtconnectiongroupmoobjectname 56.2 webtconnectiongroupmotroubles 56.3 webtconnectiongroupmoowntroubles 56.101 webtconnectiongroupmototalconnectioncount-count 56.111 webtconnectiongroupmofreeconnectioncount-count 56.121 webtconnectiongroupmousedconnectioncount-count 61.1 jmsclientresourceobjectname 61.2 jmsclientresourcehostaddress 61.3 jmsclientresourceport 61.4 jmsclientresourcejmsconnectionresourcenames 61.6 jmsclientresourcenamepartstring 61.7 jmsclientresourcetroubles 61.8 jmsclientresourceowntroubles 61.101 jmsclientresourceconnectioncount-count 62.1 jmsqueueconnectionfactoryresourceobjectname 62.3 jmsqueueconnectionfactoryresourcename 62.4 jmsqueueconnectionfactoryresourcetroubles 62.5 jmsqueueconnectionfactoryresourceowntroubles 63.1 jmsqueuedestinationresourceobjectname 63.2 jmsqueuedestinationresourcename 63.3 jmsqueuedestinationresourceexportname 63.4 jmsqueuedestinationresourcetype 63.8 jmsqueuedestinationresourcedestination 63.9 jmsqueuedestinationresourcejmsconsumerresourcenames 63.10 jmsqueuedestinationresourceremainingmessages 63.11 jmsqueuedestinationresourcetroubles 63.12 jmsqueuedestinationresourceowntroubles 63.101 jmsqueuedestinationresourcemessagecount-count 63.111 jmsqueuedestinationresourcependingmessagecount-count 63.121 jmsqueuedestinationresourceexpiredmessagecount-count 63.122 jmsqueuedestinationresourcemessagewaittime-count 63.123 jmsqueuedestinationresourcemessagewaittime-maxtime 30 JEUS SNMP 안내서
63.124 jmsqueuedestinationresourcemessagewaittime-mintime 63.125 jmsqueuedestinationresourcemessagewaittime-totaltime 63.131 jmsqueuedestinationresourcesendtime-count 63.132 jmsqueuedestinationresourcesendtime-maxtime 63.133 jmsqueuedestinationresourcesendtime-mintime 63.134 jmsqueuedestinationresourcesendtime-totaltime 64.1 jmsdurablesubscriberresourceobjectname 64.2 jmsdurablesubscriberresourcename 64.3 jmsdurablesubscriberresourceclientid 64.5 jmsdurablesubscriberresourceremainingmessages 64.6 jmsdurablesubscriberresourceselector 64.7 jmsdurablesubscriberresourcejmsconsumerresourcename 64.8 jmsdurablesubscriberresourcetroubles 64.9 jmsdurablesubscriberresourceowntroubles 65.1 jmstopicconnectionfactoryresourceobjectname 65.3 jmstopicconnectionfactoryresourcename 65.4 jmstopicconnectionfactoryresourcetroubles 65.5 jmstopicconnectionfactoryresourceowntroubles 66.1 jmstopicdestinationresourceobjectname 66.2 jmstopicdestinationresourcename 66.3 jmstopicdestinationresourceexportname 66.4 jmstopicdestinationresourcetype 66.6 jmstopicdestinationresourcejmsdurablesubscriberresourcenames 66.8 jmstopicdestinationresourcedestination 66.9 jmstopicdestinationresourcejmsconsumerresourcenames 66.10 jmstopicdestinationresourcetroubles 66.11 jmstopicdestinationresourceowntroubles 66.101 jmstopicdestinationresourcemessagecount-count 66.111 jmstopicdestinationresourcependingmessagecount-count 66.121 jmstopicdestinationresourceexpiredmessagecount-count 66.122 jmstopicdestinationresourcemessagewaittime-count 66.123 jmstopicdestinationresourcemessagewaittime-maxtime 66.124 jmstopicdestinationresourcemessagewaittime-mintime 66.125 jmstopicdestinationresourcemessagewaittime-totaltime 66.131 jmstopicdestinationresourcesendtime-count 66.132 jmstopicdestinationresourcesendtime-maxtime 66.133 jmstopicdestinationresourcesendtime-mintime 66.134 jmstopicdestinationresourcesendtime-totaltime 71.1 threadpoolobjectname 71.2 threadpoolthreadoperationinfo 71.4 threadpoolmax 71.6 threadpoolperiod 71.7 threadpooltroubles 71.8 threadpoolowntroubles 77.1 jeusmanagerobjectname 77.2 jeusmanagerserverversion 77.3 jeusmanagerservervendor Appendix A. JEUS SNMP MIB 정보 31
77.4 jeusmanagerjavavms 77.5 jeusmanagerjeusservices 77.6 jeusmanagerj2eeservers 77.9 jeusmanagernodesfromdescriptor 77.10 jeusmanageralivenodenames 77.11 jeusmanagerjeushome 77.12 jeusmanagerpid 77.13 jeusmanagertroubles 77.14 jeusmanagerowntroubles 77.15 jeusmanagerj2eeservernames 81.1 webserverinfoobjectname 81.2 webserverinfonodeinfo 81.3 webserverinfosvrallinfo 81.4 webserverinfotroubles 81.5 webserverinfoowntroubles 81.101 webserverinfosvrcount-count 81.111 webserverinfoexeccount-count 81.121 webserverinfoavgtime-count 81.122 webserverinfoavgtime-maxtime 81.123 webserverinfoavgtime-mintime 81.124 webserverinfoavgtime-totaltime 92.1 externalwebtdatasourceobjectname 92.2 externalwebtdatasourcetype 92.3 externalwebtdatasourceport 92.4 externalwebtdatasourcewebtproperties 92.5 externalwebtdatasourceexportname 92.6 externalwebtdatasourcehostaddr 92.8 externalwebtdatasourcelevel 92.9 externalwebtdatasourcetroubles 92.10 externalwebtdatasourceowntroubles 92.101 externalwebtdatasourcecreatecount-count 92.111 externalwebtdatasourceclosecount-count 92.121 externalwebtdatasourcepoolsize-upperbound 92.122 externalwebtdatasourcepoolsize-lowerbound 92.123 externalwebtdatasourcepoolsize-highwatermark 92.124 externalwebtdatasourcepoolsize-lowwatermark 92.125 externalwebtdatasourcepoolsize-current 92.131 externalwebtdatasourcefreepoolsize-upperbound 92.132 externalwebtdatasourcefreepoolsize-lowerbound 92.133 externalwebtdatasourcefreepoolsize-highwatermark 92.134 externalwebtdatasourcefreepoolsize-lowwatermark 92.135 externalwebtdatasourcefreepoolsize-current 92.141 externalwebtdatasourcewaitingthreadcount-highwatermark 92.142 externalwebtdatasourcewaitingthreadcount-lowwatermark 92.143 externalwebtdatasourcewaitingthreadcount-current 92.151 externalwebtdatasourcereconnectcount-count 92.161 externalwebtdatasourcetotalconnectioncount-count 32 JEUS SNMP 안내서
92.171 externalwebtdatasourcefreeconnectioncount-count 92.181 externalwebtdatasourceactiveconnectioncount-count 101.1 subjectmoobjectname 101.2 subjectmosubjectnames 101.3 subjectmotroubles 101.4 subjectmoowntroubles 102.1 securitydomainmoobjectname 102.2 securitydomainmodomainname 102.3 securitydomainmopolicys 102.4 securitydomainmosubjects 102.5 securitydomainmotroubles 102.6 securitydomainmoowntroubles 102.7 securitydomainmodescription 103.1 policymoobjectname 103.2 policymopolicyids 103.3 policymotroubles 103.4 policymoowntroubles 104.1 securitymoobjectname 104.2 securitymocurrentdomain 104.3 securitymosecuritydomains 104.4 securitymotroubles 104.5 securitymoowntroubles 105.1 jmsenginemojmsresource 105.2 jmsenginemoenginename 105.3 jmsenginemoobjectname 105.4 jmsenginemotroubles 105.5 jmsenginemoowntroubles A.3. TMAX-JEUS7.0-MIB.mib TMAX-JEUS-MIB DEFINITIONS ::= BEGIN IMPORTS enterprises, Counter FROM RFC1155-SMI OBJECT-TYPE FROM RFC-1212 DisplayString FROM RFC1213-MIB TRAP-TYPE FROM RFC-1215; tmax OBJECT IDENTIFIER ::= { enterprises 14586 } jeus OBJECT IDENTIFIER ::= { tmax 100 } ---------- Appendix A. JEUS SNMP MIB 정보 33
-- SNMP moniroting objects in each MBeans ---------- -- j2eedomain j2eedomain OBJECT IDENTIFIER ::= { jeus 2 } j2eedomainobjectname OBJECT-TYPE "JMX-standard MBean object name" ::= { j2eedomain 1 } j2eedomainservers OBJECT-TYPE SYNTAX SEQUENCE OF DisplayString "JMX-standard object names of the J2EE Servers that this domain includes" ::= { j2eedomain 2 } j2eedomaintroubles OBJECT-TYPE ::= { j2eedomain 3 } j2eedomainowntroubles OBJECT-TYPE ::= { j2eedomain 4 } -- j2eeserver j2eeserver OBJECT IDENTIFIER ::= { jeus 3 } 34 JEUS SNMP 안내서
j2eeserverobjectname OBJECT-TYPE "JMX-standard MBean object name" ::= { j2eeserver 1 } j2eeserverserverversion OBJECT-TYPE "the version of JEUS that is being used" ::= { j2eeserver 2 } j2eeserverservervendor OBJECT-TYPE "the J2EE platform vendor of this J2EE Server" ::= { j2eeserver 3 } j2eeserverjavavms OBJECT-TYPE SYNTAX SEQUENCE OF DisplayString "JMX-standard object names of the JVMs on which J2EE Server i s running" ::= { j2eeserver 4 } j2eeserverdeployedobjects OBJECT-TYPE SYNTAXSEQUENCE OF DisplayString "JMX-standard object names of the J2EE Modules that are deployed on this J2EE Server" ::= { j2eeserver 5 } j2eeserverresources OBJECT-TYPE SYNTAX SEQUENCE OF DisplayString "JMX-standard object names of the J2EE Resources that can be used in this J2EE Server" ::= { j2eeserver 6 } j2eeserverjeusservices OBJECT-TYPE SYNTAX SEQUENCE OF DisplayString Appendix A. JEUS SNMP MIB 정보 35
::= { j2eeserver 8 } j2eeserverengines OBJECT-TYPE SYNTAX SEQUENCE OF DisplayString ::= { j2eeserver 9 } j2eeserverenginesfromdescriptor OBJECT-TYPE SYNTAX SEQUENCE OF DisplayString ::= { j2eeserver 10 } j2eeserverdistributedmodules OBJECT-TYPE SYNTAX SEQUENCE OF DisplayString ::= { j2eeserver 15 } j2eeservernodename OBJECT-TYPE ::= { j2eeserver 17 } j2eeserverapppaths OBJECT-TYPE ::= { j2eeserver 18 } j2eeservertroubles OBJECT-TYPE ::= { j2eeserver 19 } 36 JEUS SNMP 안내서
j2eeserverowntroubles OBJECT-TYPE ::= { j2eeserver 20 } -- jvm jvm OBJECT IDENTIFIER ::= { jeus 4 } jvmobjectname OBJECT-TYPE "JMX-standard MBean object name" ::= { jvm 1 } jvmjavaversion OBJECT-TYPE "the system property value of java.version" ::= { jvm 2 } jvmjavavendor OBJECT-TYPE "the system property value of java.vendor" ::= { jvm 3 } jvmnode OBJECT-TYPE "the host name and ip address of the machine on which this JVM is running" ::= { jvm 4 } jvmosname OBJECT-TYPE Appendix A. JEUS SNMP MIB 정보 37