#==[ Plugin ]=======================================# # Output: /usr/lib/supportconfig/plugins/susemanagerclient #==[ Command ]======================================# # /usr/lib/supportconfig/plugins/susemanagerclient #==[ Section Header ]===============================# # Supportconfig Plugin for SUSE Manager Client, v1.0.0 #==[ Validating RPM ]=================================# # rpm -V spacewalk-client-tools Status: Passed #==[ Validating RPM ]=================================# # rpm -V spacewalk-check Status: Passed #==[ Validating RPM ]=================================# # rpm -V spacewalk-client-setup Status: Passed #==[ Validating RPM ]=================================# # rpm -V spacewalksd Status: Passed #==[ Validating RPM ]=================================# # rpm -V rhnlib Status: Passed #==[ Validating RPM ]=================================# package osad is not installed Status: Skipped #==[ Validating RPM ]=================================# package rhncfg is not installed Status: Skipped #==[ Validating RPM ]=================================# package rhncfg-actions is not installed Status: Skipped #==[ Validating RPM ]=================================# package rhncfg-client is not installed Status: Skipped #==[ Validating RPM ]=================================# package rhncfg-management is not installed Status: Skipped #==[ Validating RPM ]=================================# package rhn-custom-info is not installed Status: Skipped #==[ Validating RPM ]=================================# package rhnmd is not installed Status: Skipped #==[ Validating RPM ]=================================# package rhnpush is not installed Status: Skipped #==[ Validating RPM ]=================================# package rhn-virtualization-common is not installed Status: Skipped #==[ Validating RPM ]=================================# package rhn-virtualization-host is not installed Status: Skipped #==[ Validating RPM ]=================================# package spacewalk-koan is not installed Status: Skipped #==[ Validating RPM ]=================================# package spacewalk-backend-libs is not installed Status: Skipped #==[ Validating RPM ]=================================# package spacewalk-remote-utils is not installed Status: Skipped #==[ Validating RPM ]=================================# package spacewalk-oscap is not installed Status: Skipped #==[ Validating RPM ]=================================# # rpm -V suseRegisterInfo Status: Passed #==[ Validating RPM ]=================================# # rpm -V zypp-plugin-spacewalk Status: Passed #==[ Validating RPM ]=================================# # rpm -V python-dmidecode Status: Passed #==[ Validating RPM ]=================================# package koan is not installed Status: Skipped #==[ Validating RPM ]=================================# package python-jabberpy is not installed Status: Skipped #==[ Validating RPM ]=================================# package openscap is not installed Status: Skipped #==[ Validating RPM ]=================================# package openscap-utils is not installed Status: Skipped #==[ Validating RPM ]=================================# package libopenscap1 is not installed Status: Skipped #==[ Validating RPM ]=================================# package openscap-content is not installed Status: Skipped #==[ Validating RPM ]=================================# package salt-minion is not installed Status: Skipped #==[ Validating RPM ]=================================# package salt is not installed Status: Skipped #==[ Validating RPM ]=================================# package python-Jinja2 is not installed Status: Skipped #==[ Validating RPM ]=================================# package python-tornado is not installed Status: Skipped #==[ Validating RPM ]=================================# package python-pyzmq is not installed Status: Skipped #==[ Section Header ]===============================# # SUSE Manager Client Config Files #==[ Configuration File ]===========================# # /etc/sysconfig/rhn/up2date stagingContentWindow[comment]=How much forward we should look for future actions. In hours. stagingContentWindow=24 disallowConfChanges[comment]=Config options that can not be overwritten by a config update action disallowConfChanges=noReboot;sslCACert;useNoSSLForPackages;serverURL;disallowConfChanges skipNetwork[comment]=Skips network information in hardware profile sync during registration. skipNetwork=0 stagingContent[comment]=Retrieve content of future actions in advance stagingContent=1 networkRetries[comment]=Number of attempts to make at network connections before giving up networkRetries=1 hostedWhitelist[comment]=RHN Hosted URL's hostedWhitelist= enableProxy[comment]=Use a HTTP Proxy enableProxy=0 writeChangesToLog[comment]=Log to /var/log/up2date which packages has been added and removed writeChangesToLog=0 serverURL[comment]=Remote server URL (use FQDN) serverURL=https://lnxsmt01.risa.smt/XMLRPC proxyPassword[comment]=The password to use for an authenticated proxy proxyPassword= proxyUser[comment]=The username for an authenticated proxy proxyUser= versionOverride[comment]=Override the automatically determined system version versionOverride= sslCACert[comment]=The CA cert used to verify the ssl server sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT retrieveOnly[comment]=Retrieve packages only retrieveOnly=0 debug[comment]=Whether or not debugging is enabled debug=0 httpProxy[comment]=HTTP proxy in host:port format, e.g. squid.redhat.com:3128 httpProxy= useNoSSLForPackages[comment]=Use HTTP for package, package list, and header fetching (disable Akamai) useNoSSLForPackages=0 systemIdPath[comment]=Location of system id systemIdPath=/etc/sysconfig/rhn/systemid enableProxyAuth[comment]=To use an authenticated proxy or not enableProxyAuth=0 noReboot[comment]=Disable the reboot actions noReboot=0 #==[ Configuration File ]===========================# # /etc/sysconfig/rhn/osad.conf - File not found #==[ Configuration File ]===========================# # /etc/sysconfig/rhn/rhncfg-client.conf - File not found #==[ Configuration File ]===========================# # /etc/sysconfig/rhn/rhncfg-manager.conf - File not found #==[ Configuration File ]===========================# # /etc/sysconfig/rhn/image.cfg - File not found #==[ Configuration File ]===========================# # /etc/sysconfig/rhn/rhnpushrc - File not found #==[ Configuration File ]===========================# # /etc/sysconfig/rhn/rhnsd INTERVAL=240 #==[ Configuration File ]===========================# # /etc/sysconfig/rhn/systemid username operador operating_system sles-release description Initial Registration Parameters: OS: sles-release Release: 12.1 CPU Arch: s390x checksum 2f1b0a9c2a2b5edb6a649a1eb8b997748e64f914b5b1cfe756e227838cb43249 profile_name zlpro12.risa system_id ID-1000010254 architecture s390x-redhat-linux os_release 12.2 fields system_id os_release operating_system architecture username type type REAL #==[ Configuration File ]===========================# # /etc/salt/minion - File not found #==[ Configuration File ]===========================# # /etc/salt/minion.d/susemanager.conf - File not found #==[ Configuration File ]===========================# # /etc/salt/minion.d/_schedule.conf - File not found #==[ Section Header ]===============================# # SUSE Manager Client Capabilities /etc/sysconfig/rhn/clientCaps.d/ /etc/sysconfig/rhn/clientCaps.d/packages /etc/sysconfig/rhn/clientCaps.d/distupgrade #==[ Section Header ]===============================# # SUSE Manager Client allowed Actions /etc/sysconfig/rhn/allowed-actions/ /etc/sysconfig/rhn/allowed-actions/configfiles /etc/sysconfig/rhn/allowed-actions/configfiles/all /etc/sysconfig/rhn/allowed-actions/script /etc/sysconfig/rhn/allowed-actions/script/run #==[ Section Header ]===============================# # SUSE Manager Client Log Files #==[ Log File ]=====================================# # /var/log/up2date - Last 1000 Lines [Tue Nov 14 16:44:12 2017] up2date logging into up2date server [Tue Nov 14 16:44:12 2017] up2date successfully retrieved authentication token from up2date server #==[ Log File ]=====================================# # /var/log/osad - File not found #==[ Log File ]=====================================# # /var/log/salt/minion - File not found #==[ Command ]======================================# # /usr/bin/zypper --no-refresh ls # | Alias | Name | Enabled | GPG Check | Refresh | Type --+--------------------------+--------------------------+---------+-----------+---------+------- 1 | spacewalk | spacewalk | Yes | ---- | Yes | plugin 2 | susemanager-client-setup | susemanager-client-setup | Yes | ( ) No | Yes | rpm-md #==[ Command ]======================================# # /usr/bin/zypper --no-refresh lr -u Refreshing service 'spacewalk'. Repository priorities are without effect. All enabled repositories share the same priority. # | Alias | Name | Enabled | GPG Check | Refresh | URI --+------------------------------------------------------------+----------------------------------------------------+---------+-----------+---------+----------------------------------------------------------------------------------- 1 | spacewalk:sle-manager-tools12-pool-s390x-sp2-produccion | SLE-Manager-Tools12-Pool s390x SP2 - Produccion | Yes | ( p) Yes | Yes | plugin:spacewalk?channel=sle-manager-tools12-pool-s390x-sp2-produccion&server=0 2 | spacewalk:sle-manager-tools12-updates-s390x-sp2-produccion | SLE-Manager-Tools12-Updates s390x SP2 - Produccion | Yes | ( p) Yes | Yes | plugin:spacewalk?channel=sle-manager-tools12-updates-s390x-sp2-produccion&server=0 3 | spacewalk:sles12-sp2-pool-s390x-produccion | SLES12-SP2-Pool for s390x - Produccion | Yes | ( p) Yes | Yes | plugin:spacewalk?channel=sles12-sp2-pool-s390x-produccion&server=0 4 | spacewalk:sles12-sp2-updates-s390x-produccion | SLES12-SP2-Updates for s390x - Produccion | Yes | ( p) Yes | Yes | plugin:spacewalk?channel=sles12-sp2-updates-s390x-produccion&server=0 5 | susemanager-client-setup | susemanager-client-setup | Yes | ( ) No | Yes | https://lnxsmt01.risa.smt/pub/repositories/sle/12/1/bootstrap #==[ Command ]======================================# # salt-minion --versions-report ERROR: Command not found or not executible #==[ Plugin ]=======================================# # File: cat -n /usr/lib/supportconfig/plugins/susemanagerclient 1 #!/bin/bash 2 ############################################################# 3 # Name: Supportconfig Plugin for SUSE Manager Client 4 # Description: Gathers important troubleshooting information 5 # about a SUSE Manager Client 6 # License: GPLv2 7 # Author: Michael Calmer 8 # Modified: 2013 October 10 9 ############################################################# 10 11 SVER=1.0.0 12 RCFILE="/usr/lib/supportconfig/resources/scplugin.rc" 13 14 [ -s $RCFILE ] && . $RCFILE || { echo "ERROR: Initializing resource file: $RCFILE"; exit 1; } 15 16 validate_rpm_if_installed() { 17 THISRPM=$1 18 echo "#==[ Validating RPM ]=================================#" 19 if rpm -q $THISRPM >/dev/null 2>&1; then 20 echo "# rpm -V $THISRPM" 21 22 if rpm -V $THISRPM; then 23 echo "Status: Passed" 24 else 25 echo "Status: WARNING" 26 fi 27 else 28 echo "package $THISRPM is not installed" 29 echo "Status: Skipped" 30 fi 31 echo 32 } 33 34 ############################################################# 35 section_header "Supportconfig Plugin for SUSE Manager Client, v${SVER}" 36 RPMLIST=" 37 spacewalk-client-tools 38 spacewalk-check 39 spacewalk-client-setup 40 spacewalksd 41 rhnlib 42 osad 43 rhncfg 44 rhncfg-actions 45 rhncfg-client 46 rhncfg-management 47 rhn-custom-info 48 rhnmd 49 rhnpush 50 rhn-virtualization-common 51 rhn-virtualization-host 52 spacewalk-koan 53 spacewalk-backend-libs 54 spacewalk-remote-utils 55 spacewalk-oscap 56 suseRegisterInfo 57 zypp-plugin-spacewalk 58 python-dmidecode 59 koan 60 python-jabberpy 61 openscap 62 openscap-utils 63 libopenscap1 64 openscap-content 65 salt-minion 66 salt 67 python-Jinja2 68 python-tornado 69 python-pyzmq 70 " 71 72 for THISRPM in $RPMLIST; do 73 validate_rpm_if_installed $THISRPM 74 done 75 76 section_header "SUSE Manager Client Config Files" 77 78 pconf_files \ 79 /etc/sysconfig/rhn/up2date \ 80 /etc/sysconfig/rhn/osad.conf \ 81 /etc/sysconfig/rhn/rhncfg-client.conf \ 82 /etc/sysconfig/rhn/rhncfg-manager.conf \ 83 /etc/sysconfig/rhn/image.cfg \ 84 /etc/sysconfig/rhn/rhnpushrc \ 85 /etc/sysconfig/rhn/rhnsd \ 86 /etc/sysconfig/rhn/systemid \ 87 /etc/salt/minion \ 88 /etc/salt/minion.d/susemanager.conf \ 89 /etc/salt/minion.d/_schedule.conf 90 91 section_header "SUSE Manager Client Capabilities" 92 93 find /etc/sysconfig/rhn/clientCaps.d/ 94 95 section_header "SUSE Manager Client allowed Actions" 96 97 find /etc/sysconfig/rhn/allowed-actions/ 98 99 section_header "SUSE Manager Client Log Files" 100 101 plog_files 1000 /var/log/up2date 102 plog_files 100 /var/log/osad 103 plog_files 1000 /var/log/salt/minion 104 105 plugin_command "zypper --no-refresh ls" 106 plugin_command "zypper --no-refresh lr -u" 107 plugin_command "salt-minion --versions-report" 108