Contents
Working with Common Services Device Discovery
User Privileges for Device Discovery Operations
Configuring Discovery Settings
Using Discovery Features through CLI
Starting Discovery through CLI
Stopping Discovery through CLI
Viewing Device Discovery Status through CLI
Running Device Discovery within NAT Setup
Traceability Matrix Comparing Campus Manager Discovery and NGD
Features Newly Added in LMS 3.1
Abbreviations, Acronyms, and Definitions
Introduction
Working with Common Services Device Discovery
• Configuring discovery settings
• Starting discovery
• Stopping discovery
• Viewing discovery reports
• Scheduling discovery
• Running device discovery through the command-line interface (CLI)
• Debugging discovery
• Optimizing device discovery
User Privileges for Device Discovery Operations
• To configure device discovery settings and start device discovery, you should have network administrator privileges.
• To view the device discovery summary, any of the following roles should be assigned to you:
– Network administrator
– Network operator
– System administrator
Configuring Discovery Settings
1. Select Common Services > Device and Credentials > Device Discovery > Discovery Settings. Click either the Configure button or the Configure link next to the module settings (see Figure 1).
The Discovery Settings wizard appears.
Figure 1. Common Services Device Discovery Settings

2. Select one, more than one, or all of the discovery modules to run the discovery. See Figure 2 for the list of available modules.
Note: By default, no discovery module is selected. If you are upgrading or migrating to the LMS 3.0 December 2007 update (with Campus Manager) from LMS 3.0, Cisco Discovery Protocol is selected by default.
You must select at least one of the modules to proceed further.
Click Next to proceed further or click Cancel to exit the Discovery Settings wizard.
Figure 2. Device Discovery Module Settings

3. Specify the seed device details for the modules that you have selected in the previous screen (the Module Settings page).
You can specify module-specific seed devices (see Figure 3) or global seed devices (see Figure 4).
Other than specifying the seed devices manually, you can:
• Import the seed devices from a text (.txt) or comma-separated value (.csv) file
• Select the Use DCR as Seed List option, which considers the devices in DCR as seed devices.
Note: By default, no seed device settings are available. If you are upgrading or migrating to the LMS 3.0 December 2007 update (with Campus Manager) from LMS 3.0, the Use DCR As Seed List option is selected by default.
To enter module-specific seed device information, select a module from the list of displayed modules in the Seed Devices wizard (see Figure 3).
Click Add to introduce a row and add the seed device information. To delete seed devices, select the check boxes corresponding to the seed devices and click Delete.
To restrict device discovery to a particular number of hops or subnets, you must specify:
• Hop Count for all the modules except Ping Sweep On IP Range
• Subnet Mask for the Ping Sweep On IP Range module only
Enter the following fields, which appear only for the Ping Sweep On IP Range discovery module.
– ICMP Retry: Number of retries to connect to a device using Internet Control Message Protocol (ICMP) if the device is not reachable or the network is down. The default is 1 retry.
– ICMP Timeout: Time within which the device should send its response to the network. The default timeout is 1000 milliseconds.
– InterPacket Timeout: Time delay between two ICMP packets. The default timeout is 20 milliseconds.
To enter global seed device information, click Global from the Seed Devices panel at the left.
You must enter at least one seed device or select the Use DCR As Seed List option to proceed further.
Click Next to proceed further or click Cancel to exit the Discovery Settings wizard.
Figure 3. Module-Specific Seed Device Settings

Figure 4. Global Seed Device Settings

