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.
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:
- 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.
- Look at the Model Type of the device and confirm it is a generic modeltype, like GnSNMPDev or GnCiscoDev etc.
- Make note of the Model Type Name and System Object ID (available in the Spectrum Modeling Information area on the device).
- Right click on the device model and go to the Utilities Menu -> Device Certification...
- 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.
- In the "Edit" window, change the Model Type Name to be the enhanced modeltype. In this example, it will be the CiscoNXOS modeltype.
- Click Ok to close.
- Click the Save button to save the changes to the SSdb catalog.
- You then need to update the modeltype of the existing devices. This can be done by either:
- Destroying and recreating the device models or
- 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:
- As the Spectrum owner, open a command line (bash -login shell for Windows) on the SpectroSERVER where the device is modeled.
- cd to $SPECROOT/Install-Tools/PostInstall directory
- Run the following command: ./NewMM.pl -m
- Enter the host name of IP address of the SpectroSERVER you wish to connect to and hit enter.
- Enter the Landscape Handle, in Hex format. Example: 0x100000
- Enter the System Object ID of the device you want to search for. Example: 22.214.171.124.126.96.36.199.188.8.131.522
- Enter the current Model Type Name. Example: GnSNMPDev
- 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 184.108.40.206.220.127.116.11.18.104.22.1682, 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.