Sun Java logo     ��һҳ      Ŀ¼      ����      ��һҳ     

Sun logo
Sun Java System Web Proxy Server 4.0.1 ����ָ�� 

�� 10 ��
���ӷ�����

���½��ܼ��ӷ�����ķ��������а�(���ü��ӹ��ߺͼ��������Э�� (SNMP)��

������������е������豸��������Խ� SNMP �� Sun Java System ������Ϣ�� (MIB) �Լ��������������� HP OpenView�����ʹ��4ʵʱ���ӷ�����


ע

�� Windows �ϣ��ڰ�װ Proxy Server 4 ֮ǰ����ȷ��ϵͳ���Ѱ�װ�� Windows SNMP �����


����ʹ��ͳ�����Ի� SNMP 4ʵʱ�鿴�������״̬���� UNIX �� Linux �ϣ����ƻ�ʹ�� SNMP������Ϊ Proxy Server ����������á������ṩ���� UNIX �� Linux ���� Proxy Server һ��ʹ�� SNMP �������Ϣ��

���°�(���¸�ڣ�


ʹ��ͳ����Ϣ���ӷ�����

�����ʹ��ͳ������4���ӷ�����ĵ�ǰ���ͳ����Ϣ��ʾ�˷���������������Ŀ�Լ���Щ����Ĵ���״�����ʽ������������÷�������������࣬�������Ҫ������������û�ϵͳ�������ں���������Щ����Ĭ������½���ͳ����Ϣ����Ϊ�ռ�ͳ����Ϣ����� Proxy Server ��ϵͳ����һ������ͳ����Ϣ���������Ὺʼ�ռ��ͱ���ͳ����Ϣ��

����ͳ����Ϣ������Բ鿴���·����ͳ����Ϣ��

����ʽ�����������ᱨ����ַ�����ͳ����Ϣ�ĺϼơ��й���Щͳ����Ϣ��˵��μ�j������е� "Monitor Current Activity" ҳ�档

���� Proxy Server ͳ����Ϣ

��ʹ��һ���Ϊ stats-xml �����ú���4�ռ� Proxy Server ͳ����Ϣ���������ô˺���ɴ� Server Manager �в鿴ͳ����Ϣ����ʹ�� perfdump ������ɱ��档����ʹ�� stats-xml ����4�����¼�̽�飬����ͨ��ʹ���Զ��� NSAPI �������ͳ����Ϣ�����ġ��ڷ�����������ͳ����Ϣ���¼�̽��󣬽���� obj.conf �ļ��е�һ���Ϊ stats-init �ķ���������г�ʼ�����Կ�ʼͳ����Ϣ���ռ���

Init profiling="on" fn="stats-init"

���ᴴ��һ�� NameTrans ָ�����������������з���ͳ����Ϣ��

NameTrans fn="assign-name" name="stats-xml" from="(/stats-xml|/stats-xml/.*)

����ͳ����Ϣʱ����󻹻����һ�� Service ָ�������ѡ���� NameTrans ָ��ʱ���� stats-xml ����

<Object name="stats-xml">

Service fn="stats-xml"

</Object>


ע

�ռ�ͳ����Ϣʱ������� obj.conf �е� Init ������ˣ�����ֹͣ����������ʹ��Щ�����Ч��


��ʹ������ URL ���� stats-xml ���

http://computer_name:proxyport/stats-xml/proxystats.xml

�����󽫷���һ���� Proxy Server ͳ����Ϣ�� XML ҳ�档һЩ������������������в鿴��ݣ�������һЩ��Ҫ����ݱ������ⲿ�ļ������ⲿ�鿴����в鿴�����ܶ��������ݵIJ�ͬ��ͼ����ͳ����Ϣ�������Ϣ����;����ʮ�����ԡ��ɽ�������4��ɴ˴����̡���û�н���ߣ��������ͨ�� Server Manager �� perfdump SAF 4�۲� stats-xml ���

���ƶ� stats-xml ���ķ���

���Ҫ�Կ���ͨ�������鿴������ stats-xml ͳ����Ϣ���û��������ƣ�ӦΪ /stats-xml URI ����һ�� ACL��

�������� obj.conf �ļ��� stats-xml �����������ø� ACL �ļ������磬���Ϊ /stats-xml URI ������һ������ ACL������Ҫ�ڸö������ PathCheck ��������ø� ACL �ļ���������ʾ��

<Object name="stats-xml">

PathCheck fn="check-acl" acl="stats.acl"

Service fn="stats-xml"

</Object>

����ͳ����Ϣ

�������� Proxy Server �ϼ���ͳ����Ϣ�����ܶ����ܽ��м��ӡ�����ͨ�� Server Manager ��ͨ��༭ obj.conf �� magnus.conf �ļ�4��ɴ˲���Ϊ���Ӻ͵�ڴ����Զ������߻��д�Զ��������û����ܸ�Ը��ֱ�Ӵ��� stats-xml��


ע��

����ͳ����Ϣ/�¼�̽��󣬷�����������û�������ʹ��ͳ����Ϣ��


�� Server Manager ������ͳ����Ϣ
  1. ���� Server Manager��Ȼ�󵥻� "Server Status" ѡ���
  2. ���� "Monitor Current Activity" t�ӡ�����ʾ "Monitor Current Activity" ҳ�档
  3. ���� "Activate Statistics/Profiling?" Ԫ��ѡ�� "Yes" ѡ�������������Ϣ��
  4. ���� "OK"��
  5. ���� "Restart Required"�������� "Apply Changes" ҳ�档
  6. ���� "Restart Proxy Server" ��ť��Ӧ�ø�ġ�
ʹ�� stats-xml ���������Ϣ
  1. �� obj.conf �е�Ĭ�϶������������һ�У�
  2. NameTrans fn="assign-name" name="stats-xml" from="(/stats-xml|/stats-xml/.*)"

  3. �� obj.conf ������� Service ����
  4. <Object name="stats-xml">

    Service fn="stats-xml"

    </Object>

  5. �� stats-init SAF ����� magnus.conf��

������ obj.conf �е� stats-init ��һ��ʾ��

Init profiling="on" fn="stats-init" update-interval="5"

����ʾ����������ָ�����¸��

ʹ��ͳ����Ϣ

����ͳ����Ϣ�󣬼��ɻ���йط�����ʵ������״��ĸ�����Ϣ��ͳ����Ϣ�����ֳɶ������

����ͳ����Ϣ
  1. ���� Server Manager��Ȼ�󵥻� "Server Status" ѡ���
  2. ���� "Monitor Current Activity" t�ӡ�
  3. �� "Select Refresh Interval" ��-ʽ�б���ѡ��ˢ�¼��
  4. ˢ�¼����}�θ�������ʾͳ����Ϣ��������

  5. �� "Select Statistics To Be Displayed" ��-ʽ�б���ѡ��Ҫ��ʾ��ͳ����Ϣ���ࡣ�й�ͳ����Ϣ���͵ĸ����Ϣ���μ��� Server Manager ����ʾͳ����Ϣ��
  6. ���� "Submit"��
  7. ��������ʵ��������������������ͳ����Ϣ/�¼�̽�飬��ῴ��һ����ʾ����ѡͳ����Ϣ�����ҳ�档��ҳ��ÿ�� 5-15 �����һ�Σ���������ѡ���ˢ�¼���

  8. ����-ʽ�б���ѡ���� ID��
  9. ��ͨ�� Server Manager �鿴��ǰ���������Щ��𲢲���ȫ�������ĵ����ء�����ʹ�� Perfdump ͳ����Ϣ4��ڷ�����

�� Server Manager ����ʾͳ����Ϣ

���ڽ�����β����� Server Manager �в鿴 proxystats.xml ����Ӽ���

���Բ��úϼ�ͼ�����ֵͼ������ͼ������ͼ4�鿴�� Proxy Server l�ӡ�DNS ���?���ֻֵ�����ٻ���ͷ����������йص���Ϣ��

�½ڽ����ܿ�Ϊ��������õ���Ϣ���͡�

l��ͳ����Ϣ

�ɴ� Server Manager �������l��ͳ����Ϣ��

DNS ͳ����Ϣ

�ɴ� Server Manager ������� DNS ͳ����Ϣ��

���ֻͳ����Ϣ

�ɴ� Server Manager ������±��ֻͳ����Ϣ��

���ٻ���ͳ����Ϣ

�ɴ� Server Manager ��������ļ����ٻ���ͳ����Ϣ��

����������ͳ����Ϣ

�ɴ� Server Manager ������·�����ͳ����Ϣ��

ʹ�� perfdump ʵ�ó�����ӵ�ǰ�

prfdump ʵ�ó����� Proxy Server �����õ�һ�������Ӧ�ó����� (SAF)�����ڴ� Proxy Server �ڲ�ͳ����Ϣ���ռ������������Ƭ�β��� ASCII �ı���ʽ������ʾ����ͨ�� Server Manager �ɻ�õ�ͳ����Ϣ������ȣ����� perfdump Ӧ�ó���ɼ��Ӹ����ͳ����Ϣ��

���� perfdump �ɽ�ͳ����Ϣ���һ�塣�����Ǽ��ӵ����̣����ǽ�ͳ����Ϣ���Խ����������Դ������ϸ��׼ȷ���˽����������

���� perfdump ʵ�ó���

ֻ���������� stats-xml ����֮��������� perfdump SAF������ֻ��ͨ��ֱ�ӱ༭ obj.conf �ļ�4������

���� perfdump SAF��
  1. �� obj.conf �ļ���Ĭ�϶������������¶���
  2. <Object name="perf">

    Service fn="service-dump"

    </Object>

  3. ��Ĭ�϶�������������ݣ�
  4. NameTrans fn=assign-name from="/.perf" name="perf"

  5. ����������������
  6. ͨ���������� URL ���� perfdump��

http://computer_name:proxyport/.perf

������ perfdump ͳ����Ϣ����ָ���������Զ�ˢ��Ƶ�ʣ�����ƣ�������ʾ���ˢ������Ϊÿ�� 5 ��һ�Σ�

http://computer_name:proxyport/.perf?refresh=5

perfdump �������

����Ϊ perfdump �������

proxyd pid: 6751

Sun Java System Web Proxy Server 4.0 B05/02/2005 15:32 (SunOS DOMESTIC)

Server started Thu May 19 13:15:14 2005

Process 6751 started Thu May 19 13:15:14 2005

ConnectionQueue:

-----------------------------------------

Current/Peak/Limit Queue Length 0/1/4096

Total Connections Queued 1

Average Queue Length (1, 5, 15 minutes) 0.00, 0.00, 0.00

Average Queueing Delay 0.09 milliseconds

ListenSocket ls1:

------------------------

Address http://0.0.0.0:8081

Acceptor Threads 1

KeepAliveInfo:

--------------------

KeepAliveCount 0/256

KeepAliveHits 0

KeepAliveFlushes 0

KeepAliveRefusals 0

KeepAliveTimeouts 0

KeepAliveTimeout 30 seconds

SessionCreationInfo:

------------------------

Active Sessions 1

Keep-Alive Sessions 0

Total Sessions Created 48/128

CacheInfo:

------------------

enabled yes

CacheEntries 0/1024

Hit Ratio 0/0 ( 0.00%)

Maximum Age 0

Native pools:

----------------------------

NativePool:

Idle/Peak/Limit 1/1/128

Work Queue Length/Peak/Limit 0/0/0

Server DNS cache disabled

Async DNS disabled

Performance Counters:

------------------------------------------------

Average Total Percent

Total number of requests: 1

Request processing time: 0.2559 0.2559

default-bucket (Default bucket)

Number of Requests: 1 (100.00%)

Number of Invocations: 7 (100.00%)

Latency: 0.2483 0.2483 ( 97.04%)

Function Processing Time: 0.0076 0.0076 ( 2.96%)

Total Response Time: 0.2559 0.2559 (100.00%)

Sessions:

----------------------------

Process Status Function

6751 response service-dump

�й���Щ����ĸ����Ϣ���μ�Sun ONE Web Server 6.1 Performance Tuning, Sizing, and Scaling Guide���ڶ����е� "Using Statistics to Tune Your Server"����ַΪ��

http://docs.sun.com/source/817-6249/index.html

���ƶ� perfdump ���ķ���

���Ҫ�Կ���ͨ�������鿴������ perfdump ͳ����Ϣ���û��������ƣ���ҪΪ /.perf URI ����һ�� ACL��

�������� obj.conf �ļ��� perf �����������ø� ACL �ļ������磬���Ϊ /.perf URI ������һ������ ACL������Ҫ�ڸö������ PathCheck ��������ø� ACL �ļ���������ʾ��

<Object name="perf">

PathCheck fn="check-acl" acl="perf.acl"

Service fn="service-dump"

</Object>

ʹ�����ܴ洢Ͱ

���ܴ洢Ͱ��������洢Ͱ������t�ӵ�����ͬ�ķ�������ÿ�ε�������ij����ʱ����������ռ�ͳ����ݲ�������ӵ��洢Ͱ�С����磬send-cgi �� NSServletService ����ֱ�����Ϊ CGI ����� Java servlet �����ṩ���񡣿��Զ���}��洢Ͱ4Ϊ CGI ����� servlet ����ά�����5ļ�����Ҳ�ɴ���һ��洢Ͱ4��}�����͵Ķ�̬����������м����ռ�����Ϣ�Ŀ�����٣��Է��������ܵ�Ӱ��ͨ�����Ժ��Բ��ơ�֮�󣬿���ʹ�� perfdump ʵ�ó���4���ʴ���Ϣ���洢Ͱ�д洢��������Ϣ��

