Prime Infrastructure API add device

I've been looking at the Prime Infrastructure 2.1 API at /webacs/api/v1/ on my PI instance but I can't seem to find a way to add devices using the API? Looking to write a script for our techs to run after the provisioning of a new device and would love a way to get it added to Prime. Any ideas?

It isn't possible in Prime Infrastructure 2.1 to add devices via API, however, it now is possible with version 2.2. I've used it myself and I can confirm that it works.

Similar Messages

  • Cisco Prime Infrastructure - not updating device details

    We run Cisco prime Infrastructure and I have found an interesting problem that I can't see an easy way round.
    If I have say a Cisco 2950 switch on my network, managed by Prime and I upgrade it to a 3560 - I then ask Prime to re-sync the device details.
    This works - you can see the updated configuration files etc but the device ID stays the same - Prime still thinks it is a 3560, which it was when the device was originally added.
    Is there a way, short of deleting the device and adding it again (losing the config archive) of getting prime to update it's details to reflect the hardware change?
    It came to light as it screwed up a network hardware audit I was doing - this is all showing up on Prime as the old 2050's which I have replaced with 3560's.
    There must be an easier way that just deleting the device and re-adding it?

    This is by no means a full solution, but deleting and re-adding only takes a few minutes if you use the "Export Device" and "Bulk Import" features from the Device Work Center. You can export the desired devices to a CSV file, delete them, then import from the CSV. 
    Of course, you might lose historical data when deleting the devices, but I'm guessing that's not as relevant since the devices themselves have been replaced by different hardware.

  • Prime Infrastructure 2.0 Device Configurations

    We use PI 2.0 physical appliance.
    Is it possible to save a shadow copy of the configs so that you get config in filesystem?
    We want to save the configs to an external server. 
    Actually we are using this feature in LMS.
    Regards

    Hi,
    unfotunately this feature is not avaiable so far an Enhancement request is already filed to track this issue:
    CSCug82578    Prime Infrastructure should maintain archive shadow directory like LMS
    Thanks-
    Afroz
    [Do rate the useful post]

  • Cisco Prime Infrastructure API

    Hello,
    does Cisco PI provide an API to access its data? We have a list of ip addresses with correct timestamps and i want to know which user had the ip address in the corresponding timeframe. Is there any way to accomplish this?
    thanks for any response
    regards
    -andreas

    yes,you can access API documentation https:///webacs/api/v1  for detailed information.

  • Cisco Prime Infrastructure 1.3 / Device Work Center/ delete Site Group

    I've configured two dynamic Groups, Access Switch and N44.
    How can I delete this two wrong groups?
    Regards

    Thanks for you answer.
    But this is not the solution.
    I have two site groups, one with the static groups witch I can found also under Operate --> Map and one with the dynamic groups witch are not visibal under Operate --> Map.
    I would like to delet the dynamic Groups.
    N44 and Access Switch.
    Regards

  • SCP IOS Image Upgrades in Prime Infrastructure 2.1 Failing

    Hi I'm running PI 2.1 with all the latest patches and packs but I can't get SCP Image transfers to work.
    When I check the suggested logs from the Jobs Dashboard (and jump into the CLI root)  I see the following:
    [SWITCH-DEVICE]=Switch Hostname
    [SWITCH-ADMIN-LOGIN]=Level 15 username login to Switch, same username the is used in the Device Work Centre
    [PRIME-INF-IP]=Prime Infrastructure Server
    [SWITCH-DEVICE]#archive download-sw ............... archive download-sw /allow-feature-upgrade  
    /overwrite scp://[SWITCH-ADMIN-LOGIN]@[PRIME-INF-IP]//localdisk/tftp/c3560-ipbaselmk9-tar.122-55.SE9.tar
    Password:
    Password:
    % Authentication failed.
     Could not buffer tarfile...using multiple downloads
    examining image...
    Password:
    Password:
    % Authentication failed.
    %Error opening scp://[SWITCH-ADMIN-LOGIN]@[PRIME-INF-IP]//localdisk/tftp/c3560-ipbaselmk9-tar.122-55.SE9.tar (Permission denied)
    %Error opening flash:update/info (No such file or directory)
    ERROR: Image is not a valid IOS image archive.
    [SWITCH-DEVICE]#
    It looks like the switch is trying to log into the PI server and download the software as opposed to PI sending the software to the switch.
    I've used WinSCP to open up the URL, but none of the passwords I know or created work.
    Do I need to SSH into the PI box and create a new CLI account (or Root CLI account) that matches up to the switch [SWITCH-ADMIN-LOGIN]?
    Regards,

    Hi rowansakul,
    The work around for this particular issue involves having a user set up in the root cli and then from the the GUI navigate to Administration > System Settings > Image Management and set up the SSH Username with your new user account that you created under root cli.  That is the credentials that Prime is looking for when it is attempting to access its own image repository.
    Regards,
    Brandon

  • Prime Infrastructure 2.0 Automatically add remove devices

    Dears,
    I'm basically looking for a dcrcli equivalent to use on prime infrastructure 2.0.
    Customer has a central repository of devices that must be monitored. When devices are added or removed there, they automagically appear or disappear in the other systems.
    Does something like this exist or is this on the roadmap?
    Cheers,
    Michel

    Hi Scott,
    Upto 7.3 config guide it was documented we have to reboot WLC when we configuring SNMP v3 which is wrong. (here is 7.3 config guide link for reference). May be older version (prior to 7.0) had that requirement, not too sure about it
    http://www.cisco.com/en/US/docs/wireless/controller/7.3/configuration/guide/b_wlc-cg_chapter_0100.html#d16741e4514a1635
    From 7.4 onwards config guide does not talk about it all. I deleted the default SNMPv3 user & create a new user in 7.4 & add it to prime without rebooting WLC.
    Once you configureed a SNMPv3 user on a WLC, I do no think you can edit/change the password. You have to delete the user & recreate it with modified username/password.Then re-add the WLC to prime
    The behaviour you mentioned is with any of later codes  of WLC ?
    Rasika

  • 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

  • Cisco Prime Infrastructure 2.0 - no traps/info are pushed from devices

    Good evening,
    I have setup Cisco Prime Infrastructure 2.0 and,  though I have added manually my 4 network cores as devices without any  problem, I can't get a single trap or a single SNMP information to be  pushed into my Cisco Prime Infra.
    Here is my SNMP config on my core :
    snmp-server user *edited* *edited* v3
    snmp-server  group *edited* v3 noauth notify  *tv.FFFFFFFF.FFFFFFFF.FFFFFFFF.FFFFFFFF.FFFFFFFF.FFFFFFFF.FFFFFFFF.FFFFFFFF.FFFFFFFF.FFFFFFFF.FFFFFFFF.FFFFFFFF.FFFFFFFF.FFFFFFFF.FFFFFFFF0F
    snmp-server community *edited* RO
    snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart
    snmp-server enable traps flowmon
    snmp-server enable traps transceiver all
    snmp-server enable traps call-home message-send-fail server-fail
    snmp-server enable traps tty
    snmp-server enable traps rf
    snmp-server enable traps memory
    snmp-server enable traps cpu_threshold
    snmp-server enable traps eigrp
    snmp-server enable traps ospf state-change
    snmp-server enable traps ospf errors
    snmp-server enable traps ospf retransmit
    snmp-server enable traps ospf lsa
    snmp-server enable traps ospf cisco-specific state-change nssa-trans-change
    snmp-server enable traps ospf cisco-specific state-change shamlink interface
    snmp-server enable traps ospf cisco-specific state-change shamlink neighbor
    snmp-server enable traps ospf cisco-specific errors
    snmp-server enable traps ospf cisco-specific retransmit
    snmp-server enable traps ospf cisco-specific lsa
    snmp-server enable traps flex-links status
    snmp-server enable traps fru-ctrl
    snmp-server enable traps entity
    snmp-server enable traps ethernet cfm cc mep-up mep-down cross-connect loop config
    snmp-server enable traps ethernet cfm crosscheck mep-missing mep-unknown service-up
    snmp-server enable traps ether-oam
    snmp-server enable traps aaa_server
    snmp-server enable traps flash insertion removal
    snmp-server enable traps l2tc threshold sys-threshold
    snmp-server enable traps power-ethernet police
    snmp-server enable traps rep
    snmp-server enable traps vswitch dual-active vsl
    snmp-server enable traps udld link-fail-rpt status-change
    snmp-server enable traps vtp
    snmp-server enable traps vlancreate
    snmp-server enable traps vlandelete
    snmp-server enable traps auth-framework sec-violation
    snmp-server enable traps dot1x auth-fail-vlan guest-vlan no-auth-fail-vlan no-guest-vlan
    snmp-server enable traps envmon fan shutdown supply temperature status
    snmp-server enable traps entity-diag boot-up-fail hm-test-recover hm-thresh-reached scheduled-test-fail
    snmp-server enable traps port-security
    snmp-server enable traps ethernet evc status create delete
    snmp-server enable traps energywise
    snmp-server enable traps ipsla
    snmp-server enable traps vstack
    snmp-server enable traps bfd
    snmp-server enable traps bgp
    snmp-server enable traps bulkstat collection transfer
    snmp-server enable traps cef resource-failure peer-state-change peer-fib-state-change inconsistency
    snmp-server enable traps config-copy
    snmp-server enable traps config
    snmp-server enable traps config-ctid
    snmp-server enable traps event-manager
    snmp-server enable traps hsrp
    snmp-server enable traps ipmulticast
    snmp-server enable traps isis
    snmp-server enable traps msdp
    snmp-server enable traps pim neighbor-change rp-mapping-change invalid-pim-message
    snmp-server enable traps bridge newroot topologychange
    snmp-server enable traps stpx inconsistency root-inconsistency loop-inconsistency
    snmp-server enable traps syslog
    snmp-server enable traps isakmp policy add
    snmp-server enable traps isakmp policy delete
    snmp-server enable traps isakmp tunnel start
    snmp-server enable traps isakmp tunnel stop
    snmp-server enable traps ipsec cryptomap add
    snmp-server enable traps ipsec cryptomap delete
    snmp-server enable traps ipsec cryptomap attach
    snmp-server enable traps ipsec cryptomap detach
    snmp-server enable traps ipsec tunnel start
    snmp-server enable traps ipsec tunnel stop
    snmp-server enable traps ipsec too-many-sas
    snmp-server enable traps errdisable
    snmp-server enable traps ethernet cfm alarm
    snmp-server enable traps vlan-membership
    snmp-server enable traps mac-notification change move threshold
    snmp-server enable traps vrfmib vrf-up vrf-down vnet-trunk-up vnet-trunk-down
    snmp-server host *ip-address-edited* version 3 noauth *edited*
    Basically all traps are enabled but absolutely nothing is showing up in my Prime Infra except that my 4 devices are "Reachable".
    Here is a show snmp on the same device :
    sh snmp
    Chassis: *S/N Edited*
    38554534 SNMP packets input
        0 Bad SNMP version errors
        14 Unknown community name
        0 Illegal operation for community name supplied
        0 Encoding errors
        38453185 Number of requested variables
        0 Number of altered variables
        17790703 Get-request PDUs
        20583581 Get-next PDUs
        0 Set-request PDUs
        0 Input queue packet drops (Maximum queue size 1000)
    38490708 SNMP packets output
        0 Too big errors (Maximum packet size 1500)
        0 No such name errors
        0 Bad values errors
        0 General errors
        38371069 Response PDUs
        13 Trap PDUs
    SNMP global trap: enabled
    SNMP agent enabled
    SNMP logging: enabled
        Logging to *edited*, 0/10, 13 sent, 0 dropped.
    Can anyone point out what is wrong or missing in my configuration? I can't seem to single it out myself.
    Thanks
    Jeremy

    Hi Jeremy,
    SNMP traps are shown in the events and alerts section of PI.
    SNMP config looks fine. Can  you run the SNMP debug (debug snmp packets ) .check the logs and see if the device is actually sending the TRAPS to the PI server.
    Thanks-
    Afroz
    [Do rate the useful post]
    ****Ratings Encourages Contributors ****

  • Prime Infrastructure 2.1 - Out Of Sync Devices

    Hi all,
    We are running a Cisco Prime Infrastructure Appliance (Version 2.1) to mange/monitor/configure our wired network infrastructure. We have been able to successfully add all of the network infrastructure devices to Prime and have had relative success in image deployment, reporting etc.
    However, my query is in relation to the Configuration Archives. Currently Prime is indicating that 90% of our devices are 'Out of Sync'. I know that this means that there are discrepancies between the startup and running configs. I have compared the startup and running configs on some of the affected devices and the only differences I can see were in relation to the snmp-server contact XXXX entry and the self-signed certificate entry.
    Can anyone tell me how I can go about troubleshooting this or how to bring the device configurations back into sync.
    Many thanks,
    John P

    Hi John,
    If you navigate to Operate > Configuration Archives it will display a list of all your devices that are listed as out of sync.  From here you can sort to the devices that are listed as Out of sync, select the ones that are listed as such and schedule an overwrite.  There is also an option to archive immediately after it overwrites as well.  It may take a bit for it to update through this page, but navigating to individual devices through device work center and clicking on the configuration archive tab, will yield that the out of sync (startup/running mismatch) message will switch to no.  
    Regards,
    Brandon

  • Prime Infrastructure 2.1 - User add failed : Some unexpected internal error has occurred.

    Setting up Prime Infrastructure to manage 2504 WLC, trying to add Lobby Ambassador and I get this error message:
    User add failed : Some unexpected internal error has occurred. If the problem persists please report to the Tech Support.
    Technically, this is my second attempt at setting up PI.  I set it up initially with the wrong version of PI and created a lobby ambassador.  I followed the instructions from the forum with a similar problem that said to remove the trap receiver on the WLC from my first attempt at installing PI.
    https://supportforums.cisco.com/discussion/11110686/failed-add-device-wcs-reason-common-1-some-unexpected-internal-error-has-occured 
    I'm now able to add a Lobby Ambassador as long as its not the same username that I created on the previous PI setup.  So I suspect this Lobby Ambassador username is somewhere on the 2504 WLC, but I can't find it anywhere to remove it.

    I have just been struggling with a similar issue on a fresh install of Prime 2.1  Upgraded to 2.1.1.
    If I try to create the user with lobby ambassador role it just fails with "unexpected internal error".
    I eventually found that by creating the user as a normal admin user first - the user is added.  You can then go in a remove the admin role and change the role to lobby ambassador.  This works with no internal error and the lobby admin user is working fine.
    I would say it is just a bug.

  • Cisco nexus 6001 not a supported device on cisco prime infrastructure 2.1?

    I have installed Cisco Prime Infrastructure 2.2 and Prime Infrastructure still doesn't seem to support the Nexus 6001 platform? Can someone tell me if Cisco Prime Infrastructure will ever support the Cisco Nexus 6001 platform or is there any plans to support it in any future device packs? 

    The Nexus 6001 isn't currently supported in PI 2.1. There's no workaround except to wait for a device or product update that adds support. Right now I know the 9000 series is on the 2.2 roadmap but I haven't seen any reference to the 6001 and PI.
    Interestingly, Prime LMS does support both the 6001 and 6004. Reference.

  • Prime Infrastructure Device Configuration

    I recently installed Prime Infrastructure to replace LMS and NCS, but I've encountered an issue with changing device settings.   I had a controller set up to pull configs with no issue, but I had to change the IP to move it to a different VLAN ("it" meaning the controller).   After I changed the IP, the device showed that it was unavailable in the device/operation dashboard in Prime INF, as expected.
    Now, I can't find a way to change the IP address of the controller in any way, shape or form.   It allows me to change everything else, but not the IP address.   The only option I have is to delete the object and add a new one, which will remove access to the saved configurations.
    I'm not sure if this is a bug or that it's defective by design, but if you can't change the management interface IP for a device without adding a new one, you've got a bit of a problem.

    That directory doesn't exist
    ade # ls -al /var/adm/CSCOpx/files/rme/dcma/shadow
    ls: /var/adm/CSCOpx/files/rme/dcma/shadow: No such file or directory
    ade #
    ade # ls -al /var/adm/
    ls: /var/adm/: No such file or directory
    I guess the configs are not in individual files but within the database

  • How do I edit device IP address in Prime Infrastructure 1.3?

    Hi there,
    I have changed the IP address on a router in our production network. How do I update this in Prime Infrastructure 1.3 without deleting and creating a new device?
    Regards
    Mark

    Hi Miguel,
    I raised a support ticket and was told that you must delete the device and add it again to your DCR with the new IP address. A design change has been submitted to Cisco for this feature.
    Regards
    Mark

  • Device Reachable but Unmanaged in Cisco Prime Infrastructure 1.3

    Hi,
    I am running the Eval version of cisco Prime Infrastructure 1.3
    I tried running discovery for WLC and it worked fine where all the controllers were discovered.
    But when i try to discover a Switch, the reachability tab says Reachable but in Collection Status tab it shows Unmanaged.
    When i click on the Unmanaged tab it says " Pre-collection check failed because: "
    I have configured the SNMP correctly.
    Does anyone know why is this happening.
    All the help is greatly appreciated.                   

    Had the same issue and noticed that the licence count for 100 devices (Eval Limit) was consumed as soon as we added the WLC
    On your page https:///webacs/welcomeAction.do#pageId=LicenseCenter_pageId look at how many are taken and if it is in violation.
    We added our 500 pak upgraded, and it still didn't fix the issue when re-syncing. We had to remove the device and re-add.
    This is now resolved for us.

Maybe you are looking for