Cisco Prime Infrastructure 2.2 Rest API XML does not add LF

I am using several scripts that dig the data from XML files created through Cisco Prime Infrastructure Rest API. It worked fine until 2.1. Now, with 2.2, seems Cisco stopped adding LF to each line and everything is 'one' line.
Here is an example with 2.1, there is a LF to the end of each line:
?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<queryResponse type="AccessPointDetails" rootUrl="https://server/webacs/api/v1/data" requestUrl="https://server/webacs/api/v1/data/AccessPointDetails?type=contains(UnifiedAp)&amp;.full=true&amp;.maxResults=1000&amp;.firstResult=0" responseType="listEntityInstances" count="715" first="0" last="714">
    <entity url="https://server/webacs/api/v1/data/AccessPointDetails/1505569" type="AccessPointDetails" dtoType="accessPointDetailsDTO">
        <accessPointDetailsDTO id="1505569" displayName="1505569">
            <adminStatus>ENABLE</adminStatus>
            <apType>AP1240</apType>
            <cdpNeighbors>
                <cdpNeighbor>
                    <capabilities>Switch IGMP </capabilities>
                    <duplex>Half Duplex</duplex>
                    <interfaceSpeed>100Mbps</interfaceSpeed>
                    <localPort>2</localPort>
                    <neighborIpAddress>10.1.1.1</neighborIpAddress>
                    <neighborName>switch</neighborName>
                    <neighborPort>FastEthernet0/1</neighborPort>
                    <platform>cisco WS-C3560-8PC</platform>
                </cdpNeighbor>
Now, with 2.2, there is not LF anywhere:
?xml version="1.0" encoding="UTF-8" standalone="yes"?><queryResponse type="AccessPointDetails" rootUrl="https://server/webacs/api/v1/data" requestUrl="https://server/webacs/api/v1/data/AccessPointDetails?type=contains(UnifiedAp&amp;.full=true&amp;.maxResults=1000&amp;.firstResult=0" responseType="listEntityInstances" count="715" first="0" last="714">
<entity url="https://server/webacs/api/v1/data/AccessPointDetails/1505569" type="AccessPointDetails" dtoType="accessPointDetailsDTO">
<accessPointDetailsDTO id="1505569" displayName="1505569"><adminStatus>ENABLE</adminStatus><apType>AP1240</apType><cdpNeighbors><cdpNeighbor>
Does anyone know, is this intentional or a mistake? Or is there a way how I control this?
I am reading on-line CPI Rest API docs, but seems cannot find anything.
Thanks,
Vlad

PI 2.0 is in Beta mode for testing in closed group already. However it may still take some time to get released on CCO for FCS.
I think it is expected to be released between aug-sep. BU has also started working on CPI 2.1, which you can see test uploads on CCO.
For what does it have for customers?
> As Cisco have a vision of one network Management software for both wired and wireless infrastructure, which started getting real partially with Cisco PI.
As WCS got evolved to NCS and eventually to Cisco Prime Infrastructure, but it doesnt yet have full Management capability for wired infra., which is there with LMS.
With CPI 2.x Cisco plans to blend entire LMS and WCS features together.
-Thanks