default-bucket �ɷ�����Ԥ���塣��Ϊ�����κ��û�����洢Ͱ��j�ĺ����¼ͳ����Ϣ��

����

����Ϊ magnus.conf �� obj.conf �ļ��е����ܴ洢Ͱָ������������Ϣ��ֻ��Ĭ�ϴ洢Ͱ�Ż��Զ����á�

���ȣ����밴ʹ�� perfdump ʵ�ó�����ӵ�ǰ��������������ܲ���

����ʾ��չʾ������� magnus.conf �ж����µĴ洢Ͱ��

Init fn="define-perf-bucket" name="acl-bucket" description="ACL bucket"

Init fn="define-perf-bucket" name="file-bucket" description="Non-cached responses"

Init fn="define-perf-bucket" name="cgi-bucket" description="CGI Stats"

�����ʾ��ᴴ�����洢Ͱ��acl-bucket��file-bucket �� cgi-bucket��Ҫʹ��Щ�洢Ͱ�뺯�����j��������Ҫ�����ܵ� obj.conf ������� bucket=bucket-name��

ʾ��

PathCheck fn="check-acl" acl="default" bucket="acl-bucket"

...

Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file" bucket="file-bucket"

...

<Object name="cgi">

ObjectType fn="force-type" type="magnus-internal/cgi"

