Sun ONE Application Server 7, Update 1 ¹ÜÀíÔ±Ö¸ÄÏ |
¼àÊÓ Sun ONE Application Server±¾ module ÌṩÁËÓйؼàÊÓµÄÐÅÏ¢£¬Í¬Ê±½éÉÜÁËÔÚ Sun ONE Application Server ÖÐʹÓõļòµ¥ÍøÂç¹ÜÀíÐÒé (SNMP) µÄÌØÕ÷ºÍ¹¦ÄÜ¡£
±¾ module °üÀ¨ÒÔÏÂÖ÷Ì⣺
- ¹ØÓÚ¼àÊÓ Sun ONE Application Server
- ʹÓà CLI ÌáÈ¡¼àÊÓÊý¾Ý
- ʹÓà CLI ¹ÜÀíÊÂÎñ·þÎñ
- ʹÓà HTTP ·þÎñÖÊÁ¿
- ¹ØÓÚ SNMP
- ÉèÖÃ SNMP
- ÆôÓúÍÆô¶¯ SNMP Ö÷´úÀí
¹ØÓÚ¼àÊÓ Sun ONE Application Server
Äú¿ÉÒÔͨ¹ýÊÕ¼¯ÏµÍ³ÉϹؼüÊý¾ÝµãµÄ»î¶¯Í³¼ÆÊý¾ÝÀ´¼àÊÓ Sun ONE Application Server¡£Í³¼ÆÊý¾ÝÏÔʾÁË·þÎñÆ÷´¦ÀíµÄÇëÇóµÄÊýÄ¿ÒÔ¼°ÕâЩÇëÇóµÄ´¦Àí×´¿ö¡£Äú¿ÉÒԲ鿴µ¥¸öÐéÄâ·þÎñÆ÷µÄijЩͳ¼ÆÊý¾Ý£¬Ò²¿ÉÒԲ鿴Õû¸öÓ¦ÓóÌÐò·þÎñÆ÷ʵÀýµÄͳ¼ÆÊý¾Ý¡£Äú¿ÉÒÔʹÓà asadmin ¹«ÓóÌÐò»ò SNMP À´¼àÊÓ Sun ONE Application Server¡£
±¾½Ú°üÀ¨ÒÔÏÂÖ÷Ì⣺
ͳ¼ÆÊý¾Ý
´ó¶àÊý Sun ONE Application Server Ó¦ÓóÌÐò×é¼þºÍ×Óϵͳ£¨°üÀ¨ HTTP ·þÎñÆ÷£©¶¼»áʼÖÕÆôÓÃͳ¼ÆÊý¾ÝµÄÊÕ¼¯£¬Òò¶ø²»ÐèÒªÈκÎÆôÓù¦ÄÜ¡£µ«ÊÇ£¬Ä³Ð©Í³¼ÆÊý¾Ý½öµ±ÔÚ×ÓϵͳÉÏÃ÷È·ÆôÓÃÁ˼àÊÓ£¬»ò½öµ±ÆôÓÃÁËÏà¹Ø¹¦ÄÜʱ²Å»á½øÐÐÊÕ¼¯¡£ÕâЩͳ¼ÆÊý¾Ý°üÀ¨ÒÔÏÂÊý¾Ýµã£º
- EJB ·½·¨µÄͳ¼ÆÊý¾Ý
- »î¶¯ÊÂÎñ
- Á¬½Ó£¨½öµ±ÆôÓÃÁË·þÎñÖÊÁ¿£©
- DNS£¨½öµ±ÆôÓÃÁË DNS ¸ßËÙ»º´æ£©
¿ÉÒÔͨ¹ý¹ÜÀí½çÃæÆôÓöÔÓ¦ÓóÌÐò×Óϵͳ»ò×é¼þµÄ¼àÊÓ¹¦ÄÜ£¬Èç¡°¼àÊÓÓ¦ÓóÌÐò×é¼þºÍ×Óϵͳ¡±ÖÐËùÊö¡£
Èç¹û·þÎñÆ÷¼àÊÓÆ÷±¨¸æ¸Ã·þÎñÆ÷´¦ÀíµÄÇëÇó¹ý¶à£¬Äú¿ÉÄÜÐèÒªµ÷Õû·þÎñÆ÷ÅäÖûòϵͳµÄÍøÂçÄںˡ£Óйص÷Õû·þÎñÆ÷ÅäÖõÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡¶Sun ONE Application Server Performance Tuning and Sizing Guide¡·¡£
SNMP
Sun ONE Application Server ͨ¹ýËüµÄÐÅÏ¢ÊÕ¼¯¹¤¾ß£¬Ê¹Óüòµ¥ÍøÂç¹ÜÀíÐÒé (SNMP) ÌṩÍøÂç¹ÜÀíÐÅÏ¢£¬¸ÃÐÒéÓÃÓÚÔÚÍøÂ緶ΧÄÚ½»»»¹ÜÀíºÍ¼àÊÓÐÅÏ¢¡£³ÆΪ´úÀíµÄ³ÌÐòʹÓà SNMP ¼àÊÓÍøÂçÉϵĸ÷ÖÖÉ豸£¨¼¯ÏßÆ÷¡¢Â·ÓÉÆ÷¡¢ÍøÇŵȵȣ©¡£ÁíÒ»¸ö³ÌÐò¸ºÔð´Ó´úÀí´¦ÊÕ¼¯Êý¾Ý¡£ÓɼàÊÓ²Ù×÷´´½¨µÄÊý¾Ý¿â³ÆΪ¹ÜÀíÐÅÏ¢¿â (MIB)¡£ÕâЩÊý¾ÝÓÃÓÚ¼ì²éÍøÂçÉϵÄËùÓÐÉ豸ÊÇ·ñÕý³£ÔËÐС£
ʹÓà SNMP Ö»ÄܼàÊÓ HTTP ·þÎñÆ÷£»¶øʹÓÃÃüÁîÐнçÃæ (CLI) ¿ÉÒÔ¼àÊÓËùÓÐ×é¼þºÍϵͳ¡£
ÓÐ¹Ø SNMP µÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°¹ØÓÚ SNMP¡±ºÍ¡°ÉèÖà SNMP¡±¡£
¼àÊÓ HTTP ·þÎñÆ÷
ĬÈÏÇé¿öÏ£¬HTTP ·þÎñÆ÷µÄ¼àÊÓ±»ÆôÓã¬ÕâÒâζ×Ų»±ØרÃÅÆôÓÃËü¡£HTTP ·þÎñÆ÷µÄ¼àÊÓ»ùÓÚÒ»¸ö XML Îļþ£¬¿ÉÒÔ×÷Ϊһ¸ö°üº¬Èý¸ö¿É¼àÊÓÊôÐÔµÄÊôÐÔ¼¯Ê¹Óà asadmin ÃüÁî½øÐзÃÎÊ¡£¡°¿É¼àÊ HTTP ·þÎñÆ÷ÔªËØ¡±ºÍ¡°¿É¼àÊ HTTP ·þÎñÆ÷ÊôÐÔ¡±ÃèÊöÁ˸à XML ÎļþµÄÔªËØ¡¢×ÓÔªËغÍÊôÐÔ¡£
×¢Òâ ʹÓà SNMP Ö»ÄܼàÊÓ HTTP ·þÎñÆ÷µÄͳ¼ÆÊý¾Ý¡£¶øʹÓÃÃüÁîÐнçÃæ¿ÉÒÔ»ñµÃ Sun ONE Application Server ËùÓÐ×Óϵͳ£¨°üÀ¨ HTTP ·þÎñÆ÷£©µÄͳ¼ÆÊý¾Ý¡£
ÓйØʹÓà asadmin µÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°Ê¹ÓÃÃüÁîÐнçÃ桱¡£
¼àÊÓÓ¦ÓóÌÐò×é¼þºÍ×Óϵͳ
Sun ONE Application Server ÖеÄijЩ×Óϵͳ»ò×é¼þ²»ÐèÒªÆôÓüàÊÓ£¬ÒòΪϵͳʼÖÕ»áÊÕ¼¯Ä³Ð©Ïà¹ØµÄͳ¼ÆÊý¾Ý¡£ÀýÈ磬¿ÉÒÔÆôÓûò½ûÓÃÓ¦ÓóÌÐò×é¼þ£¨ÀýÈçÈÝÆ÷£©µÄ¼àÊÓ¡£ÆôÓüàÊÓʱ£¬³ýÁËʼÖÕÊÕ¼¯µÄͳ¼ÆÊý¾ÝÍ⣬»¹»áÊÕ¼¯ÓйØËùÓÐ EJB ·½·¨µÄÆäËüͳ¼ÆÊý¾Ý¡£¶Ô JDBC Á¬½Ó³ØµÄ¼àÊÓʼÖÕ±»ÆôÓá£Á¬½Ó³ØÔÚµÚÒ»´Î·ÃÎÊʱ±»³õʼ»¯£¬Äú¿ÉÒÔÔÚÕâÖ®ºóµÄÈκÎʱ¿Ì¼àÊÓÏà¹Øͳ¼ÆÊý¾Ý¡£
ÓйؿɼàÊÓÊý¾ÝµãµÄÍêÕûÁÐ±í£¬Çë²Î¼û¡°¿É¼àÊÓµÄÊôÐÔÃû¡±¡£
Äú¿ÉÒÔͨ¹ý¹ÜÀí½çÃæ»òÃüÁîÐнçÃæ (CLI) Ϊѡ¶¨µÄÓ¦ÓóÌÐò×é¼þºÍ×ÓϵͳÆôÓüàÊÓ¡£ÀýÈ磬Ҫ´Ó CLI Ϊ EJB ÈÝÆ÷ÆôÓüàÊÓ£¬ÇëÔÚÖն˴°¿ÚÖмüÈëÒÔÏÂÃüÁ
set server1.ejb-container.monitoringEnabled=true
reconfig server1ÆäÖÐ server1 ÊÇʵÀýÃû¡£
ÔÚ¹ÜÀí½çÃæÉϵġ°Containers¡±½ÚµãÏ¿ÉÒÔ·ÃÎÊÏàͬµÄ¹¦ÄÜ¡£
±¾½Ú°üÀ¨ÒÔÏÂÖ÷Ì⣺
¼àÊÓÈÝÆ÷×Óϵͳ
ÆôÓà EJB ÈÝÆ÷µÄ¼àÊÓʱ£¬½«ÊÕ¼¯ÓëËùÓÐʵÌå bean¡¢×´Ì¬»á»° bean ¼°ÎÞ״̬»á»° bean µÄ·½·¨Ïà¹ØµÄͳ¼ÆÊý¾Ý¡£ÕâЩͳ¼ÆÊý¾Ý°üÀ¨£º
- ´íÎó×ÜÊý
- µ÷ÓÃ×ÜÊý
- ³É¹¦×ÜÊý
- ÒÔºÁÃë¼ÆµÄÖ´ÐÐʱ¼ä£¨¶ÔÓÚ·½·¨µÄ×îºóÒ»´Îµ÷Óã©
ÈÝÆ÷×ÓϵͳµÄËùÓÐÆäËüͳ¼ÆÊý¾ÝʼÖջᱻÊÕ¼¯¡£Ä³Ð©¼àÊÓµÄÊý¾Ýµã°üÀ¨ÓëÒÔÏÂÄÚÈÝÏà¹ØµÄͳ¼ÆÊý¾Ý£º
- ³ØÖÐÎÞ״̬ bean µÄ³õʼ¡¢×îС¼°×î´óÊýÄ¿
- ¸ßËÙ»º´æÖÐ״̬»á»° bean ºÍʵÌå bean µÄ×îС¼°Ê×Ñ¡ÊýÄ¿
- ¸ßËÙ»º´æÖÐÎÞ״̬»á»° bean µÄ×îС¼°Ê×Ñ¡ÊýÄ¿
- ÒÑ´´½¨ºÍÒÑÆÆ»µµÄ bean µÄÊýÄ¿
- ÆäËüÏà¹Øͳ¼ÆÊý¾Ý
¼àÊÓ ORB ·þÎñ
¶ÔÓÚ ORB ·þÎñ£¬¼àÊÓµÄÊý¾Ýµã°üÀ¨Îª ORB Á¬½ÓºÍ ORB Ï̳߳ØÊÕ¼¯µÄͳ¼ÆÊý¾Ý¡£ORB ͳ¼ÆÊý¾ÝʼÖջᱻÊÕ¼¯£¬Òò´Ë²»±ØΪ ORB ·þÎñÆôÓüàÊÓ¡£
¼àÊÓÊÂÎñ·þÎñ
¶ÔÓÚ Java ÊÂÎñ·þÎñ (JTS) ·þÎñ£¬¼àÊÓµÄÊý¾Ýµã°üÀ¨£º
- Íê³ÉµÄÊÂÎñ×ÜÊý
- »Ø¹öµÄÊÂÎñ×ÜÊý
- ÕýÔÚÖ´ÐеÄÊÂÎñ×ÜÊý
- ÕýÔÚÖ´ÐеÄÊÂÎñÁбí
ÓйØÏêϸÐÅÏ¢£¬Çë²Î¼û¡°Ê¹Óà CLI ¹ÜÀíÊÂÎñ·þÎñ¡±¡£
·þÎñÖÊÁ¿ (QOS)
·þÎñÖÊÁ¿ÊÇָΪ·þÎñÆ÷ʵÀýÐéÄâ·þÎñÆ÷Àà»òÐéÄâ·þÎñÆ÷ÉèÖõÄÐÔÄÜÏÞÖÆ¡£ÀýÈ磬Èç¹ûÄúÊÇ Internet ·þÎñÌṩÉÌ (ISP)£¬Ôò¿ÉÄÜÏ£Íû¸ù¾ÝËùÌṩµÄ´ø¿íÊÕÈ¡²»Í¬µÄÐéÄâ·þÎñÆ÷·ÑÓá£Äú¿ÉÒÔÔÚÁ½·½Ãæ½øÐÐÏÞÖÆ£º´ø¿í´óСºÍÁ¬½ÓÊýÄ¿¡£
Sun ONE Application Server ÌṩµÄ·þÎñÖÊÁ¿ÐÅÏ¢ÓÃÓÚ¸ù¾ÝÒÔϸ÷ÏîÈ·¶¨·þÎñÆ÷ÔÚÔËÐÐʱµÄЧÂÊ£º
- Æô¶¯Ê±¼ä
- ·þÎñÆ÷ͨÐÅÁ¿ºÍͨÐÅÁ¿¶Ô´ø¿íµÄÓ°Ïì
- ʵʱÊý¾ÝÓ뾲̬Êý¾Ý·ÖÎö
- ÆäËüÊý¾ÝÔªËØ
ÓйØÏêϸÐÅÏ¢£¬Çë²Î¼û¡°Ê¹Óà CLI ¹ÜÀíÊÂÎñ·þÎñ¡±¡£
ʹÓà CLI ÌáÈ¡¼àÊÓÊý¾Ý
ʹÓà asadmin ÃüÁÄú¿ÉÒÔͨ¹ýÃüÁîÐнçÃæ (CLI) ʹÓà list ºÍ get ÃüÁîÌáÈ¡¼àÊÓÊý¾Ý¡£
×¢Òâ set ÃüÁî½öÓÃÓÚÉèÖÃÊÂÎñ·þÎñµÄ¼àÊÓ£¬È硰ʹÓà CLI ¹ÜÀíÊÂÎñ·þÎñ¡±ÖÐËùÊö¡£
±¾½Ú°üÀ¨ÒÔÏÂÖ÷Ì⣺
list --monitor ÃüÁî
list ÃüÁîÌṩÓйص±Ç°¼àÊÓµÄÖ¸¶¨·þÎñÆ÷ʵÀýÃû³ÆµÄÓ¦ÓóÌÐò×é¼þºÍ×ÓϵͳµÄÐÅÏ¢¡£Ê¹ÓôËÃüÁÄú¿ÉÒԲ鿴ij¸ö·þÎñÆ÷ʵÀýµÄ¿É¼àÊÓ×é¼þºÍ×Ó×é¼þ¡£
ʾÀý£º
asadmin> list --monitor server1
·µ»ØÒÔÏÂÆôÓÃÁ˼àÊÓµÄÓ¦ÓóÌÐò×é¼þºÍ×ÓϵͳÁÐ±í£º
iiop-service
transaction-service
application.converter
application.myApp
http-serverÄú»¹¿ÉÒÔÁгöÖ¸¶¨µÄ·þÎñÆ÷ʵÀýÖе±Ç°Ëù¼àÊÓµÄÓ¦ÓóÌÐò¡£µ±Ê¹Óà get ÃüÁî´Óij¸öÓ¦ÓóÌÐòÖлñÈ¡Ìض¨µÄ¼àÊÓͳ¼ÆÊý¾Ýʱ£¬Õâ»áºÜÓÐÓá£
ʾÀý£º
asadmin> list --monitor server1.application
·µ»Ø£º
converter
myAppÓйظü¸´ÔÓµÄʾÀý£¬Çë²Î¼û¡°Petstore ʾÀý¡±¡£
get --monitor ÃüÁî
´ËÃüÁî¼ìË÷ÒÔϼàÊÓÐÅÏ¢£º
- ×é¼þ»ò×ÓϵͳÖмàÊÓµÄËùÓÐÊôÐÔ
- ×é¼þ»ò×ÓϵͳÖмàÊÓµÄÌض¨ÊôÐÔ
Èç¹ûÌض¨×é¼þ»ò×ÓϵͳÖв»´æÔÚËùÇëÇóµÄÊôÐÔ£¬½«·µ»ØÒ»¸ö´íÎó¡£ÀàËƵأ¬Èç¹û×é¼þ»ò×ÓϵͳÖÐËùÇëÇóµÄÌض¨ÊôÐÔ´¦Óڷǻ״̬£¬Ò²»á·µ»ØÒ»¸ö´íÎó¡£
ÓйØʹÓà get ÃüÁîµÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°CLI Ãû³ÆÓ³É䡱¡£
ʾÀý 1
³¢ÊÔ»ñȡij¸ö×ÓϵͳµÄij¸öÌض¨ÊôÐÔµÄËùÓÐÊôÐÔ£º
asadmin> get --monitor server1.iiop-service.orb.system.orb-connection.*
total-inbound-connections=1
total-outbound-connections=1ʾÀý 2
³¢ÊÔ»ñȡij¸ö J2EE Ó¦ÓóÌÐòµÄËùÓÐÊôÐÔ£º
asadmin> get --monitor server1.application.converter.*
Attribute name(s) not found
¸Ã J2EE Ó¦ÓóÌÐò¼¶±ðÉÏûÓб©Â¶¿É¼àÊÓµÄÊôÐÔ£¬Òò´Ë¸ÃÃüÁîʧ°Ü¡£
ʾÀý 3
³¢ÊÔ»ñȡij¸ö×ÓϵͳµÄij¸öÌض¨ÊôÐÔ£º
asadmin> get --monitor server1.transaction-service.inflight-tx
Attribute name = inflight-tx Value = No active transaction found.
ʾÀý 4
³¢ÊÔ»ñȡij¸ö×ÓϵͳÊôÐÔÖеÄij¸öδ֪ÊôÐÔ£º
asadmin> get --monitor server1.iiop-service.orb.system.orb-connection.bad-name
Could not get the attribute
Execution failed for the command:get --monitor server1.iiop-service.orb-connection.bad-name
CLI Ãû³ÆÓ³Éä
Sun ONE Application Server ʹÓÃÊ÷½á¹¹À´¸ú×ٿɼàÊӵĶÔÏó¡£Ê÷ÖеÄÿ¸ö½Úµã¶¼¾ßÓÐÃû³ÆºÍÀàÐÍ¡£Èç¹ûÊǵ¥ÔªËØÀàÐÍ£¬ÔòÈÎÒ⸸½ÚµãÏÂÖ»ÄÜÓÐÒ»¸ö¸ÃÀàÐ͵Ľڵ㡣ÓйØÊ÷ÖнڵãÀàÐ͵ÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°¿É¼àÊӵĶÔÏóÀàÐÍ¡±¡£
Ê÷Öеĸù¶ÔÏóÓÉ Sun ONE Application Server ʵÀýÃû±íʾ¡£ÀýÈ磬ÃûΪ server1 µÄʵÀýµÄ¸ù¼àÊÓ¶ÔÏóΪ£º
server1
È»ºó£¬ËùÓÐ×Ó¶ÔÏó½«Ê¹Óõã×Ö·û (.) ×÷Ϊ·Ö¸ô·û½øÐÐÖ¸¶¨¡£Èç¹û×Ó½ÚµãÊǵ¥ÔªËØÀàÐÍ£¬ÔòÖ»ÐèҪʹÓüàÊÓ¶ÔÏóÀàÐÍÀ´Ö¸¶¨¶ÔÏó£»·ñÔò£¬ÐèҪʹÓà type.name Ãû³Æ¸ñʽÀ´Ö¸¶¨¶ÔÏó¡£
ÀýÈ磬http-server ÊÇÒ»ÖÖÓÐЧµÄ¿É¼àÊÓ¶ÔÏóÀàÐÍ£¬²¢ÇÒÊǵ¥ÔªËØÀàÐÍ¡£ÒªÖ¸¶¨±íʾʵÀý server1 µÄ http-server µÄµ¥ÔªËØÀàÐÍ×ӽڵ㣬¸ÃÃû³ÆΪ£º
server1.http-server
ÔÙ±ÈÈ磬application ÊÇÒ»ÖÖÓÐЧµÄ¿É¼àÊÓ¶ÔÏóÀàÐÍ£¬²¢ÇÒÊǷǵ¥ÔªËØÀàÐÍ¡£ÒªÖ¸¶¨±íʾӦÓóÌÐò Petstore µÄ·Çµ¥ÔªËØÀàÐÍ×ӽڵ㣬¸ÃÃû³ÆΪ£º
server1.application.petstore
CLI Ãû³Æ»¹¿ÉÒÔÖ¸¶¨¿É¼àÊÓ¶ÔÏóÖеÄÌض¨ÊôÐÔ¡£ÀýÈ磬http-server ¾ßÓÐÒ»¸öÃûΪ summary µÄ¿É¼àÊÓÊôÐÔ¡£ÒÔÏÂÃû³ÆÖ¸¶¨Á˸à summary ÊôÐÔ£º
server1.http-server.summary
¼àÊÓ¶ÔÏóËù±©Â¶µÄÊôÐÔÃûûÓй̶¨µÄÃüÃû¹æ·¶¡£
ͨ³£Çé¿öÏÂÄú²»ÐèÒªÖªµÀÒªÔÚ CLI ÖÐʹÓõÄÓÐЧÃû³Æ£¬Äú¿ÉÒÔͨ¹ýʹÓà list ÃüÁî¼ì²é¿ÉÓõĿɼàÊÓ¶ÔÏó£¬Ò²¿ÉÒÔʹÓôøÓÐͨÅä·û²ÎÊýµÄ get ÃüÁîÔò¼ì²éÈÎÒâ¿É¼àÊÓ¶ÔÏóµÄËùÓпÉÓÃÊôÐÔ¡£
ÒÔÏÂʾÀýÏÔʾÁËijЩ¿Í»§»úÃû³ÆÓ³ÉäÇé¿ö£º
Petstore ʾÀý
Óû§Òª¼ì²é¶Ôij·½·¨µÄµ÷ÓôÎÊý£¬¸Ã·½·¨Î»ÓÚ²¿ÊðÔÚÃûΪ server1 µÄ Sun ONE Application Server ʵÀýÉ쵀 Petstore Ó¦ÓóÌÐòÖС£ÕâÀïͬʱʹÓÃÁË list ºÍ get ÃüÁÒÔ·ÃÎʸ÷½·¨µÄËùÏ£ÍûµÄͳ¼ÆÊý¾Ý¡£
- ÒÔ¶àģʽµ÷Óà CLI¡£
- ÉèÖÃһЩÓÐÓõĻ·¾³±äÁ¿£¬ÒÔ±ÜÃâʹÓÃÿ¸öÃüÁîʱ¶¼ÊäÈëÕâЩ±äÁ¿£º
asadmin>export AS_ADMIN_USER=admin AS_ADMIN_PASSWORD=admin123
asadmin>export AS_ADMIN_HOST=localhost AS_ADMIN_PORT=4848
- ÁгöʵÀý server1 µÄ¿É¼àÊÓ×é¼þ£º
asadmin>list --monitor server1
Êä³öΪ£º
iiop-service
transaction-service
application.CometEJB
application.ConverterApp
application.petstore
http-server
resources¿É¼àÊÓ×é¼þÁбí°üÀ¨ iiop-service¡¢http-server, transaction-service¡¢resources ÒÔ¼°ËùÓв¿Ê𣨼°ÆôÓ㩵ÄÓ¦ÓóÌÐò¡£
- Áгö Petstore Ó¦ÓóÌÐòÖеĿɼàÊÓ×Ó×é¼þ£¨¿ÉÒÔÓà -m ´úÌæ --monitor£©£º
asadmin>list -m server1.application.petstore
Êä³öΪ£º
ejb-module.signon-ejb_jar
ejb-module.catalog-ejb_jar
ejb-module.uidgen-ejb_jar
ejb-module.customer-ejb_jar
ejb-module.petstore-ejb_jar
ejb-module.AsyncSenderJAR_jar
ejb-module.cart-ejb_jar
- Áгö Petstore Ó¦ÓóÌÐòµÄ EJB Ä£¿é sigon-ejb_jar ÖеĿɼàÊÓ×Ó×é¼þ£º
asadmin>list -m server1.application.petstore.ejb-module.signon-ejb_jar
Êä³öΪ£º
entity-bean.UserEJB
stateless-session-bean.SignOnEJB
- Áгö Petstore Ó¦ÓóÌÐòµÄ EJB Ä£¿é sigon-ejb_jar µÄʵÌå bean UserEJB ÖеĿɼàÊÓ×Ó×é¼þ£º
asadmin>list -m server1.application.petstore.ejb-module.signon-ejb_jar.entity-bean.UserEJB
Êä³öΪ£º
bean-method.create0
bean-method.findByPrimaryKey1
bean-method.remove2
bean-method.getUserName3
bean-method.setPassword4
bean-method.getPassword5
bean-method.matchPassword6
bean-method.remove7
bean-method.isIdentical8
bean-method.getEJBLocalHome9
bean-method.getPrimaryKey10
bean-pool
bean-cache
- ÁгöʵÌå bean UserEJB£¨Î»ÓÚ Petstore Ó¦ÓóÌÐòµÄ EJB Ä£¿é sigon-ejb_jar ÖУ©µÄ·½·¨ getUserName3 µÄ¿É¼àÊÓ×Ó×é¼þ£º
asadmin>list -m server1.application.petstore.ejb-module.signon-ejb_jar.entity-bean.UserEJB.bean-method.getUserNam e3
Êä³öΪ£º
No monitorable entities for element
server1.application.petstore.ejb-module.signon-ejb_jar.entity-bean.UserEJB.bean-method.getUserNam e3
- ¸Ã·½·¨Ã»ÓпɼàÊÓµÄ×Ó×é¼þ¡£»ñÈ¡·½·¨ getUserName3 µÄËùÓпɼàÊÓµÄͳ¼ÆÊý¾Ý¡£
asadmin>get -m server1.application.petstore.ejb-module. signon-ejb_jar.entity-bean.UserEJB.bean-method.getUserName3.*
method-name = public abstract java.lang.String com.sun.j2ee.blueprints.signon.user.ejb.UserLocal.getUserName()
total-num-errors = 0
total-num-success = 2
execution-time-millis = 1
total-num-calls = 2
- ÄúÒ²¿ÉÒÔ»ñÈ¡Ìض¨µÄͳ¼ÆÊý¾Ý£¬ÀýÈçÖ´ÐÐʱ¼ä¡£
asadmin>get -m server1.application.petstore.ejb-module. signon-ejb_jar.entity-bean.UserEJB.bean-method.getUserName3.execution-time-millis
execution-time-millis = 1¿É¼àÊӵĶÔÏóÀàÐÍ
ÓÃÓÚ¼àÊӵĶÔÏóÊ÷°üº¬¶à¸ö½Úµã¡£½ÚµãÊǶÔÏóÊ÷ÖеÄÌض¨ÌõÄ¿£¬ÓÉËüµÄÀàÐÍ¡¢Ãû³Æ¼°¸¸½ÚµãΨһ±êʶ¡£Ä³Ð©½ÚµãÀàÐÍÊǵ¥ÔªËØÀàÐÍ£¬ÕâÒâζ×ÅÔÚ¸¸½ÚµãÏÂÖ»ÄÜ´æÔÚÒ»¸ö¸ÃÀàÐ͵Ľڵ㡣µ¥ÔªËØÀàÐ͵Ľڵ㲢²»ÐèÒªÃû³Æ¡£
·Çµ¥ÔªËØÀàÐ͵ĽڵãÐèÒªÃû³Æ¡£¡°ÊµÀýÃû¡±ÁÐÃèÊöÁË¿ÉÄܵÄÃû³Æ¿Õ¼ä¡£
ÏÂ±í°´ÕÕ¸÷ÖÖ½ÚµãÀàÐÍÖ®¼äµÄ¸¸×Ó¹ØϵÃèÊöÁËÊ÷½á¹¹²¢ÁгöÁËijЩ½ÚµãÀàÐ͵ÄÃû³Æ¿Õ¼ä¡£
¿É¼àÊÓµÄÊôÐÔÃû
²¢·Çÿ¸ö¿É¼àÊÓ¶ÔÏó¶¼ÐèÒª±©Â¶Æä¿É¼àÊÓÊôÐÔ¡£Ä³Ð©¶ÔÏóÖ»ÊÇÓÃÀ´±à×éÆäËü¶ÔÏ󡣶ÔÓÚ Sun ONE Application Server£¬³ýÁËÒ»¸ö http-server ½ÚµãÍ⣬ֻÓÐÊ÷µÄÒ¶½Úµã¾ßÓÐÊôÐÔ¡£http-server ½ÚµãÀàÐͼȾßÓÐ×ӽڵ㣬Ҳ¾ßÓÐÊôÐÔ¡£Ï±íÁгöÁ˸÷ÖÖ½ÚµãµÄ¿ÉÄܵĿɼàÊÓÊôÐÔÃû¡£
   http-server
