Update Device Name in BAT

Hi All,
I've been struggling with this BAT problem for some time.
I'm trying to update the Name for a phone (eg: CSF), device profile, Trunk device, etc, using BAT. The obvious problem with this using BAT, is that I'm trying to update the field which identifies the object you are trying to update. A bit of a tail biter.
To explain this in a different way, this would not a problem with SQL, of course, as you can do something like the following:
UPDATE device SET name='newName' WHERE name='oldName'
I was wondering if anyone has had luck achieving this within BAT? If the functionality is there imagine it would be through the use of a second 'Device Name' field or something of the likes.
Any help would be greatly appreciated.
Regards, Mike

You can interface with the CUCM Database utilizing SQL statements.  There are several blogs on the subject. The command would be run sql update... 
Or you if wanted to use BAT export all details, change the device name, Insert all details, delete out the old records. 

Similar Messages

  • How do I change/update my device name?

    I went under Devices and there is no option to update/change my device name.  Help appreciated!

    Thank you!!!!

  • Changed (renamed) device name in Intune app on iOS device. This change is not showing up in the admin portal, even after 24 hours

    Hi,
    I am trying to update a mobile devices names.  Initially, I changed the iOS device name (Settings->General->About->Name) and then I also renamed the device in the Intune app on the device.  Neither of these changes are propagating through
    to the admin portal, even after 24 hours.  Is there anything else I should be doing for this to work?
    Thanks in advance for your help.
    Simon.

    I'm seeing the same thing as Simon, I changed the iOS device name in both places on an iOS device and the name in the Intune console is still "iPhone" which is really unhelpful as I'm sure you can imagine.  Is there some other place
    that we should be going to rename devices so they are more easily identifiable in the Intune console?
    Thanks!

  • Microsoft Windows Network: The local device name is already in use.

    I posted in : http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/disconnected-network-drive-error-as-follows-an/9a877c38-5e86-4c34-84c2-427a965577c6?page=2
    Error:
    "An error occurred while reconnecting drive letter to \\network server\share folder.
    Microsoft Windows Network: The local device name is already in use.
    This connection has not been restored."
    1) A workstation is running Windows 7
    2) The user has a drive letter mapped to a UNC
    3) The connection is interrupted at some point and then restored
    4) Upon attempting to access the mapped network drive, the user gets the error about the letter being
    already in use.
    Extremely disappointed that some of the posts marked as answers were obviously not, shows how poor the moderators here are.
    My latest results clearly point to a Windows 7 client problem:
    I received the error.
    Had run nslookup so had a prompt open.
    ran dir z:    worked. went to Windows Explorer, same error.
    ran dir z:\sharename    worked. went to Windows Explorer, same error.
    copy con z: test.txt then type test.txt; could create and retrieve file. Went and clicked on mapped drive in Windows explorer and received same error.
    Obviously(?) not a Server or Networking problem. Ran Malwarebytes from bootable CD (client doesn't believe in AV). Didn't happen with USB flash drive.
    Any other ideas?
    I already have tried:
    support.microsoft.com/kb/317021
    http://support.microsoft.com/kb/303339
    ftp://ftp.microsoft.com/misc1/BUSSYS/WINNT/KB/Q194/8/29.TXT
    http://support.microsoft.com/kb/273151 Exchange issue
    http://support.microsoft.com/kb/2663418   hotfix for win7
    http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/thread/78276f1d-f7f9-416b-b903-
    b9a18ecba67b/
    http://support.microsoft.com/kb/297684
    Ran  MicrosoftFixit50494.msi
    net use z: \\SERVER\ShareFiles /persistent:yes
    http://support.microsoft.com/kb/2663418
    http://support.microsoft.com/kb/297684#LetMeFixItMyselfAlways
    http://support.microsoft.com/gp/gp_fixit_windows/en-us
    http://support.microsoft.com/mats/windows_battery_power_settings
    http://support.microsoft.com/kb/979470/en-us ???
    http://support.microsoft.com/kb/947235/en-us
    http://msdn.microsoft.com/en-us/library/cc232765.aspx
    http://support.microsoft.com/kb/942817
    Q939820? server 2003 sp3 Fix226580  341940_ENU_i386_zip.exe
    http://support.microsoft.com/kb/983620
    http://support.microsoft.com/kb/297684
    net config server /autodisconnect:-1
    KB Article Number(s): 2663418 Hotfix
    http://support.microsoft.com/kb/983620
    http://answers.microsoft.com/en-us/feed/t/9a877c38-5e86-4c34-84c2-427a965577c6
    http://answers.microsoft.com/en-us/feed/t/9a877c38-5e86-4c34-84c2-427a965577c6
    net use z: \\SERVER\1_CADFiles /persistent:yes SBS2011 Server with current service packs
    Win7 Pro users with current Windows Update status
    http://support.microsoft.com/kb/2663418
    http://support.microsoft.com/kb/297684#LetMeFixItMyselfAlways
    http://support.microsoft.com/gp/gp_fixit_windows/en-us
    http://support.microsoft.com/mats/windows_battery_power_settings
    http://support.microsoft.com/kb/979470/en-us ???
    http://support.microsoft.com/kb/947235/en-us
    http://msdn.microsoft.com/en-us/library/cc232765.aspx
    http://support.microsoft.com/kb/942817
    netsh winsock reset catalog
    netsh int ip reset reset.log
    Q811259
    Q299357
    Q937624
    secpol.msc >> Lanman authentication level  "send LM and NTLM"
    net config server /autodisconnect:-1
    changed server video to "standard vga"
    disabled power save for NIC
    Cannot disable Intell Raid software
    http://technet.microsoft.com/en-us/library/cc780360%28v=WS.10%29.aspx   restart
    http://technet.microsoft.com/en-us/library/bb726989.aspx browse list
    Q138365
    net config server /autodisconnect:-1
    two additional registry keys are added:
    anndelta: REG_DWORD: 0xbb8
    announce: REG_DWORD: 0xf0
    netsh winsock reset
    netsh interface ipv4 reset
    netsh interface ipv6 reset
    ipconfig /flushdns  
    shutdown /r
    sfc /scannow
    http://support.microsoft.com/kb/929833
     http://social.answers.microsoft.com/Forums/en-US/w7network/thread/306dd446-7630-4d5b-8aa0-
    40fb839b293a     dns issue
    http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/i-have-this-problem-on-three-
    win7-x64-systems-two/d44ed544-65f5-43a7-9e17-d2d10085c765?page=2
    Leftover Homegroup components or Firewall?
    disable DNS Client = dnscache
    http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/service-control-manager-reports-
    that-a-timeout/e2e76ae5-ed09-4685-af86-5f8c2cd120bf     Norton Internet Security uninstall issues
    http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/windows-7-no-dns-or-no-network
    -after-resume-wake/c1253ab0-4793-449e-8975-a900ce7dec4f
    NSLOOKUP
    KB Article Number(s): 983620 Hotfix

    This is usually because the drive letter assigned to the network share is taken by something else. Maybe, by a removable drive.
    Moderators and other answerers do their best to help specific cases, but everyone has their own situation.  Apply common sense to the replies you find in the forums.
    When you typed dir z:  - is Z: the drive letter you wanted for this share, or it was automatically assigned?
    -- pa
    Alternatively you could try using common sense when you post, as well as taking the time to read the entire issue post so that you can avoid showing both your ignorance and arrogance (arrogance without any competency to back it I might add).
    Suggesting that it might be "another drive" that took over the mapping shows your lack of reading comprehension and is unhelpful.   Please take the time to, once again, read first.
    Lastly moderators here generally show little technical skill beyond entering search words into a knowledge-base of articles and then applying the results incorrectly further exacerbating the situation for the customer.

  • How to change device name in Windows Explorer

    Hi Guys
    I need some help please, my Ipad 2 was updated on another friends machine. now when i plug it into my PC windows picks it up as his device name even though the devine name is corect in iTunes. Can anybody please help with correcting this?
    Thanks

    I have the same problem, and I can say none of these methods work.
    I have the device named properly in iTunes (it's the same name I can see in settings -> general -> about), however the original name given to the device is still seen in Windows Explorer.
    Apparently it is some unexpected "feature" Apple has forgotten to take care of.
    Let's hope they change it in the next iOS update...

  • Device name on MI 7.1 SP9

    Hi experts,
    We updated our MI version to 7.1 SP9, or prior version was 7.1 SP8.
    On mobile client there is no field to register de Device name like the prior version, where do I register the device name on client?
    Another question, where can I find 7.1 SP9 release notes?
    Tanks,
    Gabriela

    Hi,
    Please see that you following these steps:
    a ) On a fresh installed client, create user same to DOE user
    b) Login, goto to ManageDevice-> Settings->Connection Settings from the main menu "System". Enter the system details (host,port etx).
    c) AT DOE, while creation of DOE the DEVICE_NAME needs to set as a mandatory parameter.
    d) Perform first sync, this will fail and the all mandatory parameters req info will flow down.
    e) Go to screen in step b) all the mandatory parameters required iff includin device name will have to be provided now.
    f) Save n perform sync again. This time the device will registered.
    g) Go to Manage Device->Information->Device Information to see the details on the device.
    Some documentations:-
    Please follow the below given link to know more about registration
    <http://help.sap.com/saphelp_nwmobile71/helpdata/EN/6a/2d817fa065463084bdf55d8f60501c/frameset.htm>
    Identifying Device Attributes for Registration
    <http://help.sap.com/saphelp_nwmobile71/helpdata/EN/45/64526346711debe10000000a155369/frameset.htm>
    Make sure that all the mandatory parameters for registration are filled correctly.
    Regards,
    Nipun
    Edited by: Nipun Dev on Dec 3, 2009 10:43 AM

  • Set or Change Device Name in Profile Manager

    Hello,
    Is it possible to set or change the device name of an enrolled device using profile manager?
    I notice WGMs old 'Set computer name to computer record name' is still there under Login Window options, but I couldn't find away to actually change the record name.
    Am I missing something obvious?

    The only way I have found to change the device name in Profile Manager is to change it on the device itself, then wait for the updated info to reach PM.
    The option to "set the computer name to computer record name" will set the computer name to the name of a computer record that matches in Open Directory (based on MAC). This option would allow you to change the device name in Profile Manager in a round about way... change the computer record name in OD, wait for the change to make it's way to the computer, then back up to the Profile Manager. In my experience, this doesn't take too long.

  • LMS 4.2 Fault Monitor - Device Name and Frequency of Events

    Hi all,
    I've just installed LMS 4.2, like it a lot so far.  But I'm running into a few problems, and I'm hoping someone out here has a suggestion. 
    In the Fault Monitor, the Device Name column shows the device's IP address rather than the host name.  We need for it to show the host name, for ease of troubleshooting; most folks don't have the IP addresses memorized.    Likewise, when an email is sent out for an event, the managed device field also shows up as the device's IP address.
    The devices were all discovered with their IP addresses rather than a host name...should LMS have automatically found their host names?  Regardless, I manually updated all of the device's host names, yet they still display as an IP address in the fault monitor. 
    Also, it appears I need to figure out some way to throttle alerts.  One particular device will report an event (ie a temperature out of range) dozens of times in a polling period...several per second, even though it's the same alert.  Any suggestions on where I can throttle this?  My inbox is exploding.                  
    If anyone has any ideas, I would appreciate it!
    Jen

    I am having the IP vs. device name issue as well. The funny thing is if you hover over the IP of the device in Fault Monitor, you can see the device name listed. I was on a conference call with Cisco recently and pointed this out. One of the reps said the faults and alerts showing IP address issue should be fixed in version 4.2.3, but I don't know if he was basing this on first-hand knowledge or was just assuming. Does anyone know if this is the case?
    As for throttling alerts. I had a false positive alert from a device that I put in a custom fault group and changed the threshold on to keep them from firing. You probably have already resolved this issue, but I didn't see a resolution listed here. You would have to determine if raising a threshold for a device is adequate for your situation.
    Thank you,
    Mark

  • How do I change the iPod Device Name?

    I missed the field to change my ipod's "name" - it assumed the computer name as the device name. How can I update the device name?
    Thanks!

    Thanks for the prompt reply! And of course it was something as simple as that...

  • An error occurred while reconnecting...The local device name is already in use. The connection has not been restored.

    Hi, 
    So I have 2 PC's and I sign with the same credentials. I have a hard drive which I decided to share. In the setting I created permissions for the user credentials of both vcomputers and have full control access.
    Basically, everytime I open my laptop after and it wakes up and try to connect to the network drive, I get the error
    An error occurred while reconnecting...The local device name is already in use. The connection has not been restored.
    I need to stay disconnecting all drives and reconnecting them. WHen I restart my PC the network drives restore perfectly. I don't understand why it doesnt work on wake.
    Any ideas?

    It seems that when a machine goes into sleep, the network connection is disconnected, naturally, but the  machine still has the connection mapped. If  you run the 'net use' you will see the connection. When you try to reconnect it, it sees the
    connection and gives you the error.
    I do not know if you can directly modify this behavior. However, as a work around, you could build a simple script like:
    net use 'connection' /delete ( write it into a text file and save it has a .bat file.)
    Use scheduled tasks to have the script run right before the machine goes into sleep. You can do so by setting the task to RUN ON Event: event 42 for the KERNEL_POWER source.
    You can see http://superuser.com/questions/679195/run-a-script-when-hibernating-windows-8 for more info .

  • Inserting User Device Profiles via BAT

    I have been trying to insert User Device profiles using the BAT utility. When I select the Insert User Device Profiles Specific Details, select the file, and run the job it fails. However when I select the "Insert User Device Profiles All Details" the spreadsheet I chose is not uploaded but all new profiles are created and added. I am very confused because I am including all the details that are oulined as required on the "specific details" file I am trying to insert and it fails every time with a "device name" error but when I select the "all devices" the same uploaded file works fine?? Any advice/feedback would be very much appreciated.
    Thank you!

    Hey Vicky,
    I just spent some time browsing the numerous Bugs related to BAT in the CUCM 5.1(x) versions. There are well over 250 Bugs :( I'm guessing that you may be hitting this one that does not identify * Mandatory Fields properly (like Device Name);
    CSCsj74131 Bug Details
    BAT.xlt UDP work sheet need changes.
    Symptom:
    BAT.xlt UDP work sheet need changes
    Conditions:
    Steps to Reproduce:
    1. Download BAT.xlt.
    2. Open it and goto UDP work sheet.
    3. You could find "Device Profile name " as "optional"
    It should be mandatory.
    Also create file format for UDP missing "service".
    work Around:
    none
    Status
    Fixed
    Severity
    4 - minor
    Last Modified
    Any Time
    Product
    Cisco Unified Communications Manager (CallManager)
    Technology
    1st Found-In
    5.1(2.9901.30)
    Fixed-In
    Release-Pending
    Hope this helps! Just a guess here (sorry),
    Rob

  • Unknown client or device name

    Hi Experts,
    I have a standalone AP 1242AG with IOS Version 12.4(21a)JA1 configured with WPA v2 and AES encryption and would like see Client Names when i use the CLI command "#sh dot11 associations client".
    Currently my command output is only showing Device = Unknown and Name = Blank, below output:
    P#sh dot11 associations client
    802.11 Client Stations on Dot11Radio0:
    SSID [CasaRanch] :
    MAC Address    IP address      Device        Name            Parent         State
    001f.e170.6eed xxx.xxx.xx.xx  unknown       -               self           Assoc
    4860.bcb9.d787 xxx.xxx.xx.xx unknown       -               self           Assoc
    Is possible change this behavior to show Netbios client name at least ???
    What commands are required or configuration change ???
    Thank in advance.,.,.

    Shashidhar,
    Thanks for your help! With your tips, I finally got it to work. For anyone else trying to modify report names based on user input after the sequential process model sets the file name path I will re tell what I did:
    Edit the Ni_RerportGenerator.seq plugin found in C:\Program Files (x86)\National Instruments\TestStand 2014\Components\Models\ModelPlugins\
    You go into this file and add the step higlighted in Blue at that same location. Please see the expression I typed in the expression box. Setting Parameters.ReportOptions.NewFileNameForEachUUTStatus to true forces re-evaluation of the report name at the end of the sequentialmodel.seq.
    Then you add a FileGlobal in the sequenatialmodel.seq. I called my FileGlobal ReportFileName
    Then I added an expression in my test sequence that modified the the new FileGlobal I created:
    Finally I updated the report options (Go to Cofigure>Report Options > Report File Pathname and under File/Directory Options select "Specify Report File Path by Expression" and I entered my expression. It appears that you can disregard the evaluated report file path error (box below) because your pathname won't be generated until run-time.
    This worked well for me hopefully it will for others. 
    Thanks,
    Marco

  • Profile manager enrolled device names

    I have been playing around with profile manger on 10.7.3 enrolling and iPhone and a couple of iPads.
    The iPhone enrolls correctly and the name in the devices tab shows the device name "xxx's iphone" and I can see the information about the device including encryption, apps installed etc.
    Both iPads appear to enroll correctly however instead of showing "xxx's iPad" they show the device name of "New Device".  I even tried pre-enrolling the device using the serial number and UUID and gave the device a meaningful name, however when then enrolling the device it accepts the enrollment and promptly chnages the name from the meaningful name back to "New Device".
    I have tried this on both and iPad 2 and iPAd 3 running the latest IOS.
    I also notice that the jobs that communicate with the device to collect the device informantion never complete, where they do for the iPhone.
    I am sure this was working before the IOS 5.1 update.

    I would try demoting your Open Directory server from Master to Standalone in the Server Admin app - there's an assistant in Server Admin > Open Directory > Settings > General > click the change button.
    Once it's demoted to a standalone, restart.
    From there, don't create an OD Master again - go to Profile Manager in Server.app and run through the wizard again.  In the process, it will create an OD Master for you.
    Hope that helps,
    Chris

  • The number next to a device name in profile manager

    Hi all,
    We are still using Lion Server and yesterday I was pushing some new settings to our managed devices and I noticed some of the devices have a number next to the device name like this......
    What does it mean?

    The only way I have found to change the device name in Profile Manager is to change it on the device itself, then wait for the updated info to reach PM.
    The option to "set the computer name to computer record name" will set the computer name to the name of a computer record that matches in Open Directory (based on MAC). This option would allow you to change the device name in Profile Manager in a round about way... change the computer record name in OD, wait for the change to make it's way to the computer, then back up to the Profile Manager. In my experience, this doesn't take too long.

  • CUOM - How to add IP address with hostname (device name)

    Hello all,
    I have a quick question regarding CUOM(Operation Manager).
    How I could add devices' hostname to CUOM for monitoring?
    I could add IP address as below ,  if I only add IP address, then it looks NO "device name' field which I could add.
    Devices ->Device Management->Add  Devices
    Thank you for your help in advance.
    Howard

    It is resolved by updating host file on CUOM server.

Maybe you are looking for

  • Create GR using BBP_PD_CONF_CREATE

    Hi Experts I have a requirement in which I have to automatically create GR from PO. For this I have created an FM. In this FM I first call BBP_CF_ASSIGNMENT and then map the header structure(without the dummy guid as it gives error in the BBP_PD_CONF

  • Can I list/export more than 3-4 all-day events

    Hi: I need a way to list more than 4 all-day events in the monthly view. The three dots up above mean they will list in the daily/weekly view but this does me no good. I also wonder if you can export to .pdf more than 3 all-day events. Why is this no

  • Can I download the CC application without Photoshop

    My company has a license for Photoshop CC but only one person is using it. The rest of us use Photoshop CS6. I want to install the CC application on my Mac so I am aware when updates become available. Is this possible? And if so where do I get a copy

  • Invalidate navigation

    Hi, Situation: In our BSP framework to each generated page we add a piece of javascript wich will check the input value on specified inputfields. If the user fills in an exceptional amount we generate a popup (GetVBMessageBox) which warns him/her abo

  • What's the go with this latest update. Half my apps don't work and the iPad runs slower? How do I go back to the old operating system?

    What's the go with this latest update. Half my apps don't work and the iPad runs slower? How do I go back to the old operating system?