Need to extract userid and Line 1 information from CUCM

I'm trying to automate the extraction of userid, phone number, and device name using AXL.  The query I have returns all lines associated with a device and I need only the information associated with the phones' Line 1 (since that's the user's personal number in all cases).  The query I'm using is this:
select enduser.userid, numplan.dnorpattern, e164Mask, device.name from enduser inner join enduserdevicemap on enduser.pkid=enduserdevicemap.fkenduser inner join device on enduserdevicemap.fkdevice=device.pkid inner join devicenumplanmap on device.pkid=devicenumplanmap.fkdevice inner join numplan on devicenumplanmap.fknumplan=numplan.pkid
I either need the query to return only Line 1, or to return the line number information so my script can just pull out the Line 1 data.  I've tried using the "FIRST 1" syntax mentioned in the AXL cookbook but that just limits the output to the device's first entry in the table, not the actual Line 1 button.

Hi
You just need to specify numplanindex =1 in the devicenumplanmap table.
run sql select enduser.userid, numplan.dnorpattern, e164Mask, device.name from enduser inner join enduserdevicemap on enduser.pkid=enduserdevicemap.fkenduser inner join device on enduserdevicemap.fkdevice=device.pkid inner join devicenumplanmap on device.pkid=devicenumplanmap.fkdevice inner join numplan on devicenumplanmap.fknumplan=numplan.pkid where devicenumplanmap.numplanindex = 1 and enduser.userid = 'gbcaxh06' group by userid,name,dnorpattern,e164mask
I've also added a group-by clause, as multiple links between user and dev (e.g. for CTI Controlled and EM device profiles) causes some duplication of results.
Regards
Aaron

