亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? unx38.htm

?? Unix Unleashed, Third Edition is written with the power user and system administrator in mind. This
?? HTM
?? 第 1 頁 / 共 3 頁
字號:

<BR></P>

<UL>

<LI>Link the /sbin/init.d/acct file to the /etc/rc0.d/K22acct.

<BR>

<BR><B>$ link /etc/rc0.d/K22acct /sbin/init.d/acct</B>

<BR>$ 

<BR></LI></UL>

<OL>

<LI>Link the /sbin/init.d/acct file to the /etc/rc2.d/S22acct.

<BR>

<BR>$ <B>link /etc/rc2.d/S22acct /sbin/init.d/acct</B>

<BR>$ 

<BR>

<BR>When the system is booted, the init process will run these scripts to start the system accounting option. The last thing you need to do is add entries in the crontab file. The crontab file is used by cron to run programs at predetermined times. See 
Chapter 20, &quot;Scheduling Processes,&quot; for more details on cron. We need to add ckpacct, runacct, monacct, and dodisk to the crontab file to finish the accounting system setup.

<BR></LI>

<LI>Edit the crontab file to add these utilities.

<BR>

<BR>$ <B>crontab -e</B>

<BR></LI>

<LI>Add /usr/lib/acct/ckpacct to check /var/adm/pacct every hour to archive the pacct file after its size is more than 500 blocks.

<BR>

<BR>0 * * * *    /usr/lib/acct/ckpacct

<BR></LI>

<LI>Add /usr/lib/acct/runacct to run daily to process the accounting files to prepare daily and cumulative summary files. It is recommended that you run this file at off-hours of the morning. You can pick any time. For this example, we will use 1:30 a.m.

<BR>

<BR>30 1 * * *   /usr/lib/acct/runacct 2&gt; /var/adm/acct/nite/fd2log

<BR>

<BR>/var/adm/acct/nite/fd2log is a log file that you look at to verify that runacct is running cleanly.

<BR>

<BR></LI>

<LI>Add /usr/lib/acct/monacct to run monthly. The monacct file takes data stored in the /var/adm/acct/sum directory and creates a monthly report of all daily totals.

<BR>

<BR>30 3 * 1 *   /usr/lib/acct/monacct

<BR></LI>

<LI>Add /usr/lib/acct/dodisk program to do disk usage accounting. It is recommended that you run this program once a week and before runacct is executed daily.

<BR>

<BR>00 22 * * 4  /usr/lib/acct/dodisk

<BR></LI>

<LI>Shutdown and reboot your system to activate the accounting system.

<BR>

<BR></LI></OL>

<H3 ALIGN="CENTER">

<CENTER><A ID="I12" NAME="I12">

<FONT SIZE=4><B>The Accounting System Programs</B>

<BR></FONT></A></CENTER></H3>

<P>Remember the processes that you add to the crontab file. Those processes are essential to keep track of your system usage.

<BR></P>

<H4 ALIGN="CENTER">

<CENTER><A ID="I13" NAME="I13">

<FONT SIZE=3><B>runacct</B>

<BR></FONT></A></CENTER></H4>

<P>/usr/lib/acct/runacct is a shell program that is executed every day to process system usage. It will create daily summary files for the /usr/lib/acct/prdaily and /usr/lib/acct/monacct programs. prdaily is run by runacct to write daily accounting 
information to the /var/adm/acct/sum/rprtMMDD file. MMDD is the month and day the file was created. monacct is the month usage report, which will be covered later in this chapter. There can be one of these files for every day of the week. runacct actually 

writes information to several files.

<BR></P>

<TABLE BORDER>

<TR>

<TD>

<P>/var/adm/pacct?</P>

<TD>

<P>Contains process information. ? represents the incremented /var/adm/pacct file.</P>

<TR>

<TD>

<P>/var/adm/wtmp</P>

<TD>

<P>Contains user information</P>

<TR>

<TD>

<P>/var/adm/fee</P>

<TD>

<P>Contains fees accessed for usage</P>

<TR>

<TD>

<P>/var/adm/acct/nite/disktacct</P>

<TD>

<P>Contains the disk space usage</P></TABLE>

<P>You can find the output of the runacct program in the /var/adm/acct/nite directory. Other files in the /var/adm/acct/nite directory are as follows:

<BR></P>

<TABLE BORDER>

<TR>

<TD>

<P>lock and lock1</P>

<TD>

<P>These files may or may not exist. If they do exist, runacct will not run. It will &quot;think&quot; that it is already running. If you get an error concerning these files during an attempted execute of runacct, remove them with rm (remove command).</P>

<TR>

<TD>

<P>lastdate</P>

<TD>

<P>This file records the last date that runacct was executed. This file is checked to prevent runacct from being executed more than once daily.</P>

<TR>

<TD>

