ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Rest api call giving error for creating a model using the mtypeid parameter in Spectrum

book

Article ID: 237151

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

We have a script which does the onboarding of the devices (SNMP/pingable) in the spectrum via rest API calls.

After the upgrade to 21.2.8 we see the issue in the inserting of the devices (discovery of the devices) via rest api call

We can delete the device without an issue in the same script but insertion is giving us an error.

Error:

#######

2022-03-10T13:42:49 UTC DEBUG [Create Model By IP]
<<<
IP Address      : 1,2,3,4
Hostname        : HostName
Status          :
Message         :  --- ERROR By Moddeling ModelByIp ---


>>>
2022-03-10T13:42:49 UTC INFO [sldclr1308.app.gen.local]  --- ERROR By Moddeling ModelByIp ---

2022-03-10T13:42:49 UTC INFO [insertModels] RUN Simple DB query to test connection with DB, to ignore time outs!
2022-03-10T13:42:49 UTC ERROR [POSTrequest()]
<<<
'Invalid mtypeid parameter : null'
>>>
2022-03-10T13:42:49 UTC ERROR [POSTrequest()]
<<<

We see same error in the catalina.out file:

#####################

REST Client passed invalid mtypeid parameter : null
REST Client passed invalid mtypeid parameter : null
REST Client passed invalid mtypeid parameter : null
REST Client passed invalid mtypeid parameter : null

######################

Environment

Release : 21.2.8

Component : SPCAPP - Spectrum Applications / Web API

Resolution

This issue has been addressed in the 21.02.08.PTF_21.2.805 patch for Spectrum 21.2.8 which is also included into 21.02.08.PTF_21.2.806a

This will also be addressed in Spectrum 21.2.10 when released. No specific release date set at the time this knowledge article was published.