Service fn="send-cgi" bucket="cgi-bucket"

</Object>

���ܱ���

����ʹ�� perfdump ʵ�ó���4���ʴ洢Ͱ�еķ�����ͳ����Ϣ�����ܴ洢Ͱ��Ϣλ�� perfdump ��ر�������һ���֡�

�ñ��溬��������Ϣ��

������ͨ�� perfdump ���Ի�õ����ܴ洢Ͱ��Ϣ��һ��ʾ��

Performance Counters:

------------------------------------------------

Average Total Percent

Total number of requests: 1

Request processing time: 0.2559 0.2559

default-bucket (Default bucket)

Number of Requests: 1 (100.00%)

Number of Invocations: 7 (100.00%)

Latency: 0.2483 0.2483 ( 97.04%)

Function Processing Time: 0.0076 0.0076 ( 2.96%)

Total Response Time: 0.2559 0.2559 (100.00%)

 


SNMP ��ԭ��

SNMP �����ڽ����й���������ݵ�Э�顣���� SNMP�������ڱ�������豸���������վ (NMS) ֮�䴫����ݡ���������豸������ SNMP ���κ��豸�����·�������������Լ������ϵ����������NMS �����ڶԸ��������Զ�̹����ϵͳ��NMS ���ͨ���ṩͼ��4��ʾ�ռ�����ݣ���ʹ����Щ���ȷ�����������ض������������С�

NMS ͨ���ǰ�װ��һ������������Ӧ�ó���Ĺ���ǿ��Ĺ���վ���������Ӧ�ó������� HP OpenView����ͼ�η�ʽ��ʾ�йر������豸������ Web ���������Ϣ�����磬�������ʾ�����ҵ�з�����Ĵ򿪻�ر��������յ��Ĵ�����Ϣ���������͡�����������һ��ʹ�� SNMP ʱ����ͨ��ʹ��}�����͵Ĵ��?�Ӵ��������?�� NMS �������֮�䴫�ʹ���Ϣ��

�Ӵ����ռ��йط��������Ϣ����������Ϣ���ݸ�����������?ÿ�������Administration Server ���⣩����һ���Ӵ��?


ע

�� SNMP ���ý����κθ�ĺ󣬱��뵥�� "Apply Required"��Ȼ�������� SNMP �Ӵ��?


������� NMS ����ͨ�š�������� Administration Server һ��װ��

�������һ̨����ϰ�װ����Ӵ��?����ֻ�ܰ�װһ������?���磬�����ͬһ̨����ϰ�װ�� Directory Server��Proxy Server �� Messaging Server����ÿ���������Ӵ��?����ͬһ����������ͨ�š�


������Ϣ��

Proxy Server �洢������������йصı����������Է��ʵı���Ϊ�����������Щ�����ڳ�Ϊ������Ϣ�� (MIB) ����״�ṹ�ж��塣ͨ�� MIB �ɶ� Proxy Server �������á�״̬��ͳ����Ϣ���з��ʡ�ʹ�� SNMP �ɴ� NMS �в鿴����Ϣ��MIB ��Ķ������ Internet �����ʶ������ĸ�����directory (1)��mgmt (2)��experimental (3) �� private (4)��private (4) ����� enterprises (1) �ڵ㡣enterprises (1) �ڵ��е�ÿ������������һ��5���ҵ����ҵ��ע�����Լ��ض� MIB )չ����֯��Ȼ����ҵ�������������´����ض���Ʒ����������ҵ������ MIB λ�� enterprises (1) �ڵ��¡�Sun Java System ������ MIB Ҳλ�� enterprises (1) �ڵ��¡�ÿ�� Sun Java System �������Ӵ��?�ṩ��һ������ SNMP ͨ�ŵ� MIB��������ͨ���Ͱ���Щ������Ϣ�����彫��Ҫ�¼������ NMS��NMS �����Բ�ѯ������� MIB 4��ȡ��ݣ�������Զ�̷�ʽ��� MIB �еı���ÿ�� Sun Java System ��������и��Ե� MIB������ Sun Java System ������ MIB ��λ�ڣ�

server_root/plugins/snmp

Proxy Server �� MIB ��һ���Ϊ proxyserv40.mib ���ļ����� MIB ���� Proxy Server ����������йصĸ��ֱ��Ķ��塣����ʹ�� Proxy Server MIB 4�鿴�й� Proxy Server �Ĺ�����Ϣ���Լ�ʵʱ���ӷ�����


���� SNMP

һ����ԣ�Ҫʹ�� SNMP��������ϵͳ�ϰ�װ������һ������������һ���Ӵ��?Ҫ�����Ӵ��?��Ҫ�Ȱ�װ����?

���� SNMP �Ĺ�̸�ݲ�ͬ��ϵͳ��ͬ��

��ʼǰ��Ӧ����֤}�����飺

�й������֤��Щ��Ϣ����Ϣ���μ����ϵͳ�ĵ���


ע

�ڸ���� Administration Server �е� SNMP ���á���װ���µķ������ɾ�������з�����������ִ�����²��裺

  • (Windows) ������ Windows SNMP �����������ϵͳ��
  • (UNIX) ʹ�� Administration Server ������ SNMP ����?

�� 1 ���� SNMP �������Ӵ���Ĺ�̸���

�������������������

��ִ�����¹�̡���Щ��̽��ں���������ϸ���ۡ�

  • ��ǰû�����б������
  1. ������?
  2. Ϊϵͳ�ϰ�װ��ÿ������������Ӵ��?
  • ������?ǰ��������
  • �� SMUX
  • ����Ҫ����ʹ�ñ������
  1. Ϊ Administration Server ��װ�����ʱ��ֹͣ������?
  2. ������?
  3. Ϊϵͳ�ϰ�װ��ÿ������������Ӵ��?
  • ������?ǰ��������
  • �� SMUX
  • ��Ҫ����ʹ�ñ������
  1. ��װ��������� SNMP ���?
  2. ������?
  3. ���������� SNMP ���?
  4. ʹ�������˿ں����������˿ں������������?
  5. Ϊϵͳ�ϰ�װ��ÿ������������Ӵ��?
  • ������?ǰ��������
  • ֧�� SMUX

 

  1. �������� SNMP ������?
  2. Ϊϵͳ�ϰ�װ��ÿ������������Ӵ��?


ʹ�ô�������� SNMP ���� (UNIX)

�������һ�������������У�������Ҫ������ Proxy Server �����һ��ͬʱʹ��������Ҫʹ�ô�������� SNMP ���?�ڿ�ʼ֮ǰ����ȷ��ֹͣ��������?���й���ϸ��Ϣ���μ����ϵͳ�ĵ�����


ע

Ҫʹ�ô����������?��Ҫ�Ȱ�װ�����������ʹ�� Proxy Server ��������ж˿ں�����Ķ˿ںţ���������� SNMP ����?


