tailieunhanh - Managing NFS and NIS 2nd phần 9

Có thể lưu các lưu lượng truy cập mạng vào một tập tin cho phép bạn hiển thị cùng một dữ liệu được thiết lập theo các bộ lọc khác nhau, trình bày quan điểm khác nhau của cùng một thông tin. Trong hình thức đơn giản của nó, rình mò chụp và hiển thị tất cả các gói dữ liệu hiện tại trên giao diện mạng: | Managing NFS and NIS Table 14-3 defines the values for the logging files when filesystems are shared with the various tags. Table 14-3. Logging files under different tags Tag Log fhtable Buffer global var nfs logs nfslog var nfs workfiles fhtable var nfs workfiles nfslog_workbuffer eng export eng logs nfslog var nfs workfiles fhtable var nfs workfiles nfslog_workbuffer corp export corp logging logs nfslog export corp logging workfiles fhtable export corp logging workfiles nfslog_workbuffer extended var nfs extended_logs nfslog var nfs workfiles fhtable var nfs workfiles nfslog_workbfuffer The temporary work buffers can grow large in a hurry therefore it may not be a good idea to keep them in the default directory var nfs especially when var is fairly small. It is recommended to either spread them out among the filesystems they monitor or place them in a dedicated partition. This will allow space in your var partition to be used for other administration tasks such as storing core files printer spool directories and other system logs. Basic versus extended log format Logging using the basic format only reports file uploads and downloads. On the other hand logging using the extended format provides more detailed information of filesystem activity but may be incompatible with existing tools that process WU-Ftpd logs. Tools that expect a single character identifier in the operation field will not understand the multicharacter description of the extended format. Home-grown scripts can be easily modified to understand the richer format. Logging using the extended format reports directory creation directory removal and file removal as well as file reads downloads and file writes uploads . Each record indicates the NFS version and protocol used during access. Let us explore the differences between the two logs by comparing the logged information that results from executing the same sequence of commands against the NFS server zeus. First the server exports the .