4. Specify the SNMP settings for the devices to be discovered from the network.
You can specify either SNMPv2 or SNMPv3 credentials.
Select the appropriate radio button to select the SNMP version. The user interface displays the appropriate fields for the SNMP version you selected.
See Figure 5 to view the SNMPv2 user interface and Figure 6 to view the SNMPv3 user interface.
You can also delete the SNMPv2/v3 settings using the Delete button after selecting the SNMP settings.
Note: Multiple community strings are taken into consideration by default, and also the community stings are encrypted by default, whereas in Campus Manager you need to explicitly select the check boxes for this functionality.
By default, no SNMP settings are available. If you are upgrading or migrating to the LMS 3.0 December 2007 update (with Campus Manager) from LMS 3.0, the following are the default SNMPv2 settings:
• Target - *.*.*.*
• Read Community - public
• SNMP Timeout - 3
• SNMP Retry - 2
You must configure at least one SNMPv2 or SNMPv3 credential set to proceed further.
You must click any one of the following buttons in this wizard:
• Next to proceed further
• Cancel to exit the wizard without saving the changes
• Back to change the previous settings
• Finish to apply the settings and exit the wizard
Figure 5. SNMPv2 Settings page

Figure 6. SNMPv3 Settings page

5. Specify the discovery filter settings to include or exclude certain devices from device discovery.
You must select a filter type among the IP Address, SysObjectId, SysLocation, or Domain Name System (DNS) Domain Name filter types and click Add. You must also select Include Devices or Exclude Devices. See Figure 7.
Discovery filters based on DNS domain, SysObjectID, and SysLocation support regular expressions. You can use:
• Period (.) to match any character
• Opening and closing parentheses, ( and ), to mark the beginning and closing of a group of matched characters
• Asterisk (*) to match more than zero occurrences of the regular expression specified
• Plus (+) character to match more than one occurrence of the regular expression specified
• Trailing slash (\) character to identify a special character within a regular expression
To delete a filter setting or rule, click Delete after you select a filter rule.
By default, no filter settings are available. If you are upgrading or migrating to the LMS 3.0 December 2007 update (with Campus Manager) from LMS 3.0, the filter settings in LMS 3.0 will be preserved.
You must click any one of the following buttons in this wizard:
• Next to proceed further
• Cancel to exit the wizard without saving the changes
• Back to change the previous settings
• Finish to apply the settings and exit the wizard
Note: You can specify only one filter type at a time for a discovery job. You can either include or exclude devices based on the filters you have set. You cannot do both.
Figure 7. Filter Settings

6. Specify other discovery settings in the Global Settings page. See Figure 8.
You can configure:
• Preferred Management IP: The applications use the Preferred Management IP to manage a particular device. Resolve By Name is the default option. See Figure 8 for available other options.
• Preferred DCR Display Name: The applications use the Preferred Management IP to manage a particular device. Resolve By Name is the default option. See Figure 8 for available other options.
• Update DCR Display Name option: Select this check box if you want to update the display name of the devices that already exist in DCR in the next device discovery cycle.
• Use Default Credentials option: Select this check box if you want to add the discovered devices with the default SNMP and other credentials in DCR. You can enter the default credentials by clicking the Configure button next to this field.
• Email: Enter a valid email address to receive notification from the system on the start and completion of device discovery and for new discovery schedules.
• Add Discovered Devices to a Group option: Select this option if you want to add all reachable discovered devices to a group.
You must click any one of the following buttons in this wizard:
• Next to proceed further
• Cancel to exit the wizard without saving the changes
• Back to change the previous settings
• Finish to apply the settings and exit the wizard
By default, no global settings are available. If you are upgrading or migrating to the LMS 3.0 December 2007 update (with Campus Manager) from LMS 3.0, the settings in LMS 3.0 will be preserved.
Note: To receive email notifications, you must configure the SMTP server name and CiscoWorks server administrator email address in the System Preferences page in Common Services. You can click Common Services > Server > Admin > System Preferences.
Figure 8. Global Settings page.

7. When you click Next in the Global Settings wizard, the Discovery Settings Summary page appears. See Figure 9.
You must click any one of the following buttons in this wizard:
• Next to proceed further
• Cancel to exit the wizard without saving the changes
• Back to change the previous settings
• Finish to apply the settings and exit the wizard
When you click Finish or Cancel to exit the wizard, the Discovery Settings page appears.
Figure 9. Device Settings Summary Page in the Discovery Settings Wizard

