Mastering unix shell scripting phần 3 ppsx
... %IUSED ON /dev/hd4 32 768 1 637 6 51% 16 63 11% / /dev/hd2 1212416 57592 96% 36 386 13% /usr /dev/hd9var 532 48 30 824 43% 540 5% /var /dev/hd3 106496 99 932 7% 135 1% /tmp /dev/hd1 4096 39 16 5% 25 % /home /proc ... ON /dev/vg 13/ lvol1 4190208 1155095 2850597 29% /u2 /dev/vg00/lvol7 102400 4284 92256 4% /tmp /dev/vg00/lvol 13 2 039 808 16640 73 352294 83% /test2 /dev/vg00/lvol6 72089...
Ngày tải lên: 09/08/2014, 16:20
... vmstat 30 2 procs memory page disk faults cpu r b w swap free re mf pi po fr de sr cd f0 s0 in sy cs us sy id 0 0 0 55 831 6 33 036 57 433 2 0 0 0 0 0 0 0 0 111 500 77 2 8 90 0 0 0 556192 29992 38 7 ... 6 19:26:00 13 12 11 64 19:26 :30 16 44 0 39 19:27:00 27 73 0 0 19:27 :30 20 48 2 30 19:28:00 5 6 9 80 19:28 :30 11 9 5 75 19:29:00 9 18 0 73 Average 13 26 8 53 The previous output...
Ngày tải lên: 09/08/2014, 16:20
... to Consider 33 2 $PINGLIST Variable Length Limit Problem 33 2 Ping the /etc/hosts File Instead of a List File 33 3 Logging 33 3 Notification of “Unknown host” 33 4 Notification Method 33 4 Automated ... Execution Using a Cron Table Entry 33 5 Summary 33 5 Chapter 13 Taking a System Snapshot 33 7 Syntax 33 8 Creating the Shell Script 34 0 Other Options to Consider 36 7 Summary...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 2 pdf
... Notification CHAPTER 3 Method 2: function while_read_LINE_bottom real 0m5.89s user 0m5.62s sys 0m0.16s Method 3: function while_line_LINE_bottom real 6m 53. 71s user 0m36.62s sys 6m2.03s Method 4: function ... SENDMAIL=”/usr/lib/sendmail” ;; Listing 3. 3 send_notification function listing. (continues) Automated Event Notification 83 The function in Listing 2. 13 first redirects stdin t...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 5 doc
... /remd_log2a remp2_log2b jfs 1 1 1 open/syncd /remd_log2b remp2_log3a jfs 1 1 1 open/syncd /remd_log3a remp2_log3b jfs 1 1 1 open/syncd /remd_log3b remp2_log4a jfs 1 1 1 open/syncd /remd_log4a remp2_log4b ... of hdisk5 using the lspv -l hdisk5 command in Listing 11.5. 30 4 Chapter 11 # Check command line arguments - $# < 3 if (($# > 3) ) then usage exit 1 fi Notice that we used the m...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 6 doc
... 2.60.8c.2d.75.b1 11 233 0 0 108697 0 0 en0 1500 10.10 yogi 11 233 0 0 108697 0 0 lo0 16896 link#1 2 830 2 0 2 830 4 0 0 lo0 16896 127 loopback 2 830 2 0 2 830 4 0 0 lo0 16896 ::1 2 830 2 0 2 830 4 0 0 ################################################# Filesystem ... (00:01) root ftp booboo Jul 23 21: 53 - 21: 53 (00:00) shutdown tty0 Jul 10 00:25 root ftp booboo Jul 09 23: 41 - 23: 41 (00:...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 7 pdf
... extract fields 1 and 3, specified by $1 and $3, the following awk statement will take care of the task. command | awk ‘{print $1, $3} ’ Notice that I added a comma between $1 and $3. If the comma is ... state. The shell script in its entirety is shown in Listing 16 .3. #!/bin/ksh # # SCRIPT: enable_AIX_classic.ksh # # AUTHOR: Randy Michael # DATE: 03/ 14/2002 # REV: 1.1.P Listing 16 .3 F...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 8 potx
... Available 34 -08-5B91-01-P SSA160 Physical Disk Drive pdisk1 Available 34 -08-5B91-02-P SSA160 Physical Disk Drive pdisk2 Available 34 -08-5B91- 03- P SSA160 Physical Disk Drive pdisk3 Available 34 -08-5B91-04-P ... Available 34 -08-5B91- 13- P SSA160 Physical Disk Drive pdisk 13 Available 34 -08-5B91-14-P SSA160 Physical Disk Drive pdisk14 Available 34 -08-5B91-16-P SSA160 Physical D...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 9 docx
... /tmp/myfilename /tmp/myfilename.120601. 131 507. 030 38 /tmp/myfilename.120601. 131 507.155 93 /tmp/myfilename.120601. 131 507.11760 /tmp/myfilename.120601. 131 508.0 837 4 /tmp/myfilename.120601. 131 508.01926 /tmp/myfilename.120601. 131 508.07 238 /tmp/myfilename.120601. 131 509.07554 /tmp/myfilename.120601. 131 509.1 234 3 /tmp/myfilename.120601. 131 510.08496 /tmp/myfilename.120601. 131...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 10 docx
... “\n\n\n\n” Listing 24 .3 operations_menu.ksh shell script listing. (continues) Menu Program Suitable for Operations Staff 6 13 focuses on sending pop-up messages to Windows clients from our Unix machine. ... 24 operations_menu.ksh: Shell script menu for an Operations staff. Chaper 25 broadcast.ksh: Shell script to send pop-up messages to Windows desktops. This shell script require...
Ngày tải lên: 09/08/2014, 16:20