c8d4b55130
Move content from stx-utils into stx-integ or stx-update Packages will be relocated to stx-update: enable-dev-patch extras stx-integ: config-files/ io-scheduler filesystem/ filesystem-scripts grub/ grubby logging/ logmgmt tools/ collector monitor-tools tools/engtools/ hostdata-collectors parsers utilities/ build-info branding (formerly wrs-branding) platform-util Change-Id: Iefa35db5a644b8ca0f1962e6c4cbbc97213b69e9 Story: 2002801 Task: 22687 Signed-off-by: Scott Little <scott.little@windriver.com>
46 lines
1.4 KiB
Bash
Executable File
46 lines
1.4 KiB
Bash
Executable File
#! /bin/bash
|
|
#
|
|
# Copyright (c) 2013-2014 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
|
|
# Loads Up Utilities and Commands Variables
|
|
source /usr/local/sbin/collect_parms
|
|
source /usr/local/sbin/collect_utils
|
|
|
|
SERVICE="patching"
|
|
LOGFILE="${extradir}/${SERVICE}.info"
|
|
echo "${hostname}: Patching Info .....: ${LOGFILE}"
|
|
|
|
###############################################################################
|
|
# All nodes
|
|
###############################################################################
|
|
delimiter ${LOGFILE} "smart channel --show"
|
|
smart channel --show 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
|
|
|
|
###############################################################################
|
|
# Only Controller
|
|
###############################################################################
|
|
if [ "$nodetype" = "controller" ] ; then
|
|
|
|
delimiter ${LOGFILE} "sw-patch query"
|
|
sw-patch query 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
|
|
|
|
delimiter ${LOGFILE} "sw-patch query-hosts"
|
|
sw-patch query-hosts 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
|
|
|
|
delimiter ${LOGFILE} "sw-patch query-hosts --debug"
|
|
sw-patch query-hosts --debug 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
|
|
|
|
delimiter ${LOGFILE} "find /opt/patching"
|
|
find /opt/patching 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
|
|
|
|
delimiter ${LOGFILE} "find /www/pages/updates"
|
|
find /www/pages/updates 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
|
|
|
|
fi
|
|
|
|
exit 0
|