Security

 View Only
last person joined: 2 days ago 

Enterprise security using ClearPass Policy Management, ClearPass Security Exchange, IntroSpect, VIA, 360 Security Exchange, Extensions and Policy Enforcement Firewall (PEF).
Expand all | Collapse all

CPPM 6.11 : api/radius-dictionary (error 500)

This thread has been viewed 7 times
  • 1.  CPPM 6.11 : api/radius-dictionary (error 500)

    MVP GURU
    Posted Nov 03, 2022 10:27 AM
    Hi,

    With CPPM 6.11, there is a lot of new API call, there is an API for list RADIUS Dictionary, but if you try on the swagger or with uri : api/radius-dictionnary, you get the following error :

    Invoke-ArubaCPRestMethod api/radius-dictionary
    WARNING: The ClearPass API sends an error message:
    WARNING: Error description (code): Internal Server Error (500)
    WARNING: Error details: Internal server error

    or with swagger

    {
      "validation_errors": {
        "sort": "Cannot sort by field: id"
      },
      "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
      "title": "Unprocessable Entity",
      "status": 422,
      "detail": "Parameter validation failed"
    }

    it is because there is no id field with radius-dictionary but vendor_id...

    you need to use
    sort=%2Bvendor_id on uri

    Invoke-ArubaCPRestMethod api/radius-dictionary?sort=%2Bvendor_id -Verbose
    VERBOSE: https://10.200.4.161:443/api/radius-dictionary?sort=%2Bvendor_id&calculate_count=true
    VERBOSE: GET with 0-byte payload
    VERBOSE: received -byte response of content type application/hal+json
    VERBOSE: Content encoding: iso-8859-1
    WARNING: There is extra items use -limit parameter to display

    count _links _embedded
    ----- ------ ---------
    122 @{self=; first=; next=; last=} @{items=System.Object[]}


    already ask the TAC... it is a feature not a bug...

    ------------------------------
    PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...

    PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)

    PowerArubaCL: Powershell Module to use Aruba Central

    PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..

    ACEP / ACMX #107 / ACDX #1281
    ------------------------------


  • 2.  RE: CPPM 6.11 : api/radius-dictionary (error 500)
    Best Answer

    EMPLOYEE
    Posted 26 days ago
    Alexis, this sounds to me like something that needs to be addressed. I found your case and asked TAC to file a defect for this.

    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 3.  RE: CPPM 6.11 : api/radius-dictionary (error 500)

    MVP GURU
    Posted 26 days ago
    Thanks Herman ! (i have already get feedback from TAC !)

    ------------------------------
    PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...

    PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)

    PowerArubaCL: Powershell Module to use Aruba Central

    PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..

    ACEP / ACMX #107 / ACDX #1281
    ------------------------------