cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1602
Views
0
Helpful
1
Replies

Cisco Prime Infra got problem with API

Yun Ching Angela Lin
Cisco Employee
Cisco Employee

customer use following command to collect data from Prime Infra (version 2.1) but got error message. 

is it because our API syntax error or we need to upgrade PI version ?

 

curl -k -u root:password 'https://10.10.1.100/webacs/api/v1/data/ClientDetails.json?.full=true&.firstResult=0&.maxResults=500'

Result:
{"errorDocument":{"httpResponseCode":500,"httpMethod":"GET","message":"Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.ClientProtocolEnum'; nested exception is org.hibernate.HibernateException: Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.ClientProtocolEnum'","exception":"org.springframework.orm.hibernate3.HibernateSystemException: Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.ClientProtocolEnum'; nested exception is org.hibernate.HibernateException: Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.ClientProtocolEnum'","uriPath":"data\/ClientDetails","queryParams":"{.full=[true], .firstResult=[0], .maxResults=[500]}"}}

 

1 Reply 1

marce1000
Hall of Fame
Hall of Fame

 

 - You should at least consider upgrading because PI2.x is very old , you may for instance build a small test installation with the latest version  of Prime and then verify this issue again.

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '