addmi 16.5-discovery troubleshooting

58
© 2009 BMC Educational Services Discovery Troubleshooting Understanding the Discovery Access Page

Upload: odanyboy

Post on 12-Jun-2015

409 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Addmi 16.5-discovery troubleshooting

© 2009 BMC Educational Services

Discovery Troubleshooting

Understanding the Discovery Access Page

Page 2: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Outline

Monitoring Discovery Current/Recent Runs Discovery Dashboard Credential/Slave usage feedback

Troubleshooting Discovery Metadata page Specific Reports

Additional Discovery Reference Material Appendix A Appendix B

Page 3: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Introduction

Keeping Foundations access to your environment in tip top shape is important for the best quality data

This module covers how tomonitor Foundation’s Accessand how to troubleshootproblems

Page 4: Addmi 16.5-discovery troubleshooting

© 2009 BMC Educational Services

Discovery Troubleshooting

Understanding the Discovery Access Page

Page 5: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Understanding the Discovery Access view

The Discovery Access view is the key page for troubleshooting discovery

It provides a summary view of the Directly Discovered Data for this access Device Type Session Results Methods and Scripts used Script Failure Feedback

Page 6: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Terminology – UNIX Scripts

Method / Script

Page 7: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Terminology – Windows Scripts

Method / Script

Page 8: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Discovery Access Page

Data is summarised into collapsible sections

Page 9: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Endpoint section

Shows data about when and why an endpoint was accessedLinks to related Host nodesDevice Summary field to improve contextNext and Previous Accesses

Page 10: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Device Summary Field - Examples

Example Device Summary fields from a range of device types

Page 11: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Status section

Shows data about the state of the Discovery Access Session Results only appear if there have been failures establishing a

session

Page 12: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Status section - Examples

Example Status sections from a variety of scenarios

Page 13: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Status section – Detail on UNIX

Click on the link to see the session results in sequence

Page 14: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Status section – Detail on Windows

Click on the link to see the session results in sequence

Page 15: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Discovery Details section

Shows the credential/slave used if for successful discovery Also shows if the data came from a scanning appliance or from scanner

files

Page 16: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Standard Discovery section

Shows the outcome of “Standard Discovery” That is the discovery we do automatically for a Host even without

patterns loaded

Page 17: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Standard Discovery – Details (1)

Click through to see discovery results

Page 18: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Standard Discovery – Details (2)

Status shows the overall status

Page 19: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Standard Discovery – Details (3)

Shows the script that succeeded

Page 20: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Standard Discovery – Details (4)

Summarises up any script failure reports

Page 21: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Standard Discovery – Details (5)

Shows successful access route

Page 22: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Standard Discovery – Details (6)

The increased detail is needed to reflect the complexity of Windows discovery More Scripts Multiple access routes during the same scan

Page 23: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Additional Discovery section

Records discovery done by patternsSlightly different as these methods can be called multiple times by

many different patterns

Page 24: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Integrations section

Integrations (SQL Discovery currently) has a dedicated section

Page 25: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Mapping to Platform Page

The information on the Discovery Access page has been arranged to allow you to find the commands on the Platform Pages.

Page 26: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Mapping to Platform Page

First use the device summary to find the right platform

Page 27: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Mapping to Platform Page

The use the Method

Page 28: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Mapping to Platform Page

The use the Method, Access

Page 29: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Mapping to Platform Page

The use the Method, Access, Script

Page 30: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Mapping to Platform Page

For WMI there is an extra page showing the script

Page 31: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Mapping to Platform Page

For WMI there is an extra page showing the script

Page 32: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Mapping to Platform Page

For WMI there is an extra page showing the script

Page 33: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Mapping to Platform Page

First use the device summary to find the right platform

Page 34: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Mapping to Platform Page

For UNIX the scripts are common across ssh/telnet/rlogin

Page 35: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Understanding Script Failures

Any script that fails to return useful output will be logged as a Script Failure

