Collects cluster information.
The cluster script uses many loops to collect data. It attempts to collect data for Oracle, Sybase, Informix, SAP, NFS, and HA-HTTPD. For each database, it also attempts to collect data for each instance.
The following commands are collected:
/bin/ls -lR ${HASYBDIR} /bin/ls -l /usr/lib | /bin/grep informix /usr/sbin/pkgchk -n ${PKG} /usr/sbin/smcwebserver -V /opt/SUNWcacao/bin/cacaoadm ${CLUSTERBIN}/hareg -q ${DB} ${CLUSTERBIN}/hareg -q ${DS} /usr/cluster/dtk/bin/cmm_ctl -g /usr/cluster/dtk/bin/replctl /usr/cluster/dtk/bin/dcs_config -c info /usr/cluster/dtk/bin/dcs_config -c status /usr/cluster/dtk/bin/orbadmin -P all /usr/cluster/dtk/bin/orbadmin -R all /usr/cluster/dtk/bin/print_net_state -s /usr/cluster/lib/sc/rgmd_debug printbuf /usr/bin/echo '0t${pid}:A\n*cmm_dbg_buf/s\n:R\n\$q' | adb /usr/cluster/lib/sc/rgmd - /usr/bin/echo '0t${pid}:A\n*ucmm_dbg_buf/s\n:R\n\$q' | adb /usr/cluster/lib/ucmm/ucmmd - /usr/bin/echo '0t${pid}:A\n*cmm_dbg_buf/s\n:R\n\$q' | adb /usr/cluster/lib/ucmm/ucmmd - ${CLUSTERBIN}/pmfadm -l \"\" ${CLUSTERBIN}/get_node_status ${CLUSTERBIN}/clustm dumpstate ${CLUSTERNAME} ${CLUSTERBIN}/scconf ${CLUSTERNAME} -p ${CLUSTERBIN}/hastat ${CLUSTERBIN}/hareg ${PNMBIN}/pnmstat -l ${CLUSTERBIN}/finddevices disks ${ctl} /bin/ls -l /var/opt/SUNWcluster/devices ${SCIBIN}/sciadm -ident ${SCIBIN}/sciinfo -a ${SMABIN}/get_ci_status ${SMABIN}/smactl -l ${SCIDBIN}/scidstat -su ${id} ${CLUSTERBIN}/scinstall -pv ${CLUSTERBIN}/scconf -pv ${CLUSTERBIN}/pnmstat -lm ${CLUSTERBIN}/pmfadm -l ${handle} ${CLUSTERBIN}/scstat ${CLUSTERBIN}/scstat -pv ${CLUSTERBIN}/scstat -pvv ${CLUSTERBIN}/scconf -pvv ${CLUSTERBIN}/scrgadm -pv ${CLUSTERBIN}/scrgadm -pvv /usr/cluster/lib/sc/replctl /usr/cluster/lib/sc/cmm_ctl -g ${CLUSTERBIN}/scdpm -p all:all ${CLUSTERBIN}/haoracle list ${CLUSTERBIN}/hasybase list ${CLUSTERBIN}/hainformix list /bin/ps -ecf | /bin/grep ${SAPSID} /usr/sap/${SAPSID}/SYS/exe/run/disp+work -V ${CLUSTERBIN}/scdidadm -l ${CLUSTERBIN}/scdidadm -L ${SDSBIN}/medstat -s ${s} echo "$G;$<threadlist" | mdb -k /dev/ksyms /dev/mem echo "$<dump_all" | mdb -I $adb_macro_path -k /dev/ksyms /dev/mem ${CLUSTERBIN}/scnas -p ${CLUSTERBIN}/scnasdir -p ${CLUSTERBIN}/scdidadm -c |
If Sun Cluster 3.1 Geographic Edition 3.1 08/05 is installed, the following additional commands are collected:
/usr/cluster/bin/geoadm /usr/cluster/bin/geops /usr/cluster/bin/geopg /usr/cluster/bin/geohb |
If Solaris 10 is installed, the following additional command is collected:
/usr/bin/svcs -a | grep cluster |
In addition, if Solaris 10 is installed, the following command is collected for the services that are listed by the previous grep command:
svccfg export svc:$j |
The following files are collected:
/tmp/scsi3_keys.out /tmp/pgre_keys.out ${ORAHOME}/orainst/RELVER ${ORAHOME}/dbs/init${ORASID}.ora ${ORANET}/listener.ora ${ORANET}/sqlnet.ora ${ORANET}/tnsnames.ora ${ERRLOGFILE} ${line} ${IFILE} ${DBSDIR}/config${ORASID}.ora ${SYBHOME}/init/sqlsrv/version ${SYBHOME}/interfaces ${LOGFILE} ${MSGPATH} ${INFDIR}/etc/sqlhosts ${INFDIR}/etc/${CONFIG} ${HADSDIR}/hadsconf ${STOP} ${START} ${SRCDIR}/ha${DB}_support ${SRCDIR}/ha${DB}_config_V1 ${SRCDIR}/etc/udlm.conf ${SRCDIR}/etc/cvm.conf /etc/opt/${PKG}/hadsconf /etc/pnmconfig /.rhosts ${CLUSTERBIN}/init.snmpd /etc/sci.ifconf /etc/sma.config /etc/sma.ip /etc/inet/ntf.conf.cluster ${HAORADIR}/oratab ${HAORADIR}/listener.ora ${HAORADIR}/tnsnames.ora ${HAORADIR}/sqlnet.ora ${HASYBDIR}/sybtab ${HASYBDIR}/interfaces ${HAINFDIR}/inftab ${HAINFDIR}/etc/sqlhosts ${WORKDIR}/*.log ${WORKDIR}/*.trc ${WORKDIR}/dev* ${WORKDIR}/std* ${WORKDIR}/[A-Z]* ${FILE} ${FILE} /etc/did.conf /.rhosts /etc/pnmconfig /etc/sci.ifconf /etc/sma.ip /etc/sma.config /etc/clusters /etc/serialports /var/opt/SUNWcacao/logs/cacao.0 instrum-cacao.0 audit-cacao.0 |
The following directories are collected:
${SRCDIR}/${dir} ${SCDIR} /opt/${PKG}/etc /var/opt/SUNWcacao/run |
In addition, the following directories are collected recursively:
${SRCDIR} ${EXP_TMPDIR}/cluster /var/cluster /etc/cluster /usr/sap/${SAPSID}/SYS/profile /var/opt/sybase /var/opt/informix ${EXP_TMPDIR}/cluster /etc/opt/SUNWcacao /etc/cacao |
If Solaris 10 is installed, the following additional directory is collected:
usr/cluster/lib/svc/method |