Similar Messages

  • When is Cisco Prime Infrastructure 2.0 released, and what does 2.0 offer?

                       We are running Prime Infrastructure 1.3 primarily for wireless management at this point.  We have enough licenses to add all our switches, routers, and firewalls, but we're hesitant to do so until 2.0 comes out.  While there are some features for backing up and configuring switches and routers, 1.3 still seems pretty limited in regards to non-wireless features.  For example, nearly every report in 1.3 is for wireless controllers or AP's, there are no reports I've found relevent for switches and routers.  I've read a lot of blogs, cisco posts, and white papers talking about how Cisco Prime Infrastrucure 2.0 will finally consolidate Prime into a truly all-in-one network management suite that can manage the entire Cisco environment.  Does anyone know when it's officially being released?  Does anyone have an tech sheets on what's new in 2.0, or what its capabilities are?  I want to better understand what 2.0 has to offer, when it's coming out, how to upgrade, so I can start planning for the upgrade and eventually importing all our network devices to Cisco Prime for centralized management.  Any useful information or links would be appreciated.
    Thanks,
    Christian

    PI 2.0 is in Beta mode for testing in closed group already. However it may still take some time to get released on CCO for FCS.
    I think it is expected to be released between aug-sep. BU has also started working on CPI 2.1, which you can see test uploads on CCO.
    For what does it have for customers?
    > As Cisco have a vision of one network Management software for both wired and wireless infrastructure, which started getting real partially with Cisco PI.
    As WCS got evolved to NCS and eventually to Cisco Prime Infrastructure, but it doesnt yet have full Management capability for wired infra., which is there with LMS.
    With CPI 2.x Cisco plans to blend entire LMS and WCS features together.
    -Thanks

  • Cisco Prime Infrastructure 2.2 clients and users IPs not detected

    Hi all,
    I have cisco PI2.2 and discovered all the network and i notified that there are some clients' IPs (Servers or PCs or Laptops or ....) not detected.
    please advice what may be the issue ? 

    Hi,
    does anyone happen to know if that problem is fixed? My currently setup looks like this:
    1. Cisco Prime Infrastructure 2.1 with updated device pack.
    2. Assurance license
    3. ASA5510 which has enabled netflow. Netflow is being sent to Cisco Prime 2.1
    I do receive netflow raw data within Cisco Prime 2.1 but any graphical display of netflow data is not working. Does anybody has an idea where the problem is? Could it be that the graphical data is only displayed when sending netflow 1, netflow 5 or netflow 7?
    regards
    Maurus

  • Export Alarm/Event Data from Cisco Prime Infrastructure 2.1+

    I am looking to export the current Alarm data for my CPI 2.1 deployment. This so we can go through and organize the data in excel and better configure alarm/events....currently getting 3k a week and we need to tighten what constitutes a critical event and some other parameters. We need the raw data in csv format so do some analytics on it. 
    My issue is there is no reference in the admin/user guides to export alarm data. Also no button or option within the GUI. How can this be accomplished?

    The supported method going forward is to have external tools interact with Prime Infrastructure via the REST API.
    See the documentation on your Prime server for "GET Alarms":
         https://<your server address>/webacs/api/v1/data/Alarms?_docs
    ...or you can download a copy of the API Reference here.

  • Cisco Prime Infrastructure 2.1 Not generating reports

    Dears,
    I am new to Cisco Prime. I installed Cisco Prime Infrastructure 2.1 for 60-days evaluation and i added routers, switches and APs. I configured SNMP community and telnet credentials. I can see clients on Dashboard, but when i go to reports and generate them for last hour, it displays "None Detected".
    Please advise.

    Programmatic access to PI's data is via the REST API.
    Check the help menu on your PI server to see documentation regarding the supported tables and fields that can be queried via that method.

  • Cisco Prime Infrastructure 2.1 Custom Reports

    Hi, I need to generate a custom Guest User report from Cisco Prime Infrastructure 2.1. It needs to have a couple more fields added to the existing "Guest User Association" report.
    Is it possible to connect to the Cisco Prime Infrastructure Database and Generate custom reports? Is there any documentation on this?
    Thanks

    Programmatic access to PI's data is via the REST API.
    Check the help menu on your PI server to see documentation regarding the supported tables and fields that can be queried via that method.

  • Cisco Prime 2.1 problem with API/Client

    Hi,
    im having a problem with the API output i get from Cisco Prime Infrastructure. The URL im trying to GET info from is:
    https://<URL>/webacs/api/v1/data/Clients
    The output shows that im missing data from a specific ID. Example:
    {"@url":"https:\/\/prime.lmv.lm.se\/webacs\/api\/v1\/data\/Clients\/1280389614","@type":"Clients","$":"1280389614"}
    Then i try to GET the info regarding this ID: https://<URL>/webacs/api/v1/data/Clients/1280389614
    {"errorDocument":{"httpResponseCode":500,"httpMethod":"GET","message":"No such entity as Clients \/ 1280389614.-PRS-101","id":"presentation.PRS-101","uriPath":"data\/Clients\/1280389614","queryParams":"{}"}}
    So something is wrong here, so when i add ".full=true" parameter i get the following error as it cannot show the client data:
    https://<URL>/webacs/api/v1/data/Clients.json?.full=true&.firstResult=1000&.maxResults=1000
    {"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\/Clients","queryParams":"{.full=[true], .firstResult=[1000], .maxResults=[1000]}"}}
    Any idea how to solve this issue, how can i find the client that is causing this problem? In my script im reading all the clients in the network to a third party application. But right now its hard to get this output in a smart way. It might be resolved in 2.2, but it feels like the data i corrupt in some way so i doubt that this error is related to the version?
    Best Regards // Mattias Andersson

    Hi,
    I have also run into this problem on two different Prime 2.1-systems when trying to get all Client-data available. I haven't figured out a way to fix it more than making small calls (.maxResults=100) then trying to pin-point and skip the ID giving the error. I've been using 2.2 for a while now but haven't tested the Client-API that much yet. I'll experiment some more on it and see if I can recreate the problem to see if it's related to the version.

  • Cisco prime infrastructure 1.3 makes every 15 minutes cpu high on cisco 800 routers

    I have an issue with cisco prime infrastructure 1.3 and cisco 880 routers, every 15 minutes the cpu goes to 100% on those routers, but I cannot find the job on the prime which is causing this, if I look in the job dashboard I have some jobs like sam_poller_22_15_getvpnpoller_27977292 that runs every 15 minutes (other jobs that I see CDBPoller_dmvpnPoller and CDBPoller_getvpnpoller)   , probably is it on of these jobs, but how can I stop it (job type : poller job, owner =system) and what are they doing?
    thanks for any assistance

    This is what i expected. I know many platform like 29xx/39xx or ISR's has known issues with Cisco Prime Infrastructure when it polls CISCO-LICENSE-MGMT-MIB, devices go high on CPU.
    You have to block clmgmtLicenseInfoEntry by creating a view on your 800 router by configuring snmp view.
    Following is the command/example:
    Step 1: Configure SNMP View:
    snmp-server view iso included
    snmp-server view   clmgmtLicenseInfoEntry excluded
    Link community string to SNMP View:
    snmp-server community view ro|rw
    Example per your configuration:
    snmp-server view PrimeInfra iso included
    snmp-server view PrimeInfra clmgmtLicenseInfoEntry excluded
    snmp-server community ArgSnmp view PrimeInfra RO ACLSNMP_RO
    OR you can try following on your Cisco PI:
    Manually update file below,
    Open the /opt/CSCOlumos/conf/sam/template.xml, modify the template id=20  (licensePoller)
    Update tag for value 600 to 86400 for all attrributes () of
    template id =20
    Old: 600
    New: 86400
    Some known bugs on such issues are :
    CSCug97914 and CSCuc72024
    Please check and let me know the updates.
    -Thanks
    Vinod
    **Rating Encourages contributors, and its really free. **

  • Cisco Prime Infrastructure 2.0 and ASA 55xx platform problem

    Hello,
    We recently upgraded to Prime Infrastructure 2.0 with the hope being able to manage our ASA's from PRIME (and complete an LMS migration).
    When I attempt to add ASA's to prime i get the following collection errors:
    Unable to collect processor and RAM information.          Processor and RAM information.          Unexpected error. See the log file inventory.log for details.
    In the logfile I get the following XML parsing error on the MIB:
    <palError>
      <deviceId>6284310032</deviceId>
      <code>VALIDATION_ERROR</code>
      <message>Failed to validate output XML: cvc-maxInclusive-valid: Value '3484331296' is not facet-valid with respect to maxInclusive '2147483647' for type 'int'.</message>
      <result>
        <result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="/CISCO-MEMORY-POOL-MIB/xmp-im-file-system-module.xsd">
          <xmp-im-file-system-module>
            <MemoryPoolStatistics>
              <memoryPoolIndex>1</memoryPoolIndex>
              <free>4294967295</free>
              <largestFree>4294967295</largestFree>
              <used>3484331296</used>
            </MemoryPoolStatistics>
    To me it seems that the ASA returns a value that is bigger then int32 and thus causes an overflow? Any clues? Workarounds to add an ASA to Prime without checking these MIB'S?
    Regards,
    Marcel

    Hi,
    does anyone happen to know if that problem is fixed? My currently setup looks like this:
    1. Cisco Prime Infrastructure 2.1 with updated device pack.
    2. Assurance license
    3. ASA5510 which has enabled netflow. Netflow is being sent to Cisco Prime 2.1
    I do receive netflow raw data within Cisco Prime 2.1 but any graphical display of netflow data is not working. Does anybody has an idea where the problem is? Could it be that the graphical data is only displayed when sending netflow 1, netflow 5 or netflow 7?
    regards
    Maurus

  • Cisco Prime Infrastructure 1.2 is not working https & ncs

    Hi, I have just deploy Cisco Prime Infrastructure 1.2 in a virtual appliance (Vmware Esxi 5.1). Console is ok & setup is also completed. but there is no NCS application. only app is shwoing: NCSPNP
    Cannot access from https also.
    Please suggest how to Starting Prime Infrastructure Serve

    From what you describe, it sounds like you have installed the Plug and Play (PNP) ova image. You need to install the Prime Infrastructure image.
    See the screenshot below for details (click to enlarge):

  • What are the features supported in Cisco Prime Infrastructure for WLAN for autonomous AP's?

    What are the features supported in Cisco Prime Infrastructure for WLAN for autonomous AP’s?

    • PI provides visibility for autonomous  clients within the same list view as lightweight and wired clients (client list  page).
    • Rogue AP detection for autonomous AP's is not supported (it's  supported in CUWN). 
    • Alarms/events for client authentication issues (e.g.  authentication failure) are displayed in PI.
    • Config management for  autonomous AP's is via CLI template.  Config comparison and archiving  functionality in PI leverages these same features that were brought in from LMS,  so need to defer to others in terms of whether this is a cross-platform feature  in PI or is only supported on a subset of platforms.  Config comparison/archive  is supported in CUWN.PI supports both infrastructure (e.g. AP Tx Power and  Channel, busiest AP, AP utilization, etc.) and client (e.g. client count, client  sessions, etc.) reports, and there are extensive reports for CUWN

  • User Name and Password for Cisco Prime Infrastructure 2.1

    Hi all:
    I am stuck at the login page of Cisco Prime Infrastructure 2.1.
    I have tried using the user name root and its password (when log in with root at Vsphere Client) and also the login user name "before" get into the appliance infrastructure, all cannot work.
    Anybody knows what is the default username or password or any way to set the username and password for this Cisco Prime Infrastructure 2.1 website?
    Thanks!
    tangsuan

    Hi Tangsuan,
    Following is the documented procedure for password recovery..
    In order to modify the GUI root user password, you will need to login to the NCS CLI
    as an admin user, and enter the command
    "ncs password root password <new password>" (without the quotes)
    This should set the web interface root user password :
    http://www.cisco.com/en/US/docs/wireless/ncs/1.1/configuration/guide/manag.html#wp1268889
    If you have lost your CLI password , try the default logging that is  ,
    CLI user is admin and not root, so please try logging in as admin with
    the password that was set during setup. If that does not work , you need
    the install disk that came with the appliance to recover that password.
    Follow these steps:
    Recovering a Lost Admin Password
    If you lose or forget the admin password for NCS appliance, follow these steps.
    Step 1 Reboot the NCS appliance with the ISO DVD inserted. The Cisco Prime Network Control
    System Welcome screen appears:
    ISOLINUX 3.11 2005-09-02  Copyright (C) 1994-2005 H. Peter Anvin
                 Welcome to Cisco Prime Network Control System
    To boot from hard disk, press <Enter>.
    Available boot options:
       [1] Network Control System Installation (Keyboard/Monitor)
       [2] Network Control System Installation (Serial Console)
       [3] Recover administrator password. (Keyboard/Monitor)
       [4] Recover administrator password. (Serial Console)
    <Enter> Boot existing OS from Hard Disk.
    Enter boot option and press <return>.
    boot:
    Step 2 Select the desired recovery option, 3 or 4, depending on how you
    are connected to the appliance and then follow the prompts.
    Thanks-
    Afroz
    ***Ratings Encourages Contributors ****

  • Can't import images in cisco prime infrastructure 1.2

    - Any job , trying to import images, in my cisco prime infrastructure fails with :
    Jan 14 13:14:53 cisco-prime  01/14/13 13:15:18.040 ERROR [service] [pool-4-thread-19] IFM_SWIM_EXCEPTION: [com.cisco.ifm.swim.service.exception.IfmSwimParserException: Cannot populate software image info object from the image.]
                       How I can I solve this one ?
    Tx,
    M.

    I seem to have the same problem, strangely enough importing a universal image for 2960s worked fine, but I get thos error when trying to import a 3750x image

  • Cisco prime infrastructure not detect IP address of clients

    hi all,
    I have Cisco Prime infrastructure 1.2 and when move to monitor >> clients tab it lists me all the clients in my network but their IP address list estates "not detected" ?
    please any advice?
    I appreciate your kindly support.

    Just an update that while this appears to have worked fairly well (as far as Cisco Management Planes go), there was one small 'gotcha' I've noticed so far:
    After the services came back up, the entries for our RADIUS servers did not function.  No, not because I didn't update the clients address record on the RADIUS server itself, but because the RADIUS server record(s) within CPI have a field called 'Local Interface IP' that still reflects the previous IP assigned to CPI.  A quick edit/save with the new interface fixes up the issue however.
    Cheers!

  • Cisco Prime Infrastructure 2.0 and Cisco ASA

    Hello,
    We've recently installed trial version of Cisco Prime Infrastructure 2.0 Express. We hoped that it already supports Cisco ASA 55xx series (especially 5505, we have pretty amount of them). But we had some problems with PI and asa durind the exploitation process.
    First, I've added ASA to PI, and Inventory Collection Status is Completed, but I can't see CPU and RAM utilization graphs. Inventory.logs are non-informative.
    Also, config backup is success, but when I try to watch the backuped configuration at Configuration Archive PI says "Failed to fetch raw configuration". And so on.
    ASA version is 5505, image is 9.1(2).
    So, I have a question: is it possible to manage ASAs with PI 2.0?
    UPD: I've just tried to upgrade asa to 9.1(4), and behavior of the equipment is quite the same. Seems we shall wait for 9.2 to be released.

    Have you downloaded and applied the latest Device Pack updates?
    PI enhanced ASA support after the initial 2.0 release and the Device Packs incorporate that change.
    The README file for Device Packs explains how to install them. (A bug currently does not allow the direct download in PI so you need to follow the method for installation from local storage after you manually download. Here is a link to the download location.

Maybe you are looking for