Similar Messages

  • In Contacts version 8, how can I print ALL information in each individual card? When I select the print command the only thing printed is the name and address. I need phone number(s) and all other information in the cards.

    In Contacts version 8, how can I print ALL information in each individual card? When I select the print command the only thing printed is the name and address. I need phone number(s) and all other information in the cards. We enter various pieces of data, other than the standard name address & phone numbers and we print all information on each card so it fits in a 5x7 inch loose binder. We have used InTouch software for many years and it has served us extremely welll, however, the publisher (The Prairie Group) has not, and apparently has no plans to update their software to be compatible with any Mac OSX OS beyond 10.6. Any help will be appreciated!

    You can select what you want included in a list format. In the Print command from Contacts, click the Show Details button. Then in the Style pulldown menu select "Lists" and there you'll be able to select what you want included. You can also select what you wish included if you select the Pocket Address Book style.
    If neither of those options will work for you, then you will need to look to third-party software. Here's one possibility that seems to get good reviews:
    https://www.macupdate.com/app/mac/15485/labels-&-addresses
    I haven't done more than try it to make sure that it works with OS X 10.9's Contacts, which it does, but you can download their demo and try it yourself.
    Regards.

  • HT201272 Tried following the steps on this doc, but upon tapping the Cloud Icon ( Re download icon ) it redirects me back where i need to Purchase again and update billing information.

    Tried following the steps on this doc, but upon tapping the Cloud Icon ( Re download icon ) it redirects me back where i need to purchase again and update billing information.

    Tried following the steps on this doc, but upon tapping the Cloud Icon ( Re download icon ) it redirects me back where i need to purchase again and update billing information.

  • How can I change game centre and iCloud account information from previous owner of my iPad?

    How can I change game centre and iCloud account information from previous owner to me?

    You can't do it on your own. The previous owner has to erase the device for you. You would need his Apple ID and password in order to delete his iCloud account. This is due to the Activation Lock in iOS 7 - assuming that your iPad is running iOS 7.
    Contact the owner and ask home to erase it remotely using iCloud, or return the device and ask for your money back. If you can't contact the pervious owner, you will have a useless iPad on your hands.
    Read this for more information. This is what you need the previous owner to do.
    What to do before selling or giving away your iPhone, iPad, or iPod ...

  • Extracting CEOs and Comapny owners information for suppliers

    I am trying to extract information related to suppliers' organization CEOs and Owners information  as it appears in the "Company Profile" --> Organization--> "Data Owners" and in the CEOS tabs. I tried all the hz tables but could not find any relevant information on this... does anyone know where these data is stored in Oralce. We are using Oracle R12.

    The free Reader has no editing features for PDFs. Acrobat does to a limited extent, and includes the deletion of pages.
    Extracting information from a PDF can be easy or very difficult, depending on the specific file. If the security of file includes protecting, you should ask its author to supply an unprotected copy.

  • Interactive Bar/pie chart and line graph, data from excel/text file -urgent

    Hi,
    I have a huge data in excell sheet which keeps updating every month. Data basically consists of service provider and there respective subscribers from various regions of the country over the years. The requirement is to give the viewers an interactive page where in they can make various combinations and can compare, cross examine data according to thier choice.
    We want the pie chart / bar graph or line graph to be created on the fly according to the combination made by the user.
    The site is hosted on a red hat linux server. how can a connection to the excel spreadsheet be made or is it possible to read from the text file if the entire data is exported to a text file.
    Is there any ready made tool/code available which can be customised according to the need.
    Thanx in advance
    Regards
    Prakash

    I certainly wouldn't pay for the graphing package at the previous link. check out http://www.object-refinery.com/jfreechart/ for a free, open-source, much better looking graphing package.

  • Need to extract Post to inspection stock field from material master

    Hi Guys,
    I need to extract the Post to insp.stock indicator from material master QM view for all FERT materials, i have tried with MARC table but no use. Is there any alternative way to download this from the material master?, kindly help me resolve this.
    Thanks
    S.Murali

    I got it from table QMAT.
    Thanks
    S.Murali

  • Cisco Unity Connection 8.6 not getting CLID information from CUCM 8.6

    Hello,
    Currently Running:
    Cisco Unified Communications Manager 8.6.2
    Cisco Unity Connection 8.6.2
    Problem:
    when any outside caller leaves a voicemail, the caller number information is not being sent to unity.
    example, I call with my cell phone, 817.555.1234 to my Cisco 7940 phone and it shows the CLID information that i am calling with. iDivert to voice mail, Leave a message. Playback message and just the default message information from Cisco Unity.
    we currently upgraded from CUCM 6.1.3 and Unity 5. before i could press 9 and get the caller information.
    I have viewed the "Playback Message Settings" and selected "After Playing Each Message, Play" and selected Sender's Information. and also selected "Include Extension and Sender's ANI"
    upon playing the VoiceMail after the message i get the default message "From Cisco Unity Connection Messaging System"
    I also have the message relaying to my E-mail and I get the same in the subject line.
    "Message from Cisco Unity Connection Messaging System (Unknown extension)"
    This tends to be a big deal with the Sales team as customers will call and say "Call me back"
    But any Internal Calls show the correct information, proper greeting, extension information even on the relay to e-mail.
    Any help will be appreciated.
    Thanks
    Tim

    Found another post that referenced Cisco Bug ID CSCti37610.
    CUC plays message is from Unity Connection Messaging system
    Symptom:Before message playback, Unity Connection plays the message is from Unity Connection Messaging System instead sender's ANI
    Conditions:Problem was observed on Unity Connection cluster and appropriate services are not rebooted after changing the SMTP domain name
    Workaround:
    Restart the Unity Connection servers
    It should have been fixed in 8.5 but we did change the SMTP domain name on 8.6 and now see the problem. Will schedule a reboot and see if the issue goes away.

  • Need to extract faces and names from a multi-portrait high school year book scanned page

         I am responsible for generating individual high school student portraits (5" x 7") from scanned 600 dpi pages of portraits from my high school beacon (year book). There are 16 - 20 black and white portraits per page and there are between 800 and 850 students in my graduating class.
         The end product is taking an estimated 850 portraits from multi- portrait pages and convert them into individual 5" x 7" B&W photos.
         Attached is one of the pages of portraits to experiment with. Other than selecting each individual portrait and pasting it into a new image from the clipboard, I don't know of a faster way to do it. This will nearly take forever.
           Might there be a way to create a grid of selections template that applies to each page and extracts the portraits and names separating them into individual images?
    I couldn't download a sample for some reason. The portraits are arranged 4 wide and 5 down like below table but without the header.  The names are below the faces. If one of you has an idea, I could email the full size image to you.
    Header 1
    Header 2
    Header 3
    Header 4

    Nothing shows up.
    1. Go to www.pixentral.com
    2. Put your cursor in the blank provided for the upload (where it says your image)
    3. Click on the Browse button
    4. When the "Choose File" box pops up, navigate to where your photo is stored, click on your photo file, then at the bottom of the box, click the Open button
    5. It will come back to Pixentral with the path to your photo shown in the blank
    6. Now on the Pixentral screen, click on the Send button
    7. Once your photo is loaded (you'll see it on the Pixentral screen) scroll down to the bottom of the photo where you'll see two lines of text, one that says HTML and one that says Forum
    8. You need to copy all of the text in the box after "Forum"
    9. An easy way to select it is to triple click on the text OR drag your mouse all the way from the first character to the last character of the text
    10. Once it is selected, press Ctrl-C to copy it
    11. Then go to your message on the forum here and paste your link by pressing Ctrl-V

  • How can I extract Trim, Art, Bleed and Crop Box information from PDF document

    I want to know where in PDF are these information saved. I need my program to know these numbers without me manually rewriting them.

    Use the getPageBox method.
    getPageBox can get the dimensions of the following:
    Art
    Bleed
    BBox
    Crop (default)
    Trim
    There is an example in the JavaScript for Acrobat reference that gets the dimensions of the media box and displays it in the console window:
    var aRect = this.getPageBox("Media");
    var width = aRect[2] - aRect[0];
    var height = aRect[1] - aRect[3];
    console.println("Page 1 has a width of " + width + " and a height of " + height);

  • Computer was shut down and need to know how to retrieve important information from open tab that isn't showing in history and wasn't bookmarked

    My computer was shut down with live work still needing to be completed within an open tab of Firefox. The site that I was working from had not been bookmarked and a saved link back to the site had not been done yet either. After starting my laptop back up and opening Firefox, I don't have anything in the history taking me back to the site. Can I get back to that session at all and if so how? Or how do I search?

    You would really have to ask the app developer if there is a way to export the data.
    As for adding a printer, you would need to purchase an AirPrint compatible printer and connect it to your wireless network.
    By the way, your holiday letter/rant/Idon't even know what to call it... is completely inappropriate for these forums.

  • I want to give someone my ipod but need delete my songs and any account information on it, how do you do this?

    I would like to give my ipod to someone and want to delete my data from the pod, how do you do this

    Connect the Nano to iTunes and restore it to factory settings.  This process erases all content/media from the Nano and sets it back to its original default settings. See here for instructions on restoring it to factory settings.
    Restoring iPod to factory settings
    B-rock

  • I want to read and use some informations from a excel file

    To test a graphic, i need to take a lot of numbers  in a excel file...
    but i dont know how to open and read this file but i dont know how...
    thx for your help...

    Hello,
    You can open, read, and even write excel files (if you write a file with extension .xls, windows will interpret it as an excel file be default) using the File I/O VIs in LabVIEW.  To extract the data, all you really need to realize is that spreadsheets programs like excel store data with the following basic rules:
    1. the entire spreadsheet is really just a large string - to read them, you just have to know the data you read is stored based on rules 2 and 3; to write them you just have to conform to rules 2 and 3.
    2. cells in a given row are delimited by tabs (usually by default) and sometimes commas (but usually only if you set this specifically in the spreadsheet program)
    3. rows are delimited by end of line characters, which will usually be one carriage return and one linefeed character in that order on windows.
    In fact, for writing spreadsheet strings (which can be opened in excel) from LabVIEW, check out the Array to Spreadsheet String and Spreadsheet String to Array functions in the String Palette.  That is, if you imagine the excel spreadsheet as a 2D array, those functions will essentially convert between the large string, and a 2D array in LabVIEW containing the values you would see in excel's corresponding cells.
    I have attached a program that will use the array to spreadsheet string function to write an excel file containing those values - it will be named test.xls and should be on your C: drive directly.  A good exercise to get started would be to write a VI using similar (some inverse) functions to read that string, and convert it back to an array.
    I hope this helps!
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear
    Attachments:
    Simple Write Spreadsheet String to Excel File.vi ‏25 KB

  • Anyone have an updated list of files needed to delete mackeeper and all other popups from your iMac

    Anyone have an updated lists of files to delete that cause mackeeper, bizrate, tlbsearch ads and all other popups?

    There is no need to download anything to solve this problem.
    You may have installed the "VSearch" trojan. Remove it as follows.
    Malware is always changing to get around the defenses against it. These instructions are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data before proceeding.
    Step 1
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot," "Trovi," or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Reset the home page and default search engine in all the browsers, if it was changed.
    Step 2
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "com.vsearch.agent.plist" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    The problem may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the Internet criminal behind VSearch has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing has not done so, even though it's aware of the problem. This failure of oversight has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • I have a 5th generation IPod touch, and today when i turned it on everything was fine. Then suddenly the screen froze and changed colors and lines started coming from the sides of the Ipod until the reached the middle. Now it won't turn back on.

    I tried restarting it by using just the power on button at first. Once that failed I held the power and home buttom for ten sconds and that didn't work. I then plugged in the ipod to see if it needed charged, and repeated the same two steps at before but to no avail. Finally, I opened up itunes and plugged my ipod in, but nothing came up. I then tried to turn it on for a third time, but nothing happened. I just confused on what happened. Could it be a bad display, or did the whole thing just die on me? Help please.  

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

Maybe you are looking for

  • How can I convert all .fm files into .mif files at one go?

    I need to translate a FM12 book that contains 32 chapters = 32 .fm files. Is there any possibility to save all 32 files as .mif files at one go? And: why does FM12 not remember the last directory I used for saving? Thx for your answers Sabine

  • A plea to Adobe: Make Homesite open source

    I know this won't go anywhere, but I need to ask anyway. Please please please, make Homesite open source. I have tried other editors over the years but I come back to HS every time. Macromedia ignored Homesite when they bought Allaire, now Adobe is i

  • Parameters are not created for M0001 feature

    Hi Friends, During Hiring activity in IT0002 after entering all the fields, while saving i got a warning message - parameters are not created in M0001 feature. Please give me your views & answers why i got this message. Edited by: sharada vemula on A

  • Deploying Office 365 Pro Plus via SCCM

    Hi I am trying to deploy Office 365 Pro Plus via SCCM, I followed this process https://gallery.technet.microsoft.com/How-To-Deploying-Office-70e8b1eb#content , we don't use the application catalogue but I made the application available to be run via

  • Youtube seems to load multiple times, audio works, no video

    Youtube works on IE. In Firefox it seems to load multiple copies. The time bar at the bottom has many segments. The audio works, but no video. I disabled Flashblock, does not help.