ÊôÐÔÃû
Êý¾ÝÀàÐÍ
˵Ã÷
summary
×Ö·û´®£¨¾ßÓиñʽ£©
HTTP ·þÎñÆ÷ÕªÒª¡£°üÀ¨ÐéÄâ·þÎñÆ÷ºÍ½ø³Ì¡£
×¢Ò⣺ÓйؾßÓиñʽµÄ×Ö·û´®Öб©Â¶ÁËÄÄЩÊý¾ÝµÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°HTTP ·þÎñÆ÷µÄ¿É¼àÊÓ¶ÔÏó¡±Ò»½Ú¡£
   virtual-server
ÊôÐÔÃû
Êý¾ÝÀàÐÍ
˵Ã÷
<vs-id>
×Ö·û´®£¨¾ßÓиñʽ£©
ÐéÄâ·þÎñÆ÷ÐÅÏ¢¡£Ã¿¸öÓ¦ÓóÌÐò·þÎñÆ÷ʵÀý¶¼¿ÉÄÜÓÐÒ»¸ö»ò¶à¸öÐéÄâ·þÎñÆ÷¡£¿ÉÒÔ´Ó http-server µÄÕªÒª (summary ) ÊôÐÔ»ñÈ¡ÐéÄâ·þÎñÆ÷ ID µÄÁÐ±í¡£¿ÉÒÔʹÓà server1.http-server.virtual-server.<vs-id> ¸ñʽµÄ get ÃüÁî²ÎÊý²éÕÒÌض¨ÐéÄâ·þÎñÆ÷µÄͳ¼ÆÊý¾Ý¡£¿ÉÒÔʹÓà server1.http-server.virtual-server.* ¸ñʽµÄ get ÃüÁî²ÎÊý²éÕÒËùÓÐÐéÄâ·þÎñÆ÷µÄͳ¼ÆÊý¾Ý¡£
×¢Ò⣺ÓйؾßÓиñʽµÄ×Ö·û´®Öб©Â¶ÁËÄÄЩÊý¾ÝµÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°HTTP ·þÎñÆ÷µÄ¿É¼àÊÓ¶ÔÏó¡±Ò»½Ú¡£
   process
ÊôÐÔÃû
Êý¾ÝÀàÐÍ
˵Ã÷
<pid>
×Ö·û´®£¨¾ßÓиñʽ£©
½ø³ÌÐÅÏ¢¡£Ã¿¸öÓ¦ÓóÌÐò·þÎñÆ÷ʵÀý¶¼ÓÐÒ»¸ö½ø³Ì¡£¿ÉÒÔ´Ó http-server µÄÕªÒª (summary ) ÊôÐÔ»ñÈ¡½ø³Ì ID¡£¿ÉÒÔʹÓà server1.http-server.process.<pid> ¸ñʽµÄ get ÃüÁî²ÎÊý»ñÈ¡½ø³ÌµÄͳ¼ÆÊý¾Ý¡£
×¢Ò⣺ÓйؾßÓиñʽµÄ×Ö·û´®Öб©Â¶ÁËÄÄЩÊý¾ÝµÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°HTTP ·þÎñÆ÷µÄ¿É¼àÊÓ¶ÔÏó¡±Ò»½Ú¡£
   orb-connection
ÊôÐÔÃû
Êý¾ÝÀàÐÍ
˵Ã÷
total-inbound-connections
ÕûÊý
ÖÁ ORB µÄÈëÕ¾Á¬½Ó×ÜÊý¡£
total-outbound-connections
ÕûÊý
×Ô ORB µÄ³öÕ¾Á¬½Ó×ÜÊý¡£
   orb-thread-pool
ÊôÐÔÃû
Êý¾ÝÀàÐÍ
˵Ã÷
thread-pool-size
ÕûÊý
ORB Ï̳߳ØÖеÄÏß³Ì×ÜÊý¡£
waiting-thread-count
ÕûÊý
µÈ´ý¹¤×÷µ½À´µÄÏ̳߳ØÏß³ÌÊý¡£
HTTP ·þÎñÆ÷µÄ¿É¼àÊÓ¶ÔÏó
HTTP ·þÎñÆ÷µÄ¿É¼àÊÓÊôÐÔÃû summary ½«ÏÔʾ Server ÔªËصÄÊôÐÔÖµ¼°Æä×ÓÔªËصÄÕªÒª£¬°üÀ¨Ã¿¸ö×ÓÔªËصÄÊýÄ¿¼°Ã¿¸ö×ÓÔªËصÄÊôÐÔÖµ¡£HTTP ·þÎñÆ÷µÄ virtual-server ÊôÐÔ½«ÏÔʾ VirtualServer ÔªËصÄÊôÐÔÖµ¼°Æäÿ¸ö×ÓÔªËصÄÏêϸ×ÊÁÏ¡£process ÊôÐÔ½«ÏÔʾ Process ÔªËصÄÊôÐÔÖµ¼°Æäÿ¸ö×ÓÔªËصÄÏêϸ×ÊÁÏ¡£
ÒªÆôÓà NSAPI ÐÔÄÜ̽²é²¢»ñÈ¡ Profile ºÍ ProfileBucket ÔªËصÄͳ¼ÆÊý¾Ý£¬Çë²Î¼û¡¶Sun ONE Application Server Developer's Guide to NSAPI¡·¡£
ÓйØÈçºÎʹÓüàÊÓͳ¼ÆÊý¾Ý½øÐÐÐÔÄÜÓÅ»¯µÄÐÅÏ¢£¬Çë²Î¼û¡¶Sun ONE Application Server Performance and Tuning Guide¡·¡£
¿É¼àÊ HTTP ·þÎñÆ÷ÔªËØ
ϱíÁгöÁË HTTP ·þÎñÆ÷µÄ¿É¼àÊÓÔªËØ¡£
¿É¼àÊ HTTP ·þÎñÆ÷ÊôÐÔ
ϱíÁгöÁË HTTP ·þÎñÆ÷µÄ¿É¼àÊÓÊôÐÔ¡£
   ConnectionQueue
ÊôÐÔÃû
Öµ
˵Ã÷
Id
Á¬½Ó¶ÓÁÐ ID¡£
   ThreadPool
ÊôÐÔÃû
Öµ
˵Ã÷
Id
Ïß³Ì³Ø ID¡£
Ãû³Æ
Ï̳߳صķûºÅÃû³Æ¡£
   Profile
