#!/bin/ksh -p # $Id: //depot/dev/proactive/explorer3/tools/var#10 $ # Source tools functions . ${EXP_LIB}/exp_tools # Run if specified to do so script=`basename $0` which_gate_exit $script default all get_cmd "/bin/ls -ld /var" var/ls-ld get_cmd "/bin/ls -ld /var/adm" var/adm-ld get_cmd "/bin/ls -ld /var/sadm" var/sadm-ld get_cmd "/bin/ls -l /var/yp/binding" var/yp_binding_ls-l get_file "/var/sadm/softinfo/INST_RELEASE" var/ get_file "/var/sadm/install/contents" var/ get_file "/var/sadm/system/admin/CLUSTER" var/ # Collect vts here until vts collector available get_file "/var/opt/SUNWvts/logs/sunvts.info" var/ # /var/log can be too large, uncomment if needed # get_dir recursive /var/log var/log # Get install info if available get_file "/var/sun/install/INFO/install_info" var/instinfo/ get_file "/var/sun/EIS-CD.log" var/sun/ get_file "/var/sun/GOLD-CD.log" var/sun/ # Get the crontabs get_file "/var/spool/cron/crontabs/*" var/cron/ # Get the last 10000 lines of the log and get a listing get_cmd "/bin/tail -10000 /var/cron/log" var/cron/log/ get_cmd "/bin/ls -l /var/cron/log" var/cron/log/