Starting Device Discovery
• Device Discovery Summary page (Common Services > Device and Credentials > Device Discovery). See Figure 10.
• Discovery Settings page (Common Services > Device and Credentials > Device Discovery > Discovery Settings).
Note: You cannot run more than one instance of device discovery at a time.
Figure 10. Starting Device Discovery

Stopping Device Discovery
Note: It may take some time after stopping discovery to kill all the discovery-related threads that were created at the start of discovery.
Figure 11. Stopping Device Discovery

Viewing Discovery Reports
• Total Discovered Devices
• Reachable Devices
• Unreachable Devices
• Devices Added to DCR
• Devices Updated to DCR
• Common Services Job Browser page by clicking the job ID of a discovery job
• Device Discovery Summary portlet in the LMS Portal application
Note: The discovery-related data is not available if the job is canceled from the Common Services Job Browser.
Figure 12. Device Discovery Details

Scheduling Device Discovery
Figure 13. Device Discovery Schedule

Figure 14. Device Discovery Schedule

Using Discovery Features through CLI
Starting Discovery through CLI
Stopping Discovery through CLI
Viewing Device Discovery Status through CLI
Viewing Device Discovery Help
DiscoveryCli Errors
Debugging Device Discovery
1. Go to the CiscoWorks home page and select Common Services > Device and Credentials > Device Discovery > Discovery Logging Configuration.
The Discovery Logging Configuration page appears. See Figure 15.
2. Select one or more discovery modules or components from the Disabled Modules list box.
3. Click Add to add the components to the Enabled Modules list box.
4. Click Apply.
Debugging is enabled for all the components listed in the Enabled Modules list box. The changes will come into effect after 60 seconds.
Note: Enable the debugging option only if required. Otherwise the size of the log file grows bigger and device discovery could take more time.
Figure 15. Debugging Option for Device Discovery

Optimizing Device Discovery
• To discover devices in a particular subnet, you can select Ping Sweep On IP Range as the discovery module and specify the specific subnet mask in the seed device.
Entering a smaller subnet mask value may result in a longer discovery cycle, as discovery has to sweep IP addresses from more networks.
• To discover the edge routers that are being connected to your branch offices or ISPs, select the module as BGP if the protocol is enabled in those devices.
• If you have cluster setup in your network, then you can select the module as a cluster discovery module.
• If you have devices with the same configuration as a backup for the other devices where HSRP is enabled, you can use the HSRP module.
• You can use OSPF to discover your core devices in the network if it is enabled in those devices.
• You can use Cisco Discovery Protocol as the discovery module if your entire network contains Cisco devices.
• You can use other or multiple protocols that are available in NGD if your network contains devices from different vendors.
Use Cases
Use Case 1
1. Go to Common Services > Device and Credentials > Device Discovery > Discovery Settings.
The Discovery Settings page appears.
2. Click Configure.
The Module Settings wizard appears.
3. Select Ping Sweep On IP Range and click Next.
The Seed Devices Settings wizard appears.
4. Click Module-specific Seed Devices > Ping Sweep On IP Range at the left.
5. Enter the seed device as 10.77.213.245 and subnet mask as 255.255.255.240.
6. Click Add and click Next to launch the SNMP Settings wizard.
7. Select the SNMPv2 radio button and click Add to open the SNMPv2 credentials popup window.
8. Enter the target as *.*.*.* and the read community as public.
9. Click OK to return to the SNMP Settings wizard.
10. Click Next to launch the Filter Settings wizard.
11. Select IP Address as the filter type and select the Exclude radio button.
12. Click Add to introduce a row for entering the filter rule.
13. Enter 10.77.213.[241-244] as the filter rule.
14. Click Next to launch the Global Settings wizard.
15. Select Hostname+Domain Name as the Preferred DCR Display Name option.
16. Select the Update DCR Display Name check box.
17. Select Use LoopBack Address as the Preferred Management IP.
18. Configure the email ID as admin@domain.com.