ÊôÐÔÃû
Öµ
˵Ã÷
Id
NSAPI ÐÔÄܸÅҪͰ ID¡£
Ãû³Æ
NSAPI ÐÔÄܸÅҪͰµÄ·ûºÅÃû³Æ¡£
˵Ã÷
NSAPI ÐÔÄܸÅҪͰµÄ˵Ã÷¡£
ʹÓà CLI ¹ÜÀíÊÂÎñ·þÎñ
Äú¿ÉÒÔʹÓà set ÃüÁî¹ÜÀíҪΪ JTS ¼àÊÓµÄͳ¼ÆÊý¾Ý¡£
ʾÀý 1
Òª½«ÊÂÎñÌí¼Óµ½»Ø¹öÁбíÖУ¨Õ⽫µ¼ÖÂÖ¸¶¨ÊÂÎñµÄ»Ø¹ö£©£¬Çë°´ÒÔϸñʽ·¢³ö set ÃüÁ
set --monitor server1.transaction-service.rollback-list=txnid1
ʾÀý 2
Òª¶³½áÊÂÎñ·þÎñ£¬Çë°´ÒÔϸñʽ·¢³ö set ÃüÁ
set --monitor server1.transaction-service.freeze=true
ϱíÃèÊöÁË¿ÉÒÔ¼àÊÓÒÔ±ãΪ JTS ÊÕ¼¯Í³¼ÆÊý¾ÝµÄÊôÐÔ¡£ÕâЩÊôÐÔ¿ÉÒÔ°´ÕÕ¡°CLI Ãû³ÆÓ³É䡱ÖÐÃèÊöµÄ¹æÔòͨ¹ýÃüÁîÐнøÐÐÉèÖá£
ÓÐ¹Ø Java ÊÂÎï·þÎñµÄÏêϸÐÅÏ¢£¬Çë²Î¼ûʹÓÃÊÂÎñ·þÎñ¡£
ʹÓà HTTP ·þÎñÖÊÁ¿
ÒÔÏÂÉèÖÿØÖÆÁËͨÐÅÁ¿µÄ¼ÆË㷽ʽÒÔ¼°´ø¿íµÄÖØмÆËãƵÂÊ£º
- ÖØмÆËãʱ¼ä¼ä¸ô — ָʾ´ø¿íµÄ¼ÆËãƵÂÊ£¨ºÁÃ룩¡£
- ¹«ÖÆʱ¼ä¼ä¸ô — Êý¾Ý¿ÉÒÔÓÃÓÚͨÐÅÁ¿¼ÆËãµÄʱ¼ä¶Î¡£
ÔÚ¹ÜÀí½çÃæÖУ¬Äú¿ÉÒÔΪ·þÎñÆ÷ʵÀý»òÐéÄâ·þÎñÆ÷µÄij¸öÀàÆôÓÃÕâЩ·þÎñÆ÷»òÀ༶±ðµÄÉèÖá£Ò²¿ÉÒÔΪµ¥¶ÀµÄÐéÄâ·þÎñÆ÷¸²¸ÇÕâЩÉèÖá£
±¾½Ú°üÀ¨ÒÔÏÂÖ÷Ì⣺
·þÎñÖÊÁ¿Ê¾Àý
ÒÔÏÂʾÀýÏÔʾÁËÈçºÎÊÕ¼¯²¢¼ÆËã·þÎñÖÊÁ¿ÐÅÏ¢¡£
- ·þÎñÆ÷µÄ¹«ÖÆʱ¼ä¼ä¸ôΪ 30 Ãë¡£
- ·þÎñÆ÷ÔÚ 0 ÃëÆô¶¯¡£
- ÔÚ 1 Ãëʱ£¬ÖÁ/×Ը÷þÎñÆ÷µÄ HTTP Á¬½Ó²úÉúÁË 5000 ×Ö½ÚµÄͨÐÅÁ¿¡£
- Ö®ºóûÓнøÐиü¶àÁ¬½Ó¡£ÔÚ 30 Ãëʱ£¬×îºó 30 ÃëÄÚµÄ×ÜͨÐÅÁ¿Îª 5000 ×Ö½Ú¡£
- ÔÚ 32 Ãëʱ£¬ÔÚ 1 Ãëʱ»ñµÃµÄͨÐÅÁ¿²ÉÑùÊý¾Ý±»·ÅÆú£¬ÒòΪÒѾ³¬¹ýÁË 30 ÃëµÄ¹«ÖÆʱ¼ä¼ä¸ô¡£ÏÖÔÚ£¬×îºó 30 ÃëµÄ×ÜͨÐÅÁ¿Îª 0¡£
ÖØмÆËãʱ¼ä¼ä¸ôµÄ¹¤×÷·½Ê½Óë´ËÀàËÆ¡£·þÎñÆ÷µÄÖØмÆËãʱ¼ä¼ä¸ôΪ 100 ºÁÃë¡£
ÎÒÃǼÌÐøÇ°ÃæµÄʾÀý£¬Ã¿¸ô 100 ºÁÃëÖØмÆËãÒ»´Î´ø¿í¡£¸Ã¼ÆËãÒÔͨÐÅÁ¿ºÍ¹«ÖÆʱ¼ä¼ä¸ôΪ»ù´¡¡£
- ÔÚ 0 Ãëʱ£¬½«Ê״μÆËã´ø¿í¡£×ÜͨÐÅÁ¿Îª 0£¬³ýÒÔ 30 ÃëµÄ¹«ÖÆʱ¼ä¼ä¸ô£¬µÃ³ö´ø¿íΪ 0¡£
- ÔÚ 1 Ãëʱ£¬½«µÚ 10 ´Î¼ÆËã´ø¿í£¨1000 ºÁÃë/100 ºÁÃ룩¡£×ÜͨÐÅÁ¿Îª 5000 ×Ö½Ú£¬³ýÒÔ 30 Ã룬µÃ³ö´ø¿íΪ 5000/30 = 166 ×Ö½Ú/Ãë¡£
- ÔÚ 30 Ãëʱ£¬½«µÚ 300 ´Î¼ÆËã´ø¿í¡£×ÜͨÐÅÁ¿Îª 5000 ×Ö½Ú£¬³ýÒÔ 30 Ã룬µÃ³ö´ø¿íΪ 5000/30 = 166 ×Ö½Ú/Ãë¡£
- ÔÚ 32 Ãëʱ£¬½«µÚ 320 ´Î¼ÆËã´ø¿í¡£ÏÖÔÚͨÐÅÁ¿Îª 0£¨ÒòΪ²úÉúͨÐÅÁ¿µÄÄÇ´ÎÁ¬½Ó·¢ÉúµÄʱ¼äÌ«Ô磬ËùÒÔ²»ÄܼÆËãÔÚÄÚ£©£¬³ýÒÔ 30 Ã룬µÃ³ö´ø¿íΪ 0 ×Ö½Ú/Ãë¡£
ÅäÖ÷þÎñÖÊÁ¿ (QOS)
ͨ¹ý¹ÜÀí½çÃæ¿ÉÒÔÅäÖ÷þÎñÆ÷ʵÀý»òÐéÄâ·þÎñÆ÷µÄÀàµÄ·þÎñÖÊÁ¿¡£
×¢Òâ ҪǿÖÆ·þÎñÖÊÁ¿ÉèÖã¬Äú»¹±ØÐëÔÚ obj.conf ÎļþÖÐÉèÖ÷þÎñÆ÷Ó¦ÓóÌÐò¹¦ÄÜ (SAF)£¬Èç¡°obj.conf ÎļþÒªÇóµÄ¸ü¸Ä¡±ÖÐËùÊö¡£
ÒªÅäÖ÷þÎñÖÊÁ¿£¬ÇëÖ´ÐÐÒÔϲ½Ö裺
- ÔÚ×ó²à´°¸ñÖÐÑ¡Ôñ¡°App Server Instances¡±½Úµã¡£
- Õ¹¿ª·þÎñÆ÷ʵÀý½ÚµãÒÔÏÔʾ¡°HTTP Server¡±½Úµã¡£
- µ¥»÷¡°HTTP Server¡±½ÚµãÒÔÏÔʾ¡°QOS¡±Ñ¡Ï¡£
- µ¥»÷¡°QOS¡±Ñ¡Ï¡£
ÒÔÏÂÒ³ÃæÏÔʾÁË·þÎñÖÊÁ¿µÄ³£¹æÉèÖã¬ÏÂÃ滹ÓÐÒ»¸ö¡°Properties¡±°´Å¥¡£
   ÐéÄâ·þÎñÆ÷ʵÀý¡°QOS¡±Ñ¡Ï
