Fetch MIBs Information of a Device Using a Script

10.3 introduces a new script (Monitoring_Profile.pl) to fetch MIBs information of a selected device. A user can use this script to fetch the following information of a device:
casp1032
10.3 introduces a new script (Monitoring_Profile.pl) to fetch MIBs information of a selected device. A user can use this script to fetch the following information of a device:
  • List of MIBs
  • Trap details
  • Pollable Attributes
  • Events and Alarms information of a device
Running the Monitoring Script
Following is the procedure to run the Monitoring Profile Script: 
 
Prerequisites:
 
Following are the prerequisites to run the Monitoring_Profile.pl script:
  1. Ensure you log in the 
    SpectroSERVER
     as one of the 
    DX NetOps Spectrum
     users. A user should be present in the 
    DX NetOps Spectrum
     users list to run LogPollAnalyzer.exe , which fetches the attributes list. If the user should be present in the 
    DX NetOps Spectrum
     users list for the LogPollAnalyzer.exe to work.
  2. Ensure that the Tomcat Server and the SpectroSERVER are up and running.
 
To run the script, follow these steps:
 
  1. Navigate to $SPECROOT/Install-Tools/PostInstall/ directory
  2. Open a bash shell and run the following script for a model handle of a device.
    ./Monitoring_Profile.pl <device model handle> <OneClick host name> <port>
    Script prompts for the user name and password of OneClick.
    The script contacts vnmsh directory to fetch the MIBs information.
  3. If you have the SSL option, select 'Yes' to enable the https support. 
    Now fetch MIB information using scripts with HTTPs support with the new Spectrum 10.3.1 release.
  4. The script generates following files in the $SPECROOT\SS-Tools folder.
    1. trap_details_<model handle>.csv - lists MIBs and corresponding Traps, Trap OID, Event Code, Alarm Severity, Alarm Name, and Alarm PCause Code details.
    2. pollable_attributes_<model handle>.csv - lists the attributes which are being polled the selected device.
      The attributes to be polled are fetched from the existing feature LogPollAnalyzer.exe.
Enhancement Support for Monitoring Profile in Spectrum 10.3.1
10.3.1 introduces enhancements to support the Monitoring Profile features present in the previous release. These enhancements include: 
1. MIB Description, Dynamic Alarm Titles, Event Text, and Event Procedures: A REST API fetches the trap information of a MIB such as the MIB name and the landscape handle is passed as parameters such as the Alarm Titles, Event Text and Event Procedures. 
2. Custom AlertMaps: An action code supports the custom AlertMaps that dumps all the custom OIDs, event code and the pcause code.
3. Support for all MIBs 
Known Issues
  • Conditional alarms are not listed in the output files.
    For example: The script supports only the EventDisp strings in the format like 0x01165306 E 50 A 2,0x01165305
    The script does not support EventDisp strings like 0x0116912a E 20 A { v 4 Ctron_Gen_HOST.alertCurrentStatus },0x0116912a