Added client work scripts
[clearscm.git] / clients / HP / bin / atria.scs
1 #!/bin/sh
2 #############################################
3 # @(#)scs       1.26
4 # system characterization script
5 # "scs" collects data from Atria
6 # customer sites for analysis by
7 # engineering.
8 ######################################
9
10 #########################
11 # For Solaris 5.x systems
12 #########################
13 nddit()
14 {
15 for i in tcp udp ip
16 do
17   /usr/sbin/ndd /dev/$i \? | awk '{print $1}' | \
18              egrep -v '\?|directed|respond'> /tmp/$$
19   for j in `cat /tmp/$$`
20   do
21     printf "%-30s  %s\n" $j  `/usr/sbin/ndd /dev/$i $j`
22   done
23   rm /tmp/$$
24 done
25 }
26
27 solaris()
28 {
29 show "System Device Configuration" /usr/sbin/prtconf -vP
30 show "System Configuration" /usr/sbin/sysdef -i
31 show "System Customization" '/bin/cat /etc/system | \
32             /bin/grep -v "^\*" | /bin/grep -v "^$"'
33 show "Network Configuration" nddit
34 show "System Messages" /bin/dmesg
35 show "Patches" /bin/showrev -p
36
37 show "Processes" '/usr/ucb/ps auxww | /bin/fold -80'
38 show "Network Configuration" /usr/sbin/ifconfig -a
39 show "Network Utilization Summary" /bin/netstat -i
40 show "Network Protocol Statistics" /bin/netstat -s
41 show "Network Mbuf Statistics" /bin/netstat -m
42 show "VM Statistics" /bin/vmstat -s
43 show "Cache Flush Statistics" /bin/vmstat -c
44 show "Interrupts" /bin/vmstat -i
45 show "NFS Statistics" /bin/nfsstat
46 show "NFS Responses" /bin/nfsstat -m
47
48 show "CPU Utilization" /bin/sar -u 1 10
49 show "Buffer Activity" /bin/sar -b 1 10
50 show "Block Device Activity" /bin/sar -d 1 10
51 show "Disk  Device Activity" iostat -x 1 10
52 show "Paging In Activity" /bin/sar -p 1 5
53 show "Paging Out Activity" /bin/sar -g 1 5
54 show "Free Memory" /bin/sar -r 1 5
55 show "vmstat snapshot" /bin/vmstat 2 10
56 show "Kernel Memory Allocation Activity" /bin/sar -k 1 5
57 show "KMA statistics" echo kmastat | /usr/sbin/crash
58 echo ""
59 }
60
61 #######################
62 # For SUNOS 4.x systems
63 #######################
64 sunos()
65 {
66
67 show "Memory " '/etc/dmesg | grep mem'
68 show "System Messages" /etc/dmesg
69 show "Processes" '/bin/ps auxww | /usr/ucb/fold -80'
70 show "Network Utilization Summary" /usr/ucb/netstat -i
71 show "Network Protocol Statistics" /usr/ucb/netstat -s
72 show "Network Mbuf Statistics" /usr/ucb/netstat -m
73 show "VM Statistics" /usr/ucb/vmstat -s
74 show "Cache Flush Statistics" /usr/ucb/vmstat -c
75 show "Interrupts" /usr/ucb/vmstat -i
76 show "NFS Statistics" /usr/etc/nfsstat
77
78 show "Disk Device Activity" /bin/iostat -D 1 10
79 show "CPU  Activity" /usr/ucb/vmstat  1 10
80 show "Tables" /etc/pstat  -T
81 show "vmstat snapshot" /usr/ucb/vmstat 2 10
82
83 }
84
85
86 #######################
87 # For AIX
88 #######################
89 aix()
90 {
91
92 show "Processes" '/usr/bin/ps -elf '
93 show "Network Utilization Summary" /bin/netstat -i
94 show "Network Protocol Statistics" /bin/netstat -s
95 show "Network Mbuf Statistics" /bin/netstat -m
96 show "Network Configurables" /usr/sbin/no -a
97 show "NFS Statistics" /usr/sbin/nfsstat
98
99 show "System Attributes" /usr/sbin/lsattr -E -l sys0 
100 show "CPU Utilization" sar -u 1 10
101 show "Buffer Activity" sar -b 1 10
102 show "Disk Activity" /bin/iostat 1 10
103 show "Paging Stats" sar -r 1 5
104 show "Network Monitor for 30s" '/bin/netpmon -v -o /tmp/$$; sleep 30; trcstop'
105 echo ""
106 }
107
108 #######################
109 # For OSF1
110 #######################
111 osf1()
112 {
113 show "Boot Messages"  'echo "";echo ""; echo "";uerf -r 300 | tail -100'
114 show "Processes" '/usr/bin/ps glww | fold -80'
115 show "Network Utilization Summary" /usr/sbin/netstat -i
116 show "Network Protocol Statistics" /usr/sbin/netstat -s
117 show "Network Mbuf Statistics" /usr/sbin/netstat -m
118 show "NFS Statistics" /usr/bin/nfsstat 
119 show "Kernel memory usage" /usr/bin/vmstat -M
120 show "vmstat snapshopt" /usr/bin/vmstat  2 10
121 show "Disk Device snapshot" /bin/iostat  2 10 
122
123 }
124
125 #######################
126 # For IRIX  5.x
127 #######################
128 irix()
129 {
130 show "System Device Configuration" /usr/sbin/sysconf 
131 show "System Hardware Configuration" /usr/bin/hinv
132 show "System Software Configuration" /etc/chkconfig
133 show "Disk Usage" /usr/sbin/df -l -k
134 show "System Customization" '/bin/cat /var/sysgen/stune | \
135             /bin/grep -v "^\*" | /bin/grep -v "^$"'
136
137 show "Processes" '/usr/bin/ps -elf | /bin/fold -80'
138 show "Network Utilization Summary" /usr/etc/netstat -i
139 show "Network Protocol Statistics" /usr/etc/netstat -s
140 show "Network Mbuf Statistics" /usr/etc/netstat -m
141 show "NFS Statistics" /usr/etc/nfsstat
142
143 show "CPU Utilization" sar -u 1 10
144 show "Buffer Activity" sar -b 1 10
145 show "Block Device Activity" sar -d 1 10
146 show "Paging In Activity" sar -p 1 5
147 show "Paging Out Activity" sar -g 1 5
148 show "Free Memory" sar -r 1 5
149 echo ""
150 }
151
152
153 #####################
154 # For HP-UX 9/800 systems
155 #####################
156 hpux98()
157 {
158 #first the shared info 
159 hpux
160 # now the system specific 
161 show "System definition" /etc/sysdef
162 show "CPU Utilization" /usr/bin/sar -u 1 10
163 show "Buffer Activity" /usr/bin/sar -b 1 10
164 show "Block Device Activity" /usr/bin/sar -d 1 10
165 }
166 #####################
167 # For HP-UX 9/700 systems
168 #####################
169 hpux97()
170 {
171 # just the shared info 
172 hpux
173 }
174 #####################
175 # For All HP-UX 9  systems
176 #####################
177 hpux()
178 {
179 show "Memory " grep Physical /usr/adm/messages
180 show "System Messages" /etc/dmesg
181 show "Swap Space" /etc/swapinfo
182 show "Patches" ls -ld /system/PH*
183 show "IO devices" /etc/ioscan -f
184
185 show "Processes" '/bin/ps -elf | /usr/bin/fold -80'
186 show "Network Utilization Summary" /usr/bin/netstat -i
187 show "Network Protocol Statistics" /usr/bin/netstat -s
188 show "Network Mbuf Statistics" /usr/bin/netstat -m
189 show "VM Statistics" /usr/bin/vmstat -s
190 show "NFS Statistics" /usr/etc/nfsstat
191 show "Network errors" /etc/netfmt -t 30 -f /usr/adm/nettl.LOG00
192
193 show "Disk Utilization" df -l
194 show "vmstat snapshot" /usr/bin/vmstat 2 10
195 }
196
197 #####################
198 # For HP-UX 10 systems
199 #####################
200 hpux10()
201 {
202
203 show "Memory " grep Physical /var/adm/syslog/syslog.log
204 show "System DMessages" /usr/sbin/dmesg
205 show "System definition" /usr/sbin/sysdef
206 show "Messages" "tail -100 /usr/adm/syslog/syslog.log"
207 show "IO status" /etc/ioscan -f
208 show "Patches" '/usr/sbin/swlist -l product | grep PH'
209
210 show "Processes" '/usr/bin/ps -elf | /usr/bin/fold -80'
211 show "Network Utilization Summary" /usr/bin/netstat -i
212 show "Network Protocol Statistics" /usr/bin/netstat -s
213 show "Network Mbuf Statistics" /usr/bin/netstat -m
214 show "VM Statistics" /usr/bin/vmstat -s
215 show "NFS Statistics" /usr/bin/nfsstat
216
217 show "CPU Utilization" /usr/bin/sar -u 1 10
218 show "Buffer Activity" /usr/bin/sar -b 1 10
219 show "Block Device Activity" /usr/bin/sar -d 1 10
220 show "vmstat snapshot" /usr/bin/vmstat 2 10
221 }
222 #####################
223 # For Unixware systems
224 #####################
225 unixware()
226 {
227 show "Memory size" /sbin/memsize
228 show "Message log" cat /usr/adm/log/osmlog
229 show "System Configuration" /usr/sbin/sysdef 
230 show "Processes" '/usr/bin/ps -elf '
231 show "Network Utilization Summary" /bin/netstat -i
232 show "Network Protocol Statistics" /bin/netstat -s
233 show "NFS Statistics" /usr/sbin/nfsstat
234
235 show "CPU Utilization" /sbin/sar -u 1 10
236 show "Buffer Activity" /sbin/sar -b 1 10
237 show "Block Device Activity" /sbin/sar -d 1 10
238 show "Paging In Activity" /sbin/sar -p 1 5
239 show "Paging Out Activity" /sbin/sar -g 1 5
240 show "Free Memory" /sbin/sar -r 1 5
241 show "Historical sar data" /sbin/sar -A
242 echo ""
243 }
244
245
246 ####################################
247 # display informationin a uniform way
248 ####################################
249 show() {
250         echo "----------------------------------------------------"
251         echo $1
252         echo "----------------------------------------------------"
253         shift
254         eval "$@"
255         echo ""
256 }
257 ##################################################
258 # check uw network - works for  Unixware
259 ##################################################
260 check_uw_network() {
261
262 netstat -i $interface
263 sleep 10
264 netstat -i $interface
265 }
266
267 ##################################################
268 # check network - works for HP-UX and SUNOS 5.x
269 ##################################################
270 check_network() {
271    printf "%8s %8s %8s %8s %8s %8s \n" time inpkts inerrs \
272       outpkts outerrs colls 
273     netstat -i -I $interface $interval | (
274     (line ; line ; line) > /dev/null
275     t_inpkts=0                          # initialize counter
276     t_inerrs=0                          # initialize counter
277     t_outpkts=0                         # initialize counter
278     t_outerrs=0                         # initialize counter
279     t_colls=0                           # initialize counter
280     i=0
281     while test $i -lt $count  ; do      # for each of the lines
282       time=`date +%T`
283       /bin/echo $time  \\c
284       set -- `line`                     # get the line
285       printf "%8s %8s %8s %8s %8s\n" $1 $2 $3 $4 $5
286       t_inpkts=`expr $1 + $t_inpkts`    # accumulate in packets
287       shift
288       t_inerrs=`expr $1 + $t_inerrs`    # accumulate in errors
289       shift
290       t_outpkts=`expr $1 + $t_outpkts`  # accumulate out packets
291       shift
292       t_outerrs=`expr $1 + $t_outerrs`  # accumulate out errors
293       shift
294       t_colls=`expr $1 + $t_colls`      # accumulate collisions
295       i=`expr $i + 1 `
296     done
297     printf "\n%8s %8s %8s %8s %8s %8s \n" \
298       total $t_inpkts $t_inerrs $t_outpkts $t_outerrs $t_colls
299 # now check error and collision rate. 
300 # Use awk to get floating point accuracy
301     echo  $t_colls $t_outpkts $t_inerrs $t_inpkts | awk '$2 != 0 { 
302     collision_rate = $1 / $2;
303     printf("\n\ncollision rate ( %g %% )", (collision_rate * 100.0));
304     if ( collision_rate > 0.05 ) 
305       printf("  too high. Add subnets.\n");
306     else
307       printf("\n")}
308     $4 != 0 {
309     error_rate = $3 / $4;
310     printf("    error rate ( %g %% )", (error_rate * 100.0));
311     if (error_rate > 0.00025)
312       printf("  too high.  Check cabling.\n");
313     else
314       printf("\n")}'
315
316   )
317 }
318
319 ##################################################
320 # check network - works for SUNOS 4.x
321 ##################################################
322 check_network1() {
323    echo " time     inpkts   inerrs   outpkts   outerrs  colls"
324   netstat -i -I $interface $interval | (
325     (line ; line ; line) > /dev/null
326     t_inpkts=0                          # initialize counter
327     t_inerrs=0                          # initialize counter
328     t_outpkts=0                         # initialize counter
329     t_outerrs=0                         # initialize counter
330     t_colls=0                           # initialize counter
331     i=0
332     while test $i -lt $count  ; do      # for each of the lines
333       time=`date +%T`
334       /bin/echo -n $time  
335       set -- `line`                     # get the line
336       echo "     $1       $2         $3        $4        $5"
337       t_inpkts=`expr $1 + $t_inpkts`    # accumulate in packets
338       shift
339       t_inerrs=`expr $1 + $t_inerrs`    # accumulate in errors
340       shift
341       t_outpkts=`expr $1 + $t_outpkts`  # accumulate out packets
342       shift
343       t_outerrs=`expr $1 + $t_outerrs`  # accumulate out errors
344       shift
345       t_colls=`expr $1 + $t_colls`      # accumulate collisions
346       i=`expr $i + 1 `
347     done
348     echo -n "total       " 
349     echo -n "$t_inpkts       $t_inerrs        $t_outpkts       "
350     echo " $t_outerrs       $t_colls"
351 # now check error and collision rate. 
352 # Use awk to get floating point accuracy
353     echo  $t_colls $t_outpkts $t_inerrs $t_inpkts | awk '$2 != 0 { 
354     collision_rate = $1 / $2;
355     printf("\n\ncollision rate ( %g %% )", (collision_rate * 100.0));
356     if ( collision_rate > 0.05 ) 
357       printf("  too high. Add subnets.\n");
358     else
359       printf("\n")}
360     $4 != 0 {
361     error_rate = $3 / $4;
362     printf("    error rate ( %g %% )", (error_rate * 100.0));
363     if (error_rate > 0.00025)
364       printf("  too high.  Check cabling.\n");
365     else
366       printf("\n")}'
367
368   )
369 }
370
371 ########################################################
372 # establish file partition -> disk device mapping for solaris
373 # how do I do this for other platforms?
374 ########################################################
375 do_discs()
376 {
377 df -F ufs
378 df -F ufs | cut -f1 -d: | awk '{print $2}' | sed 's/(//' |\
379             sed 's/)//' > /tmp/lll
380 for i in `cat /tmp/lll` 
381 do
382   ls -l $i
383 done
384 rm /tmp/lll
385 cat /etc/path_to_inst
386 }
387
388 ########################################################
389 # calculate the size (in bytes) of all VOB database on this host
390 ########################################################
391 check_vobs()
392 {
393 if [  ! -f $ATRIAHOME/bin/cleartool ] ; then
394   echo this is not a ClearCase host
395   exit
396 fi
397 # list  all vobs on this host and extract the
398 # VOB storage directory. 
399 $ATRIAHOME/bin/cleartool lsvob -host $HOST 
400 $ATRIAHOME/bin/cleartool lsvob -host $HOST | \
401 awk '$1 == "*" {print $3  } \
402      $1 != "*" {print $2  }' >/tmp/list.$$
403 # count the vobs
404 vobs=`wc -l /tmp/list.$$ | awk '{print $1}'`
405 echo "Number of vobs    : $vobs"
406 if [ $vobs = 0 ] ; then
407   return
408 fi
409 # now count all the bytes in the database data and key files
410 for i in `cat /tmp/list.$$`
411 do
412   cd $i/db
413   $LSL vob_db.d0? vob_db.k0? | \
414   awk 'BEGIN {sum=0} \
415   {sum = sum + $5} \
416   END {printf "%12d\t", sum}'  
417   echo `basename $i` 
418 done | tee -a  /tmp/list1.$$
419
420 awk 'BEGIN {sum=0} \
421 {sum = sum + $1} \
422 END {printf "%12d\tTOTAL", sum}'  < /tmp/list1.$$
423
424 rm /tmp/list.$$ /tmp/list1.$$
425 }
426
427 ########################################################
428 # check the view characteristics
429 ########################################################
430 check_views()
431 {
432 if [  ! -f $ATRIAHOME/bin/cleartool ] ; then
433   echo this is not a ClearCase host
434   exit
435 fi
436 $ATRIAHOME/bin/cleartool lsview -host $HOST | \
437 awk '$1 == "*" {print $3,$2  } \
438      $1 != "*" {print $2,$1  }' >/tmp/list.$$
439 # count the views
440 views=`wc -l /tmp/list.$$ | awk '{print $1}'`
441 echo "Number of views    : $views"
442 if [ $views = 0 ] ; then
443   return
444 fi
445 cat /tmp/list.$$ | (
446 i=1
447 while [ $i -le  $views ]
448 do
449    set -- `line`;
450    size=`grep -s cache $1/.view | awk '{print $2}'`
451    if [ a$size = a ]; then
452       size=default
453    fi
454    echo "$size $2" | awk '{printf "%8s\t%-16s\n", $1, $2}'
455    i=`expr $i + 1`
456 done
457 )
458 rm /tmp/list.$$
459 }
460
461 ########################################################
462 # check the MVFS cache on this system
463 ########################################################
464 check_mvfs()
465 {
466 /usr/atria/etc/mvfsstat -iclrh 2>&1
467 }
468
469 ########################################################
470 # check clearcase things
471 ########################################################
472 check_cc()
473 {
474 ATRIAHOME=${ATRIAHOME:-/usr/atria}
475   show "VOB sizes" check_vobs
476   show "Views" check_views
477   show "MVFS" check_mvfs
478   show "Cleartool Version" $ATRIAHOME/bin/cleartool -ver
479 }
480
481 ########################################################
482 # obtain mvs parameters
483 ########################################################
484
485 get_mvfs_sun4()
486 {
487 adb -k /var/adm/atria/vmunix_mvfs /dev/mem <<!
488 =n"MVFS parameters"
489 physmem/D
490 mvfs_mnmax/D
491 mvfs_vobfreemax/D
492 mvfs_cvpfreemax/D
493 mvfs_dncdirmax/D
494 mvfs_dncregmax/D
495 mvfs_dncnoentmax/D
496 mvfs_largeinit/D
497 !
498 }
499
500 get_mvfs_sun5()
501 {
502 adb -k /dev/ksyms /dev/mem <<!
503 =n"MVFS parameters"
504 physmem/D
505 mvfs_mnmax/D
506 mvfs_vobfreemax/D
507 mvfs_cvpfreemax/D
508 mvfs_dncdirmax/D
509 mvfs_dncregmax/D
510 mvfs_dncnoentmax/D
511 mvfs_largeinit/D
512 !
513 }
514
515 get_mvfs_hp9()
516 {
517 adb -k /hp-ux /dev/mem <<!
518 =n"MVFS parameters"
519 physmem/D
520 mvfs_mnmax/D
521 mvfs_vobfreemax/D
522 mvfs_cvpfreemax/D
523 mvfs_dncdirmax/D
524 mvfs_dncregmax/D
525 mvfs_dncnoentmax/D
526 mvfs_largeinit/D
527 bufpages/D
528 nbuf/D
529 ninode/D
530 fs_async/D
531 !
532 }
533
534 get_mvfs_hp10()
535 {
536 adb -k /stand/vmunix /dev/mem <<!
537 =n"MVFS parameters"
538 physmem/D
539 mvfs_mnmax/D
540 mvfs_vobfreemax/D
541 mvfs_cvpfreemax/D
542 mvfs_dncdirmax/D
543 mvfs_dncregmax/D
544 mvfs_dncnoentmax/D
545 mvfs_largeinit/D
546 bufpages/D
547 nbuf/D
548 ninode/D
549 fs_async/D
550 !
551 }
552
553 get_mvfs_osf1()
554 {
555
556 dbx -k /vmunix /dev/mem  2>/dev/null <<!
557 printf "physmem %d", physmem
558 printf "mvfs_mnmax %d", mvfs_mnmax
559 printf "mvfs_vobfreemax %d", mvfs_vobfreemax
560 printf "mvfs_cvpfreemax %d", mvfs_cvpfreemax
561 printf "mvfs_dncdirmax %d", mvfs_dncdirmax
562 printf "mvfs_dncregmax %d", mvfs_dncregmax
563 printf "mvfs_dncnoentmax %d", mvfs_dncnoentmax
564 printf "mvfs_largeinit %d", mvfs_largeinit
565 puit
566 !
567 }
568
569
570 ############################
571 # ENTRY POINT FOR SCRIPT
572 ############################
573
574 if [ $# -ne 0 ] ; then
575    echo "usage: scs"
576    exit
577 fi
578
579 if [ ! -w /etc/passwd ] ; then
580         echo "Please run $0 as root."
581         exit 1
582 fi
583
584 interval=1
585 count=20
586
587 SYS=`uname -m`
588 OS=`uname -s`
589 OSVER=`uname -r`
590 HOST=`uname -n`
591 LSL="ls -l"
592
593 echo system is `uname -a`
594 echo "SCS script version 96/06/21 1.26 run at `date`"
595
596 case $OS in
597
598 #AIX
599 AIX   )  aix
600          lans=`/bin/netstat -i | grep -v none | \
601             awk '{print $1}' | grep -v lo0 | grep -v Name `
602          for interface in $lans 
603          do
604             show "Network snapshop - $interface" check_network
605          done 
606          check_cc
607          ;;
608
609
610 #Sun 
611 SunOS )  case $OSVER in
612          # SUN SunOS 4.x (Solaris 1.x) operating system
613         4.1*  ) sunos
614                 LSL="ls -lg"
615                 lans=`/usr/ucb/netstat -i | grep -v none | \
616                   awk '{print $1}' | grep -v lo0 | grep -v Name `
617                 for interface in $lans 
618                 do
619                    show "Network snapshop - $interface" check_network1
620                 done 
621                 check_cc
622                 show "MVFS parameters" get_mvfs_sun4
623                 show "License Host" cat /var/adm/atria/config/license_host
624                 show "Registry Host and Region" cat /var/adm/atria/rgy/rgy*.conf
625                 ;;
626         # SUN SunOS 5.x (Solaris 2.x) operating system
627         5.*   ) solaris
628                 lans=`/bin/netstat -i | grep -v none | \
629                   awk '{print $1}' | grep -v lo0 | grep -v Name `
630                 for interface in $lans 
631                 do
632                    show "Network snapshop - $interface" check_network
633                 done 
634                 show "Disk Utilization " do_discs
635                 check_cc
636                 show "MVFS parameters" get_mvfs_sun5
637                 show "License Host" cat /var/adm/atria/config/license_host
638                 show "Registry Host and Region" cat /var/adm/atria/rgy/rgy*.conf
639                 ;;
640         esac
641         ;;
642 #HP
643 HP-UX)  case $OSVER in 
644         # HP HP-UX operating system
645         A.09.*) model=`uname -m | cut -d'/' -f 2`
646                 if [ `expr $model` -gt 800 ] ; then
647                     hpux98
648                 elif [ `expr $model` -gt 700 ] ; then
649                     hpux97
650                 else
651                     hpux
652                 fi
653                 lans=`/usr/bin/netstat -i | grep -v none | \
654                   awk '{print $1}' | grep -v lo0 | grep -v Name `
655                 for interface in $lans 
656                 do
657                    show "Network snapshop - $interface" check_network
658                 done 
659                 check_cc
660                 show "MVFS parameters" get_mvfs_hp9
661                 show "License Host" cat /usr/adm/atria/config/license_host
662                 show "Registry Host and Region" cat /usr/adm/atria/rgy/rgy*.conf
663                 ;;
664         *.10.*) hpux10
665                 lans=`/bin/netstat -i | grep -v none | \
666                   awk '{print $1}' | grep -v lo0 | grep -v Name `
667                 for interface in $lans 
668                 do
669                    show "Network snapshop - $interface" check_network
670                 done 
671                 check_cc
672                 show "MVFS parameters" get_mvfs_hp10
673                 show "License Host" cat /var/adm/atria/config/license_host
674                 show "Registry Host and Region" cat /var/adm/atria/rgy/rgy*.conf
675                 ;;
676         esac
677         ;;
678 #SGI
679 IRIX)  case $OSVER in
680         # IRIX 5.x operating system
681         # IRIX 5.x operating system
682         5.*   ) irix
683                 lans=`/usr/etc/netstat -i | grep -v none | \
684                   awk '{print $1}' | grep -v lo0 | grep -v Name `
685                 for interface in $lans 
686                 do
687                    show "Network snapshot - $interface" check_network
688                 done 
689                 check_cc
690                 ;;
691         #other
692         * ) echo "$prog": unknown operating system: $OS $CPUOS
693             exit ;;
694         esac
695         ;;
696
697 #Digital Unix
698 OSF1)      osf1
699            lans=`/usr/sbin/netstat -i | grep -v none | \
700               awk '{print $1}' | grep -v lo0 | grep -v Name `
701             for interface in $lans 
702             do
703                show "Network snapshot - $interface" check_network
704             done 
705            check_cc
706            show "MVFS parameters" get_mvfs_osf1
707            show "License Host" cat /var/adm/atria/config/license_host
708            show "Registry Host and Region" cat /var/adm/atria/rgy/rgy*.conf
709            ;;
710
711 #Unixware
712 UNIX_SV)   unixware
713            lans=`/bin/netstat -i | grep -v none | \
714              awk '{print $1}' | grep -v lo0 | grep -v Name `
715            for interface in $lans 
716            do
717               show "Network snapshop - $interface" check_uw_network
718            done 
719            check_cc
720            ;;
721
722 #other
723 * ) echo "$prog": unknown operating system: $OS $CPUOS
724     exit ;;
725 esac
726
727