- ÒªÆôÓÃ´Ë HTTP ·þÎñÆ÷µÄ·þÎñÖÊÁ¿£¬Çëµ¥»÷¡°QOS Enabled¡±¡£
×¢Ò⣺ĬÈÏÇé¿öÏ£¬·þÎñÖÊÁ¿±»½ûÓá£ÆôÓ÷þÎñÖÊÁ¿»áÉÔ΢Ôö¼Ó·þÎñÆ÷µÄ¿ªÏú¡£
- Ö¸¶¨¡°QOS Metrics Interval¡±¡£
¹«ÖÆʱ¼ä¼ä¸ôÊÇÔÚ·þÎñÆ÷ͨÐÅÁ¿¼ÆËã¹ý³ÌÖвÉÑùÊý¾ÝµÄʱ¼ä¼ä¸ô£¨Ã룩¡£Ä¬ÈÏֵΪ 30 Ãë¡£
Èç¹ûÄúµÄÕ¾µãͨ³£Òª´«Êä´óÁ¿Îļþ£¬ÇëΪ´Ë×Ö¶ÎÉèÖÃÒ»¸ö½Ï´óµÄÖµ£¨¼¸·ÖÖÓ»ò¸ü³¤£©¡£Èç¹û¹«ÖÆʱ¼ä¼ä¸ô½Ï¶Ì£¬´óÁ¿ÎļþµÄ´«Êä¿ÉÄÜ»áÕ¼ÓÃËùÔÊÐíµÄËùÓдø¿í¡£Èç¹ûÄúÇ¿ÖÆÁË×î´ó´ø¿íÉèÖã¬Õ⽫µ¼ÖÂÁ¬½Ó±»¾Ü¾ø¡£ÓÉÓÚ´ø¿íÊÇ°´¹«ÖÆʱ¼ä¼ä¸ô¾ù·ÖµÄ£¬Òò´Ë½Ï³¤µÄʱ¼ä¼ä¸ô¿ÉÒÔ»ººÍÓÉ´óÁ¿ÎļþÒýÆðµÄ¸ß·åͨÐÅÁ¿¡£
Èç¹û´ø¿íÏÞÖƱȿÉÓôø¿íµÍºÜ¶à£¨ÀýÈ磬´ø¿íÏÞÖÆΪ 1 MB/Ã룬µ«ÊÇÓëÖ÷¸ÉµÄÁ¬½ÓΪ 1 GB/Ã룩£¬ÔòÓ¦Ëõ¶Ì¹«ÖÆʱ¼ä¼ä¸ô¡£
×¢Ò⣺Èç¹ûÒª´«Êä´óÁ¿¾²Ì¬Îļþ£¬¶ø´ø¿íÏÞÖƱȿÉÓôø¿íµÍºÜ¶à£¬Ôò±ØÐë¾ö¶¨µ÷ÕûÄÄÖÖ×´¿ö£¬ÒòΪÕâÁ½¸öÎÊÌâËùÐèµÄ½â¾ö·½°¸ÕýºÃÊÇÏà·´µÄ¡£
- Ö¸¶¨¡°QOS Recompute Time Interval¡±¡£
ÖØмÆËãʱ¼ä¼ä¸ôÊÇËùÓзþÎñÆ÷¡¢À༰ÐéÄâ·þÎñÆ÷µÄÿ´Î´ø¿í¼ÆËãÖ®¼äµÄºÁÃëÊý¡£Ä¬ÈÏֵΪ 100 ºÁÃë¡£
- Ö¸¶¨¡°Bandwidth Limit¡±¡£
ÕâÊÇ·þÎñÆ÷ʵÀýµÄ×î´ó´ø¿íÏÞÖÆ£¨×Ö½Ú/Ã룩¡£ËüÔÚijÖ̶ֳÈÉÏÓë QOS ¹«ÖÆʱ¼ä¼ä¸ôÏ໥ӰÏì¡£
- Ñ¡ÔñÊÇ·ñÇ¿ÖÆ×î´ó´ø¿íÉèÖá£
Èç¹ûÑ¡ÔñÇ¿ÖÆ×î´ó´ø¿í£¬µ±·þÎñÆ÷´ïµ½Æä´ø¿íÏÞÖÆʱ£¬¶îÍâµÄÁ¬½Ó½«±»¾Ü¾ø¡£
Èç¹ûûÓÐÇ¿ÖÆ×î´ó´ø¿í£¬µ±³¬¹ý×î´óֵʱ£¬·þÎñÆ÷½«ÔÚʼþÈÕÖ¾ÖмǼһÌõÏûÏ¢¡£
- Ö¸¶¨Á¬½ÓÏÞÖÆ¡£
ÕâÊÇËù´¦ÀíµÄ²¢ÐÐÇëÇóÊý¡£
- Ñ¡ÔñÊÇ·ñÇ¿ÖÆÁ¬½ÓÏÞÖÆÉèÖá£
Èç¹ûÑ¡ÔñÇ¿ÖÆ×î´óÁ¬½ÓÊý£¬µ±µ½·þÎñÆ÷´ïµ½Æä×î´óÁ¬½ÓÊýĿʱ£¬¶îÍâµÄÁ¬½Ó½«±»¾Ü¾ø¡£Èç¹ûûÓÐÇ¿ÖÆ×î´óÁ¬½ÓÊý£¬µ±³¬¹ý×î´óֵʱ£¬·þÎñÆ÷½«ÔÚʼþÈÕÖ¾ÖмǼһÌõÏûÏ¢¡£
- £¨¿ÉÑ¡£©¡£Èç¹ûҪΪ·þÎñÖÊÁ¿Ö¸¶¨¸½¼ÓµÄ¡°Ãû³Æ-Öµ¡±¶ÔÊôÐÔ£¬Çëµ¥»÷¡°Properties¡±°´Å¥¡£
ÓйطþÎñÖÊÁ¿ÊôÐÔµÄËùÔÊÐíµÄ¡°Ãû³Æ-Öµ¡±¶ÔÁÐ±í£¬Çë²Î¼ûÁª»ú°ïÖú¡£
- µ¥»÷¡°Save¡±£¬Ìá½»¶Ô·þÎñÆ÷ʵÀýËù×öµÄ¸ü¸Ä¡£
- ·ÃÎÊ×ó²à´°¸ñÖС°App Server Instances¡±ÏÂÄúµÄ·þÎñÆ÷ʵÀý£¬È»ºóµ¥»÷¡°Apply Changes¡±¡£
±ØÐë¶Ô obj.conf Îļþ½øÐеĸü¸Ä
ҪǿÖÆ·þÎñÖÊÁ¿£¬Äú±ØÐëÔÚ obj.conf ÎļþÖаüº¬Ö¸ÁîÒÔµ÷ÓÃÒÔÏ·þÎñÆ÷Ó¦ÓóÌÐò¹¦ÄÜ (SAF)£º
- AuthTrans qos-handler
- Error qos-error
ÒªÕý³£¹¤×÷£¬qos-handler AuthTrans Ö¸Áî±ØÐëÊÇÔÚĬÈ϶ÔÏóÖÐÅäÖõĵÚÒ»¸ö AuthTrans¡£·þÎñÖÊÁ¿´¦Àí³ÌÐòµÄ×÷ÓÃÊǼì²éÐéÄâ·þÎñÆ÷¡¢ÐéÄâ·þÎñÆ÷ÀàÒÔ¼°È«¾Ö·þÎñÆ÷µÄµ±Ç°Í³¼ÆÊý¾Ý²¢Í¨¹ý·µ»Ø´íÎóÀ´Ç¿ÖÆÏÞÖÆ¡£Sun ONE Application Server °üº¬Ò»¸ö³ÆΪ qos-handler µÄÄÚÖÃÑùÀý·þÎñÖÊÁ¿´¦Àí³ÌÐò SAF¡£µ±´ïµ½ÏÞÖÆʱ£¬´Ë SAF ½«½øÐмǼ²¢Ïò·þÎñÆ÷·µ»ØÒ»¸ö 503 Server busy ´íÎó£¬ÒÔ±ãÓÉ NSAPI ´¦Àí¡£
Sun ONE Application Server »¹°üº¬Ò»¸ö³ÆΪ qos-error µÄÄÚÖÃÑùÀý´íÎó SAF£¬Ëü½«·µ»ØÒ»¸ö´íÎóÒ³Ã棬˵Ã÷ÒýÆð 503 ´íÎóµÄÏÞÖÆÒÔ¼°´¥·¢¸ÃÏÞÖƵÄͳ¼ÆÊý¾ÝµÄÖµ¡£
ÓйØÕâЩ SAF ÒÔ¼°ÈçºÎʹÓÃËüÃǵÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡¶Sun ONE Application Server Developer's Guide to NSAPI¡·¡£
·þÎñÖÊÁ¿µÄÒÑÖªÏÞÖÆ
ʹÓ÷þÎñÖÊÁ¿¹¦ÄÜʱ£¬Çë¼ÇסÒÔÏÂÏÞÖÆ£º
- ·þÎñÖÊÁ¿¹¦Äܽö²âÁ¿Ó¦ÓóÌÐò¼¶±ðµÄ HTTP ´ø¿í¡£ÓÉÓÚÒÔ϶àÖÖÔÒò£¬HTTP ´ø¿í¿ÉÄÜÓëʵ¼ÊµÄ TCP ÍøÂç´ø¿í²»Í¬£º
Èç¹ûÆôÓÃÁË SSL£¬ÎÕÊֺͿͻ§»úÖ¤Êé½»»»½«Ôö´óͨÐÅÁ¿£¬µ«ÊDz»»á±»²âÁ¿¡£
Èç¹ûµ¥Ïò»òË«ÏòÆôÓÃÁË¿é±àÂ룬¿é²ã½«É¾³ý¿éÏûϢͷ£¬²¢ÇÒ¿éÏûϢͷ²»»á¼ÆÈ뵽ͨÐÅÁ¿ÖС£ÆäËüÏûϢͷ»òÐÒéÏ±»¼ÆÈ뵽ͨÐÅÁ¿ÖС£
- ·þÎñÖÊÁ¿¹¦Äܲ»Äܾ«È·²âÁ¿ PR_TransmitFile µ÷ÓõÄͨÐÅÁ¿¡£¶ÔÓÚÖîÈç PR_Send()/net_write »ò PR_Recv()/net_read µÈ»ù±¾ I/O ²Ù×÷£¬´ø¿í¹ÜÀíÆ÷¿ÉÒÔ¿ìËÙ¼ÆËã³ö´«ÊäµÄÊý¾Ý£¬ÒòΪÔÚÒ»¸öϵͳµ÷ÓÃÖд«ÊäµÄ×Ö½ÚÊýͨ³£¼´ÊÇ»º³åÇøµÄ´óС£¬²¢ÇÒ I/O µ÷Óûá¿ìËÙ·µ»Ø¡£Õâ·Ç³£ÊÊÓÃÓÚ²âÁ¿¶¯Ì¬ÄÚÈÝÓ¦ÓóÌÐòµÄ¼´Ê±´ø¿í¡£µ«ÊÇ£¬ÒòΪ PR_TransmitFile ´«ÊäµÄÊý¾ÝÁ¿½öÔÚ´«Êä½áÊøʱ²Å»áÖªµÀ£¬ËùÒÔÔÚ´«ÊäÍê³ÉÇ°ÎÞ·¨½øÐвâÁ¿¡£
Èç¹û PR_TransmitFile ºÜ¶Ì£¬Ôò·þÎñÖÊÁ¿¹¦Äܽ«Äܹ»³ä·ÖÖ´ÐС£µ«ÊÇ£¬Èç¹û PR_TransmitFile ºÜ³¤£¬ÀýÈçÔÚ²¦ºÅÓû§ÏÂÔس¤ÎļþµÄÇé¿öÏ£¬´«ÊäµÄÈ«²¿Êý¾ÝÁ¿½«ÔÚÍê³Éʱ¼ÆËã¡£µ±´ø¿í¹ÜÀíÆ÷ÔÚÏÂÒ»¸öÖØмÆËãʱ¼ä¼ä¸ô¿ªÊ¼ºóÖØмÆËã´ø¿íʱ£¬ÓÉÓÚ×î½ü·¢ÉúµÄÕâÒ»½Ï´óµÄ PR_TransmitFile£¬¼ÆËãµÄ´ø¿í½«ÏÔÖøÔö¼Ó¡£ÕâÖÖ×´¿ö¿ÉÄܵ¼Ö·þÎñÆ÷¾Ü¾øËùÓÐÇëÇó£¬Ö±ÖÁÏÂÒ»¸ö¹«ÖÆʱ¼ä¼ä¸ô¡£ÄÇʱ´ø¿í¹ÜÀíÆ÷½«Ê¹¸Ã´«ÊäÎļþ²Ù×÷¹ýÆÚ£¨ÒòΪËü·¢ÉúµÄʱ¼äÒѾ̫Ô磩£¬´Ó¶øʹ´ø¿íÖµ»ØÂä¡£Èç¹ûÄúµÄÕ¾µãͨ³£ÒªÏÂÔغܳ¤µÄ¾²Ì¬Îļþ£¬ÄúÓ¦µ±Ôö¼ÓÔÀ´Ä¬ÈÏΪ 30 ÃëµÄ¹«ÖÆʱ¼ä¼ä¸ô¡£
- ¼ÆËãµÄ´ø¿íʼÖÕÊÇÒ»¸ö½üËÆÖµ£¬ÒòΪËü²»ÊǼ´Ê±²âÁ¿µÄ£¬¶øÊÇÔÚÒ»¶Îʱ¼äÄÚÒԹ̶¨µÄʱ¼ä¼ä¸ô¼ÆËãµÄ¡£ÀýÈ磬Èç¹û¹«ÖÆʱ¼ä¼ä¸ôÊÇĬÈ쵀 30 Ã룬¶ø·þÎñÆ÷¿ÕÏÐÁË 29 Ã룬ȻºóÔÚÏÂÒ»ÃëÖУ¬¿Í»§»úÓпÉÄÜÔÚ 1 ÃëÄÚʹÓÃÁË 30 ±¶µÄ´ø¿íÏÞÖÆ¡£
- ÎÞÂÛºÎʱ¶¯Ì¬ÖØÐÂÅäÖÃÁË·þÎñÆ÷£¬¶¼½«¶ªÊ§·þÎñÖÊÁ¿´ø¿íͳ¼ÆÊý¾Ý¡£´ËÍ⣬·þÎñÖÊÁ¿ÏÞÖÆÔÚ¾ßÓлùÓÚ½ÏÔçµÄ¡¢·Ç»î¶¯ÅäÖõÄÁ¬½ÓµÄÏß³ÌÖв»»á±»Ç¿ÖÆ£¬ÒòΪ´ø¿í¹ÜÀíÆ÷Ï߳̽ö¼ÆËã»î¶¯ÅäÖõĴø¿íͳ¼ÆÊý¾Ý¡£»¹ÓÐÒ»ÖÖDZÔÚ¿ÉÄÜ£¬¼´³¤Ê±¼äδ¹Ø±ÕÆäÌ×½Ó×Ö²¢±£³Ö»î¶¯£¨´Ó¶ø·þÎñÆ÷ûÓÐʹÆ䳬ʱ£©µÄ¿Í»§»úÔÚ¶¯Ì¬ÖØÐÂÅäÖ÷þÎñÆ÷ºó²»»áÔÙÊÜ·þÎñÖÊÁ¿ÏÞÖƵÄÔ¼Êø¡£
- ÐéÄâ·þÎñÆ÷µÄ²¢ÐÐÁ¬½Ó¼ÆËã¼ä¸ôÓëÐéÄâ·þÎñÆ÷ÀàºÍÈ«¾Ö·þÎñÆ÷ʵÀýµÄ¼ÆËã¼ä¸ô²»Í¬¡£ µ¥¸öÐéÄâ·þÎñÆ÷µÄÁ¬½Ó¼ÆÊýÆ÷ÔÚÇëÇó±»·ÖÎö²¢Â·Óɵ½ÐéÄâ·þÎñÆ÷ºó»áÁ¢¼´×Ô¶¯µÝÔö£¬¶øÔÚ¸ÃÇëÇóµÄÏìÓ¦´¦Àí½áÊøʱ»á×Ô¶¯¼õÉÙ¡£ÕâÒâζ×ÅÐéÄâ·þÎñÆ÷µÄÁ¬½Óͳ¼ÆÊý¾ÝÔÚÈÎÒâʱ¿Ì¶¼ÊÇ׼ȷµÄ¡£
µ«ÊÇ£¬ÐéÄâ·þÎñÆ÷ÀàºÍÈ«¾Ö·þÎñÆ÷ʵÀýµÄÁ¬½Óͳ¼ÆÊý¾Ý²»Äܼ´Ê±¸üС£ËüÃÇ°´ÕÕÿ¸öÖØмÆËãʱ¼ä¼ä¸ôÓÉ´ø¿í¹ÜÀíÆ÷Ï̸߳üС£ÐéÄâ·þÎñÆ÷ÀàµÄÁ¬½ÓÊýÊǸÃÀàµÄËùÓÐÐéÄâ·þÎñÆ÷ÉϵÄÁ¬½Ó×ÜÊý£»È«¾Ö·þÎñÆ÷ʵÀýµÄÁ¬½ÓÊýÊÇËùÓÐÐéÄâ·þÎñÆ÷ÀàÉϵÄÁ¬½Ó×ÜÊý¡£
ÓÉÓÚÕâЩֵµÄ¼ÆË㷽ʽ£¬ÐéÄâ·þÎñÆ÷µÄÁ¬½ÓÊýʼÖÕÊÇÕýÈ·µÄ£¬Èç¹ûΪ¸ÃÁ¬½ÓÊýÉèÖÃÒ»¸öÇ¿ÖÆÏÞÖÆ£¬ÔòÓÀÔ¶Ò²²»Äܳ¬¹ý¸ÃÏÞÖÆ¡£ÐéÄâ·þÎñÆ÷ÀàºÍ·þÎñÆ÷ʵÀýµÄÖµÔò²»»áÈç´Ë׼ȷ£¬ÒòΪËüÃÇÊÇ°´ÕÕÒ»¶¨µÄʱ¼ä¼ä¸ô¼ÆËãµÄ¡£
¹ØÓÚ SNMP
¼òµ¥ÍøÂç¹ÜÀíÐÒé (SNMP) ÊÇÓÃÓÚÔÚÍøÂ緶ΧÄÚ½»»»¹ÜÀíÐÅÏ¢ºÍ¼àÊÓÐÅÏ¢µÄÐÒ顣ʹÓà SNMP£¬Êý¾Ý¿ÉÒÔÔÚ±»¹ÜÀíµÄÉ豸ºÍÍøÂç¹ÜÀíÕ¾ (NMS) Ö®¼ä´«Êä¡£±»¹ÜÀíµÄÉ豸¿ÉÒÔÊÇÔËÐÐ SNMP µÄÈκÎÉ豸£ºÖ÷»ú¡¢Â·ÓÉÆ÷¡¢HTTP ·þÎñÆ÷ÒÔ¼°ÍøÂçÉϵÄÆäËü·þÎñÆ÷¡£
±¾½Ú°üÀ¨ÒÔÏÂÖ÷Ì⣺
ÍøÂç¹ÜÀíÕ¾ (NMS)
ÍøÂç¹ÜÀíÕ¾ (NMS) ÊÇÓÃÓÚÔ¶³Ì¹ÜÀíijÌض¨ÍøÂçµÄ¼ÆËã»ú¡£Í¨³££¬NMS Èí¼þ½«Ìṩһ¸öͼÐνçÃæÒÔÏÔʾÊÕ¼¯µÄÊý¾Ý£¬»òÕßʹÓøÃÊý¾ÝÈ·±£·þÎñÆ÷ÔÚÖ¸¶¨µÄ¹«²î·¶Î§ÄÚÔËÐС£
NMS ͨ³£ÊÇ°²×°ÓÐÒ»¸ö»ò¶à¸öÍøÂç¹ÜÀíÓ¦ÓóÌÐòµÄ¹¦ÄÜÇ¿´óµÄ¹¤×÷Õ¾¡£ÍøÂç¹ÜÀíÓ¦ÓóÌÐò£¨ÀýÈç HP OpenView£©ÒÔͼÐη½Ê½ÏÔʾÓйر»¹ÜÀíÉ豸£¨ÀýÈç HTTP ·þÎñÆ÷£©µÄÐÅÏ¢¡£ÀýÈ磬Ëü¿ÉÄÜÏÔʾÁËÄúµÄÆóÒµÖÐÒÑ´ò¿ª»ò¹Ø±ÕµÄ·þÎñÆ÷£¬»òÕßÊÕµ½µÄ´íÎóÐÅÏ¢µÄÊýÁ¿ºÍÀàÐÍ¡£½« SNMP Óë Sun ONE Application Server Ò»ÆðʹÓÃʱ£¬ÕâЩÐÅÏ¢½«Í¨¹ýʹÓÃÒÔÏÂÁ½ÖÖ´úÀíÔÚ NMS ºÍ·þÎñÆ÷Ö®¼ä´«Ê䣺×Ó´úÀíºÍÖ÷´úÀí¡£
×Ó´úÀíÊÕ¼¯ÔÚ¸÷¸öÓòÖÐÔËÐеķþÎñÆ÷ʵÀýµÄÐÅÏ¢²¢½«ÐÅÏ¢´«µÝ¸øÖ÷´úÀí¡£Ã¿¸ö Sun ONE Application Server °²×°¶¼ÓÐÒ»¸öÖ÷´úÀíºÍÒ»¸ö×Ó´úÀí¡£
×¢Òâ ¶Ô SNMP ÅäÖýøÐÐÈκθü¸Äºó£¬±ØÐëµ¥»÷¡°Apply¡±°´Å¥£¬È»ºóÖØÐÂÆô¶¯ SNMP ×Ó´úÀí¡£
Ö÷´úÀí ÔÚ¸÷¸ö×Ó´úÀíºÍ NMS Ö®¼ä½»»»ÐÅÏ¢¡£Ö÷´úÀíËæ Sun ONE Application Server Ò»Æð°²×°¡£
Äú¿ÉÒÔÔÚһ̨Ö÷»úÉÏ°²×°¶à¸ö×Ó´úÀí£¬µ«ÊÇÖ»ÄÜ°²×°Ò»¸öÖ÷´úÀí¡£ÀýÈ磬Èç¹ûÔÚͬһ̨Ö÷»úÉÏ°²×°ÁË Sun ONE Directory Server¡¢Sun ONE Application Server ¼° Sun ONE Messaging Server£¬Ôòÿ¸ö·þÎñÆ÷µÄ×Ó´úÀí½«Óëͬһ¸öÖ÷´úÀíͨÐÅ¡£
NMS ½«´Ó·þÎñÆ÷ÇëÇóÐÅÏ¢£¬»òÕ߸ü¸Ä´æ´¢ÔÚ·þÎñÆ÷ MIB ÖеıäÁ¿µÄÖµ¡£ÀýÈ磺
- NMS ½«ÏûÏ¢·¢Ë͸ø¹ÜÀí·þÎñÆ÷Ö÷´úÀí¡£ÏûÏ¢¿ÉÄÜÊÇÊý¾ÝÇëÇó£¨Ò»Ìõ GET ÏûÏ¢£©£¬Ò²¿ÉÄÜÊÇÒ»ÌõָʾÔÚ MIB ÖÐÉèÖñäÁ¿µÄÖ¸ÁһÌõ SET ÏûÏ¢£©¡£
- Ö÷´úÀí½«ÏûϢת·¢¸øÏàÓ¦µÄ×Ó´úÀí¡£
- ×Ó´úÀí½«¼ìË÷Êý¾Ý»ò¸ü¸Ä MIB ÖеıäÁ¿¡£
- ×Ó´úÀí½«Êý¾Ý»ò״̬±¨¸æ¸øÖ÷´úÀí£¬È»ºóÖ÷´úÀí½«ÏûÏ¢£¨Ò»Ìõ GET ÏûÏ¢£©×ª·¢»Ø NMS¡£
- NMS ͨ¹ýËüµÄÍøÂç¹ÜÀíÓ¦ÓóÌÐòÒÔÎÄ×Ö»òͼÐη½Ê½ÏÔʾ¸ÃÊý¾Ý¡£
¹ÜÀíÐÅÏ¢¿â (MIB) ¶ÔÏó
Sun ONE Application Server ´æ´¢ÁËÓë¹ÜÀíºÍ¼àÊÓÍøÂ緶ΧÄÚµÄÐÅÏ¢ÓйصıäÁ¿¡£Ö÷´úÀí¿ÉÒÔ·ÃÎʵıäÁ¿³ÆΪ±»¹ÜÀí¶ÔÏó¡£ÕâЩ¶ÔÏóÔÚ³ÆΪ¹ÜÀíÐÅÏ¢¿â (MIB) µÄÊ÷×´½á¹¹Öж¨Òå¡£MIB ÌṩÁË¶Ô HTTP ·þÎñÆ÷µÄÍøÂçÅäÖá¢×´Ì¬¼°Í³¼ÆÊý¾ÝµÄ·ÃÎÊ¡£Ê¹Óà SNMP£¬Äú¿ÉÒÔͨ¹ýÍøÂç¹ÜÀí¹¤×÷Õ¾ (NMS) ²é¿´ÕâЩÐÅÏ¢¡£
MIB Ê÷µÄ¶¥²ãÏÔʾ³ö Internet ¶ÔÏó±êʶ·û¾ßÓÐÒÔÏÂ×ÓÊ÷£º
- directory (1)
- mgmt (2)
- experimental (3)
- private (4)
private (4) ×ÓÊ÷°üº¬ enterprises (1) ½Úµã¡£enterprises (1) ½ÚµãÖеÄÿ¸ö×ÓÊ÷¶¼±»·ÖÅä¸øÒ»¸öµ¥¶ÀµÄÆóÒµ£¬ÆóÒµÊÇ×¢²áÓÐ×Ô¼ºÌض¨ MIB À©Õ¹µÄ×éÖ¯¡£È»ºóÆóÒµ¿ÉÒÔÔÚÆä×ÓÊ÷Ï´´½¨Ìض¨²úÆ·µÄ×ÓÊ÷¡£ÓÉÆóÒµ´´½¨µÄ MIB λÓÚ enterprises (1) ½ÚµãÏ¡£
ÿ¸ö Sun ONE Application Server ×Ó´úÀí¶¼ÌṩÁËÒ»¸öÓÃÓÚ SNMP ͨÐÅµÄ MIB¡£·þÎñÆ÷ͨ¹ý·¢ËÍ°üº¬ÕâЩ±äÁ¿µÄÏûÏ¢£¨»òÏÝÚ壩½«ÖØҪʼþ±¨¸æ¸ø NMS¡£NMS ¿ÉÒÔ²éѯ·þÎñÆ÷µÄ MIB ÒÔ»ñÈ¡Êý¾Ý¡£
ÿ¸ö Sun ONE Application Server ¶¼ÓÐÆä×Ô¼ºµÄ MIB£¬¸Ã MIB λÓÚ install_dir/lib Ï¡£
Sun ONE Application Server µÄ MIB ÊÇÒ»¸ö³ÆΪ appserv.mib µÄÎļþ¡£´Ë MIB °üº¬Óë Sun ONE Application Server µÄÍøÂç¹ÜÀíÓйصĸ÷ÖÖ±äÁ¿µÄ¶¨Òå¡£
Sun ONE Application Server MIB ¾ßÓÐÒ»¸ö
appserver 1 (as appserver7 OBJECT IDENTIFIER ::= {appserver 1 }) ¶ÔÏó±êʶ·û£¬ËüλÓÚ install_dir/lib Ŀ¼Ï¡£
Äú¿ÉÒÔʹÓà Sun ONE Application Server MIB ²é¿´ÓÐ¹Ø Sun ONE Application Server µÄ¹ÜÀíÐÅÏ¢²¢ÊµÊ±¼àÊÓ·þÎñÆ÷¡£Ï±íÁгö²¢ÃèÊöÁË´æ´¢ÔÚ appserv.mib ÎļþÖеı»¹ÜÀí¶ÔÏó¡£
SNMP ÏûÏ¢
GET ºÍ SET ÊÇ SNMP ¶¨ÒåµÄÁ½ÖÖÏûÏ¢¡£
MIB ÖеÄÿ¸ö¶ÔÏ󶼷ÖÅäÓÐÒ»¸öΨһµÄ±êʶ·û¡£SNMP ¹ÜÀíÆ÷ͨ¹ý·¢³ö GET ºÍ GETNEXT ÃüÁÔÚÆäÖÐÖ¸¶¨¶ÔÏóµÄΨһ±êʶ·û£©À´·ÃÎʶÔÏó¡£´úÀíµÄ´úÀí³ÌÐò½«»ñÈ¡Ö¸¶¨¶ÔÏóµÄÖµ²¢½«Æä´«Êäµ½ SNMP ¹ÜÀíÆ÷¡£Èç¹ûÌí¼Óµ½ÈÕÖ¾µÄʼþ·ûºÏÏÝÚå¹ýÂËÆ÷Ìõ¼þ£¬Ôò¿ÉÄÜÉú³É SNMP ÏÝÚ塣δÉú³ÉÏÝÚåµÄʼþ½ö¼Ç¼Ϊά»¤ÈÕÖ¾±íÖеÄÒ»¸öÌõÄ¿£¬ÓÉ SNMP ¹ÜÀíÆ÷ͨ¹ý±ê×¼µÄ GET ºÍ GETNEXT ÃüÁî·ÃÎÊ¡£
GET ºÍ SET ÏûÏ¢½«ÓÉÍøÂç¹ÜÀíÕ¾ (NMS) ·¢Ë͸øÖ÷´úÀí¡£Äú¿ÉÒÔͨ¹ý¹ÜÀí½çÃæʹÓÃÆäÖÐÒ»¸ö»òÁ½¸ö¶¼Ê¹Óá£
SNMP ÒÔÐÒéÊý¾Ýµ¥Ôª (PDU) µÄ¸ñʽ½»»»ÍøÂçÐÅÏ¢¡£ÕâЩµ¥Ôª°üº¬Óйش洢ÔÚ±»¹ÜÀíÉ豸£¨ÀýÈç HTTP ·þÎñÆ÷£©ÉϵıäÁ¿µÄÐÅÏ¢¡£ÕâЩ±äÁ¿£¨Ò²³ÆΪ±»¹ÜÀí¶ÔÏ󣩾ßÓÐÖµºÍ±êÌ⣬ֵºÍ±êÌ⽫ÔÚÐèҪʱ±¨¸æ¸ø NMS¡£ÓÉ·þÎñÆ÷·¢Ë͸ø NMS µÄÐÒéÊý¾Ýµ¥Ôª³ÆΪÏÝÚå¡£ÒÔϸ÷½Ú½«¶Ô GET¡¢SET µÄʹÓÃÒÔ¼°ÏÝÚåÏûÏ¢½øÐÐÏêϸÌÖÂÛ¡£
SNMP ÏÝÚåÄ¿±ê
SNMP ÏÝÚåÊÇ SNMP ´úÀí·¢Ë͸øÍøÂç¹ÜÀíÕ¾ (NMS) µÄÏûÏ¢¡£ÀýÈ磬µ±½Ó¿ÚµÄ״̬ÓÉ´ò¿ª±äΪ¹Ø±Õʱ£¬SNMP ´úÀí½«·¢ËÍÒ»¸öÏÝÚå¡£SNMP ´úÀí±ØÐëÖªµÀ NMS µÄµØÖ·£¬ÒÔ±ãÖªµÀÏòºÎ´¦·¢ËÍÏÝÚå¡£
Äú¿ÉÒÔͨ¹ý Sun ONE Application Server ¹ÜÀí½çÃæΪ SNMP Ö÷´úÀíÅäÖÃÏÝÚåÄ¿±ê¡£»¹¿ÉÒԲ鿴¡¢±à¼²¢É¾³ýÒÑÅäÖõÄÏÝÚåÄ¿±ê¡£Ê¹ÓùÜÀí½çÃæÅäÖÃÏÝÚåÄ¿±êʱ£¬Êµ¼ÊÉÏÊÇÔڱ༠CONFIG Îļþ¡£
·¢ÉúÖØҪʼþʱ£¬·þÎñÆ÷×Ó´úÀí½«Ïò NMS ·¢ËÍÒ»ÌõÏûÏ¢£¨»òÏÝÚ壩¡£ÀýÈ磺
- ×Ó´úÀí֪ͨÖ÷´úÀí·þÎñÆ÷ÒÑÍ£Ö¹¡£
- Ö÷´úÀí·¢ËÍÒ»ÌõÏûÏ¢£¨»òÏÝÚ壩£¬½«¸Ãʼþ±¨¸æ¸ø NMS¡£
- NMS ͨ¹ýËüµÄÍøÂç¹ÜÀíÓ¦ÓóÌÐòÒÔÎÄ×Ö»òͼÐη½Ê½ÏÔʾ¸ÃÐÅÏ¢¡£
ÓйØÉèÖà SNMP ÏÝÚå¶Ë¿ÚµÄ˵Ã÷£¬Çë²Î¼û¡°°²×° SNMP Ö÷´úÀí¡±¡£
SNMP ´úÀíÉçÇø
SNMP ´úÀíÉçÇøÓÉÒ»¸öÉçÇø×Ö·û´®¼°·ÖÅä¸ø¸ÃÖ¸¶¨ÉçÇøµÄ²Ù×÷×é³É¡£ÉçÇø×Ö·û´®ÊÇÍøÂç¹ÜÀíÕ¾ (NMS) Ãû³ÆµÄÎı¾×Ö·û´®£¬SNMP ½«ÓÃËü½øÐÐÊÚȨ¡£ÕâÒâζ×Å NMS ÔÚ·¢Ë͸ø´úÀíµÄÿÌõÏûÏ¢Öж¼´øÓÐÒ»¸öÉçÇø×Ö·û´®¡£
Ëù·ÖÅäµÄ²Ù×÷ÊÇ get ºÍ/»ò set¡£È»ºó£¬SNMP ´úÀí¿ÉÒÔÑéÖ¤ NMS ÊÇ·ñ±»ÊÚȨִÐÐ get ºÍ/»ò set ²Ù×÷ÒÔ±ã½øÐÐÊý¾Ý½»»»¡£ÉçÇø×Ö·û´®ÔÚ SNMP °üÖз¢ËÍʱ²»±»Òþ²Ø£»×Ö·û´®ÒÔ ASCII Îı¾¸ñʽ·¢ËÍ¡£
Äú¿ÉÒÔͨ¹ý¹ÜÀí½çÃæΪÿ¸öÖ¸¶¨µÄÉçÇøÅäÖò¢¹ÜÀíÉçÇø×Ö·û´®¼°ÔÊÐíµÄ²Ù×÷¡£ÓйØÉèÖà SNMP ´úÀíÉçÇøµÄ˵Ã÷£¬Çë²Î¼û¡°°²×° SNMP Ö÷´úÀí¡±¡£
ÉèÖÃ SNMP
Ò»°ãÀ´½²£¬ÒªÊ¹Óà SNMP£¬ÏµÍ³ÉϱØÐë°²×°²¢ÔËÐÐÓÐÒ»¸öÖ÷´úÀíºÍÖÁÉÙÒ»¸ö×Ó´úÀí¡£ÒªÆôÓÃ×Ó´úÀí£¬±ØÐëÏÈ°²×°Ö÷´úÀí¡£Çë²Î¼û¡°°²×° SNMP Ö÷´úÀí¡±¡£
ÉèÖà SNMP µÄ¹ý³Ì¸ù¾Ý²»Í¬µÄϵͳ¶ø²»Í¬¡£Ï±í¸ÅÊöÁËÔÚ²»Í¬Çé¿öÏÂËùÒªÖ´ÐеĹý³Ì¡£±¾ÕºóÃ潫¶Ôʵ¼Ê¹ý³Ì½øÐÐÏêϸ½éÉÜ¡£
Èç¹û·þÎñÆ÷Âú×ãÒÔÏÂÌõ¼þ¡¡
¡¡ÇëÖ´ÐÐÒÔϹý³Ì¡££¨ºóÐø¸÷½Ú½«ÏêϸÌÖÂÛ£©¡£
µ±Ç°Ã»ÓÐÔËÐб¾µØ´úÀí
¿ªÊ¼Ç°£¬Ó¦µ±ÑéÖ¤Á½¼þÊÂÇ飺
- ÄúµÄϵͳÊÇ·ñÒѾÔËÐÐÁË SNMP ´úÀí£¨²Ù×÷ϵͳµÄ±¾µØ´úÀí£©¡£
- Èç¹ûÊÇ£¬¸Ã±¾µØ SNMP ´úÀíÊÇ·ñÖ§³Ö SMUX ͨÐÅ¡£
ÓйØÈçºÎÑéÖ¤ÕâЩÐÅÏ¢µÄ˵Ã÷£¬Çë²Î¼ûÄúµÄϵͳÎĵµ¡£
×¢Òâ ÔÚ¸ü¸ÄÁ˹ÜÀí·þÎñÆ÷ÖÐµÄ SNMP ÉèÖᢰ²×°ÁËеķþÎñÆ÷»òɾ³ýÁËÏÖÓзþÎñÆ÷ºó£¬Äú±ØÐëÖ´ÐÐÒÔϲ½Ö裺
±¾½Ú°üÀ¨ÒÔÏÂÖ÷Ì⣺
ʹÓà SNMP ´úÀíµÄ´úÀí³ÌÐò (UNIX/Linux)
Èç¹ûÒѾÔËÐÐÓÐÒ»¸ö±¾µØ´úÀí£¬²¢ÇÒÏ£Íû½«ËüÓëÒ»¸ö Sun ONE Application Server Ö÷´úÀíÒ»Æð²¢ÐÐʹÓã¬ÔòÐèҪʹÓÃÒ»¸ö SNMP ´úÀíµÄ´úÀí³ÌÐò¡£ÔÚÆô¶¯Ö®Ç°£¬ÇëÈ·±£Í£Ö¹±¾µØÖ÷´úÀí¡££¨ÓйØÏêϸÐÅÏ¢£¬Çë²Î¼ûÄúµÄϵͳÎĵµ¡££©
×¢Òâ ҪʹÓôúÀí³ÌÐò£¬ÐèÒª°²×°²¢Æô¶¯Ëü»¹±ØÐëʹÓà Sun ONE Application Server Ö÷´úÀíÔËÐж˿ÚÒÔÍâµÄ¶Ë¿ÚÖØÐÂÆô¶¯±¾µØ SNMP Ö÷´úÀí¡£
±¾½Ú°üÀ¨ÒÔÏÂÖ÷Ì⣺
°²×° SNMP ´úÀíµÄ´úÀí³ÌÐò
Èç¹ûij¸ö SNMP ´úÀíÕýÔÚϵͳÉÏÔËÐУ¬²¢ÇÒÏ£Íû¼ÌÐøʹÓñ¾µØ SNMP ÊØ»¤³ÌÐò£¬ÇëÖ´ÐÐÒÔϸ÷½ÚÖеIJ½Ö裺
- °²×° SNMP Ö÷´úÀí¡£Çë²Î¼û¡°°²×° SNMP Ö÷´úÀí¡±¡£
- °²×°²¢Æô¶¯ SNMP ´úÀíµÄ´úÀí³ÌÐò£¬È»ºóÖØÐÂÆô¶¯±¾µØ SNMP ÊØ»¤³ÌÐò¡£Çë²Î¼û¡°Ê¹Óà SNMP ´úÀíµÄ´úÀí³ÌÐò (UNIX/Linux)¡±¡£
- Æô¶¯ SNMP Ö÷´úÀí¡£Çë²Î¼û¡°ÆôÓúÍÆô¶¯ SNMP Ö÷´úÀí¡±¡£
- ÆôÓÃ×Ó´úÀí¡£Çë²Î¼û¡°ÆôÓÃ×Ó´úÀí¡±¡£
Òª°²×° SNMP ´úÀíµÄ´úÀí³ÌÐò£¬Çë±à¼Î»ÓÚ·þÎñÆ÷¸ùĿ¼Ï嵀 install_dir/lib/snmp/sagt ÖÐµÄ CONFIG Îļþ£¨Äú¿ÉÒÔΪ´ËÎļþÖ¸¶¨ÆäËüÃû³Æ£©£¬ÒÔʹÆä°üº¬ SNMP ÊØ»¤³ÌÐòµÄ¼àÌý¶Ë¿Ú¡£SNMP ´úÀíµÄ´úÀí³ÌÐò»¹ÐèÒª°üÀ¨ËüҪת·¢µÄ MIB Ê÷ºÍÏÝÚå¡£
ÏÂÃæÊÇÒ»¸ö CONFIG ÎļþʾÀý£º
AGENT AT PORT 1161 WITH COMMUNITY public
SUBTREES 1.3.6.1.2.1.1,
1.3.6.1.2.1.2,
1.3.6.1.2.1.3,
1.3.6.1.2.1.4,
1.3.6.1.2.1.5,
1.3.6.1.2.1.6,
1.3.6.1.2.1.7,
1.3.6.1.2.1.8
FORWARD ALL TRAPS;
Æô¶¯ SNMP ´úÀíµÄ´úÀí³ÌÐò
ÒªÆô¶¯ SNMP ´úÀíµÄ´úÀí³ÌÐò£¬ÇëÔÚÃüÁîÌáʾ·ûÏÂÊäÈëÒÔÏÂÄÚÈÝ£º
# sagt -c CONFIG&
ÖØÐÂÆô¶¯±¾µØ SNMP ÊØ»¤³ÌÐò
Æô¶¯ SNMP ´úÀíµÄ´úÀí³ÌÐòºó£¬ÔÚ CONFIG ÎļþÖÐÖ¸¶¨µÄ¶Ë¿ÚÖØÐÂÆô¶¯±¾µØ SNMP ÊØ»¤³ÌÐò¡£
ÒªÖØÐÂÆô¶¯±¾µØ SNMP ÊØ»¤³ÌÐò£¬ÇëÔÚÃüÁîÌáʾ·ûÏÂÊäÈëÒÔÏÂÄÚÈÝ£º
# snmpd -P port_number
ÆäÖÐ port_number ÊÇÔÚ CONFIG ÎļþÖÐÖ¸¶¨µÄ¶Ë¿ÚºÅ¡£ÀýÈ磬ÔÚ Solaris ƽ̨ÉÏ£¬Ê¹ÓÃÇ°ÃæÌáµ½µÄ CONFIG ÎļþʾÀýÖеĶ˿ڣ¬ÄúÐèÒªÊäÈ룺
# snmpd -P 1161
°²×° SNMP Ö÷´úÀí
×¢Òâ Äú²»ÄÜʹÓùÜÀí½çÃæ°²×°ºÍÆô¶¯ SNMP Ö÷´úÀí£¬³ý·Ç·þÎñÆ÷ÊÇ×÷Ϊ root ÔËÐеġ£
°²×° SNMP Ö÷´úÀíµÄ²½Ö裺
- ÒÔ³¬¼¶Óû§Éí·ÝµÇ¼¡£
- ¼ì²é¶Ë¿Ú 161 ÉÏÊÇ·ñÔËÐÐÓÐ SNMP ÊØ»¤³ÌÐò (snmpd)¡£
Èç¹ûûÓÐÔËÐÐ SNMP ÊØ»¤³ÌÐò£¬Çëתµ½²½Öè 4¡£
Èç¹ûÔËÐÐÓÐ SNMP ÊØ»¤³ÌÐò£¬ÇëÈ·±£ÖªµÀÈçºÎÖØÐÂÆô¶¯ËüÒÔ¼°ËüÖ§³ÖÄÄЩ MIB Ê÷¡£
- Èç¹ûÔËÐÐÓÐ SNMP ÊØ»¤³ÌÐò£¬Çë½áÊøËüµÄ½ø³Ì¡£
- ÔÚ¹ÜÀí½çÃæµÄ×ó²à´°¸ñÖУ¬Ñ¡Ôñ¡°Admin Server¡±½Úµã¡£
- Ñ¡Ôñ¡°Monitoring¡±Ñ¡ÏÒÔÏÔʾ¡°SNMP Agent Trap¡±Ò³Ã棬ÈçÏÂͼËùʾ¡£
   ¡°SNMP Agent Trap¡±Ò³Ãæ
