IP Conflict/Duplicate

Hi Guys,
Any suggestion on how to prevent, detect and contained IP conflicts/duplicats in Cisco switch network? Let us say I want to protect specific IP from assigning it to other host on the same vlan, is it possible?
Thanks in advance!
regards,
Gagamboy

Duplicate IP addresses should not be a problem even if you have hosts with statically configured IP addresses within the scope of the DHCP server.
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin-top:0cm;
mso-para-margin-right:0cm;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0cm;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
Any DHCP server should check if the IP address is available and not used before offering it to a host. This is done by pinging the IP address. If there is no answer the DHCP server proceeds and offer the IP address to the client.
By default, the IOS DHCP Server pings the address twice before assigning a particular address to a requesting client.
Normally this is enough but if you want to increase this you can use the following command:
Command
Purpose
Router(config)#   ip dhcp ping packets number
Specifies the   number of ping packets the DHCP Server sends to a pool address before   assigning the address to a requesting client. The default is two packets.   Setting the count argument to a value of 0 turns off DHCP Server ping   operation completely.
/André

Similar Messages

  • Auxiliary filename conflict - duplicate command

    Hi,
    We want to duplicate our production database (repos) from machine wmd-portal to auxiliary database (reposdup) of machine vmcdemo6.
    Following are the command and error message:
    Command:
    RMAN> duplicate target database to reposdup;
    Error message:
    RMAN-05001: auxiliary filename C:\IASINFRA\ORADATA\REPOS\UNDOTBS01.DBF conflicts
    with a file used by the target database
    init.ora of auxiliary instance contains the following lines:
    DB_FILE_NAME_CONVERT=(\\Wmd-portal\iasInfra\oradata\repos,\\vmcdev6\oracle\oradata\reposdup)
    LOG_FILE_NAME_CONVERT=("\\Wmd-portal\iasInfra\oradata\repos","\\vmcdev6\oracle\oradata\reposdup")
    Why are we getting a filename conflict?
    We started the database using the following command:
    sql> startup nomount pfile=c:\oracle\admin\reposdup\pfile\init.ora....
    Thanks,
    Karthik
    ps: RMAN executable of wmd-portal was used.

    Tedious work around is to use "set auxname ..." for each datafile and use "logfile clause" of duplicate command as below:
    duplicate target database to reposdup
    pfile='\\vmcdev6\oracle\admin\reposdup\pfile\init.ora' logfile GROUP 1('\\vmcdev\oracle\oradata\reposdup\redo01_1.f','\\vmcdev6\oracle\oradata\reposdup\redo01_2.f') size 200K,
    GROUP 2
    ('\\vmcdev6\oracle\oradata\reposdup\redo02_1.f','\\vmcdev6\oracle\oradata\reposdup\redo02_2.f') size 200K,
    GROUP 3
    ('\\vmcdev6\oracle\oradata\reposdup\redo03_1.f','\\vmcdev6\oracle\oradata\reposdup\redo03_2.f') size 200K reuse;
    Seems to work.
    I thought it was a precedence problem. However setting the auxname of each datafile to null doesn't work. Does anyone have a clue?
    I use RMAN 9.0
    Thanks,
    karthik

  • Font Book - duplicates & issues

    My first issue is to do with duplicated fonts - which ones to leave active and which to close (or remove?).
    First there is OSX - lots of lovely fonts, no problem.
    Then we install Classic - some fonts duplicated, what to do?
    Then we install applications - yet more duplicates arrive, which to turn off (or remove?).
    Then I start to put in my own fonts and the fun really begins - I use a lot of Helvetica Neue and Gill Sans, but much larger families than come with OSX. How do I resolve these duplicates? If I have to keep the original system fonts does this mean I will always have to use and output a mixture of system + my families for the same font? This would not be good practice.
    And now onto using Font Book...
    I've tried various things like resolving duplicates (which ones get resolved?) and turning off whole libraries but most things I do seem to undo themselves pretty soon and I'm back to square one. Can I turn off a whole collection, then turn a few fonts on from within it? Having done this, the collection shows grey/off but all the fonts seem to be on.
    All help very appreciated - please be gentle(!) - after years of DTP on OS9 I'm finding OSX really horrible. Many thanks all.
    G5 2ghz dual   Mac OS X (10.4.4)  

    Hi bogperson,
    First, read through my FAQ/tip on fonts in OS X that ScotMij has kindly linked to. That may help you understand where fonts are and where they are active from in OS X. It will also help you get fonts on your OS X system down to the minimum which goes a long ways in avoiding font conflicts.
    While Apple has brought Font Book a long ways in two or so years, it is still far behind the ease of use of third party font managers such as Suitcase Fusion and Font Agent Pro. Since you are in DTP and likely turn fonts on and off many times a week, you'd be much better off with one of these font managers.
    To use your (I'm assuming PostScript) versions of Helvetica, remove the .dfont versions from the /System/Library/Fonts/ folder. You'll need to enter your password to delete them. Then always keep your PS version active by placing them in the /Library/Fonts/ folder and just leaving them there. OS X requires Helvetica for some of its applications, but it doesn't have to be the supplied .dfont version.
    With the OS 9 (Classic) folder, there are some conflicts/duplicates that cannot be removed. And those are the four required fonts for OS 9, which are listed in my FAQ. All other fonts in the OS 9 /System Folder/Fonts/ folder can be removed. Don't be concerned that Font Book lists those four fonts as being in conflict with OS X's versions. Somehow, Apple made it work out so that they live peacefully together at the same time.
    Personally, I run my system exactly as listed in my FAQ. All other fonts I activate are through Suitcase Fusion. I have always preferred Suitcase since it activates fonts for both OS 9 and X without copying or moving them anywhere. The only exception are OS X's .dfonts, which OS 9 cannot read in any way.
    OS X is very daunting at first after years of OS 9 and earlier. There just seems to be so many files and folders. But after a while, it gets just as easy once you learn where things are. That, and you learn that the you never need to even look in the vast majority of folders.

  • Just installedLeopard-Helv&Neue conflict!

    I just installed Leopard and now at startup i get messages that Helvetica and Hevetica Neue 3 conflict!-I use fontbook only and when i try to disable the families for these fonts it says that theyre being used by the system and wont turn off! Whats going on! How do I fix this?! I need a simple answer please,ive seen some VERY long threads on this that dont give a definitive solution!

    If you've already checked for other possible conflicting duplicates as Kappy pointed out, then the only way for you to activate your necessary PostScript versions is to get Apple's .dfont versions out of the way. They only way to do that is to manually remove the two Apple supplied Helvetica fonts from two locations in the the System folder. Instructions are in section 4 of my article, Font Management in OS X.
    The link, or one of the links above directs you to my personal web site. While the information is free, it does ask for a contribution. As such, I am required by Apple's rules for these discussions to include the following disclaimer.
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • VERY upset with new Mac Pro

    I just spent over $4,000.00 for a brand new Mac Pro, 8-Core, Two 2.4GHz Quad-Core Intel Xeon “Westmere” processors.
    I'm still at the point where I may not be blaming this new computer 100%, but when you upgrade to this extent you expect everything to go faster. You certainly don't expect for things to take longer.
    I upgraded from a G5 (not exactly sure what model) running 10.4.11, couldn't go any higher.
    My biggest complaint is it takes LONGER to do things!!?? I feel like I'm back in 1999 or 2000. To open an Excel file takes, no kidding, 3-4 minutes. To open a Word file, about 3-4 minutes. I have the newest version of Office there is. Dreamweaver CS5 is slower than ever and jumpy, buggy, what ever word you wanna use. Sending files over to an external server takes 200-300% longer.
    I'm really not sure what is going on. Maybe a font conflict issue as I brought all my fonts over from old computer.
    Thanks for any advice.

    Sorry, and of course wish you had asked us first. And read through
    http://macperformanceguide.com/index.html - check "topics" there are 100+ with guides to buying, upgrade etc.
    One tip: Do a clean install on another drive
    Don't migrate applications, install them fresh
    make sure everything is current
    Your Mac boots by default and requires 64-bit drivers for 64-bit kernel mode
    The idea is more cores isn't faster, faster cores are, and even stock 2.8 4-core is a worthy system. Next choice: 3.2 4-core or sweetest of all is 3.33GHZ 6-core
    Add RAM to 6 x 4GB or 3 x 8GB for good measure.
    Avoid any plug-in or app that is PowerPC and needs to use Rosetta.
    http://discussions.apple.com/thread.jspa?threadID=435350
    Fonts have been known to conflict, duplicates, even corrupt.
    Of course hard to resist migrating. Or taking time, but G5 owners have had to redo everything and that does work.
    A test: do a clean install on another hard drive, do the updates, try that and see how well it goes.
    Keep boot drive to just OS + applications and mini-home folder
    2nd drive for media library, data
    3rd scratch, with a small 30GB Mac OS X just for repairs and emergency use
    Try a new user account.
    See if you are booting in 32-bit mode
    Repair your system with FSCK
    Do Safe Mode once
    Any cables, peripherals, out of date drivers for printers, external hard drives.
    Hard drives that were formatted by G5 using Apple Partition Map should be reformatted to GUID. All. If you brought your old G5 system drive over, move the files to a data drive and reformat. Don't leave the OS from G5 around.

  • Good Mobile Messaging Contacts not fully integrate...

    I have recently switched from a Treo 650 to a Nokia E61 with Goodlink software. Everything works perfectly apart from the Goodlink software is not in sync with incoming calls. I have found the following FAQ on the goodlink website http://www.good.com/faq/17803.html I am unable to find the option "Copy to Nokia contacts” feature within Good’s menu item to copy a Good contact to the native Nokia contacts database.." as suggested in FAQ 17803. Does anyone know how to do this please. If so could you be so kind to provide me with a step by step instructions on how i do this please. Thanks in advance John

    If you want to check that you have the latest ROM (at the time of writing this is only available to unbranded Nokia devices AFAIK) type *#0000# whilst in the standby screen. Mine appears as: "3.0633.09.04 20-11-06 RM-89 Nokia E61"
    The latest Good Client is v4.9.2.30. You can check this by hitting 'G' in any Good application to go to the launcher screen, then hit 'H' to go to preferences, then Click 'About...', version info will be at the top. If you don't have this then speak to your Good Administrator and get them to push it out to you).
    Some of the improvements you should see if you have the latest Good Mobile Messaging client and latest ROM are:
    CLI - Incoming calls are identified by contact if that contact is present in the Good Contacts database
    SMS - Incoming SMS/MMS messages identified by contact, Outgoing SMS/MMS can use contact name in 'to:' field and lookup will run against the Good Contacts database
    'Add to Contacts' adds to Good Contacts
    Selecting 'New Message'/'Create Message' in 'Messaging' give 'Good Messaging' as an option
    Home Screen - Native calendar is no longer displayed on the standby screen (this removes the erroneous 'No upcoming appointments' message)
    Local 'PC Suite' sync - This is disabled (just sync, not backup etc.) so as to avoid conflicts, duplicate contacts, etc. in Outlook
    As a side note, if you wish to display an inbox such as your SMS inbox on the active stanby screen you can do this by going to:
    (Nokia applications) Settings-->Phone-->Standby Mode-->Active Standby Mailbox. Choosing 'Inbox' sets the device to display your SMS messages on the Standby screen
    KittMessage Edited by damocles on 09-Jan-2007
    12:32 PM

  • Duplicate IP 0.0.0.0 Conflict on 802.1X Windows 7 Clients

    Hi,
    Ever since we implemented ISE 1.x with 802.1X authentication about two years ago, a number of our Windows 7 user stations occassionally report the well known error message: "duplicate ip 0.0.0.0" . Only wired stations are affected and it happens randomly but not frequently. On further investigation I found that the conflicting device mac address in every case is in fact the bia of the switch port that the Windows 7 PC client is connected. The characteristics of each case is consistent with the Cisco device tracking process as detailed in TAC Document ID: 116529, Updated: Oct 09, 2013
         http://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/8021x/116529-problemsolution-product-00.html
    We have Cisco C6500 access switches with IOS Ver: 12.2(33)SXJ1.The output of "Show ip device track all" command on the switches:
     access-switch#sh ip device track all
     IP Device Tracking = Enabled
     IP Device Tracking Probe Count = 3
     IP Device Tracking Probe Interval = 30
    I found that Cisco recommends three Solution options as follows:
     1. ip device tracking probe delay 10
     2. ip device tracking probe use-svi
     3. ip device tracking probe interval <seconds>
    However, the ios only shows track probe "count" and "interval" for change. There is no option to change the probe delay or use-svi in this IOS.
    What is your advice?
    Many thanks.
    Sankung

    You may have a look at this document if you have not seen it yet. It goes over device tracking a little more in detail and possible workarounds.
    http://tekdigest.blogspot.com/2013/11/windows-7-with-address-conflict-for-ip.html
    HTH
    luke

  • Hot Synch Manager Settings (Conflict Resolution​)

    Hello,
    I synch an office desktop and a home desktop with one Palm Z22.  I have had a lot of problems with duplicate appointments !  How should I configure the Hot Sync Manager settings?  I have the conduits (calendar, note pad, etc. ) set on "synchonize the files".  But when I click on "change" and then "settings", I'm brought to the option of "Conflict Resolution" and the choices are duplicate, Outlook wins, Handheld wins, or ignore.  Which should I choose if I want to avoid duplicate appointments ?
    Thank you.
    Nancy
    Post relates to: Zire
    This question was solved.
    View Solution.

    Yes, that's what I'd set it to.  You want the information to flow in only one direction on the slave computer.   Handheld --> computer.
    WyreNut
    Post relates to: Centro (AT&T)
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Single Click to Download File - Auto Rename if Conflicting File Exists in Downloads Folder

    I am trying to migrate from Safari. However, one of THE most important features that I simply can't do without, is the one click "Download Linked File" right click contextual menu item. This together with the auto-rename file action if a name conflict exists within the downloads folder, to which you are saving the file.
    Is there a way to do this in FF? All I can locate is"Save Link As" and then you have to either click to save or manually rename the file if there is a conflict. This is a real pain - I am happy to allow duplicate filenames for certain files.
    Hopefully someone can point me in the right direction - needs to be an absolute one click solution from contextual menu via an add on or something.
    Thanks

    As I recall, DownThemAll is able to do this. You first have to configure it to rename files when a file with the same name already exists. Then you should be able to use the context menu option labeled “DTA OneClick!” or some such.
    * https://addons.mozilla.org/firefox/addon/downthemall/

  • How do I delete duplicate songs from my iphone 4s

    I have tried re-syncing with my iTunes on my PC and it doesn't work.  Just says "syncing" and quickly goes through the steps, and everything on the iphone is still the same.  I can delete albums from my collection on my PC and they delete from the iphone, but the duplicate songs are not showing up on the PC and they are in the phone and I can't see any way to get rid of them without deleting the whole album from my collection.

    I just had this happen when I wanted "normalized" music on my iPhone because I am no satisfied with sound check.  All my songs still had different volumes. I turned off the cloud on my phone and added music with USB. I turned the cloud back on and I got the duplicate issue. Here is what I did to fix it:
    Turn off Match on phone
    Update match in iTunes from the "store" menu (see below for why this might be REALLY important.
    Connect phone
    Check "manually manage" in iTunes from the first tab when you click your phone in the left pane
    Open the "tree" for you iPhone in iTunes by clicking the triangle.
    Select "music" in that tree.
    Delete all the Music from the phone.
    Sync it.
    Eject phone.
    Turn match back on and download music via the iPhone but this takes a while.
    or I just reconnected it, then went to the music tab for the phone ticked the sync option and checked the playlists I wanted. I synced it. I then made sure "manually manage" was checked in first tab, then went into the left pane and deleted the playlists. This leaves the music on the iPhone but not the playlists. I ejected and turned on match on the phone. 
    My guess is there is a glitch where identical playlists from the cloud seemed to conflict with the ones physically on the phone and / or iTunes match could not match the physical files on the phone.  It seems my metadata for the files "seemed" different than the ones in the cloud.  Running RealPlay gain on my library is suspect for my issue so if something happened on your computer that changed the data about your files even without you knowing, this might be the issue. It is merely a hypothesis but it seems logical. Resyncing match then putting the newly understood match on the phone seems to resolve my issue.

  • Aperture keeps multiple duplicate images in the library file which do not show up in the app

    So, I recently had to merge two libraries which have some common images.  Although upon import Aperture asked me if I wanted to "Add or Merge" the libraries (I selected "merge", which wouldn't import duplicates), I wanted to confirm there were no duplicates in fact brought in.  I ran Duplicate Annihilator, which made a strange claim (about most photos, in fact): it showed a file as a duplicate which had no copies that I could find - searching for it by name revealed exactly one image.
    Curious, I searched inside the actual photo library.  Imagine my surprise when I found the following files
    ...Library/Masters/2007/Aug 10, 2007/IMG_0002/IMG_0002.JPG
    ...Library/Masters/2007/Aug 10, 2007/IMG_0002 (1)/IMG_0002.JPG
    ...Library/Masters/2007/Aug 10, 2007/IMG_0002/IMG_0002.JPG
    which are in fact *exactly* the same image.  Meanwhile, to reiterate, Aperture shows only ONE photo:
    IMG_0002.JPG
    Shocked, I investigated further.  In fact almost every single file which was in common between both libraries was "imported but not displayed", which explains why my two libraries of sizes 50GB + 50GB after merger = 100GB when, the two libraries in terms of images had 10k + 12k after merger = 14k images.
    Aperture imported all the photos into the new library.  But it just opted not to use half of them.
    So, now I have a bloated-by-2x library, and of course the frustration with Aperture having made such an insane, bone-headed move.  Those files are essentially dead weight which will follow the library around for all eternity.
    1) Why?
    2) How to fix?
    thanks!

    I would take  a step back here before going further.  William's suggestion might very well clean up the library but something obviously did not go right and to start mucking about in the library might make things worst.
    For starters I'm surprised to see the folder structure you showed in your first post. Aperture stores managed masters (originals) by import date and time. The structure (in all libraries I've ever seen) looks like:
    So something seems wrong with your master folder.
    Also the three folders you showed the first and third are identical ( the middle one has the (1) added to which is how the OS handles duplicates in a folder) so this shouldn't even be possible, those folders should not be there.
    I'm wondering if this is something left over from your using Duplicate Annihlator. Do you have a copy of the library before you ran the merge and used DA on it? Would be interested to see what the master folder looks like.
    Finally when you ran the merge which library did you tell Aperture to use as the master, the one that was used to resolve conflicts?
    Again William's suggestion might be all you need to do but it would be good to figure out want went wrong before proceeding.
    regards
    Message was edited by: Frank Caggiano - A better first step might be to run the Aperture first aid tools, repairing and possibly rebuilding the library.

  • Duplicate calendar entries on iPhone, but not in iCal (NOT using mobile.me)

    Hi,
    I've had a problem for a while (since iOS 3) where I get duplicate events on the iPhone (3GS and 4). It seems to happen for events that have been edited/deleted - they are not edited on the phone, rather a duplicate is made. It seems as if what is supposed to happen is iTunes deletes the old one, then creates a new one, only the old one is not being deleted. This is very annoying, especially for recurring events that get edited several times!
    I have found several posts about duplicate contacts and calendar entries but they all seem to be pointing to a conflict with mobile.me which I do not use. This is a simple sync between iCal and iPhone using iTunes.
    Does anyone know what could be causing this?

    I used to have this issue on my original iPhone (the 2G from 2007). You have to reset your sync data. This should help you; http://support.apple.com/kb/TS1627?viewlocale=en_US BUT don't shoot the messenger on this as I did a quick Google search.

  • Error while duplicate database for standby

    Hello Guys,
    Both of my database are 10gR2 and Linux is the operating system.
    I am trying to create a standby database for my production database.
    I have matched the directory structure of primary and standby database and there is no conflict. Directory permissions are also set.
    After taking the rman backup from production database when i connect auxiliary database from production. I run this command to duplicate database and create standby database.
    rman
    set until sequence XXXX;
    duplicate target database for standby dorecover nofilenamecheck;
    I get this error:
    executing Memory Script
    executing command: SET until clause
    Starting restore at 04-JUN-11
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backupset restore
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: reading from backup piece /tmp/backup_files/standby_control_1jme2far_1_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 06/04/2011 21:00:37
    RMAN-03015: error occurred in stored script Memory Script
    ORA-19870: error reading backup piece /tmp/backup_files/standby_control_1jme2far_1_1
    ORA-01565: error in identifying file '/u01/app/oracle/product/10.2.0/db_1/dbs/spfileORCL.ora'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    */tmp/backup_files/standby_control_1jme2far_1_1 file exists*
    * spfileORCL.ora* exists on both servers in same directory and same path.
    Can you please suggest where is the problem?
    Thank you so much.
    Imran

    ORA-19870: error reading backup piece /tmp/backup_files/standby_control_1jme2far_1_1
    ORA-01565: error in identifying file '/u01/app/oracle/product/10.2.0/db_1/dbs/spfileORCL.ora'
    ORA-27037: unable to obtain file statusLinux-x86_64 Error: 2: No such file or directory
    Might the backup piece not exist or file is unae to read at this time. Can you check is this physically exist Or not?
    And preferred to take new fresh backup and perform duplicate

  • Check for duplicate record in SQL database before doing INSERT

    Hey guys,
           This is part powershell app doing a SQL insert. BUt my question really relates to the SQL insert. I need to do a check of the database PRIOR to doing the insert to check for duplicate records and if it exists then that record needs
    to be overwritten. I'm not sure how to accomplish this task. My back end is a SQL 2000 Server. I'm piping the data into my insert statement from a powershell FileSystemWatcher app. In my scenario here if the file dumped into a directory starts with I it gets
    written to a SQL database otherwise it gets written to an Access Table. I know silly, but thats the environment im in. haha.
    Any help is appreciated.
    Thanks in Advance
    Rich T.
    #### DEFINE WATCH FOLDERS AND DEFAULT FILE EXTENSION TO WATCH FOR ####
                $cofa_folder = '\\cpsfs001\Data_pvs\TestCofA'
                $bulk_folder = '\\cpsfs001\PVS\Subsidiary\Nolwood\McWood\POD'
                $filter = '*.tif'
                $cofa = New-Object IO.FileSystemWatcher $cofa_folder, $filter -Property @{ IncludeSubdirectories = $false; EnableRaisingEvents= $true; NotifyFilter = [IO.NotifyFilters]'FileName, LastWrite' }
                $bulk = New-Object IO.FileSystemWatcher $bulk_folder, $filter -Property @{ IncludeSubdirectories = $false; EnableRaisingEvents= $true; NotifyFilter = [IO.NotifyFilters]'FileName, LastWrite' }
    #### CERTIFICATE OF ANALYSIS AND PACKAGE SHIPPER PROCESSING ####
                Register-ObjectEvent $cofa Created -SourceIdentifier COFA/PACKAGE -Action {
           $name = $Event.SourceEventArgs.Name
           $changeType = $Event.SourceEventArgs.ChangeType
           $timeStamp = $Event.TimeGenerated
    #### CERTIFICATE OF ANALYSIS PROCESS BEGINS ####
                $test=$name.StartsWith("I")
         if ($test -eq $true) {
                $pos = $name.IndexOf(".")
           $left=$name.substring(0,$pos)
           $pos = $left.IndexOf("L")
           $tempItem=$left.substring(0,$pos)
           $lot = $left.Substring($pos + 1)
           $item=$tempItem.Substring(1)
                Write-Host "in_item_key $item in_lot_key $lot imgfilename $name in_cofa_crtdt $timestamp"  -fore green
                Out-File -FilePath c:\OutputLogs\CofA.csv -Append -InputObject "in_item_key $item in_lot_key $lot imgfilename $name in_cofa_crtdt $timestamp"
                start-sleep -s 5
                $conn = New-Object System.Data.SqlClient.SqlConnection("Data Source=PVSNTDB33; Initial Catalog=adagecopy_daily; Integrated Security=TRUE")
                $conn.Open()
                $insert_stmt = "INSERT INTO in_cofa_pvs (in_item_key, in_lot_key, imgfileName, in_cofa_crtdt) VALUES ('$item','$lot','$name','$timestamp')"
                $cmd = $conn.CreateCommand()
                $cmd.CommandText = $insert_stmt
                $cmd.ExecuteNonQuery()
                $conn.Close()
    #### PACKAGE SHIPPER PROCESS BEGINS ####
              elseif ($test -eq $false) {
                $pos = $name.IndexOf(".")
           $left=$name.substring(0,$pos)
           $pos = $left.IndexOf("O")
           $tempItem=$left.substring(0,$pos)
           $order = $left.Substring($pos + 1)
           $shipid=$tempItem.Substring(1)
                Write-Host "so_hdr_key $order so_ship_key $shipid imgfilename $name in_cofa_crtdt $timestamp"  -fore green
                Out-File -FilePath c:\OutputLogs\PackageShipper.csv -Append -InputObject "so_hdr_key $order so_ship_key $shipid imgfilename $name in_cofa_crtdt $timestamp"
    Rich Thompson

    Hi
    Since SQL Server 2000 has been out of support, I recommend you to upgrade the SQL Server 2000 to a higher version, such as SQL Server 2005 or SQL Server 2008.
    According to your description, you can try the following methods to check duplicate record in SQL Server.
    1. You can use
    RAISERROR to check the duplicate record, if exists then RAISERROR unless insert accordingly, code block is given below:
    IF EXISTS (SELECT 1 FROM TableName AS t
    WHERE t.Column1 = @ Column1
    AND t.Column2 = @ Column2)
    BEGIN
    RAISERROR(‘Duplicate records’,18,1)
    END
    ELSE
    BEGIN
    INSERT INTO TableName (Column1, Column2, Column3)
    SELECT @ Column1, @ Column2, @ Column3
    END
    2. Also you can create UNIQUE INDEX or UNIQUE CONSTRAINT on the column of a table, when you try to INSERT a value that conflicts with the INDEX/CONSTRAINT, an exception will be thrown. 
    Add the unique index:
    CREATE UNIQUE INDEX Unique_Index_name ON TableName(ColumnName)
    Add the unique constraint:
    ALTER TABLE TableName
    ADD CONSTRAINT Unique_Contraint_Name
    UNIQUE (ColumnName)
    Thanks
    Lydia Zhang

  • SOLUTION: iCal calendar duplicates created by iCloud

    Two weeks after I migrated to Lion, I stopped syncing my iPad and iPhone through iTunes and turned on iCloud.  I had 15 years of calendar data, and after the iCloud syncing, most of the entries were duplicated or even triplicated.  It took me 5 days and about 5 hours with Apple tier 2 advisors to resolve the problem.  The support communities had useful info, but it was scattered around.  I am consolidating the useful stuff in this posting so that it may help others.
    1.  The important thing to understand about iCloud is that it considers itself the "master repository".  Its primary purpose is to backup your data, but it cannot distinguish your data if it originates from multiple sources.  My 3 devices (mac, iPad, iPhone) synced fine via iTunes.  But when I connected the 3 devices to iCloud, iCloud did not continue from where iTunes left off.  Instead, the calendars on the 3 devices were Merged in iCloud, resulting in  duplicates.  However, many repeating events (events that spanned multiple days) were not duplicated.
    2.  At this point, your calendar is corrupted.  Don't try to fix a calendar while you are connected to iCloud (see why below).  Your best choice is to delete the calendar from all platforms and then restore your pre-iCloud calendar from your archive or from Time Machine.  First, disconnect your calendar on ALL devices (Apple->Preferences->iCloud->uncheck the calendar).  This will delete calendar from those devices.  Then go into iCloud and delete the calendar there (click the Edit button at the top of the calendar list and then click the minus button). 
    3.  Restore your pre-iCloud calendar to your mac.  Because this is pre-iCloud, all your calendars should be under the "On my Mac" section.  Go into Apple->Preferences->iCloud->check the calendar.  iCloud will start syncing immediately and your iCal will say "iCal - Updating" in the title bar.  When it stops Updating, check your data.  You will see that all of your calendars in the Mac are now in the iCloud section.
    4.  Add a test event and see how it updates on iCloud.  Now go to your iPad and iPhone.  If you did step 2 correctly, both of their calendars should be empty.  Turn iCloud back on on those devices through Preferences, and the data will sync to your devices.  By default, the mobile devices only sync I think 2 weeks of data.  I discovered that even tho I could get 15 years of data to sync to my iPad, the iPad could not display it.  So I am going to have to tolerate having only a short period of data on my mobile devices and keep the whole archive only on my mac.
    TIPS I LEARNED
    Backup your calendar and address book BEFORE you go to iCloud.  Use the File->Export menus to export an archive of the whole calendar (.icbu) or whole address book (.abbu). 
    In addition, you might want to export each of your calendars and address book groups as individual .ics files and .vcf files.  This way, if you need to combine calendars, you can simply import a .ics file into an existing calendar in iCal.
    Why can't you delete duplicates while you are connected to iCloud?  I tried to do that, and just when I got close to the very end, iCloud seemed to get confused, and then it suddenly put all the duplicates back.  Several hours wasted.
    If you delete the calendar from iCloud and then try to restore it to your mac, it is very important to disconnect iCloud first.  Otherwise, iCloud syncs the deletion back to the mac and deletes the calendar you just restored.  Just remember, everytime you disconnect from iCloud, it deletes the calendar on your device.  So the sequence must be:  disconnect iCloud first, and THEN restore. When you turn iCloud back on, iCloud sees this as a whole new calendar.
    I was used to the replication idea of Lotus Notes, where the newest time stamp determined which event to keep in a sync conflict.  iCloud does not work that way.  It doesn't use timestamps and has no idea of latest event.  It just merges everything.  When you first turn iCloud on, if it asks you if you want to merge your Address Book, realize that iCloud will merge at the field level.  So for a contact, if you made changes in work phone on two devices, that contact will now have 2 work phone fields.
    How to restore a Lion calendar from Time Machine:  In Finder, go to the Go menu.  Press the option key, and Library shows up in the dropdown menu.  Select Library and then open the Calendars folder.  Copy everything in it to a safe place and then delete the originals.  Now, open Time Machine, and it will navigate to that hidden folder.  Restore everything in the Calendars folder.
    How to restore a Snow Leopard calendar from Time Machine:  If you have since migrated to Lion, use the method above to get to the Calendars folder and clear it out.  Now open Time Machine and go to the Library->Calendars folder and restore everything in that folder.

    To restore the calendar from before iCloud installation, after you delete the Calendars folder information, inside of iCal, you can do a File-Import from the iCal backup that is taken by iCloud in the library/Calendars folder. I found one files of these in each of the machines I restored from.   The file name format is iCal yyyy-mm-dd hh/mm/ss.icbu where hh is GMT time.
    Now I am getting rid of iCloud for calendars and contacts, and am going to try Google Sync.

Maybe you are looking for

  • How to change service for all members

    Hello, We setup our cluster with member1 and member2 as follows. backup-count = 1 on cluster configuration. service-name = CACHE-TEST-A, which is stored in Member1 the backup of CACHE-TEST-A is stored in Member2 Now we change the service name CACHE-T

  • Any body who can solve it

    1).I want to call oracle graphics app. from oracle forms6. 2).Same as above with parameters. Thanx in advance!

  • NullPointerException in JFileChooser.showOpenDialog() JRE 1.7

    Hi all, In my application, i have used JFileChooser to select a file. When i try to open JFileChooser.showOpenDialog() it throws the following exception. Not sure where i am wrong. Please help me. Exception: #Exception in thread "AWT-EventQueue-0" ja

  • 10.6.8 & Magicjack Plus?

    I'm thinking about setting up a Mac Mini 2010 with 10.6.8 with a Magicjack plus through its ethernet port.  Presently I have an original Magicjack working on its USB port, and I'm being offered an upgrade to Plus.   Unfortunately for Plus it must be

  • Loading data from SAP ECC to DS---Error

    Hi all, I am using Abap dataflow for loading data from a table in SAP Application to oracle database. I am getting an error during execution as follows. I am using direct download method for transfer of data.need your valuable inputs.