Mastering Unix Shell Scripting phần 7

không biết đến hệ thống bởi vì DNS không được cấu hình trên hệ thống này. Các nút mrranger được hỗ trợ xuống để nó được biết đến nhưng không thể truy cập. Chú ý sự khác biệt trong kết quả đầu ra cho hai tình huống tương tự, nhưng rất khác nhau,. | 16 Print Queue Hell the Printers Keeping Printing If you have worked in a large systems environment for very long you already know how frustrating it can be to keep the printer farm happy. In my contracting days I worked in several shops that consistently had problems with the printers. In most cases the print queues went down because of network timeouts and extended device waits. In this kind of environment you have two choices keep answering the calls from the help desk or write a shell script to monitor the printer queues and reenable the queues as they drop offline. I prefer the second method. Like every other Systems Administrator I like to be proactive in my approach to solving the little problems as well as the big ones. The shop I remember the best was a hospital. This hospital has more than 30 satellite clinics around town and only one 100MB Sec pipe coming in to the hospital from the outside world. Most of the clinics have between three and five printers with at least one printer active most of the day. When I came on board the first problem I encountered was the huge volume of calls to the help desk about printer problems. What caught my eye was the fact that all of the calls came from the clinics not from inside the hospital. I knew immediately that a shell script was in order In this chapter we are going to look at two methods of bringing up the print queues enabling individual queues and bringing up the whole lot. Because Unix flavors vary on handling printers and queues we first will look at the differences between the Unix flavors. 403 404 Chapter 16 System V versus BSD Printer Subsystems Depending on the Unix flavor the commands vary to control the printers and queues because some use the System V subsystem and others use BSD. With AIX you have an ever more confusing situation beginning with AIX 5L. Starting with this release AIX now supports both the classic AIX printer subsystem and the System V printer service. Another problem is that some .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
463    21    1    29-11-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.