´ËÒ³ÃæÏÔʾÁ˹ÜÀíÆ÷ÌõÄ¿ÐÅÏ¢¡£
- ¼üÈëÕýÔÚÔËÐÐÍøÂç¹ÜÀíÈí¼þµÄϵͳµÄÃû³Æ¡£
- ¼üÈëÍøÂç¹ÜÀíϵͳÓÃÀ´¼àÌýÏÝÚåµÄÏÝÚå¶Ë¿ÚºÅ¡££¨³£ÓõĶ˿ÚÊÇ 162¡££©ÓйØÏÝÚåµÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°SNMP ÏÝÚåÄ¿±ê¡±¡£
- ¼üÈëÒªÔÚÏÝÚåÖÐʹÓõÄÉçÇø×Ö·û´®¡£ÓйØÉçÇø×Ö·û´®µÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°SNMP ´úÀíÉçÇø¡±¡£
- µ¥»÷¡°OK¡±¡£
- ÔÚ¡°Monitoring¡±Ñ¡ÏÉÏ£¬µ¥»÷¡°SNMP Agent Community¡±Á´½Ó¡£
½«ÏÔʾÉçÇø×Ö·û´®ÐÅÏ¢£¬ÈçÏÂͼËùʾ¡£
   ¡°SNMP Agent Community¡±Ò³Ãæ
