Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1 SP01
Outside Discovery
User Guide
Troubleshooting Guide
Version 1.0 - February 2011
OUTSIDE DISCOVERY
USER GUIDE
Typographic Conventions
Icons
Type Style
Icon
Example
Text
Represents
Meaning
Caution
Cross-references to
documentation.
Recommendation
other
Example
text
Emphasized
words
or
phrases in body text, graphic
titles, and table titles.
EXAMPLE
TEXT
Example
text
Example
text
<Example
text>
EXAMPLE
TEXT
Example
Note
Syntax
OUTSIDE DISCOVERY
USER GUIDE
Contents
1
Overview .............................................................................................................................................. 5
Pre-requisites ...................................................................................................................................... 6
2.1
2.1.1
2.1.2
2.1.3
2.2
3
SAPHostAgent............................................................................................................................... 6
Diagnostics Agent......................................................................................................................... 8
3.1.1
3.1.2
3.1.3
3.1.4
3.2
3.2.1
3.3
3.3.1
4
4.2
4.3
4.4
4.5
Landscape browser..................................................................................................................... 19
5.1.1
Landscape Tab
5.1.2
Administration Tab
5.2
5.2.1
Outside Discovery
User Guide SolMan 7.1 SP01
5.2.2
5.3
5.3.1
5.3.2
6.2
6.2.1
6.2.2
An exception occurred during the execution of the function
'FM_DIAGLS_PUSH_PHYSICAL_HOST' ............................................................................................ 26
6.2.3
6.2.4
6.2.5
6.2.6
CIM Request EnumerateInstances for classes Application failed: : Provider load failure .... 28
6.2.7
6.2.8
6.2.9
6.2.10
Error to perform http request cause Socket output stream shutdown by peer .................... 29
6.2.11
Unable to open connection to host "localhost:1128". The host is down or unavailable ........... 29
6.2.12
6.2.13
6.2.14
7.1.1
7.1.2
7.1.3
7.1.4
7.2
7.2.1
7.2.2
7.3
7.3.1
7.3.2
7.3.3
7.3.4
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
Overview
The purpose of the Outside Discovery is to automatically discover, collect and send information related the monitored
system to Solution Manager.
As of Solution Manager 7.1 SP01, Outside Discovery is able to collect following information:
Host: data related to Physical Host and Virtual Host (like Operating System type, version, cpu, memory
)
Database: data related to installed database (like database type, version, )
Microsoft Internet Information Service: data related to installed instance of Microsoft IIS (like .Net
version, IIS Applications, IIS Sites)
The Outside Discovery is packaged inside the Diagnostics Agent within the Agelet called DCC (agelet archive:
sap.com~tc~smd~agent~application~e2edcc.ear).
The Outside Discovery process relies on the SAPHostAgent Web Service process for collecting all raw technical
data related to monitored system.
The process is ready to push as soon as the running Diagnostics Agent gets connected to a Solution Manager
system. Data are:
o Collected from the SAPHostAgent Web Service.
o Filtered and cached on Agelet side.
o Sent to JAVA Bean Controller (SMD_DataEnrichment_Registrator) through P4 Connection.
o Stored in LMDB database (AI_DIAGSNOTICS_DATA_ENRICHMENT package).
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
Pre-requisites
Even if the Outside Discovery process itself do not require any specific setup in order to run some pre-requisites are
necessary.
Pre-requisites for the SAPHostAgent and Diagnostic Agent are detailed in the Solution Manager Guided Procedure:
SAP Solution Manager Configuration
System Preparation
IMG ID
SMCONF_LSC_DIAGAGT (SIMG)
SMCONF_LSC_HOSTAGT (SIMG)
SMCONF_LSC_CREDENT (SIMG)
2.1
SAPHostAgent
All data discovered by the Outside Discovery process are collected from the SAPHostAgent installed on the physical
host.
2.1.1
SAPHostAgent Version
The SAPHostAgent should have the correct version the minimum required version is:
Version field
Required version
Kernel Version
720
Patch Number
54
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
2.1.2
SAPHostAgent Porttype
The SAPHostAgent provides a Web Service access to some sub-services also called Porttype. The SAPHostAgent
should be configured in order expose those Porttype to the Web Service.
The configuration of those available services is defined in the following file host_profile located under of the binary
directory of the SAPHostAgent.
Following porttypes are mandatory for the Outside Discovery process:
o
SAPHostControl
SAPOscol
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
2.1.3
Some methods within the SAPHostAgent are restricted. In order to allow the Diagnostics Agent to access protected
Web Service from the SAPHostAgent a trusted connection is necessary between the 2 parties.
Trusted connection is defined in the following file host_profile.
The Diagnostics Agent user should be entered in the specific field service/admin_users.
2.2
Diagnostics Agent
In order to start the Outside Discovery process, the Diagnostics Agent should be connected to the Solution Manager
System:
o
Either using the following step in the System Preparation Guided Procedure:
SAP Solution Manager Configuration
SAP AG 2008
System Preparation
Outside Discovery
User Guide SolMan 7.1 SP01
User Guide
As soon as the Diagnostics Agent gets connected to a Solution Manager system, the Outside discovery agelet
starts running.
The Outside Discovery Agelet contains 3 different jobs:
Host Discovery:
this job is retrieving data from physical and virtual host on the monitored system.
Database Discovery: this job is retrieving data for all installed database on the monitored host.
IIS Discovery:
this job is retrieving data for installed Microsoft IIS on monitored host.
The Host Discovery process is the master process of the Outside Discovery Agelet. Database
Discovery and IIS Discovery processes are only started if Host Discovery has been able to
successfully push and create host entity on Solution Manager.
3.1
Host Discovery
The Host Discovery (aka PhysicalHostPushJob) is the master process and gets started first.
The Host Discovery is retrieving following data from the monitored system:
Physical Host this includes:
o
3.1.1
All hosts created by the Outside Discovery process are available in the Landscape Browser and the Technical
System Editor.
In the following example, Outside Discovery retrieved following information from a Diagnostics Agent installed
on physical host vml2262:
Landscape browser:
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
Physical Host vml2262 is using a Virtualization solution.
o
its Full Qualify Domain Name is vml2262.wdf.sap.corp and its IP Address is 10.66.51.11
its Full Qualify Domain Name is ldai1sd7.wdf.sap.corp and its IP Address is 10.66.51.53
More detailed data are available in the Technical System Editor like Alternative Hostnames, CPU Type.
SAP AG 2008
10
Outside Discovery
User Guide SolMan 7.1 SP01
3.1.2
11
The status of the Host Discovery Process is displayed within the Landscape Browser (column Host Status).
Here is a view of the Host Discovery Process running on Physical Host vml2262
3.1.3
Description
Name
IP Address
IP Address
Virtualized Solution
Example
OpSysUname
Windows NT
OpSys
WINDOWS_X86_32
OpSysRelease
5.2
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
12
OsSysBits
32
OpSysCategory
Windows NT
OpSysReleaseName
Windows NT 5.2
Manufacturer
PC Vendor
PhysicalRAMinMB
3904
VirtualRAMinMB
12276
NumberofCPUs
CPURate
2799
CPUCache
CPUType
3.1.4
The Outside Discovery process is retrieving all Logical Hosts from the installed SAP Product Instance: SAP J2EE
Engine, Diagnostics Agent, etc
Logical Host fields
Description
Name
IP Address
IP Address
The Logical Host inherit from the same Operating System data as its Physical Host.
Logical Hosts are retrieved from the SAPHostAgent which reads the SAP Profile. If the Full Qualified Domain
Name is not reported correctly then the property SAPLOCALHOSTFULL=<FQDN> in the SAP Profile should be
modified manually in order to match your network configuration.
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
3.2
Database Discovery
Database Discovery (aka IISInfoPushJob) is started only after a successful push of the Host Discovery process.
Database Discovery is retrieving following data from the monitored system:
Database List installed on the monitored system.
Database Type, Name and additional properties like vendor, version.
3.2.1
Landscape Browser
All Database instances created by the Outside Discovery process are available in the Landscape Browser.
SAP AG 2008
13
Outside Discovery
User Guide SolMan 7.1 SP01
3.3
14
IIS Discovery (aka IISInfoPushJob) is started only after a successful push of the Host Discovery process.
IIS Discovery is only running on Windows Operating System. The process is stopped if no IIS instance is found on
the monitored system.
IIS Discovery is retrieving following data from the monitored system:
IIS instance automatically created in LMDB
IIS version (supported version are IIS 6 and IIS 7)
All Installed .Net versions
All IIS Applications and IIS Pools
3.3.1
All IIS instances created by the Outside Discovery process are available in the Landscape Browser and the
Technical System Editor.
In the Landscape Browser you can search for all IIS instances
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
IIS Instance overview in the Technical System Editor
SAP AG 2008
15
Outside Discovery
User Guide SolMan 7.1 SP01
16
Advanced Configuration
The Outside Discovery Agelet can run out of the box without any additional configuration. However, some properties
are available in the Agelet configuration in order to control the process.
The configuration of the Outside Discovery Agelet is possible using the SMD Agent Administration UI.
The technical name for the Outside Discovery Agelet is: com.sap.smd.agent.application.e2edcc.
4.1
If necessary the whole Outside Discovery process can be switched off. This may happen if multiple Diagnostics
Agents are installed on the same physical host (example: End-user Experience Monitoring Agents).
Parameter name
Default value
e2edcc.enabled
true
Description
true the Outside discovery process is running.
false all Outside discovery jobs are stopped.
4.2
Internal Cache
In order to avoid unnecessary network traffic between Outside Discovery Agelet and Solution Manager as well as
unnecessary database update in LMDB, each job implements an internal cache.
When collecting data from the SAPHostAgent Web Service, job is checking that collected data are different from the
previous successfully collect.
Following cache implementations are available:
Memory cache: the cache is only valid while the Diagnostics Agent is running. If the Diagnostics Agent gets
re-started, then each job will push discovered data to Solution Manager.
File cache: the cache is physically persisted on the file system, within the Agelet directory (filename:
dcc.cache). If the Diagnostics Agent gets restarted, the previous cache is loaded.
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
17
Parameter name
Default value
cache.type
memory
Description
memory use memory cache.
file use file cache.
4.3
This property is used only on test systems in order to check that information is pushed correctly on Solution
Manager. If activated, the relevant job will push the data without checking the cache.
This option will increase network traffic and database update and should not be used on Production or
Quality Systems.
Parameter name
Default value
job.physical.force.push
Description
false Host Discovery job use cache.
false
false
false
4.4
Jobs scheduling
By default, all Outside Discovery jobs are scheduled to run each 5 minutes. This means, each job is querying the
SAPHostAgent Web Service in order to get latest up to date information at a frequency of 5 minutes.
In some cases, we may need to adjust the scheduling on the monitored system in order to reduce SAPHostAgent
access frequency.
The schedule can be adjusted using following property:
Parameter name
Default value
Description
job.physical.scedule.period.m
job.dbinfo.scedule.period.m
job.iisinfo.scedule.period.m
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
4.5
18
In some cases, the Full Qualified Domain Name and IP address of the Physical Host returned by the
SAPHostAgent is not accessible from Solution Manager. This situation is due to multiple network configuration on the
host.
In order to force a specific value for FQDN and IP address, following properties can be used:
Parameter name
Default value
Description
job.physicalhost.fqdn
none
job.physicalhost.ip
None
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
19
Support Tools
Different tools are available in Solution Manager in order to identify problems during the Outside Discovery process.
5.1
Landscape browser
5.1.1
Landscape Tab
Hosts View
As already seen in section 3.1.2, Landscape Browser is showing the status of the Host Discovery process.
Any error during the host discovery process is reported in the Host Status
under the Application area Data Enrichment.
Example of error occurring during Host discovery process of Physical Host nced60165205a:
SAPHostAgent is too old Upgrade is necessary.
5.1.2
Administration Tab
Additional logs are available in the Logs and Traces view of the Landscape Browser. Logs are available for each
discovery jobs using following Search pattern:
Discovery job
Search Pattern
Description
Host Discovery
Database Discovery
IIS Discovery
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
20
The level of details (Error, Warning, Info and Debug) is managed in Administration Tab
Configuration.
SAP AG 2008
Configuration
Log
Outside Discovery
User Guide SolMan 7.1 SP01
5.2
21
All logs written by the Outside Discovery Agelet are available through the SMD Agent Administration UI.
5.2.1
Following locations are available for filtering the Outside Discovery jobs:
Discovery job
Location
Host Discovery
com.sap.smd.e2edcc.host
Database Discovery
com.sap.smd.e2edcc.db
IIS Discovery
com.sap.smd.e2edcc.iis
5.2.2
The Agent Log Viewer can be used to check raw data retrieved from the SAPHostAgent by the Discovery job.
Each discovery job has its own log file. In order to get the most detailed report of extracted data, the Log Level should
be switched to debug.
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
22
Log file
Host Discovery
e2edcc_host.*.log
Database Discovery
e2edcc_db.*.log
IIS Discovery
e2edcc_iis.*.log
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
5.3
23
5.3.1
In this view section SMD JNDI objects auto-registered we can check that the JAVA Bean Controller is registered
correctly.
The JAVA Bean Controller is used to controlled callback performed by each Outside Discovery Agelet.
If the object is not registered correctly, use the objects Reinitialization button to re-create all objects.
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
5.3.2
The Diagnostics Agent Runtime view is used to get statistics about the Outside Discovery Jobs.
You have to select the Diagnostics Agent and use the Agent Monitoring Tab.
SAP AG 2008
24
Outside Discovery
User Guide SolMan 7.1 SP01
25
Troubleshooting Guide
6.1
Troubleshooting Roadmap
In order to troubleshoot a specific Outside Discovery process, following roadmap may be used this applies to any
discovery job running on a specific host.
Tool
Check
Section
reference
5.1.1
The status should be green as the Host
Discovery process is the master process.
5.2.1
Once the problem has been identified, please check in the Common Issues (section 6.2) for detailed description of the
root cause and possible solution.
If the problem is not listed in the Common Issues section, please create a Message attaching the logs file from the
Diagnostics Agent.
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
6.2
6.2.1
26
Common Issues
Diagnostics agent is not connected to solution manager server
Diagnostics agent is not connected to solution manager server, connection status: CONNECTING
Diagnostics agent is not connected to solution manager server, connection status:
LAST_REGISTRATION_ON_ERROR
Description
6.2.2
an error occurs during the communication between the Java Bean Controller and the
persistence Function Module in ABAP (package AI_DIAGNOSTICS_DATA_ENRICHMENT).
This is a global exception from the AI_DIAGNOSTICS_DATA_ENTICHMENT package and
should be resolved on Solution Manager ABAP stack.
Additional
Checks
SAP AG 2008
Check SOLMANDIAG destination between SAP J2EE Engine and ABAP stack.
Check ST22 dumps for additional information
Outside Discovery
User Guide SolMan 7.1 SP01
6.2.3
27
This exception occurs when the Host Discovery process is trying to parse SAPosCol data
retrieved from the SAPHostAgent.
In some situation the SAPHostAgent is partially creating the SAPosCol.xml file before
sending it to Web Service.
Solution
6.2.4
Additional
Checks
SAPHostAgent log files should be analyzed in order to identify SAPHostAgent the issue.
6.2.5
This exception occurs when the SAPHostAgent process (Porttype SAPosCol) is not able to
provide the SAPosCol.xml file
Additional
Check
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
6.2.6
28
The issue is the restriction done by II 7.0 on Windows 2008 and higher while discovering IIS
Applications
in
WMI
namespace.
Additional
information
available
at
http://learn.iis.net/page.aspx/162/managing-sites-with-iis-7039s-wmi-provider/.
You must be an administrator to connect to the Web Administration WMI namespace. This
means that you are logged in as one of the following:
Solution
6.2.7
A member of the Administrators group and you have disabled User Account Control
(UAC)
SAPHostAgent user does not have authorization to access ADSi IIS object.
Solution
6.2.8
A timeout exception occurred while accessing one of the SAPHostAgent Web Service
methods.
Additional
SAPHostAgent log files should be analyzed in order to identify SAPHostAgent performance or read
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
check
6.2.9
29
issue.
A timeout exception occurred while accessing the SAPHostAgent Web Service (Porttype
SAPosCol)
Additional
check
SAPHostAgent log files should be analyzed in order to identify SAPHostAgent performance or read
issue.
6.2.10
Error to perform http request cause Socket output stream shutdown by peer
The SAPHostAgent has closed the communication channel with Diagnostics Agent.
Additional
check
SAPHostAgent log files should be analyzed in order to identify SAPHostAgent performance or read
issue.
6.2.11
Additional
check
6.2.12
Cannot established a trusted connection to SAP host agent webservice. (SAP Host agent version
installed doesn't support trusted connection method)
<SAPHostAgentTrustedConnectionConfigurator.java:117:setupTrustedConnection()>
Description
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
Required
Action
30
Cannot established a trusted connection to SAP host agent webservice. (Cannot find the file
/usr/sap/hostctrl/work/sapcontrol_logon/logon5.)
Cause: It means that the SMD Diagnostics agent does not have enough permissions to read the folder
"/usr/sap/hostctrl/work/sapcontrol_logon/logon5"
Description
Required
Action
6.2.13
permissions
to
read
the
folder
One of the service Porttype of the SAPHostAgent is not available or not setup correctly.
Additional
Check
6.2.14
Additional
Check
SAPHostAgent log files should be analyzed in order to identify SAPHostAgent performance or read
issue.
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
31
Technical Implementation
This section will detail the SAPHostAgent Web Service methods used to discover each element. This will help
understanding:
The software soapUI (download available here http://www.soapui.org) can be used to access any Web Service
methods exposed by the SAPHostAgent.
SAPHostControl
http://<hostname>:1128/SAPHostControl/?wsdl
SAPOscol
http://<hostname>:1128/SAPOscol/?wsdl
7.1
Host Discovery
7.1.1
Physical host
Porttype
Parameters
Description
SAPHostControl
GetComputerSystem
none
Field Name
Description
Name
Hostnames
Full Qualified Domain Name list of host only one is returned localhost is filtered
out
IPAdresses
IP address list only one is returned (the one that is matching the FQDN) 127.0.0.1
is filtered out
7.1.2
Operating System
Porttype
Parameters
Description
SAPOscol
getHWConfXML
none
Field Name
Example
OpSysUname
Windows NT
OpSys
WINDOWS_X86_32
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
32
OpSysRelease
5.2
OsSysBits
32
OpSysCategory
Windows NT
OpSysReleaseName
Windows NT 5.2
Manufacturer
PC Vendor
PhysicalRAMinMB
3904
VirtualRAMinMB
12276
NumberofCPUs
CPURate
2799
CPUCache
CPUType
7.1.3
Virtualization Information
Porttype
Parameters
Description
SAPOscol
getOSData
none
Field Name
Description
GeneralVirtCIM_SolutionName
GeneralVirtCIM_Type
GeneralVirtCIM_SolutionVersion
7.1.4
Logical hosts
Porttype
Parameters
Description
SAPHostControl
GetCIMObject
instances =
SAPInstance
Field Name
Description
Hostname
FullQualifiedHostname
IPAddress
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
7.2
33
Database Discovery
7.2.1
Porttype
Parameters
Description
SAPHostControl
listDatabases
none
Field Name
Description
Database/Name
Database/Type
Database type
Database/InstanceName
Database/Host
7.2.2
Database Properties
Porttype
Parameters
Description
SAPHostControl
getDatabaseProperties
Database/Name
Database/Type
All properties returned by this Web Service are sent to Solution Manager.
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
7.3
34
IIS Discovery
7.3.1
Porttype
Web Service
method
Parameters
Description
SAPHostControl
getCimObject
EnumerateInstances
=WinRegistry?WinRegistryPath=HKLM
\Software\Microsoft\InetStp
An IIS instance is found if the method returns elements If the entry is not found, the IIS Discovery Job is stopped.
Field Name
Description
VersionString
InstallPath
MajorVersion
<MajorVersion>.<MinorVersion>
MinorVersion
7.3.2
Porttype
Web Service
method
Parameters
Description
SAPHostControl
getCimObject
EnumerateInstances
=WinRegistry?WinRegistryPath
=HKLM\\Software\\Microsoft\\NE
T Framework Setup\\NDP
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
7.3.3
35
Web Service
method
Parameters
Description
SAPHostControl
getCimObject
EnumerateInstances
=root/WebAdministration/Application
Field Name
Description
SiteName
ApplicationName
ApplicationPool
Path
Web Service
method
Parameters
Description
SAPHostControl
getCimObject
Associators =
root/WebAdministration/Application?Pa
th=<ApplicationPath>&SiteName=<S
iteName>?AssocClass=ApplicationCo
ntainsVirtualDirectory
Field Name
Description
PhysicalPath
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
7.3.4
36
Web Service
method
Parameters
Description
SAPHostControl
getCimObject
EnumerateInstances =
ADSi_Object?ADsPath=IIS://loc
alhost/W3SVC
Only ADS Objects where KeyType equals IISWEBSERVER are considered as Site.
Field Name
Description
ADsPath
ADS Path
KeyType
ServerComment
Site Name
IIS Application
Porttype
Web Service
method
Parameters
Description
SAPHostControl
getCimObject
EnumerateInstances =
ADSi_Object?ADsPath=<ADsP
ath>
Description
ADsPath
ADS Path
KeyType
SAP AG 2008
Outside Discovery
User Guide SolMan 7.1 SP01
37
Web Service
method
Parameters
Description
SAPHostControl
getCimObject
EnumerateInstances =
ADSi_Object?ADsPath=<ADsP
ath>
Field Name
Description
AppFriendlyName
Application Name
Path
Application Path
AppPoolId
Application Pool
SAP AG 2008