<P>fd2log</P>

<TD>

<P>This file contains the message generated by runacct. It will contain important error information in case runacct fails to run.</P></TABLE>

<HR ALIGN=CENTER>

<NOTE>

<IMG SRC="note.gif" WIDTH = 35 HEIGHT = 35><B>NOTE:</B> If runacct does have an error, root will be notified by mail. It will write information to /var/adm/acct/nite/fd2log and remove the lock files.

<BR></NOTE>

<HR ALIGN=CENTER>

<H4 ALIGN="CENTER">

<CENTER><A ID="I14" NAME="I14">

<FONT SIZE=3><B>dodisk</B>

<BR></FONT></A></CENTER></H4>

<P>The /usr/lib/acct/dodisk shell script cumulates disk usage information. This shell script program runs three programs.

<BR></P>

<TABLE BORDER>

<TR>

<TD>

<P>diskusg</P>

<TD>

<P>Collects file data by reading the file INODES</P>

<TR>

<TD>

<P>acctdusg</P>

<TD>

<P>Collects file statistics in the file system</P>

<TR>

<TD>

<P>acctdisk</P>

<TD>

<P>Formats the data from diskusg or acctdusg</P></TABLE>

<HR ALIGN=CENTER>

<NOTE>

<IMG SRC="note.gif" WIDTH = 35 HEIGHT = 35><B>NOTE:</B> Only one of the file data accounting programs needs to run. /usr/lib/acct/diskusg and /usr/lib/acct/acctdusg output the same information, but how they approach the information differs. diskusg is much 

faster than acctdusg because it looks at the lowest level of file information in the INODE. To toggle between the two, the dodisk can invoke the -o option. The following script:

<BR>

<BR>/usr/lib/acct/dodisk <I>/dev/dsk/c1t0d0s2</I>

<BR>

<BR>will run the diskusg method against the device file name of /dev/dsk/c1t0d0s2. If the device name is not specified, then diskusg will look in the /etc/vfstab file and process all the devices. This is very similar to the fsck command that looks at the 
file system's INODE's when it checks the file system at boot time. This is much faster. The following script:

<BR>

<BR>/usr/lib/acct/dodisk -o <I>/user</I>

<BR>

<BR>will run the acctdusg method against the /user file system mounting point. If the mount point is not specified, the root mounting point is used.

<BR>

<BR>Remember, if you want to use acctdusg, add the -o option to the dodisk line in the crontab file.

<BR></NOTE>

<HR ALIGN=CENTER>

<P>acctdisk will write the formatted output to the /var/adm/acct/nite/disktacct file. This file will have the following information about users' files on the system:

<BR></P>

<UL>

<LI>The user's login name

<BR>

<BR></LI>

<LI>The user's id number

<BR>

<BR></LI>

<LI>The number of blocks in use in the user's files

<BR>

<BR></LI></UL>

<HR ALIGN=CENTER>

<NOTE>

<IMG SRC="warning.gif" WIDTH = 37 HEIGHT = 35>WARNING:<B> </B>dodisk stores all this information in /var/adm/acct/nite/disktacct. Each and every time dodisk is executed, it overwrites the /var/adm/acct/nite/disktacct file. Executing dodisk more than once 
daily should be avoided.

<BR></NOTE>

<HR ALIGN=CENTER>

<H4 ALIGN="CENTER">

<CENTER><A ID="I15" NAME="I15">

<FONT SIZE=3><B>chargefee</B>

<BR></FONT></A></CENTER></H4>

<P>If you are in a Computer Services department or part of a service provider, you may elect to charge other departments or users for the resource they use. UNIX has provided a program called chargefee that will charge your user for a number of services. 
The charges that are generated by chargefee are stored in /var/adm/fee. Say that carolynp sends me a message to mount a tape for her on my system and I charge $1.50 for every mount.

<BR></P>

<PRE>$ chargefee carolynp 1.50

$</PRE>

<P>An entry in /var/adm/fee would be made having carolynp, her user id number, and 1.50. Later in my monthly accounting report charges for mounting tapes, restoring files, etc. can be polled into an invoice billed to the user. Most places will normally 
charge for processor time and disk space on a monthly basis. The monacct program, which you can read about next, will generate a nice report to run charge-back scripts against the invoice users.

<BR></P>

<H4 ALIGN="CENTER">

<CENTER><A ID="I16" NAME="I16">

<FONT SIZE=3><B>monacct</B>

<BR></FONT></A></CENTER></H4>

<P>monacct runs monthly, or you can run it whenever your fiscal period ends, to generate files that summarize the statistic files created by dodisk and runacct. These files are stored in the /var/adm/acct/fiscal directory. After the monacct program is run, 

the files created by dodisk and runacct removed and reset for the next fiscal period.

<BR></P>

<H4 ALIGN="CENTER">