- ¼üÈëÖ÷´úÀíµÄÉçÇø×Ö·û´®¡£
- Ñ¡ÔñÉçÇøµÄ²Ù×÷¼¶±ð¡£
½¨Á¢ÉçÇøºó£¬¿ÉÒÔʹÓôËÒ³ÃæÉÏ¡°Current Communities¡±±êÌâϵݴť±à¼ÆäÉèÖûòɾ³ýËü¡£
- µ¥»÷¡°OK¡±¡£
- ·ÃÎÊ×ó²à´°¸ñÖС°App Server Instances¡±ÏÂÄúµÄ·þÎñÆ÷ʵÀý£¬È»ºóµ¥»÷¡°Apply Changes¡±¡£
ÆôÓúÍÆô¶¯ SNMP Ö÷´úÀí
Ö÷´úÀí²Ù×÷ÊÇÔÚÃûΪ CONFIG µÄ´úÀíÅäÖÃÎļþÖж¨ÒåµÄ£¬Äú¿ÉÒÔÊÖ¶¯±à¼´ËÎļþ¡£ÒªÆôÓà SNMP ×Ó´úÀí£¬±ØÐëÏÈ°²×° SNMP Ö÷´úÀí¡£
±¾½Ú°üÀ¨ÒÔÏÂÖ÷Ì⣺
- ÔÚÆäËü¶Ë¿ÚÉÏÆô¶¯Ö÷´úÀí
- ÊÖ¶¯ÅäÖà SNMP Ö÷´úÀí
- ±à¼Ö÷´úÀíµÄ CONFIG Îļþ
- ¶¨Òå sysContact ºÍ sysLocation ±äÁ¿
- ÅäÖÃ SNMP Ö÷´úÀí
- Æô¶¯ SNMP Ö÷´úÀí
- ÆôÓÃ×Ó´úÀí
ÔÚÆäËü¶Ë¿ÚÉÏÆô¶¯Ö÷´úÀí
¹ÜÀí½çÃæÖ»ÄÜÔÚ 161 ¶Ë¿ÚÉÏÆô¶¯ SNMP Ö÷´úÀí¡£µ«ÊÇ£¬Äú¿ÉÒÔʹÓÃÒÔϲ½ÖèÔÚÆäËü¶Ë¿ÚÉÏÊÖ¶¯Æô¶¯Ö÷´úÀí£º
- ±à¼ install_dir/lib/snmp/magt/CONFIG ÒÔÖ¸¶¨ËùÏ£ÍûµÄ¶Ë¿Ú¡£
- ÔËÐÐÒÔÏÂÆô¶¯½Å±¾£º
cd instance_root/admin-server ./start -shell install_dir/lib/snmp/magt/magt
install_dir/lib/snmp/magt/CONFIG
install_dir/lib/snmp/magt/INITÈ»ºó£¬Ö÷´úÀí½«ÔÚËùÏ£ÍûµÄ¶Ë¿ÚÉÏÆô¶¯¡£µ«ÊÇ£¬¹ÜÀí½çÃæÄܹ»¼ì²â³öÖ÷´úÀíÕýÔÚÔËÐС£
ÊÖ¶¯ÅäÖà SNMP Ö÷´úÀí
ÊÖ¶¯ÅäÖà SNMP Ö÷´úÀíµÄ²½Ö裺
- ÒÔ³¬¼¶Óû§Éí·ÝµÇ¼¡£
- ¼ì²é¶Ë¿Ú 161 ÉÏÊÇ·ñÔËÐÐÓÐ SNMP ÊØ»¤³ÌÐò (snmpd)¡£
Èç¹ûÔËÐÐÓÐ SNMP ÊØ»¤³ÌÐò£¬ÇëÈ·±£ÖªµÀÈçºÎÖØÐÂÆô¶¯ËüÒÔ¼°ËüÖ§³ÖÄÄЩ MIB Ê÷¡£È»ºó½áÊøËüµÄ½ø³Ì¡£
- ±à¼Î»ÓÚ·þÎñÆ÷¸ùĿ¼Ï lib/snmp/magt ÖÐµÄ CONFIG Îļþ¡£
- £¨¿ÉÑ¡£©ÔÚ CONFIG ÎļþÖж¨Òå sysContact ºÍ sysLocation ±äÁ¿£¬Èç¡°¶¨Òå sysContact ºÍ sysLocation ±äÁ¿¡±ÖÐËùÊö¡£
±à¼Ö÷´úÀíµÄ CONFIG Îļþ
CONFIG Îļþ¶¨ÒåÁ˽«ÓëÖ÷´úÀíÒ»Æð¹¤×÷µÄÉçÇøºÍ¹ÜÀíÆ÷¡£¹ÜÀíÆ÷µÄÖµÓ¦µ±ÊÇÓÐЧµÄϵͳÃû»ò IP µØÖ·¡£
ÏÂÃæÊÇÒ»¸ö»ù±¾ CONFIG ÎļþµÄʾÀý£º
COMMUNITY public
ALLOW ALL OPERATIONS
MANAGER manager_station_name
SEND ALL TRAPS TO PORT 162
WITH COMMUNITY public
¶¨Òå sysContact ºÍ sysLocation ±äÁ¿
Äú¿ÉÒԱ༠CONFIG Îļþ£¬ÎªÖ¸¶¨ÁË sysContact ºÍ sysLocation MIB-II ±äÁ¿µÄ sysContact ºÍ sysLocation Ìí¼Ó³õʼֵ ¡£´ËʾÀýÖÐ sysContact ºÍ sysLocation µÄ×Ö·û´®·ÅÔÚÁËÒýºÅÄÚ¡£Èκΰüº¬¿Õ¸ñ¡¢»»Ðзû¡¢ÖƱí·ûµÈµÄ×Ö·û´®¶¼±ØÐë·ÅÔÚÒýºÅÄÚ¡£ÄúÒ²¿ÉÒÔÓÃÊ®Áù½øÖƼÇÊý·¨À´Ö¸¶¨Öµ¡£
ÏÂÃæÊÇÒ»¸ö CONFIG ÎļþʾÀý£¬ÆäÖж¨ÒåÁË sysContact ºÍ sysLocation ±äÁ¿£º
COMMUNITY public
ALLOW ALL OPERATIONS
MANAGER nms2
SEND ALL TRAPS TO PORT 162
WITH COMMUNITY public
INITIAL sysLocation "Server room
901 San Antonio Road
Palo Alto CA 94303
USA"
INITIAL sysContact "John Doe
email:jdoe@sun.com"
ÅäÖÃ SNMP ×Ó´úÀí
ÒªÅäÖà SNMP ×Ó´úÀí£¬ÇëÖ´ÐÐÒÔϲ½Ö裺
- ÔÚ×ó²à´°¸ñÖУ¬Ñ¡Ôñ¡°Admin Server¡±ÏµķþÎñÆ÷ʵÀý½Úµã¡£
- ÔÚÓҲര¸ñÖУ¬Ñ¡Ôñ¡°Monitoring¡±Ñ¡Ï¡£
- Ñ¡Ôñ¡°SNMP Subagent Configuration¡±Á´½Ó¡£
½«ÏÔʾÒÔÏÂÒ³Ã棺
   ¡°SNMP Subagent Configuration¡±Ò³Ãæ
