Do I need to run the newMM.pl script every time I self certify a device?
search cancel

Do I need to run the newMM.pl script every time I self certify a device?

book

Article ID: 108534

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

After I change the modeltype in the Device Certification gui, do I need to run the newMM.pl script every time I self certify a device?

Environment

Release: Any
Component: Modeling

Resolution

Yes, you need to run the NewMM.pl script if you change the modeltype when you are self certifying a device.  If you are only changing device type, then you might need to reconfigure the models.  If you are changing the modeltype, will need to either destroy and recreate the models with that System Object ID (sysoid) or use the NewMM.pl script to convert them.

 

NewMM.pl Instructions:

Use the Device Certification utility and change the mapping of the System Object ID to use an enhanced model type.  

Here is an example of how to change a Cisco Nexus device modeled as a GnSNMPDev to be a CiscoNXOS.

To do this: 

  1. Locate an existing Cisco Nexus model type in OneClick that is not showing in a Device Family for NCM and/or does not have the Host Configuration tab enabled. 
  2. Look at the Model Type of the device and confirm it is a generic modeltype, like GnSNMPDev or GnCiscoDev etc.
  3. Make note of the Model Type Name and System Object ID (available in the Spectrum Modeling Information area on the device). 
  4. Right click on the device model and go to the Utilities Menu -> Device Certification...
  5. In the Device Certification utility, double click the selected System Object ID to open it for edit.  If the System Ojbect ID is not highlighted, then search for it and double click the entry.
  6. In the "Edit" window, change the Model Type Name to be the enhanced modeltype.  In this example, it will be the CiscoNXOS modeltype.
  7. Click Ok to close. 
  8. Click the Save button to save the changes to the SSdb catalog.
  9. You then need to update the modeltype of the existing devices.  This can be done by either:
    1. Destroying and recreating the device models or
    2. Run the $SPECROOT/Install-Tools/PostInstall/NewMM.pl script to update the existing model to the newly mapped model type 

To run the NewMM.pl Script: 

  1. As the Spectrum owner, open a command line (bash -login shell for Windows) on the SpectroSERVER where the device is modeled. 
  2. cd to $SPECROOT/Install-Tools/PostInstall directory
  3. Run the following command: ./NewMM.pl -m
  4. Enter the host name of IP address of the SpectroSERVER you wish to connect to and hit enter. 
  5. Enter the Landscape Handle, in Hex format. Example: 0x100000
  6. Enter the System Object ID of the device you want to search for. Example:  1.3.6.1.4.1.9.12.3.1.3.1712
  7. Enter the current Model Type Name. Example: GnSNMPDev
  8. Enter the Destination Model Type Name. This is the new Model Type Name you wish to use. Example: CiscoNXOS

The script will search the SSdb database for existing GnSNMPDev models with the System OID 1.3.6.1.4.1.9.12.3.1.3.1712, and report back any models found that are eligible for conversion, and ask if you want to convert them. Enter "y" to continue with the conversion or "n" to exit out. 

The script will create a log file for the conversion. The file name will be something like NewMM_log_<month>_<day>_<year>_<hour>_<min>_<sec>_<AM/PM>. You can review the log to see what models were converted if needed. 

Repeat for any other modified System Object IDs.