<CENTER><A ID="I17" NAME="I17">

<FONT SIZE=3><B>acctcom</B>

<BR></FONT></A></CENTER></H4>

<P>The acctcom utility allows you to see the accounting system at any given time. You can execute this command from the command line with several different options.

<BR></P>

<PRE>$ acctmon -a</PRE>

<P>This will show the average statistics about processes.

<BR></P>

<PRE>$ acctmon -r</PRE>

<P>This will show the amount of user time per total time (system time plus user time).

<BR></P>

<PRE>$ acctmon -u zachp</PRE>

<P>This will show all the processes belonging to the user zachp.

<BR></P>

<PRE>$ acctmon -O 20</PRE>

<P>This will show all the processes running longer than 20 seconds.

<BR></P>

<P>To see more options for the acctcom command, please refer to your man pages. acctcom will look in the /var/adm/pacct? files for these little records.

<BR></P>

<H4 ALIGN="CENTER">

<CENTER><A ID="I18" NAME="I18">

<FONT SIZE=3><B>Daily Reports</B>

<BR></FONT></A></CENTER></H4>

<P>runacct generates a number of reports.

<BR></P>

<TABLE BORDER>

<TR>

<TD>

<P>The Daily</P>

<TD>

<P>Shows the usage of ports on your system.</P>

<TR>

<TD>

<P>The Daily Usage</P>

<TD>

<P>Shows the system resource used by your users during the daily period.</P>

<TR>

<TD>

<P>The Daily Command Summary</P>

<TD>

<P>Shows the commands run on your system and resources those commands used. This report can be essential in helping you determine the process that might bottleneck your system.</P>

<TR>

<TD>

<P>The Last Login</P>

<TD>

<P>Tells you the last time a login id was used by a user. This report can help you remove unused login id's and directories associated with those id's.</P></TABLE>

<H4 ALIGN="CENTER">

<CENTER><A ID="I19" NAME="I19">

<FONT SIZE=3><B>Daily Report</B>

<BR></FONT></A></CENTER></H4>

<P>The Daily Report can be found in the /var/adm/acct/nite/lineuse file.

<BR></P>

<PRE>$ cat /var/adm/acct/nite/lineuse

Apr 06 01:33 1994  DAILY REPORT FOR excelsior Page 1

from Tue Apr 05 05:10:41 1994

to   Wed Apr 06 01:31:20 1994

1        runacct

1        accton

TOTAL DURATION IS 5155 MINUTES

LINE     MINUTES   PERCENT  # SESS   # ON     #OFF

ttyp01   1541      30       4        9        5

ttyp10   2564      50       25       8        6

ttyp13   1050      20       15       3        4

TOTALS   5155      100      44       20       10

$</PRE>

<P>The detail of this report column by column are as follows:

<BR></P>

<TABLE BORDER>

<TR>