- £¨Ö»ÊÊÓÃÓÚ UNIX£©ÔÚ¡°Master Host¡±×Ö¶ÎÖУ¬ÊäÈë·þÎñÆ÷µÄÃû³ÆºÍÓò¡£
- ÊäÈë·þÎñÆ÷µÄ˵Ã÷£¬°üÀ¨²Ù×÷ϵͳÐÅÏ¢¡£
- ÊäÈ븺Ôð¸Ã·þÎñÆ÷µÄ×éÖ¯¡£
- ÊäÈë·þÎñÆ÷ʵÀýµÄλÖá£
- ÔÚ¡°Contact¡±×Ö¶ÎÖУ¬ÊäÈ븺Ôð¸Ã·þÎñÆ÷µÄÈËÔ±µÄÐÕÃûºÍÁªÏµÐÅÏ¢¡£
- Ñ¡Ôñ¡°On¡±£¬ÆôÓà SNMP ͳ¼ÆÊý¾ÝÊÕ¼¯¡£
- µ¥»÷¡°OK¡±¡£
- ·ÃÎÊ×ó²à´°¸ñÖС°App Server Instances¡±ÏÂÄúµÄ·þÎñÆ÷ʵÀý£¬È»ºóµ¥»÷¡°Apply Changes¡±¡£
Æô¶¯ SNMP Ö÷´úÀí
°²×° SNMP Ö÷´úÀíºó£¬Äú¿ÉÒÔÊÖ¶¯Æô¶¯Ëü»òͨ¹ý¹ÜÀí½çÃæʹÓùÜÀí·þÎñÆ÷½øÐÐÆô¶¯¡£
ÊÖ¶¯Æô¶¯ SNMP Ö÷´úÀí
ÒªÊÖ¶¯Æô¶¯Ö÷´úÀí£¬ÇëÔÚÃüÁîÌáʾ·ûÏÂÊäÈëÒÔÏÂÄÚÈÝ£º
# magt CONFIG INIT&
INIT ÎļþÊÇ°üº¬ MIB-II ϵͳ×éÐÅÏ¢£¨°üÀ¨ÏµÍ³Î»ÖúÍÁªÏµÐÅÏ¢£©µÄ·ÇÒ×ʧÐÔÎļþ¡£Èç¹û INIT ²»´æÔÚ£¬Ê×´ÎÆô¶¯Ö÷´úÀíʱ½«´´½¨Ëü¡£
×¢Òâ Èç¹û CONFIG ÎļþÖеĹÜÀíÆ÷Ãû³ÆÎÞЧ£¬½«µ¼ÖÂÖ÷´úÀíÆô¶¯Ê§°Ü¡£
ÒªÔڷDZê×¼¶Ë¿ÚÉÏÆô¶¯Ö÷´úÀí£¬ÇëʹÓÃÒÔÏÂÁ½ÖÖ·½·¨Ö®Ò»£º
·½·¨ 1£ºÔÚ CONFIG ÎļþÖУ¬ÎªÖ÷´úÀíÓÃÀ´¼àÌýÀ´×Ô¹ÜÀíÆ÷µÄ SNMP ÇëÇóµÄÿ¸ö½Ó¿ÚÖ¸¶¨´«ÊäÓ³Éä¡£´«ÊäÓ³ÉäÔÊÐíÖ÷´úÀí½ÓÊܱê×¼¶Ë¿ÚºÍ·Ç±ê×¼¶Ë¿ÚÉϵÄÁ¬½Ó¡£Ö÷´úÀí»¹¿ÉÒÔÔڷDZê×¼¶Ë¿ÚÉϽÓÊÜ SNMP ͨÐÅ¡£²¢ÐÐ SNMP µÄ×î´óÊýÄ¿ÊÜÏÞÓÚÄ¿±êϵͳ¶Ôÿ¸ö½ø³ÌµÄ´ò¿ªµÄÌ×½Ó×Ö»òÎļþÃèÊö·ûÊýÄ¿µÄÏÞÖÆ¡£ÏÂÃæÊÇÒ»¸ö´«ÊäÓ³ÉäÌõĿʾÀý£º
TRANSPORT extraordinary SNMP
OVER UDP SOCKET
AT PORT 11161ÊÖ¶¯±à¼ CONFIG Îļþºó£¬ÄúÓ¦µ±ÔÚÃüÁîÌáʾ·ûϼüÈëÒÔÏÂÄÚÈÝÒÔ±ãÊÖ¶¯Æô¶¯Ö÷´úÀí£º
# magt CONFIG INIT&
·½·¨ 2£º±à¼ /etc/services Îļþ£¬ÒÔÔÊÐíÖ÷´úÀí½ÓÊܱê×¼¶Ë¿ÚºÍ·Ç±ê×¼¶Ë¿ÚÉϵÄÁ¬½Ó¡£
ʹÓùÜÀí·þÎñÆ÷Æô¶¯ SNMP Ö÷´úÀí
ҪʹÓùÜÀí·þÎñÆ÷Æô¶¯ SNMP Ö÷´úÀí£¬ÇëÖ´ÐÐÒÔϲ½Ö裺
×¢Òâ Äú±ØÐëÒÔ³¬¼¶Óû§Éí·ÝµÇ¼ Sun ONE Application Server ²ÅÄÜÆô¶¯ SNMP Ö÷´úÀí¡£
- µÇ¼µ½¹ÜÀí·þÎñÆ÷¡£
- ÔÚ×ó²à´°¸ñÖÐÑ¡Ôñ¡°Admin Server¡±½Úµã£¬È»ºóÑ¡Ôñ¡°Monitoring¡±Ñ¡Ï¡£
- ÔÚÓҲര¸ñÖп¿½ü¶¥²¿µÄλÖã¬Ñ¡Ôñ¡°SNMP Agent Control¡±Á´½Ó¡£
½«ÏÔʾÒÔÏÂÒ³Ãæ¡£
   ¡°SNMP Agent Control¡±Ò³Ãæ
- µ¥»÷¡°Start¡±¡£
Äú»¹¿ÉÒÔÔÚ¡°SNMP Agent Control¡±Ò³ÃæÉÏÍ£Ö¹ºÍÖØÐÂÆô¶¯ SNMP Ö÷´úÀí¡£
ÆôÓÃ×Ó´úÀí
°²×°Á˹ÜÀí·þÎñÆ÷¸½´øµÄÖ÷´úÀíºó£¬Äú±ØÐëÔÚ³¢ÊÔÆô¶¯Ëü֮ǰΪÄúµÄ·þÎñÆ÷ʵÀýÆôÓÃ×Ó´úÀí¡£Óйذ²×°Ö÷´úÀíµÄÐÅÏ¢£¬Çë²Î¼û¡°°²×° SNMP Ö÷´úÀí¡±¡£
ÔÚ UNIX/Linux ƽ̨ÉÏ£¬Äú¿ÉÒÔʹÓÃ×Ó´úÀíÍ£Ö¹ SNMP ¹¦ÄÜ¡£Äú±ØÐëÏÈÍ£Ö¹×Ó´úÀí£¬È»ºóÔÙÍ£Ö¹Ö÷´úÀí¡£Èç¹ûÏÈÍ£Ö¹Ö÷´úÀí£¬¿ÉÄÜÎÞ·¨Í£Ö¹×Ó´úÀí¡£Èç¹û·¢ÉúÕâÖÖÇé¿ö£¬ÇëÖØÐÂÆô¶¯Ö÷´úÀí£¬Í£Ö¹×Ó´úÀí£¬È»ºóÍ£Ö¹Ö÷´úÀí¡£
ÆôÓà SNMP ×Ó´úÀíµÄ²½Ö裺
- ÔÚ×ó²à´°¸ñÖУ¬Õ¹¿ª¡°App Server Instances¡±½Úµã¡£
- Ñ¡Ôñ·þÎñÆ÷ʵÀý£¬È»ºóµ¥»÷¡°Monitoring¡±Ñ¡Ï¡£
- Ñ¡Ôñ¡°SNMP Subagent Control¡±Ñ¡ÏîÒÔÏÔʾÈçÏÂͼËùʾµÄÒ³Ãæ¡£
   ¡°SNMP Subagent Control¡±Ò³Ãæ
ÔÚ´ËÒ³ÃæÖУ¬Äú¿ÉÒÔÆô¶¯¡¢Í£Ö¹»òÖØÐÂÆô¶¯ SNMP ×Ó´úÀí¡£×Ó´úÀíµÄ״̬½«ÏÔʾÔÚ¿ØÖÆ°´Å¥µÄÉÏÃæ¡£
ÔÚ Windows ƽ̨ÉÏ£¬Windows SNMP ·þÎñÓÃÓÚ¼àÊÓ Sun ONE Application Server£»¿ÉÒÔʹÓá°¿ØÖÆÃæ°å¡±-¡°¹ÜÀí¹¤¾ß¡±Öеġ°·þÎñ¡±Ñ¡ÏîÖжÔÆä½øÐпØÖÆ¡£
×¢Òâ ¶Ô SNMP ÅäÖýøÐÐÈκθü¸Äºó£¬±ØÐëµ¥»÷¡°OK¡±£¬È»ºó´Ó¡°SNMP Subagent Control¡±Ò³ÃæÖÐÖØÐÂÆô¶¯ SNMP ×Ó´úÀí¡£