Sun Java System Messaging Server 6 2004Q2 ����ָ�� |
��¼ A
SNMP ֧��Messaging Server ֧��ͨ����������Э�� (SNMP) ����ϵͳ���ӡ�ʹ������ Sun Net Manager �� HP OpenView������˲�Ʒ�ṩ��֮��� SNMP �ͻ�����ʱ��������������������Լ��� Messaging Server ���ض����֡��йؼ��� Messaging Server ����ϸ��Ϣ����μ��� 22 �¡����� 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�ӵ�����
���� 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 ��Ϣ��
�� 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 Java System ��Ʒ�����ṩ SNMP ֧�ֵ����� Netscape �� Sun Java System ��Ʒ����ͨ��ȡ��ƽ̨�ı��� SNMP �����4����һ�㡣���Ҫ��ͬһ��������� Messaging Server ����� Sun Java System ��Ʒ����Ҫͨ�� SNMP ��}�ֲ�Ʒ���м��ӣ��밴�� Managing Servers with iPlanet Console (http://docs.sun.com/source/816-5572-10/11_snmp.htm) �� 11 ���������� Sun Java System Proxy SNMP Agent���⽫���� Messaging Server SNMP �Ӵ��?���� SNMP �Ӵ��?������ Sun Java System ��Ʒ�зDZ��ص� Sun Java System 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��
ÿ��վ�㶼�в�ͬ����ֵ����Ҫ�ļ���ֵ���õ� SNMP �ͻ�������������Ʒ������ͻȻ���ֱ�����ʷ���Ƶ����ʱ���;��档
applTable
applTable �ṩ��������Ϣ������һά���һ������ MTA������ÿһ����������һ���������������ã���WebMail HTTP��IMAP��POP��SMTP �� SMTP Submit���ñ��ṩ�汾��Ϣ��������ʱ�䡢��ǰ����״̬��up��down��congested������ǰl�������ۻ�l����������������ݡ�
������ applTable (mib-2.27.1.1) ��ݵ�ʾ��
˵��
- �˴��� .1��.2 �Ⱥ����б�� applIndex��applIndex ��ֵ 1 ��� MTA��ֵ 2 ��� HTTP ������ȵȡ���ˣ��ڴ�ʾ���У�����һ���ṩ MTA �е���ݣ��ڶ����ṩ POP �������е���ݣ��ȵȡ�
- �ܼ��ӵ� Messaging Server ʵ�����ơ��ڴ�ʾ���У�ʵ������� mailsrv-1��
- ��Щ�� SNMP ʱ���ֵ�����¼�����ʱ sysUpTime ��ֵ���� sysUpTime �� SNMP ���������ٷ�֮һ��Ϊ��λ�ļ���
- ͨ�������õ� TCP �˿�ʵ��l�ӵ� HTTP��IMAP��POP��SMTP �� SMTP Submit �������ʹ���ʵ�Э�飨���磬���� HTTP �� HEAD �������Ӧ������ SMTP �� HELO �������Ӧ�ȣ�ִ�м������ȷ����Щ�����������״̬��ͨ���l�ӳ��Կ���ȷ��ÿ��������״̬ up (1)��down (2) �� congested (4)��
��ע�⣬��Щ̽�⿴����ķ�������4l�ӣ���Ӱ��ÿ�������� applAccumulatedInboundAssociations MIB ����ֵ��
���� MTA������״̬����ҵ������IJ���״̬����� MTA ��ʾΪ��up��������ҵ������ҲΪ��up������� MTA ��ʾΪ��down��������ҵ������ҲΪ��down������ MTA ����״̬��b�� MTA �ķ���ַ������״̬��MTA �IJ���״ֻ̬�� up ֵ�� down ֵ��������ҵ�������С�congested����һ����� MTA ״̬��û�д˸��
- ���� 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
...
˵��
- �ں� .x.y �У�x ��Ӧ�ó������� applIndex����ʾ������� applTable �е��ĸ�Ӧ�ó����ڴ�ʾ����Ϊ MTA��y ����ö������Ӧ�ó����ÿ��l�ӡ�
- Զ�� SMTP �ͻ����Դ IP ��ַ��
- ����һ�� OID����ʾ����l����ʹ�õ�Э�顣aplTCPProtoID ��ʾ TCP Э�顣�� .n ��ʾʹ�õ� TCP �˿ڣ�.25 ��ʾ���� TCP �˿� 25 ʹ�� SMTP Э�顣
- ���ж�Զ�� SMTP �ͻ������û����� (UA) �������� MTA����ˣ��Ӵ���ʼ�ձ��� peer-initiator����Ӳ����� ua-initiator��
- ���� 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
˵��
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
˵��
- �ں� .x.y �У�x ��Ӧ�ó������� applIndex����ʾ������� applTable �е��ĸ�Ӧ�ó����ڴ�ʾ����Ϊ MTA��y ����ö�� MTA �е�ÿ��ͨ�!�ö������ mtaGroupIndex Ҳ���� mtaGroupAssociationTable �� mtaGroupErrorTable �?
- ����ͨ�5���ơ��ڴ�ʾ����Ϊ tcp_intranet ͨ�!�
- ���� conversion ͨ�#���ʹ�÷���ֵ��
- ���㵱ǰ�洢�ڴ�ͨ�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
˵��
- �ں� .x.y.z �У�x ��Ӧ�ó������� applIndex�����ʾ������� applTable �е��ĸ�Ӧ�ó����ڴ�ʾ����Ϊ MTA��y ��ʾ������� mtaGroupTable ���ĸ�ͨ�!��ڴ�ʾ���У�3 ��ʾ tcp_local ͨ�!�z ����ö����ͨ�4�4��ͨ�5Ĺ�j��
- ��ֵ�� 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
...
˵��
mtaGroupErrorTable ���÷�
��������ͻȻ��ߺܿ��ܱ�ʾ���ֲ���Ĵ������⡣���磬tcp_ ͨ�5Ĵ������ͻȻ��߿��ܱ�ʾ���� DNS ������������⡣ims_ms ͨ�5Ĵ������ͻȻ��߿��ܱ�ʾ���ʼ��洢�����ʼ�ʱ�����⣨���磬��������stored ���⣬�ȵȣ���