<TD>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
激情综合色播激情啊| 久久久亚洲欧洲日产国码αv| 最新中文字幕一区二区三区| 91麻豆视频网站| 麻豆精品蜜桃视频网站| 日韩理论在线观看| 日韩欧美国产综合| 91麻豆精品一区二区三区| 美女久久久精品| 亚洲成a人片在线观看中文| 国产欧美久久久精品影院| 91精品国产综合久久香蕉麻豆| 国产成人免费视频网站高清观看视频 | 久久影院午夜论| 欧美中文一区二区三区| 国产精品一区一区三区| 日本大胆欧美人术艺术动态| 亚洲精品免费看| 国产精品久久久久久久久免费丝袜| 日韩欧美亚洲国产另类| 亚洲va国产天堂va久久en| 日韩欧美精品三级| 欧美日韩综合不卡| 91在线观看高清| 国产精品小仙女| 国内精品伊人久久久久影院对白| 天堂在线亚洲视频| 亚洲在线中文字幕| 一区二区三区中文在线观看| 国产女同性恋一区二区| 亚洲电影在线播放| 亚洲免费观看高清完整版在线观看熊 | 在线观看日韩av先锋影音电影院| 国产精品自在欧美一区| 麻豆91精品视频| 美日韩一级片在线观看| 日本三级韩国三级欧美三级| 亚洲电影第三页| 婷婷成人激情在线网| 亚洲成人av一区二区三区| 一区二区三区视频在线看| 亚洲欧洲日韩综合一区二区| 国产精品天天看| 国产精品国产自产拍高清av| 国产精品私人自拍| 中日韩av电影| 亚洲视频狠狠干| 亚洲一区二区三区自拍| 亚洲一二三四在线| 日本成人在线看| 极品尤物av久久免费看| 国产成人精品在线看| www.爱久久.com| 日本精品视频一区二区| 欧美性色aⅴ视频一区日韩精品| 欧美在线观看你懂的| 7878成人国产在线观看| 欧美videos大乳护士334| 久久亚区不卡日本| 国产精品久久久久久久久免费相片| 中文字幕在线观看不卡| 亚洲人成在线观看一区二区| 亚洲午夜久久久久中文字幕久| 亚洲第一福利视频在线| 久久国产尿小便嘘嘘尿| 粉嫩绯色av一区二区在线观看| 91啪亚洲精品| 欧美日韩国产美| 国产亚洲午夜高清国产拍精品| 亚洲日本在线视频观看| 亚洲成精国产精品女| 精品一区二区三区免费| 97久久超碰精品国产| 欧美人牲a欧美精品| 久久久久国色av免费看影院| 亚洲精品高清在线| 狂野欧美性猛交blacked| 99久久精品一区二区| 在线成人免费观看| 中文字幕免费观看一区| 亚洲黄色av一区| 韩国女主播一区| 欧美视频一二三区| 精品国产91洋老外米糕| 亚洲综合视频在线观看| 欧美大片日本大片免费观看| av在线不卡网| 欧美日韩情趣电影| 久久精品一区二区| 亚洲国产精品久久人人爱蜜臀| 国模娜娜一区二区三区| 色av一区二区| 欧美激情在线看| 裸体一区二区三区| 欧美色欧美亚洲另类二区| 久久久99精品免费观看不卡| 午夜视频在线观看一区| 成人午夜大片免费观看| 91精品国产色综合久久| 亚洲欧美色一区| 国产在线播放一区二区三区| 欧美男生操女生| 久久国产夜色精品鲁鲁99| 成人丝袜高跟foot| 亚洲欧美国产高清| 国产精品乱人伦一区二区| 日本麻豆一区二区三区视频| 97久久精品人人做人人爽50路| 日韩欧美国产成人一区二区| 国产欧美日韩中文久久| 国产精品系列在线| 蜜臀精品一区二区三区在线观看 | 久久久综合精品| 午夜精品一区二区三区免费视频| 国产精品99久久久久久有的能看 | 色天使色偷偷av一区二区| 久久日韩精品一区二区五区| 日本不卡不码高清免费观看| 在线观看91视频| 亚洲欧美福利一区二区| 成人av集中营| 国产日产亚洲精品系列| 激情六月婷婷综合| 欧美成人三级在线| 免费成人美女在线观看.| 欧美日韩精品二区第二页| 亚洲黄色小说网站| 在线欧美日韩精品| 一区二区三区欧美| 国产成人亚洲精品青草天美| 亚洲视频 欧洲视频| www.亚洲在线| 国产大片一区二区| 夜夜精品视频一区二区 | 夜夜精品浪潮av一区二区三区| 欧美性受xxxx| 亚洲成av人片在www色猫咪| 欧美无乱码久久久免费午夜一区| 国产精品一区二区在线观看网站| 一区二区中文视频| 不卡一区二区三区四区| 国产精品色在线观看| 成人小视频免费观看| 亚洲人快播电影网| 91精彩视频在线| 偷窥国产亚洲免费视频 | 日韩欧美中文字幕一区| 奇米四色…亚洲| 2020日本不卡一区二区视频| 韩国精品久久久| 国产精品午夜电影| 91麻豆swag| 亚洲国产精品精华液网站| 欧美精品在欧美一区二区少妇| 蜜臀av性久久久久蜜臀aⅴ四虎| 日韩精品专区在线影院重磅| 国产一区二区三区| 一区免费观看视频| 欧美肥妇毛茸茸| 国产精品一二一区| 一区二区三区欧美在线观看| 欧美日韩激情一区二区三区| 麻豆久久久久久| 国产精品丝袜在线| 精品视频资源站| 紧缚奴在线一区二区三区| 一区免费观看视频| 日韩一区二区三| av在线这里只有精品| 日韩成人午夜精品| 国产亚洲美州欧州综合国 | 精品福利av导航| av一区二区不卡| 日韩精品国产欧美| 久久精品日产第一区二区三区高清版| eeuss鲁一区二区三区| 性欧美大战久久久久久久久| 精品免费国产二区三区 | 欧美日韩的一区二区| 激情综合色播激情啊| 亚洲欧美一区二区在线观看| 欧美日韩在线亚洲一区蜜芽| 国产综合久久久久久鬼色| 亚洲视频一二三| 欧美成人a在线| 在线免费观看日韩欧美| 国产中文字幕精品| 婷婷久久综合九色综合绿巨人| 久久精品综合网| 欧美年轻男男videosbes| 风间由美一区二区av101| 亚洲超碰97人人做人人爱| 久久综合九色综合欧美亚洲| 一本一本大道香蕉久在线精品| 久久精品99国产精品| 亚洲在线观看免费| 国产精品卡一卡二卡三| 欧美tickling挠脚心丨vk| 在线观看区一区二| 99re视频精品|