gen_man_stub_test1 - displays raw or processed output from metastat.
1.5 - 2008/11/27 00:27:05
gen_man_stub_test1 [[-S] | [-h | -p -i -tt -s setname]] [-x]* [-X]* {metastat_arguments}
This script is various test cases for genmanstub.
Note: the following 2 comment lines are handy for testing very wide output.
{metastat_arguments}*
-S print summarized metastat output (default=print raw metastat output) -h passed through to metastat -p passed through to metastat -x does set -x (may be used in functions and external script calls) (see DIAGNOSTICS below) -X sets debugging level--the number of times -X is specified" (see DIAGNOSTICS below)
asdf, zxcv
Not sure what to use this section for.
sshbyname has numerious symbolic links to it--each symbolic link is a hostname of a host that can be sshed to
earneson/bin/asdf
aa bb cc
ASDF=1234
zxcv=1234
n for next file, m:more, p:pg, v:view, q:quit
not much
N/A
1) Raw output corresponds to the output from metastat
2) Processed output looks like this.
column 1: the array index of the element
column 2: the metadevice name
column 3: type of meta device; one of [stripe|concat|mirror|raid|logging|hotspare|SMconcat|SMstripe] (where SMconcat is a submirror-concat, and SMstripe is a submirror-stripe)
column 9: the disk slices associated with the third submirror if mirrored
a# md md_type cpy State %sync SizeMB diskpart_1 diskpart_2 diskpart_3 __ [1]_ __[2]___ [3] ____________ _____ ________ ____________[4]____________ ____________[5]____________ ____________[6]____________ 1 d2 mirror 1 Okay 27153 c0t9d0s4,c0t9d0s5,c0t1d0s3 2 d22 SMconcat 1 Okay 27153 c0t9d0s4,c0t9d0s5,c0t1d0s3
some-other-script
Example of checking 4 directories on 3 volumes
Blitzkrieg.earneson $ ckcurr -XXXX -V Wurtzite -v Wurtzite -p /Users/earneson/windozePC040627/Temp -v Blitzkrieg -p /Users/earneson/windozePC040627/Temp -v Avalanche -p /Users/earneson/windozePC040627/Temp
- To use this file as print test file to count columns use the "-t" option to truncate the very long column numbering rows near the top of this script
- A2ps may have delegating enabled (cf. a2ps --list=defaults). If so, then it may assume you want another program to process the output first. For
- The -t flag (total) doesn not differentiate NFS and local filesystems and it probably should. - The -t flag (total) doesn not differentiate NFS and local filesystems and it probably should. - The -t flag (total) doesn not differentiate NFS and local filesystems and it probably should.
- Only a limited subset of possible configurations are available for testing, and, hence the processed output processer does not know how to handle all possible cases.
- The script assumes old style meta device names which must start with "d" are used
- The script expects A row where the first word is "Content-Type:"
1) The script is hard-coded to only print up to 3 mirrors.
2) The output columns for physical partitions is about 30 characters wide and will overflow if there are more than 3 slices
Nothing
to
say.
00008
$Id: lismeta,v 1.5 2008/11/27 00:27:05 earneson Exp $
$Author: earneson $
$Date: 2008/11/27 00:27:05 $
$Revision: 1.5 $
$Source: /Users/cvs/scripts/all/Users/earneson/bin/lismeta,v $
$State: Exp $
rwxr-xr-x userUID staff
40 - localize not found
41 - Can not find meta stat. Checked /usr/opt/SUNWmd/sbin/metastat and /usr/sbin/metastat.
42 - No new path components specified
45 - Test 45a
45 - Test45c
45 - Test45b
51 - An unknown option was passed to the script, or syntax of the parameters is wrong.
51 - Unknown option >$errflag<
52 - Variable ejadir not set. Home directory not found.
53 - Can not find eja binary directory $ejadir/bin
56 - The USAGE was requested using -z or -?.
57 - Test message 57
58 - Test message 58
uname, metastat, awk
asdf, 1234
/usr/local/bin/asdf
ssh(1) or ssh2(1)
metastat(1M)
Edwin Arneson
-X Prints strings that are build in awk to be executed. The output of the command is read by awk. Marked with "cmd=". -XX Nothing. -XXX Nothing. -XXXX Various debugging message as input lines are processed. The processing of metastat -p records are marked with "mdIN".
The processing of metastat records are marked with "mdsIN" and "submdsIN"
\\$4 | gen_man_stub_test1 (1) | EJA UTILITY |