Sun logo      ��һ��      Ŀ¼      ����      ��һ��     

Sun ONE Messaging Server 6.0 ����Աָ��

��¼ A
SNMP ֧��

Messaging Server ֧��ͨ����������Э�� (SNMP) ����ϵͳ���ӡ�ʹ������ Sun Net Manager �� HP OpenView������˲�Ʒ�ṩ��֮��� SNMP �ͻ�����ʱ��������������������Լ��� Messaging Server ���ض����֡��йؼ��� Messaging Server ����ϸ��Ϣ����μ��� 19 �¡����� Messaging Server����

���½���������� Messaging Server �� SNMP ֧�ֹ��ܡ�ͬʱ�������� SNMP ���ṩ����Ϣ���͡���ע�⣬���²�������δ� SNMP �ͻ���鿴����Ϣ���й����ʹ�� SNMP �ͻ���鿴���� SNMP ����Ϣ����ϸ��Ϣ����μ� SNMP �ͻ����ĵ������ĵ��������� Messaging Server SNMP ʵ�ֵ�ijЩ������ݣ����й������ MIB ��ϸ��Ϣ����μ� RFC 2788 �� RFC 2789��

���������¸����ɣ�


SNMP ʵ��

Messaging Server ʵ��}���׼�� MIB�������������� MIB (RFC 2788) ���ʼ����� MIB (RFC 2789)������������ MIB �ṩ������������� POP��IMAP��HTTP �� SMTP ������ļ��ӡ��ʼ����� MIB �ṩ�� MTA �ļ��ӡ��ʼ����� MIB �������ÿ�� MTA Ƶ�5�״̬����(�״̬����ʷ״̬�����Ϣ��Ҫ�ǵ�ǰ������е��ʼ��ʹ򿪵�����l�ӣ����磬����ʼ��ļ���򿪵�����l�ӵ�Դ IP ��ַ��������ʷ��Ϣ���ṩ�ۻ��������磬�Ѵ����ʼ�������4l�ӵ�����


ע

�й� Messaging Server SNMP ������Ϣ�������б?��μ� RFC 2788 �� RFC 2789��


Ŀǰ���� Solaris 8 ƽ̨֧�� SNMP���Ժ�İ汾�л�������ƽ̨��֧�֡�Solaris �е� SNMP ֧��ʹ�ñ��� Solaris SNMP ���� Solstice Enterprise Agent (SEA)���û������� Solaris 8 ϵͳ�а�װ SEA�����������ʱ�ⶼ�Ѿ����ڡ�

�� Messaging Server SNMP ֧�ֵ��������£�

Messaging Server �е� SNMP ����

�� Solaris ƽ̨�У�Messaging Server SNMP �����һ�� SNMP �Ӵ��?���Ӵ�������ʱ������ע�ᵽƽ̨�ı��� SNMP ����?4�Կͻ���� SNMP �����������?����?���͸� Messaging Server ����������ת���� Messaging Server �Ӵ����̡�Messaging Server �Ӵ����̽��������󣬲�ͨ������?��Ӧ����ת����ͻ���ͼ A-1 ��ʾ�˸ý�̡�

ͼ A-1 SNMP ��Ϣ��

��ͼ����ʾ�� SNMP ��Ϣ��


�� Solaris 8 ��Ϊ Messaging Server ���� SNMP ֧��

���� SNMP ���ӵĿ���dz�С���� Messaging Server ��ʱ��Ȼ������ SNMP ֧�֡�Ҫ���� SNMP ֧�֣��������������

# su user-id-for-ims
# configutil -o local.snmp.enable -v 1
# start-msg snmp

���� SNMP ��start-msg �������ָ���κβ����Զ��� SNMP �Ӵ����̺����� Messaging Server ��̡�

��ע�⣬�������� Solaris ���� SNMP ����?Messaging ServerSNMP �Ӵ�����ܲ���Solaris ���� SNMP ������� snmpdx �ػ����򣬴˳���ͨ����Ϊ Solaris ���̵�һ�������

SNMP �Ӵ��?�Զ�ѡ��Ҫ����� UDP �˿ڡ������Ҫ������ʹ����������Ϊ�Ӵ���ָ���̶��� UDP �˿ڣ�

# configutil -o local.snmp.port -v port-number

�Ժ����ͨ��˶˿ںŵ�ֵָ��Ϊ��4��������á�ȱʡ��������� Messaging Server �����Ӵ����Զ�ѡ��������õ� UDP �˿ڡ�

��}�� SNMP �Ӵ��������ļ������� /etc/snmp/conf Ŀ¼�У�ims.acl �� SNMP ���ʿ�����Ϣ���� ims.reg �� SNMP MIB OID ע����Ϣ��

ͨ������༭��}���ļ���Messaging Server �ַ��� MIB ��ֻ�uģ����������� ims.reg �ļ���ָ���˿ںš����ָ���˶˿ںţ��ö˿ںŽ���Ч�����ʹ�� configutil ʵ�ó�����������һ�˿ںš�����������£�ʹ�� configutil ���õĶ˿ں����Ӵ��?Ҫʹ�õĶ˿ںš����༭���ļ�������Ҫʹ����������ֹͣ�������� SNMP �Ӵ������ʹ�����Ч��

# stop-msg snmp
# start-msg snmp


ͨ�� SNMP �ͻ������

RFC 2788 �� RFC 2789 �Ļ� OID ��

mib-2.27 = 1.3.6.1.2.1.27

mib-2.28 = 1.3.6.1.2.1.28

����� SNMP �ͻ���ָ������}�� OID����������Ϊ�����á�SNMP ������ʡ�

���Ҫ�� MIB ����װ�� SNMP �ͻ�������� msg_svr_base/lib/config-templates Ŀ¼���ļ��� rfc2788.mib �� rfc2789.mib �²��� MIB �� ASCII �������й��� SNMP �ͻ��������װ�� MIB ��ָ����Ϣ����μ� SNMP �ͻ�������ĵ���ijЩ�Ͼɵ� SNMP �ͻ�������޷�ʶ����Щ MIB ��ʹ�õ� SnmpAdminString ������͡�����������£���ʹ��λ��ͬһĿ¼�еĵ�Ч�ļ� rfc2248.mib �� rfc2249.mib��


�� Unix ƽ̨�е����� Sun ONE ��Ʒ����

�ṩ SNMP ֧�ֵ����� Netscape �� Sun ONE ��Ʒ����ͨ��ȡ��ƽ̨�ı��� SNMP �����4����һ�㡣���Ҫ��ͬһ��������� Messaging Server ����� Sun ONE ��Ʒ����Ҫͨ�� SNMP ��}�ֲ�Ʒ���м��ӣ��밴�� Managing Servers with iPlanet Console (http://docs.sun.com/source/816-5572-10/11_snmp.htm) �� 11 ���������� Sun ONE Proxy SNMP Agent���⽫���� Messaging Server SNMP �Ӵ��?���� SNMP �Ӵ��?������ Sun ONE ��Ʒ�зDZ��ص� Sun ONE SNMP �Ӵ��?�档


4�� Messaging Server �� SNMP ��Ϣ

���ڸ�(��ͨ�� SNMP �ṩ�� Messaging Server ��Ϣ���й���ϸ��Ϣ����μ� RFC 2788 �� RFC 2789 �еĵ��� MIB �?��ע�⣬RFC/MIB ���ォ�ʼ����ͷ���MTA��HTTP �ȣ�����Ӧ�ó��� (appl)���� Messaging Server ����l�ӳ�����j (assoc)���� MTA Ƶ�3��� MTA �� (mtaGroups)��

��ע�⣬�ڿ���ͬʱ���Ӷ�� Messaging Server ʵ���ƽ̨�У�applTable �п��ܻ��ж��� MTA �ͷ�����������п��ܻ��ж�� MTA��


ע

������󽫰� MIB �б�����ۻ�ֵ�����磬�������ʼ�������IMAP l������ȣ���������Ϊ�㡣


ÿ��վ�㶼�в�ͬ����ֵ����Ҫ�ļ���ֵ���õ� SNMP �ͻ�������������Ʒ������ͻȻ���ֱ�����ʷ���Ƶ����ʱ���;��档

applTable

applTable �ṩ��������Ϣ������һά���һ������ MTA������ÿһ����������һ���������������ã���WebMail HTTP��IMAP��POP��SMTP �� SMTP Submit���ñ��ṩ�汾��Ϣ��������ʱ�䡢��ǰ����״̬��up��down��congested������ǰl�������ۻ�l����������������ݡ�

������ applTable (mib-2.27.1.1) ��ݵ�ʾ��

applTable:

applName.11 = mailsrv-12 MTA on mailsrv-1.west.sesta.com

applVersion.1 = 5.1

applUptime.1 = 73223

applOperStatus.1 = up4

applLastChange.1 = 74223

applInboundAssociations.1 = 5

applOutboundAssociations.1 = 2

applAccumulatedInboundAssociations.1 = 873

applAccumulatedOutboundAssociations.1 = 234

applLastInboundActivity.1 = 10548223

applLastOutboundActivity.1 = 10542223

applRejectedInboundAssociations.1 = 05

applFailedOutboundAssociations.1 = 17

applDescription.1 = Sun ONE Messaging Server 5.1

applName.21 = mailsrv-1 HTTP WebMail server on mailsrv-1.west.sesta.com

...

applName.3 = mailsrv-1 IMAP server on mailsrv-1.west.sesta.com

...

applName.4 = mailsrv-1 POP server on mailsrv-1.west.sesta.com

...

applName.5 = mailsrv-1 SMTP server on mailsrv-1.west.sesta.com

...

applName.6 = mailsrv-1 SMTP Submit server on mailsrv-1.west.sesta.com

...

˵��

  1. �˴��� .1��.2 �Ⱥ�׺���б�� applIndex��applIndex ��ֵ 1 ��� MTA��ֵ 2 ��� HTTP ������ȵȡ���ˣ��ڴ�ʾ���У�����һ���ṩ MTA �е���ݣ��ڶ����ṩ POP �������е���ݣ��ȵȡ�
  2. �ܼ��ӵ� Messaging Server ʵ�����ơ��ڴ�ʾ���У�ʵ������� mailsrv-1��
  3. ��Щ�� SNMP ʱ���ֵ�����¼�����ʱ sysUpTime ��ֵ���� sysUpTime �� SNMP ���������԰ٷ�֮һ��Ϊ��λ�ļ���
  4. ͨ�������õ� TCP �˿�ʵ��l�ӵ� HTTP��IMAP��POP��SMTP �� SMTP Submit �������ʹ���ʵ�Э�飨���磬���� HTTP �� HEAD �������Ӧ������ SMTP �� HELO �������Ӧ�ȣ�ִ�м򵥲������ȷ����Щ�����������״̬��ͨ���l�ӳ��Կ���ȷ��ÿ��������״̬ �� up (1)��down (2) �� congested (4)��
  5. ��ע�⣬��Щ̽�⿴����ķ�������4l�ӣ���Ӱ��ÿ�������� applAccumulatedInboundAssociations MIB ����ֵ��

    ���� MTA������״̬����ҵ������IJ���״̬����� MTA ��ʾΪ��up��������ҵ������ҲΪ��up������� MTA ��ʾΪ��down��������ҵ������ҲΪ��down������ MTA ����״̬��b�� MTA �ķ���ַ������״̬��MTA �IJ���״ֻ̬�� up ֵ�� down ֵ��������ҵ�������С�congested����һ����� MTA ״̬��û�д˸��

  6. ���� HTTP��IMAP �� POP ������applRejectedInboundAssociations MIB ����ʾʧ�ܵĵ�¼���Ե��������DZ��ܾ����4l�ӳ��Ե�����

applTable ���÷�

����ÿ���г��Ӧ�ó���ķ�����״̬ (applOperStatus) ���ڼ���ÿ����������y���Ҫ�ġ�

��������һ�� MTA ��4����� applLastInboundActivity ���ʾ���Ѿ����˺ܾã�����ܳ����˹��ϣ�����޷�l�ӡ���� applOperStatus=2 (down)������ӷ����ѹرա���� applOperStatus=1 (up)����������ܳ�������ط���

assocTable

�ñ��ṩ�� MTA ������l����Ϣ�����Ƕ�ά����ṩ�й�ÿ��������l�ӵ���Ϣ�����ṩ����������l����Ϣ��

������ applTable (mib-2.27.2.1) ��ݵ�ʾ��

assocTable:

assocRemoteApplication.1.11 = 129.146.198.1672

assocApplicationProtocol.1.11 = applTCPProtoID.253

assocApplicationType.1.1 = peerinitiator(3)4

assocDuration.1.1 = 4005

...

˵��

  1. �ں�׺ .x.y �У�x ��Ӧ�ó������� applIndex����ʾ������� applTable �е��ĸ�Ӧ�ó����ڴ�ʾ����Ϊ MTA��y ����ö������Ӧ�ó����ÿ��l�ӡ�
  2. Զ�� SMTP �ͻ����Դ IP ��ַ��
  3. ����һ�� OID����ʾ����l����ʹ�õ�Э�顣aplTCPProtoID ��ʾ TCP Э�顣��׺ .n ��ʾʹ�õ� TCP �˿ڣ�.25 ��ʾ���� TCP �˿� 25 ʹ�� SMTP Э�顣
  4. �޷��ж�Զ�� SMTP �ͻ������û����� (UA) �������� MTA����ˣ��Ӵ���ʼ�ձ��� peer-initiator����Ӳ����� ua-initiator��
  5. ���� SNMP TimeInterval���԰ٷ�֮һ��Ϊ��λ���ڴ�ʾ���У�l���Ѵ� 4 ���ӡ�

assocTable ���÷�

�ñ���4��ϻ���⡣���磬���ͻȻ�� 200,000 ����4l�ӣ��鿴�˱����֪�����ǵ�4Դ��

mtaTable

����һά���ÿһ������ applTable ���е�һ�� MTA��ÿһ��Ϊ mtaGroupTable �е�ѡ�����ṩ�˸� MTA ������Ƶ�#������飩������

������ applTable (mib-2.28.1.1) �е���ݵ�ʾ��

mtaTable:

mtaReceivedMessages.11 = 172778

mtaStoredMessages.1 = 19

mtaTransmittedMessages.1 = 172815

mtaReceivedVolume.1 = 3817744

mtaStoredVolume.1 = 34

mtaTransmittedVolume.1 = 3791155

mtaReceivedRecipients.1 = 190055

mtaStoredRecipients.1 = 21

mtaTransmittedRecipients.1 = 3791134

mtaSuccessfulConvertedMessages.1 = 02

mtaFailedConvertedMessages.1 = 0

mtaLoopsDetected.1 = 03

˵��

  1. �� applTable �У���׺ .x Ϊ��Ӧ�ó����ṩ���б�š��ڴ�ʾ���У�.1 ��ʾ��������� applTable �е�һ��Ӧ�ó�����ˣ����� MTA �е���ݡ�
  2. ���� conversion Ƶ�#���ʹ�÷���ֵ��
  3. ���㵱ǰ�洢�� MTA ���ʼ������е� .HELD �ʼ��ļ�����Ŀ��

mtaTable ���÷�

��� mtaLoopsDetected ��Ϊ�㣬�����ѭ���ʼ����⡣����Ҳ���� MTA �����е� .HELD �ļ��Խ�����⡣

���ϵͳ�� conversion Ƶ�=��в���ɨ�貢�ܾ��Ⱦ�ʼ������������ת��ʧ���⣬mtaSuccessfulConvertedMessages ��������Ⱦ�ʼ��ļ���

mtaGroupTable

�˶�ά����ṩ�� applTable ��ÿ�� MTA ��Ƶ����Ϣ������Ϣ��(�����Ѵ洢��������ӣ��ʼ���Ϣ������Ѵ����ʼ���Ϣ�������ݡ�����ÿ��Ƶ�5��Ѵ洢�ʼ� (mtaGroupStoredMessages) �ļ����Ǻ���Ҫ�ģ�����ֵ����쳣�Ӵ�ʱ���ʼ����ڶ����б��ݡ�

������ mtaGroupTable (mib-2.28.2.1) ��ݵ�ʾ��

mtaGroupTable:

mtaGroupName.1.11 = tcp_intranet2

...

mtaGroupName.1.21 = ims-ms

...

mtaGroupName.1.31 = tcp_local

mtaGroupDescription.1.3 = mailsrv-1 MTA tcp_local channel

mtaGroupReceivedMessages.1.3 = 12154

mtaGroupRejectedMessages.1.3 = 0

mtaGroupStoredMessages.1.3 = 2

mtaGroupTransmittedMessages.1.3 = 12148

mtaGroupReceivedVolume.1.3 = 622135

mtaGroupStoredVolume.1.3 = 7

mtaGroupTransmittedVolume.1.3 = 619853

mtaGroupReceivedRecipients.1.3 = 33087

mtaGroupStoredRecipients.1.3 = 2

mtaGroupTransmittedRecipients.1.3 = 32817

mtaGroupOldestMessageStored.1.3 = 1103

mtaGroupInboundAssociations.1.3 = 5

mtaGroupOutboundAssociations.1.3 = 2

mtaGroupAccumulatedInboundAssociations.1.3 = 150262

mtaGroupAccumulatedOutboundAssociations.1.3 = 10970

mtaGroupLastInboundActivity.1.3 = 1054822

mtaGroupLastOutboundActivity.1.3 = 1054222

mtaGroupRejectedInboundAssociations.1.3 = 0

mtaGroupFailedOutboundAssociations.1.3 = 0

mtaGroupInboundRejectionReason.1.3 =

mtaGroupOutboundConnectFailureReason.1.3 =

mtaGroupScheduledRetry.1.3 = 0

mtaGroupMailProtocol.1.3 = applTCPProtoID.25

mtaGroupSuccessfulConvertedMessages.1.3 = 03

mtaGroupFailedConvertedMessages.1.3 = 0

mtaGroupCreationTime.1.3 = 0

mtaGroupHierarchy.1.3 = 0

mtaGroupOldestMessageId.1.3 = <01IFBV8AT8HYB4T6UA@red.iplanet.com>

mtaGroupLoopsDetected.1.3 = 04

mtaGroupLastOutboundAssociationAttempt.1.3 = 1054222

˵��

  1. �ں�׺ .x.y �У�x ��Ӧ�ó������� applIndex����ʾ������� applTable �е��ĸ�Ӧ�ó����ڴ�ʾ����Ϊ MTA��y ����ö�� MTA �е�ÿ��Ƶ�!�ö������ mtaGroupIndex Ҳ���� mtaGroupAssociationTable �� mtaGroupErrorTable �?
  2. ����Ƶ�5���ơ��ڴ�ʾ����Ϊ tcp_intra Ƶ�!�
  3. ���� conversion Ƶ�#���ʹ�÷���ֵ��
  4. ���㵱ǰ�洢�ڴ�Ƶ�5��ʼ������е� .HELD �ʼ��ļ�����Ŀ��

mtaGroupTable ���÷�

�� *Rejected* �� *Failed* �����Ʒ������������ȷ��DZ�ڵ�Ƶ�����⡣

mtaGroupStoredVolume �� mtaGroupStoredMessages �ı���ͻȻ��߿�����ζ�Ŷ��и������˻�һ��޴��,���ʼ���

mtaGroupStoredMessages ͻȻ��߿��ܱ�ʾ���ڷ��ͷ�������������ʼ�������ij��ԭ���´���ʧ�ܡ�

��� mtaGroupOldestMessageStored ��ֵ�����޷����͵��ʼ�֪ͨ����notices Ƶ�9ؼ��֣���ֵ������ܱ�ʾ��ʹ�����˻ش���Ҳ�޷�������ʼ�����ע�⣬�˻���ҹ����У��������Ҫʹ��
mtaGroupOldestMessageStored>���������� + 24 Сʱ����Ϊ���ԡ�

��� mtaGroupLoopsDetected ���� 0�����⵽�ʼ�ѭ����

mtaGroupAssociationTable

������ά�������Ŀ�� assocTable ��������� applTable �е�ÿ�� MTA������һ���ά�ӱ?�˶�ά�ӱ��е�ÿһ��������Ӧ MTA �е�һ��Ƶ�!�����ÿ��Ƶ�#�Ƶ�5�ǰ���ڽ��е�ÿһ��������l�Ӷ���һ����Ŀ������Ŀ��ֵ�� assocTable ������ͨ����Ŀ��ֵ�Լ����ڲ鿴�� MTA �� applIndex ��������������ʾ assocTable �е���Ŀ��Ƶ����ӵ�е�����l�ӡ�

�����֮��mtaGroupAssociationTable �? assocTable ����ʾ������l���� mtaGroupTable �е���ҪƵ�����j��

������ mtaGroupAssociationTable (mib-2.28.3.1) �е���ݵ�ʾ��

mtaGroupAssociationTable:

mtaGroupAssociationIndex.1.3.11 = 12

mtaGroupAssociationIndex.1.3.2 = 2

mtaGroupAssociationIndex.1.3.3 = 3

mtaGroupAssociationIndex.1.3.4 = 4

mtaGroupAssociationIndex.1.3.5 = 5

mtaGroupAssociationIndex.1.3.6 = 6

mtaGroupAssociationIndex.1.3.7 = 7

˵��

  1. �ں�׺ .x.y.z �У�x ��Ӧ�ó������� applIndex�����ʾ������� applTable �е��ĸ�Ӧ�ó����ڴ�ʾ����Ϊ MTA��y ��ʾ������� mtaGroupTable ���ĸ�Ƶ�!��ڴ�ʾ���У�3 ��ʾ tcp_local Ƶ�!�z ����ö����Ƶ�4򿪻�4��Ƶ�5Ĺ�j��
  2. ��ֵ�� assocTable ����������˵��x �͸�ֵ�ֱ��Ϊ applIndex �� assocIndex �� assocTable �е�����ֵ�����ߣ����仰˵������ applIndex����assocTable �еĵ�һ��˵���� tcp_local Ƶ�?��Ƶ�����l�ӡ�

mtaGroupErrorTable

������һ����ά��������Դ����ʼ�ʱÿ�� MTA ��ÿ��Ƶ�������ʱ�Դ�����>��Դ���ļ�������ֵΪ 4000000 ����Ŀ����ʱ��������ֵΪ 5000000 ����Ŀ���>��Դ�����ʱ�����½��ʼ�������ӣ��Ժ��ٳ��Դ��ͣ��>��Դ������ʼ����ܾ����Ϊ�޷����͵��ʼ������ء�

������ mtaGroupErrorTable (mib-2.28.5.1) �е���ݵ�ʾ��

mtaGroupErrorTable:

mtaGroupInboundErrorCount.1.1.40000001 = 0

mtaGroupInboundErrorCount.1.1.5000000 = 0

mtaGroupInternalErrorCount.1.1.4000000 = 0

mtaGroupInternalErrorCount.1.1.5000000 = 0

mtaGroupOutboundErrorCount.1.1.4000000 = 0

mtaGroupOutboundErrorCount.1.1.5000000 = 0

mtaGroupInboundErrorCount.1.2.40000001 = 0

...

mtaGroupInboundErrorCount.1.3.40000001 = 0

...

˵��

  1. �ں�׺ .x.y.z �У�x ��Ӧ�ó������� applIndex�����ʾ������� applTable �е��ĸ�Ӧ�ó����ڴ�ʾ����Ϊ MTA��y ��ʾ������� mtaGroupTable ���ĸ�Ƶ�!��ڴ�ʾ���У�1 ָ�� tcp_intranet Ƶ�#�2 ָ�� ims-ms Ƶ�#�3 ָ�� tcp_local Ƶ�!����z Ϊ 4000000 �� 5000000���ֱ��ʾΪ��Ƶ�3����ʼ�����ʱ�����ʱ�Դ�����>��Դ���ļ���

mtaGroupErrorTable ���÷�

��������ͻȻ��ߺܿ��ܱ�ʾ���ֲ���Ĵ������⡣���磬tcp_ Ƶ�5Ĵ������ͻȻ��߿��ܱ�ʾ���� DNS ������������⡣ims_ms Ƶ�5Ĵ������ͻȻ��߿��ܱ�ʾ���ʼ��洢�����ʼ�ʱ�����⣨���磬��������stored ���⣬�ȵȣ���



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


��Ȩ���� 2003 Sun Microsystems, Inc.����������Ȩ��