TAILIEUCHUNG - essential system administration 3rd edition phần 5

Không giống như hầu hết các triển khai, gói Net-SNMP bao gồm một số tiện ích hữu ích mà có thể được sử dụng để truy vấn các thiết bị SNMP. Bạn có thể xây dựng những công cụ này cho hầu hết các hệ điều hành ngay cả khi họ cung cấp cho đại lý SNMP của họ, | Solaris etc Tru64 sbin snmpd Boot script config. file relevant entries Usual none used HP-UX etc Snmp SNMP_ _START 1 Linux SuSE 7 etc START_SNMPD yes Table 8-10. SNMP components Component Location 24 Net-SNMP is used on FreeBSD and Linux systems. We ll consider some of the specifics for the various operating systems a bit later in this section. Net-SNMP client utilities Unlike most implementations the Net-SNMP package includes several useful utilities that can be used to query SNMP devices. You can build these tools for most operating systems even when they provide their own SNMP agent so we ll consider them in some detail in this section. In addition reading these examples will provide you with a greater understanding of how SNMP works regardless of the specific implementation. The first tool we ll consider is snmptranslate which provides information about the MIB structure and its entities but does not display any actual data . Table 8-11 lists the most useful snmptranslate commands. Display MIB subtree snmptranslate -Tp .oid 25 Text description for OID snmptranslate -Td .oid 25 Show full OID name mib-2 subtree only snmptranslate -IR -On name Translate OID name to number snmptranslate -IR name Translate OID number to name snmptranslate -On .number 25 Purpose Table 8-11. Useful snmptranslate commands Command 25 Absolute OIDs numeric or text are preceded by a period. As an example we ll define an alias using the C shell which takes a terminal leaf entry name in the mib-2 tree as its argument and then displays the definition for that item including its full OID string and numeric equivalent. Here is the alias definition alias snmpwhat snmptranslate -Td snmptranslate -IR -On 1 The alias uses two snmptranslate commands. The one in back quotes finds the full OID for the specified name substituted in via 1 . Its output becomes the argument of the second command which displays the description for this data item. .

TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
170    252    4    29-03-2024
46    179    0    29-03-2024
10    148    0    29-03-2024
24    127    0    29-03-2024
22    111    0    29-03-2024
10    108    0    29-03-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.