���ڰ�(�������⣺

��װ��������� SNMP ����

���ij�� SNMP ��������ϵͳ�����У�������ϣ�����ʹ�ñ��� SNMP �ػ���̣���ִ�����¸���еIJ��裺

  1. ��װ SNMP ����?�μ���װ SNMP �������
  2. ��װ������������ SNMP ���?Ȼ����������� SNMP �ػ���̡��μ�ʹ�ô�������� SNMP ���� (UNIX)��
  3. �� SNMP ����?�μ����ú��� SNMP �������
  4. �����Ӵ��?�μ������Ӵ�����

Ҫ��װ SNMP �����������?��༭ CONFIG �ļ�����Ϊ���ļ�ָ����һ��ͬ��ƣ���ʹ��� SNMP �ػ���̽�Ҫ����Ķ˿ڡ����ļ�λ�ڷ������Ŀ¼�µ� plugins/snmp/sagt �С����л���Ҫ��(��������� 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 ���?����������ʾ�����룺

��������� SNMP �ػ����

���������� SNMP �������Ҫ�� CONFIG �ļ���ָ���Ķ˿���������� SNMP �ػ���̡�Ҫ����� SNMP �ػ���̣�����������ʾ�����룺

# snmpd -P port_number

���� port_number ���� CONFIG �ļ���ָ���Ķ˿ںš����磬�� Solaris ƽ̨�ϣ���Ҫʹ������ CONFIG �ļ�ʾ���еĶ˿ڣ���Ӧ���룺

# snmpd -P 1161


�������� SNMP �������

��� SNMP �ػ���������� AIX �ϣ�����֧�� SMUX����ˣ����谲װ����?���ǣ�������� AIX SNMP �ػ�������á�

AIX ʹ�ö�������ļ�4�q���ͨ�š���Ҫ��� snmpd.conf������һ�������ļ�����ʹ SNMP �ػ���̽��ܴ� SMUX �Ӵ����յ�����Ϣ���йظ����Ϣ���μ� snmpd.conf ��j���ֲ�ҳ������Ҫ���һ���Զ���ÿ���Ӵ��?

���磬����Խ�������ӵ� snmpd.conf �У�

IP_address �������Ӵ�������� IP ��ַ��net_mask �Ǹ������������롣


ע

����ʹ�û��͵�ַ 127.0.0.1����Ӧʹ��ʵ�ʵ� IP ��ַ��



��װ SNMP �����

Ҫ���� SNMP ����?������������û���ݰ�װ Administration Server ʵ���ǣ���ʹ�Ƿ������û���Ҳ����ͨ������ SNMP �Ӵ����Ա��������һ����Ӷ��� Web ������ʵ������ɻ� SNMP �������� MIB ��#���

��װ�� SNMP ����
  1. �Գ����û���ݵ�¼��
  2. ���˿� 161 ���Ƿ������� SNMP �ػ���� (snmpd)��
  3. ���û������ SNMP �ػ���̣���ת������ 4��

    ��������� SNMP �ػ���̣���ȷ��֪��������������Լ���֧����Щ MIB ��

  4. ��������� SNMP �ػ���̣�����ֹ���̡�
  5. �� Administration Server �У��� "Global Settings" ѡ���ѡ�� "Set SNMP Master Agent Trap" ҳ�档
  6. ������������������������ϵͳ����ơ�
  7. �����������ϵͳ��4��������Ķ˿ںš������õĶ˿��� 162�����й�����ĸ����Ϣ���μ���������Ŀ����
  8. ����Ҫ��������ʹ�õ������ַ��й������ַ�ĸ����Ϣ���μ����������ַ���
  9. ���� "OK"��
  10. �� Administration Server �У��� "Global Settings" ѡ���ѡ�� "Set SNMP Master Agent Community" ҳ�档
  11. ���������������ַ�
  12. ѡ������IJ���
  13. ���� "New"��


���ú��� SNMP �����

������������Ϊ CONFIG �Ĵ��������ļ��н����˶��塣�����ʹ�� Server Manager �༭ CONFIG �ļ���Ҳ�����ֶ��༭���ļ���Ҫ���� SNMP �Ӵ��?�����Ȱ�װ SNMP ����?

����������������ʱ���������� "System Error: Could not bind to port" �İ󶨴�����ʹ�� ps -ef | grep snmp ��� magt �Ƿ������С�����������У���ʹ�� kill -9 pid �������ý�̡�Ȼ��SNMP �� CGI �����¿�ʼ����

���ڰ�(�������⣺

������˿����������

������治���� 161 ����Ķ˿����� SNMP ����?

�ֶ�������˿����������
  1. �༭ /server_root/plugins/snmp/magt/CONFIG ��ָ������Ķ˿ڡ�
  2. ����������ű���
  3. cd /server_root/proxy-admserv

    ./start -shell /server_root/plugins/snmp/magt/magt

    /server_root/plugins/snmp/magt/CONFIG

    /server_root/plugins/snmp/magt/INIT

Ȼ������?����ϣ��Ķ˿���������ǣ��û������ܹ�����������������С�

�ֶ����� SNMP �����

�ֶ����� SNMP �����
  1. �Գ����û���ݵ�¼��
  2. ���˿� 161 ���Ƿ������� SNMP �ػ���� (snmpd)��
  3. ��������� SNMP �ػ���̣���ȷ��֪��������������Լ���֧����Щ MIB ��Ȼ����ֹ���̡�

  4. �༭λ�ڷ������Ŀ¼�� plugins/snmp/magt �е� CONFIG �ļ���
  5. ����ѡ���� CONFIG �ļ��ж��� sysContact �� sysLocation ����

�༭������ CONFIG �ļ�

�ֶ����� SNMP �����
  1. �Գ����û���ݵ�¼��
  2. ���˿� 161 ���Ƿ������� SNMP �ػ���� (snmpd)��
  3. ��������� SNMP �ػ���̣���ȷ��֪��������������Լ���֧����Щ MIB ��Ȼ����ֹ���̡�

  4. �༭λ�ڷ������Ŀ¼�� plugins/snmp/magt �е� CONFIG �ļ���
  5. ����ѡ���� CONFIG �ļ��ж��� sysContact �� sysLocation ����

���� sysContact �� sysLocation ��

����Ա༭ CONFIG �ļ���Ϊָ���� sysContact �� sysLocation MIB-II ���� sysContact �� sysLocation ��ӳ�ʼֵ����ʾ���� sysContact �� sysLocation ���ַ����������ڡ��κΰ�ո񡢻��з��Ʊ��ȵ��ַ������������ڡ���Ҳ������ʮ����Ƽ���4ָ��ֵ��

������һ�� CONFIG �ļ�ʾ�����ж����� sysContract �� sysLocation ����

COMMUNITY          public
                   ALLOW ALL OPERATIONS

MANAGER            nms2
                   SEND ALL TRAPS TO PORT 162
                   WITH COMMUNITY public

INITIAL            sysLocation "Server room
987 East Cannon Road
Mountain View, CA 94043
USA"

INITIAL            sysContact "Jill Dawson
email: jdawson@example.com"

���� SNMP �Ӵ���

��������� SNMP �Ӵ����Լ��ӷ�����

���� SNMP �Ӵ���
  1. ���� Server Manager��Ȼ�󵥻� "Server Status" ѡ���
  2. ���� "Configure SNMP Subagent" t�ӡ�����ʾ "Configure SNMP Subagent" ҳ�档
  3. �� "Master Host" �ֶ���������������ƺ���
  4. ���������������(����ϵͳ��Ϣ��
  5. ���븺��÷��������֯��
  6. �� "Location" �ֶ������������ľ��·����
  7. �� "Contact" �ֶ��У����븺��÷��������Ա�������jϵ��Ϣ��
  8. ѡ�� "On" ���� SNMP ͳ����Ϣ�ռ���
  9. ���� "OK"��
  10. ���� "Restart Required"�������� "Apply Changes" ҳ�档
  11. ���� "Restart Proxy Server" ��ť��Ӧ�ø�ġ�

�� SNMP �����

��װ SNMP ������������ֶ������ͨ�� Administration Server ���

�ֶ��� SNMP �����

Ҫ�ֶ�������?����������ʾ�������������

INIT �ļ��ǰ� MIB-II ϵͳ����Ϣ����(ϵͳλ�ú�jϵ��Ϣ���ķ���ʧ���ļ������ INIT �в����ڣ�������״��������ʱ��������� CONFIG �ļ��еĹ����������Ч���������������ʧ�ܡ�

Ҫ�ڷDZ�׼�˿���������?��ʹ������}�ַ���֮һ��

����һ���� CONFIG �ļ��У�Ϊ�������4����4�Թ������ SNMP �����ÿ��ӿ�ָ������ӳ�䡣����ӳ�������������ܱ�׼�˿ںͷDZ�׼�˿��ϵ�l�ӡ�����?�����ڷDZ�׼�˿��Ͻ��� SNMP ͨ�š����� SNMP �������Ŀ������Ŀ��ϵͳ��ÿ���̵Ĵ򿪵��׽��ֻ��ļ��������Ŀ�����ơ�������һ����ӳ����Ŀʾ��

�ֶ��༭ CONFIG �ļ�����Ӧ����������ʾ��������������Ա��ֶ�������?

���������༭ /etc/services �ļ����������������ܱ�׼�˿ںͷDZ�׼�˿��ϵ�l�ӡ�

ʹ�� Administration Server �� SNMP �����

ʹ�� Administration Server �� SNMP �����
  1. ��¼ Administration Server��
  2. �� Administration Server �У��� "Global Settings" ѡ���ѡ�� "Control SNMP Master Agent" ҳ�档
  3. ���� "Start"��

������ͨ�� "Control SNMP Master Agent" ҳ��ֹͣ�������� SNMP ����?


���� SNMP �����

����������?�������������ij���Ӵ������Ҫ�������� Administration Server����Ҫ��ָ�������ַ������Ŀ�ꡣ

���������ַ�

�����ַ��� SNMP ������4������Ȩ���ı��ַ�����ζ���������վ�ڷ��͸�����ÿ����Ϣ�ж�����һ�������ַ�Ȼ�󣬴���Ϳ�����֤�������վ�Ƿ���Ȩ��ȡ��Ϣ�������ַ��� SNMP ���з���ʱû�б����أ��ַ��� ASCII �ı���ʽ���͡�

����ͨ�� Administration Server �е� "Set SNMP Master Agent Community" ҳ��Ϊ SNMP ��������������ַ������Զ����ض���������ִ�е��� SNMP ��صIJ����� Administration Server �У������Բ鿴���༭��ɾ�������õ����塣

��������Ŀ��

SNMP ������ SNMP ���?�͸��������վ����Ϣ�����磬���ӿڵ�״̬�ɴ򿪱�Ϊ�ر�ʱ��SNMP ���?����һ�����塣SNMP �������֪���������վ�ĵ�ַ���Ա�֪����δ��������塣���Դ� Proxy Server ��Ϊ SNMP ��������ô�����Ŀ�ꡣ�����Բ鿴���༭��ɾ�������õ�����Ŀ�ꡣʹ�� Proxy Server ��������Ŀ��ʱ����ʵ�Ƕ� CONFIG �ļ����б༭��


�����Ӵ���

��װ�� Administration Server �����������������ڳ�������֮ǰΪ��ķ�����ʵ�������Ӵ��?�йذ�װ�����ĸ����Ϣ���μ���װ SNMP ������������ʹ�� Server Manager �����Ӵ��?

Ҫ�� UNIX �� Linux ƽ̨��ֹͣ SNMP ���ܣ�������ֹͣ�Ӵ��?Ȼ����ֹͣ����?�����ֹͣ����?�����޷�ֹͣ�Ӵ��?������������������������?ֹͣ�Ӵ��?Ȼ��ֹͣ����?

Ҫ���� SNMP �Ӵ��?��ʹ�� Server Manager �е� "Configure SNMP Subagent" ҳ�棬Ȼ��� "Control SNMP Subagent" ҳ�������Ӵ��?�йظ����Ϣ���μ�j������е���ӦС�ڡ�

�����Ӵ���󣬱��ͨ�� "Control SNMP Subagent" ҳ�� �� Windows �ķ���������4���ֹͣ����������Ӵ��?


ע

�� SNMP ���ý����κθ�ĺ󣬱��뵥�� "Apply Required"��Ȼ�������� SNMP �Ӵ��?



�˽� SNMP ��Ϣ

GET �� SET �� SNMP �����}�����͵���Ϣ��GET �� SET ��Ϣ���������վ (NMS) ���͸�����?�����ͨ�� Administration Server ʹ������һ���}��ʹ�á�

SNMP ��Э����ݵ�Ԫ (PDU) ��ʽ����������Ϣ����Щ��Ԫ���йش洢�ڱ������豸������ Web �������ϵı�����Ϣ����Щ����Ҳ��Ϊ��������󣩾���ֵ�ͱ��⣬ֵ�ͱ��⽫����Ҫʱ����� NMS���ɷ������͸� NMS ��Э����ݵ�ԪҲ��Ϊ“����”���������˵���� GET��SET ��“����”��Ϣ��ʹ�á�

NMS ���ͨ�š�NMS ���ӷ�����������Ϣ�����߸�Ĵ洢�ڷ����� MIB �еı���ֵ�����磺

  1. NMS ����Ϣ���͸� Administration Server ����?��Ϣ�������������һ�� GET ��Ϣ����Ҳ�������� MIB �����ñ���ָ�һ�� SET ��Ϣ����
  2. ����?��Ϣת������Ӧ���Ӵ��?
  3. �Ӵ��?������ݻ��� MIB �еı���
  4. �Ӵ��?��ݻ�״̬���������?Ȼ������?��Ϣ��һ�� GET ��Ϣ��ת���� NMS��
  5. NMS ͨ�����������Ӧ�ó������ı���ͼ�η�ʽ��ʾ����ݡ�

���������ͨ�š�������Ҫ�¼�ʱ���������Ӵ��?�� NMS ����һ����Ϣ����“����”�������磺

  1. �Ӵ���֪ͨ������������ֹͣ��
  2. ����?��һ����Ϣ����“����”���������¼������ NMS��
  3. NMS ͨ�����������Ӧ�ó������ı���ͼ�η�ʽ��ʾ����Ϣ��


��һҳ      Ŀ¼      ����      ��һҳ     


�ļ����� 819-3162����Ȩ���� 2005 Sun Microsystems, Inc. ��������Ȩ��