In CCM, Associate User with All Phones

This is 1 of 2 threads I am starting.
1. (this thread) asks for guidance in associating a User with all IP Phones in order for them to obtain authentication before allowing XML to be pushed to them.
2. (in a separate thread) asks for guidance in issuing the push to the IP Phone, regarding getting the base64 User:Password inserted into the HTTP pkt.
Thread 1:
I want to push a CiscoIPPhoneExecute to IP Phones. I am having trouble authenticating. I know that in order to authenticate (UserID,Password) I must add a User (with User ID and Password) to CCM and associate it with all IP Phones. My CCM ver is System version: 5.1.1.2000-2.

How do you want to do that? Manually or do you want to write a software that does it automatically?
To do it automatically you need AXL. First you need to look up which devices your application user is already associated with.. you run the following query (taken directly from productive java code):
private String getDeviceAssociationSqlString(String ctiUser)
StringBuilder sb = new StringBuilder();
sb.append("SELECT dev.name FROM device dev INNER JOIN applicationuserdevicemap adm ON adm.fkdevice = dev.pkid AND tkuserassociation = 1 ");
sb.append("INNER JOIN applicationuser a ON a.pkid = adm.fkapplicationuser AND a.name='" + ctiUser + "'");
return sb.toString();
You do an executeSqlQuery with that query and parse the results (the response will look something like
SEP123SEP124/row>..
Then you look up all devices, e.g. by sending a query like
SELECT name FROM device WHERE name LIKE 'SEP%'
(the where clause is to only include IP phones..the device table also contains gateways, analog ports, etc. and we don't want that.. not that this query includes third party sip phones which doesn't make too much sense.. but it won't cause any problems either.. I know because we run that code on a system with third party sip phones).
Then you do a delta between the two lists and if the second query yielded more results than the first, you need to associate the application user with that phone. There's no direct way in AXL (there used to be in CCM4 but no longer in CCM5+ because we now use application users.. you could theoretically use end users where you can still use updateUser, however it's not a good idea to mix application and regular users).
So.. you need to update the SQL database directly.. and run executeSqlUpdate via axl. The query to add phone deviceName to application user ctiUser is:
private String getAddDeviceAssociationSqlString(String deviceName)
StringBuilder sb = new StringBuilder();
sb.append("INSERT INTO applicationuserdevicemap (fkapplicationuser, fkdevice, tkuserassociation) VALUES((SELECT pkid from applicationuser WHERE name = '");
sb.append(config.ctiUser);
sb.append("'), (SELECT pkid FROM device WHERE name = '");
sb.append(deviceName);
sb.append("'), 1)");
return sb.toString();
This also works on CCM6, and most likely on CCM7 (I haven't had any projects with 7 yet but at first glance I haven't spotted any major changes like in between CCM5 and CCM6 (the extension mobility stuff has completely changed between those releases).
And if you do it manually.. just go to your application user, and have have the device association right there.. press the select more phones button, search for all phones whose name starts with sep, check them all, and submit.

Similar Messages

  • Can the Terminal add a user(with all options) on a single line?

    Howdy All,
    Can the Mac Terminal add a user, with all options desired, on a single line?    If so, can I get an example of this single terminal line to work from?
    Thanks

    Thanks Drew!   You have some great thoughts there. Perhaps I should provide a clearer environment of each high school(4). All classrooms have a lock down Windows environment. (There are no Macs any where in any classrooms.) The mini-tower will be the only Mac on each high school campus. we're in Dell country. The desktops are locked in such a way that only the ghosted/installed software on each hard drive works and no other software can be installed. USB sticks can't run any exe, jar, or other executable file. Even the other drives on the network can't run them. This has been setup to prevent students from bringing games into the environment and running them. Only the single classroom in each high school, where Web Tech is taught, has a ftp tool installed. Students cannot bring and use their own laptops either. So there really isn't any stray ftp activity happening. You cannot "ftp" out of the network! And there is only the one Mac available per campus.  All this makes it certainly easier to maintain for sure. I am the only user in the school district they let run a personal laptop...mine has Ubuntu (tweaked).  My knowledge of Linux has led them to assign this project to me. They are MS based entirely and so is their knowledge base.
    I've got to teach the other 4 teachers how to manage the mini-tower.  Basically it is this:
         Start and stop Apache2,
         Start and stop vsftp,
         Add ftp users(students will only have directory:           /Library/Server/Web/Data/Sites/Default/studentlastname.firstname  )  Students will not log on to the min-   tower directly as any normal user would, but only through ftp. (I.E. no /home directory) ,
         Remove/delete students as needed
         (I'll pre-install cgi-bin scripts on these to keep it simpler on the other teachers and myself.)
    With this in mind, you can see why a basic script or single command line to install these students would be great! I want to keep it simple to avoid mistakes the teachers might make adding users. Once I understand adding a user (in a terminal) better on a Mac, I may write a script to make it happen for them.
    I'd also like to understand removing/deleting a student/user better to insure everything is gone when executed.
    I hope this clear things up. Any help is much appreciated.    THANKS!!!

  • How to create full new user with all privileges

    how to create full new user with all privileges?
    and how to delete existing users?
    Thanks in advance..

    Common solution is probably to use sudo for privilege elevation, wiki should help

  • Antenna Issue Not with All Phones - I have 4 iPhone 4s and . .. .

    3 of them do not exhibit this at all. Of course, one does, and that is my 32G iPhone 4. Wife's and kids' phones do not lose signal at all. Weird.
    And, it only occurs when covering up the seam at the bottom left corner of the phone. Signal comes right back when you move your hand/finger.
    Put a case on = no issue at all. What are people hearing Apple is doing about this, if anything?

    Ok, this is definitely an issue. Yes, the signal can be affected by hand position but not like this. I can replicate this problem with 100% accuracy. It's not like it does it sometimes and sometimes not. This is an anomaly with the iPhone 4. With mobile phones, hand position and the positioning of the phone can increase or decrease the signal and amount of bars shown. This usually happens randomly. But in this case, when placing my hand or thumb or anything over the line seperating the antenna's on the lower left side, my bars slowly decrease until there is no signal. When I remove my hand, the signal goes back to full bars. I've seen phones drop or gain a bar or two at times but not like this. This will go from full bars to no signal every single time. My call dropped 3 times in 10 minutes during my first conversation today.
    The bumper case is not a solution. If the phone can't be used like a phone should be used out of the box then there is a problem. How else are we supposed to hold it? It is designed to fit in the palm of your hand. When I am talking, my hand is resting on about 80% of the sides. The bottom area is the most common area to hold.
    This issue isn't even close to a dealbreaker for me though. I love this phone and think it's the best phone period. I just hope we get some official word on this problem other than spend $30 on a bumper case. I love the staneless steel look and don't want to cover it up. I'm glad to see that some users don't have this issue. Hopefully it is just a bad batch. At least the phone is still usuable for now. This is just a minor snag. I know Apple will be on top of it in no time.
    I am just already getting tired of reading posts from people saying this isn't an issue when it most definitely is. I'm 100% positive that what I and others are experiencing should not be happening.

  • How to provision an app for all users with all dependencies?

    I have created an app package with VS that I want to provision for all users of a target system using
    DISM /Online /Add-ProvisionedAppxPackage /FolderPath:".\%package%" /SkipLicense
    The path contains the content of the *Test folders VS creates when creating store packages. However DISM expects a ".main" file in this folder to work (0xc1570102).
    What's the correct way to provision an app with all its dependency packages? (Using the PackagePath option?)

    After some further testing in Profile Manager I found that adding the applescript to items that open at logon seems to work. No need for the plist, unless of course I decide not to use Profile Manager at all.

  • AD accounts find users with all capital letters

    Hello ,
    I am a noob , am searching online but can't find exactly what i need.
    So am posting here in hope some one will help me. :)
    I what to make a short powershell script that finds all users with capital letters from the second letter on.
    Example
    first name = Bob last name =Red    corect
    first name = BOB last name =RED  wrong
    i want to extract all the wrong names with capital letters in text file
    So my question is that possible and how can i do it in server 2008 r2.
    Thanks in Advance for any answers

    This is obviously not an Exchange question, but a PowerShell question.  You should probably post it in the scripting forums for completeness.
    That being said, you can try using -cmatch against a regex.  I used  -cmatch '[A-Za-z]+[A-Z]+' to test a name with later capital letters, and it appeared to work.
    [PS] C:\Scripts> "Willard" -cmatch '[A-Za-z]+[A-Z]+'
    False
    [PS] C:\Scripts> "WILLARD" -cmatch '[A-Za-z]+[A-Z]+'
    True
    [PS] C:\Scripts> "WillARD" -cmatch '[A-Za-z]+[A-Z]+'
    True
    [PS] C:\Scripts> "WillarD" -cmatch '[A-Za-z]+[A-Z]+'
    True
    [PS] C:\Scripts> "WiLlArD" -cmatch '[A-Za-z]+[A-Z]+'
    True
    So for your test, and using the Exchange commands (you can change them to the Windows 2008 AD commands), you'd run:
    Get-User | ? { $_.DisplayName -cmatch '[A-Za-z]+[A-Z]+' }

  • Cannot associate User with a DN

    In an effort to associate a user with a DN, I get the following message:
    Update failed. One of the required fields on the page has the same value as an entry that already exists in the database. Please check the corresponding Find List page to verify your entry does not exist.
    After a synchronization with LLDP, it works for a while but then we are back to the same problem.
    Any help will be greatly appreciated.

    If the entry doesn't already exist, you may have a database replication issue. 
    Launch RTMT and run a database status report and verify your database replication is good or not. 
    2 = good.
    Below is a link that discusses troubleshooting database replication issues.
    https://supportforums.cisco.com/document/52421/troubleshooting-cucm-database-replication-linux-appliance-model
    Hope this helps,
    Please rate helpful posts.
    Thanks.

  • New User with All privileges of Administrator

    Dear All,
    We created one user USER1 in RPD.
    We should give all priveliges to USER1 Like Administrator.(Answer,Dashboard,... should access to USer1)\
    How to set?
    Thanks
    Govind R

    Hi Raj,
    Just a clarification, is your user (user1) in the RPD is grouped under Administrator?
    If the user is grouped under Administrator, then we can follow a simple step in BI front end for the user to access all the front end objects.
    In the BI Dashboard, click the settings there you can find manage presentation catalog groups and users. Here we can add the User 1 to presentation server Administrator group.
    Make sure your Administrator user is set with all the necessary privileges to access Answers, Dashboard etc.
    Thanks,
    Karthikeyan V

  • Does The Sony Smart Headset Work With All Phones

    Seeing as the Sony Smart Headset MH1-c is a CTIA based headset, it should work with all other phones right? I just want someone to confirm that it can work with the Samsung Galaxy S3.
    Thanks.

    That standard is for the headphone jack but as this is a Bluetooth device that is irrelevant when looking for handset compatibility. Please check the bottom of the page here for a full compatibility list:
    http://www.sonymobile.com/global-en/products/accessories/smart-wireless-headset-pro/specifications/
    What are your thoughts about this forum? Let us know by doing this short survey.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • How to Find out Users with Hardware Phones

    Hi,
    Is there anyway that i can create a report that which Users are using IP Phones (Physical) and which users are using soft Phone (Lync Client on PC).
    Regards
    Usman Ghani
    Usman Ghani - MCITP Exchange 2010

    Hello Usman,
    If you have a monitoring server, you can see the Physical Phones.
    Access your monitorin server by:
    http://<ip_monitoring>/Reports or
    http://<ip_monitoring>/Reports_<Instance_Name>
    LyncServerReports > Reports Home Page and then click IP Phone Inventory Report and you will see all the physicals phone.
    If you don't have a monitoring server, access this...
    http://www.mcse.eti.br/Installing-and-Configuring-Monitoring-Server.html
    “Vote As Helpful” and/or “Mark As Answered” - Thiago Mendes da Silva - MCSE Communication - ITIL v3 Foundation - http://www.mcse.eti.br

  • CCM v5.0 with ip phones running SCCP and SIP

    Planning to migrate to CCM v5.0. Just would like to confirm CCM v5.0 can support to run SCCP and SIP phones simultaneously without any major issues. Does anyone has any experenice to setup this environment? Currently we are running 7960G and 7912G. Thanks.

    Yes, it works. 100% guaranteed!
    Linksys, Sipura, Grandstream IP phones work pretty fine with Cisco CCM 5

  • How to associate users with views

    Hi,
    We are working on SRM 5.0 and CCM 2.0, and we have created views for the procurement catalog and have published the catalog.
    Problem: When we click on the procurement catalog in SRM we want the view associated to the logged in user to show up.
    Kindly suggest how to achieve the same.
    Thanks,
    Swetha

    Hi Swetha,
    In the user master (SU01) under the Personalisation tab, there's a task called "Assign Catalog Views to Roles". Click on the "/CCM/VIEW_ASSIGNMENTS" and you will see the views you created in CCM2.0. There you can select the appropriate view for your user.
    Regards,
    Paula.

  • Get 365 users with all licenses

    I am looking for a script that can output all my office 365 users and then tell me which licenses they have assigned to each of them. For example something like below. It doesent have to be in that format. I have been looking but all I have seen is scripts
    like this: Get-MsolUser | where-Object { $_.isLicensed -eq "TRUE" } UserPrincipalName, DisplayName, Country, Department | Export-Csv C:\testdoc.csv But all this does is show me the users that are licensed in 365.
    UserName Program Licensed
    tjackson 365 Enterprise E3 True
    Visio False
    Project True

    Hi,
    The PowerShell command Syntax to display information about all users and their licenses type should be:
    Get-MsolUser -All | FT Displayname,Licenses
    To display information about License Options assigned to ALL Users:
    Get-MsolUser -all | ForEach-Object { "============="; $_.DisplayName; $_.licenses[0].servicestatus }
    Please note we don't provide script support in this forum, personally I'm not a master of script, so the information I can provide is quite limited, since this problem is more Office 365 related, if you need further assistance, I suggest you post the
    question in Office 365 Community:
    https://community.office365.com/en-us/f/default.aspx
    Regards,
    Melon Chen
    TechNet Community Support

  • How to make Skype our user for all phones

    Currently we are with TELSTRA.  We wish to use Skype as our landline.  How do we do this?

    Hi, Fountaindale, and welcome to the Community!
    I recommend contacting the Skype Manager customer service team for assistance:
    Using Skype in your business
    Transform the way your business works with cost effective and collaborative tools.
    Contact our solutions team
    Best regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • I am looking for 10.3.9 user[s] with all Security updates applied to Help

    Hello All,
    I am looking for 10.3.9 user, with all Security updates applied to help me please.
    Please let me know if these two sites:Free webspace <ahref="http://www.audiomidi.com/classroom/cedge/cutting_edge061003.cfm">Audiom idi Generate these errors, below for you in Console under username:
    2006-06-14 10:50:52.123 Safari[359] GIF decompressor: GIF image ran out of compressed data at offset 0x21 ( true for Shira as well as Safari )
    The site[s] have validated poorly Wc3 Validation Failed
    However,I discovered that my Pbook with Tiger 10.4.6 doesn't get these errors logged, leading me & my Helper to me wonder if it is just my Fp 10.3.9 or not.
    As long as it isnot just my machine w/ Panther that produces the gif error messages i would know the question I have posted in Safari GIF image ran out of compressed data at offset.. is solved, however someone with 10.3.9 would have to let me know.
    I would be very appreciative of your assistance.
    Thank you for your time.
    Eme;~{)

    Hello there, Claas Hanken,
    Thank you very much for your quick response & help in solving my question. I appreciate it ~
    Cheers,
    Eme:~{)
    edited by: Eme

Maybe you are looking for

  • Setting timeout for webservice

    hello all, I have made client program to connect to a webservice using dynamic url, my problem is i am unable to set the timeout of the webservice if anybody knows please let me know. my code is as follows. WebServiceClient ann = testpackage.TestClas

  • Pages 5 is a downgrade! Don't use.

    I used Pages instead of InDesign. Now Pages 5 is missing important features such as facing pages vertical rules guides proper opening of older documents style shorcuts All my bought Pages-Templates cannot be opened at all. Don't use it.

  • Azure Data Sync Log Take Too Much Time to Load

    Hi, I've found that the Azure Sync Log inside the Portal take too much time to load if my sync group was created long time ago. i.e. for those new sync group with only a few logs, it will take around 5 seconds for loading. However, I've many sync gro

  • Best DVD burner software for mac

    I have made some simple movies I want to burn to DVD with menu options.  What is the best (at a reasonable cost) burner softwar to puchase. Have done some research and read the reviews but still confussed.

  • I NEED HIGH RESOLUTION PICTURES...

    Does someone can tell me or recommend me a place (web site) where I can get good quality backgrounds, landscapes or just nice pics? I need them for my projects. The ones I have is very poor quality, ther are betwwer 2 to 200 megabytes, no more. I nee