SNMP (Simple Network Management Protocol �����������)
1.Redhat ��װ����snmp
����ΪAgent ֻ��Ҫ��װnet-snmp
shell>yum install net-snmp
����ΪNMS ��Ҫ��װnet-snmp �� net-snmp-utils
shell>yum install net-snmp net-snmp-utils
Redhat Agent ����
2��snmpd.conf�ļ�����
�������·�ʽ��snmpd.conf�ļ�
�� First, map the community name "public" into a "security name"
�� Second, map the security name into a group name
�� Third, create a view for us to let the group have rights to:
name incl/excl subtree mask(optional)
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
Ĭ�ϴ���������systemview��ͼ ��ȡsystem���½ڵ����Ϣ
��Finally, grant the group read-only access to the systemview view.
access notConfigGroup "" any noauth exact systemview none none
Ĭ��ֻ��ȡϵͳ��ڵ��µ���Ϣ
3.��Ĭ���������������ǵ�����
����Ĭ�ϵ�community string
com2sec notConfigUser default public
��public��Ϊ���֪�����ַ�
�������NMS��ȡ����������Ҫ��default ��ΪNMS ��IP
������ͼ
�����ֻ�뵥��ڵ��µ���Ϣ
���ȡ�ӿ���Ϣ��ӽӿڽڵ���ͼ
view interface included .1.3.6.1.2.1.25.1.1
����Ȩ��ȡ����ͼ��Ϊinterface
access notConfigGroup "" any noauth exact interfaces none none
�� ������ȡ�����ڵ��µ���Ϣ�������Լ�������ͼ��
���ȡϵͳ��ͽӿ���ڵ��µ���Ϣ����ͼ��sysinf
view sysinf included .1.3.6.1.2.1.1
view sysinf included .1.3.6.1.2.1.25.1.1
view sysinf included .1.3.6.1.2.1.25.1.1
����Ȩ��ȡ����ͼ��Ϊinterface
access notConfigGroup "" any noauth exact sysinf none none
�Ƕ�ȡmib2���ڵ��µ�������Ϣ
��mib2��ͼ��ǰ��#ȥ��
#view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
����Ȩ��ȡ����ͼ��Ϊmib2
access notConfigGroup "" any noauth exact sysinf none none
�ȶ�ȡ���нڵ��µ�������Ϣ
��һ�ַ������ڵ����д�������һ���ܹ���ȡ���нڵ����ͼ
view systemview included .1
��ʵ�����ļ��Ѿ��ṩ������һ����ͼ,��#��ȥ��
#view all included .1 80
����Ȩ��ȡ����ͼ��Ϊall
access notConfigGroup "" any noauth exact all none none
���ij��� ������ ���ͣ�л��ת�أ