[ To find a software version ]
Software | Version check |
Apache | ${BIN_HTTPD} -version | grep -i version | tr '/' ' ' | awk '{ print $4 } |
WebToB | ${WEBTOBDIR}/bin/wsadmin -version | grep WebtoB | sed -e 's/Version//' -e 's/\// /g' | awk ' { print $2,$3,$4,$5,$6 }' |
WEBLOGIC | java -cp ${WLS_HOME}/lib/weblogic.jar weblogic.version | grep "WebLogic Server" | awk '{ print $3,$NF }' |
JEUS | ${JEUS_HOME}/bin/jeusadmin -version | grep -i JEUS | sed -e '/^$/d' | awk '{ print $2, $3, $4 }' | sed -n '/^[0-9]/p' |
ANYLINK | ${ANYLINK_HOME}/bin/alversion.sh -v | grep -i version | awk '{ print $2,$3 }' | tr -d '[]' |
TMAX | ${TMAXDIR}/bin/tmadmin -version | grep -i version | cut -d' ' -f5-9 | tr -d ',' |
TUXEDO | ${TUXDIR}/bin/tmadmin -version > /tmp/tuxedo.out 2>&1; cat /tmp/tuxedo.out | grep -i version | awk '{ print $5 }' | tr -d ',' |
ORACLE | sqlplus -V | grep Release | awk '{ print $3 }' |
ORACLE RAC | ${DBIN_DIR}/crsctl query crs
softwareversion | grep Clusterware | head -1 | awk '{ print $NF }' | tr -d
'[]' (Oracle 12 or higher) ${DBIN_DIR}/crsctl query has softwareversion | grep "High Availability" | awk '{ print $NF }' | tr -d '[]' |
TIBERO | tbsql -v | grep tbSQL | awk '{ print $2,$3 }' |
MySQL | mysql --version | egrep -i 'mysql|ver' | awk '{ print $3, $5 }' | tr -d ',' |
OpenView | ${OV_PATH}/ovc -version | awk '{ print $NF }' |
NetBackup | cat /usr/openv/netbackup/bin/version | awk '{ print $2 }' |
SQL-Backtrac | cat /usr/sqlbt/obacktrack/VERSION | tr '-' ' ' | awk '{ print $7, $9, $10 }' |
Ignite-UX | swlist -l product Ignite-UX | grep "Ignite-UX" | awk '{ print $2 }' |
VxVM | (HP-UX) swlist -l product
VRTSvxvm | grep VRTSvxvm | awk '{ print $2 }' (AIX) lslpp -L all | grep -iw VRTSvxvm | awk '{ print $2 }' (SunOS) pkginfo -l VRTSvxvm | awk '/VERSION/ { print $2 }' | tr ',' ' ' (Linux) rpm -qa VRTSvxvm | awk -F- '{ print $2 }' |
VCS/CFS | (HP-UX) swlist -l product
VRTSvcs | grep VRTSvcs | awk '{ print $2 }' (AIX) lslpp -L all | grep -iw VRTSvcs | awk '{ print $2 }' (SunOS) pkginfo -l VRTSvcs | awk '/VERSION/ { print $2 }' | tr ',' ' ' (Linux) rpm -qa VRTSvcs | awk -F- '{ print $2 }' |
MC/SG | swlist -l product | grep ServiceGuard | awk '{ print $2 }' |
No comments:
Post a Comment