Sometimes this is normal behaviour as in methods with more than one script scripts are tried in priority order

Page 36: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Script Failures – Details (1)

Script name

Page 37: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Script Failures – Details (1)

Access

Page 38: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Script Failures – Details (1)

Slave Used

Page 39: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Script Failures – Details (1)

Error Message

Page 40: Addmi 16.5-discovery troubleshooting

© 2009 BMC Educational Services

Discovery Troubleshooting

Specific Reports

Page 41: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Discovery Conditions

Look for specific conditions where action can be taken to improve data quality

Links to vendor patches and additional detail on the Tideway website

Page 42: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Discovery Conditions – Locations (1)

In the Discovery Tab

Page 43: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Discovery Conditions – Locations (2)

On the Discovery Dashboard

Page 44: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Discovery Conditions – Locations (3)

On impacted Hosts

Page 45: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Possible Process To Port Issues

A frequent area of discovery troubleshooting is gather Process to Port connections

This data assist in understanding network dependencies and improves the detail of the Automatic Grouping

There is a specific report available to assist We will also cover how to instrument UNIX scripts for further

troubleshooting

Page 46: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Port to Process – Locations (1)

In the Discovery Tab

Page 47: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Port to Process– Locations (2)

On the Discovery Dashboard

Page 48: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Port to Process– Locations (3)

Contextual reports on the Discovery Run

Page 49: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Instrumenting UNIX Script

Edit the script to add instrumentation Doesn’t happen out of the box

Precede the command with tw_capture tw_capture <name> <command> [<args>..] <name> needs to be a unique identifier within that script

tw_capture will record the exit code and stderr

This will result in a CommandFailure node being created and linked to the discovery result But ONLY if the command fails

Page 50: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

CommandFailure Details

tw_capture can be used in a pipeline or subprocess (e.g. backticks)

The /tmp directory must be writeable for the feature to be enabled Otherwise you will get a CommandFailure with the message “Unable to

write to /tmp”

tw_capture can also be used in scripts run from TPL patterns

Page 51: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

CommandFailure attributes

command_name The name given to tw_capture

status The exit code (integer)

error Any text written to stderr

Page 52: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

CommandFailure: Enable

tw_capture <name> <command> [<args>..]<name> needs to be a unique identifier within that script

If used with PRIV_XXXX the tw_capture must go first tw_capture lsof_i PRIV_LSOF lsof -l -n -P -F ptPTn -i 2>/dev/null

Page 53: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

CommandFailure – Results (1)

Page 54: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

CommandFailure – Results (2)

Page 55: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Other useful discovery reports (1)

Which Host IPs didn’t update last access? “Host Endpoints Not Updating” report Filters just to Host devices

Which Host IPs had session establishment issues last access? “Host Endpoints With Session Issues” report Filters out first access to any IP to remove initial noise on deployment

Page 56: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Other useful discovery reports (2)

What Hosts were scanned but not accessed at last access? “Possible Endpoint Host Devices (Detailed)” report Includes both the raw OS estimate list and the discovery refined

classification

What other devices have been scanned? “Possible Endpoint Non Host Devices” report Includes both the raw OS estimate list and the discovery refined

classification INCLUDES ‘Other’, ‘Embedded’ and ‘Unknown’ OS Classes Handy for displaying the non Host device discovery Also handy for checking for heavily firewalled Hosts!

Page 57: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Other useful discovery reports (3)

What other IPs should be scanned? “Seen but unscanned IPs” report “Seen but unscanned IPs with Ports” report

More detail for investigation but start with summary Shows a count of the IPs that the system has seen connections to but

has not accessed

Page 58: Addmi 16.5-discovery troubleshooting

© 2010 BMC Educational Services

Further Resourses

Tideway’s Online Documentation: http://www.tideway.com/confluence/display/81/Discovery

Tideway Foundation

Version 7.2

Documentation

Title