How do I use the Smarts IP discovery Debug Tool?
What does the Smarts IP discovery Debug Tool do?
The Smarts IP Debug Tool script will enable debug and gather log files automatically for a given device or seedfile. The following flags will be set on the server:
ICF_TopologyManager::DebugEnabled
ICF_TopologyManager::LogDiscoveryProgress
ICF_TopologyManager parameter DebugReconfigure
ICF_TopologyManager parameter NameResolveDebug
Once discovery is complete, the debug flags will then be set back to FALSE.
The following data can be gathered:
<ip>.snap, <ip>.mimic, <ip>.walk, domain rps file and domain log
Using the Smarts IP discovery Debug Tool
- Contact EMC Customer Support Services (CSS) for Smarts IP to obtain the required files for Discovery debug tool:
- Ic-file-importer.asl
- sm_dscvdebug.pl
- Copy ic-file-importer.asl into <SM_HOME>/IP/smarts/local/rules/discovery.
- This is to support discovery via seedfile only
- Copy sm_dscvdebug.pl into <SM_HOME>/IP/smarts/bin
Usage: sm_dscvdebug -s <server> -b <broker> [options]
* -s - Name of InCharge Server
Options:
-b - Broker to use
-d - Specify devices
-f - Specify Seedfile
-r - Roll the server log
-h - Displays this usage
-v - version
- To run the debug tool:
<BASEDIR>/IP/smarts/bin/sm_perl sm_dscvdebug.pl -b <broker> -s <domain> -r -d
Example
bash-3.00# ./sm_perl sm_dscvdebug.pl -s IP-AM-PM -r -d
Enter IP addresses (q when done)
x.x.x.x
q
Rolling server log
Starting discovery
Rediscovering: x.x.x.x
Discovery complete..
Get Walks
Saving MIB walk to file(s) 'lab-test.com.walk' 'lab-test.com.mimic' 'lab-test.com.snap' ...
End of MIB walk
Creating Archive
Adding x.x.x.x.snap
Adding x.x.x.x.mimic
Adding x.x.x.x.walk
Adding IP-AM-PM.rps
Adding IP-AM-PM_en_US_UTF-8.log
Writing to dscvdebug-5Jul2012-112605.tar.gz ...
- Output file:
local/logs/dscvdebug-5Jul2012-112605.tar.gz