Replication: send updates now = command line?

Hi!
Is there any possiblity to send a command via command line to the slapd
process that causes the same behavior like the console command "send
updates now"?
TIA
Achim

Yes. Using ldapsearch and ldapmodify.
ldapmodify -args
dn: cn=your replication agreement, cn=replica, ......
changetype: modify
add: nsds5ReplicaUpdateSchedule
nsds5ReplicaUpdateSchedule: *
ldapmodify -args
dn: cn=your replication agreement, cn=replica, ......
changetype: modify
delete: nsds5ReplicaUpdateSchedule
nsds5ReplicaUpdateSchedule: *
Achim Krisinger wrote:
Hi!
Is there any possiblity to send a command via command line to the slapd
process that causes the same behavior like the console command "send
updates now"?
TIA
Achim

Similar Messages

  • I am using iplanet messaging 5.2. I want to send mail using command line. Anyone knows exact command line syntax.

    I am using iplanet messaging 5.2. I want to send mail using command line. Anyone knows exact command line syntax.
    Thanks
    -Vasu

    #telnet 0 25
    mail from: user1 #email source
    rcpt to: [email protected] #email destination
    data #begin email content
    Subject: Hi, This is a test mail #optional subject
    Hi, Please don't pay attention to this email, just a test
    . #end email content
    quit #Quit SMTP
    #

  • Send email using command line

    Hi all,
    I was looking for a command to send emails but couldn't find proper setup to do so. What I'm trying to achieve is to be able to send emails from a workstation using command line. I do not run any mail server so i will have to use my ISP email servers.
    Can somebody provide some help on how to do this?

    when i try this:
    mail -s test_terminal myemailaddress
    i get the email but mail.log shows following entries
    Feb 4 17:50:21 iMacG5 postfix/master[1203]: daemon started -- version 2.1.5
    Feb 4 17:50:22 iMacG5 postfix/pickup[1204]: C528054663D: uid=501 from=<local_username>
    Feb 4 17:50:22 iMacG5 postfix/cleanup[1205]: C528054663D: message-id=<[email protected]>
    Feb 4 17:50:23 iMacG5 postfix/qmgr[1207]: 32F30546609: from=<[email protected]>, size=336, nrcpt=1 (queue active)
    Feb 4 17:50:23 iMacG5 postfix/qmgr[1207]: 32F30546609: removed
    Feb 4 17:50:23 iMacG5 postfix/qmgr[1207]: 48552546502: from=<[email protected]>, size=315, nrcpt=1 (queue active)
    Feb 4 17:50:23 iMacG5 postfix/qmgr[1207]: C528054663D: from=<[email protected]>, size=336, nrcpt=1 (queue active)
    Feb 4 17:50:53 iMacG5 postfix/smtp[1209]: connect to mx1.myISP.com[IP.add.res.s]: Operation timed out (port 25)
    Feb 4 17:50:53 iMacG5 postfix/smtp[1208]: connect to mx1.myISP.com[IP.add.res.s]: Operation timed out (port 25)
    Feb 4 17:51:21 iMacG5 postfix/master[1203]: master exit time has arrived
    Feb 4 17:51:23 iMacG5 postfix/smtp[1209]: connect to mx1.myISP.com[IP.add.res.s]: Operation timed out (port 25)
    Feb 4 17:51:23 iMacG5 postfix/smtp[1208]: connect to mx1.myISP.com[IP.add.res.s]: Operation timed out (port 25)
    Feb 4 17:51:23 iMacG5 postfix/smtp[1208]: warning: 48552546502: trace service failure
    Feb 4 17:51:23 iMacG5 postfix/smtp[1208]: warning: 48552546502: defer service failure
    Feb 4 17:51:23 iMacG5 postfix/smtp[1208]: 48552546502: to=<myemailaddress>, relay=mx2.myISP.com[IP.add.res.s2], delay=1213, status=deferred (48552546502: trace service failed)
    Feb 4 17:51:23 iMacG5 postfix/smtp[1208]: warning: 48552546502: trace service failure
    Feb 4 17:51:23 iMacG5 postfix/smtp[1208]: warning: 48552546502: trace service failure
    Feb 4 17:51:53 iMacG5 postfix/smtp[1209]: connect to mx2.myISP.com[IP.add.res.s2]: Operation timed out (port 25)
    Feb 4 17:51:53 iMacG5 postfix/smtp[1209]: C528054663D: to=<myemailaddress>, relay=mx2.myISP.com[IP.add.res.s], delay=92, status=sent (250 ok dirdel)
    I was really surprised to get the email since my ISP requires authentication to send emails and it's using port 587.

  • Sending varargs via command line arguments to main()

    When I put A B C D in the command line arguments textbox in my compiler, the output is as expected: A B C D. However, when I put *new String[]{A, B, C, D}*, the output is *new String[]{A, B, C, D}*, not A B C D as I had expected. My code is below. Any suggestions?
    package varargs;
    public class Varargs {
        static void printArray(Object...args){
            for (Object obj : args)
                System.out.print(obj + " ");
            System.out.println();
        public static void main(String...args) {
            printArray((Object[])args);
    }

    The argument(s) that is/are supplied to your main method will be rendered as literal String constants. It looks like you are attempting to use java code as one of your arguments with the expectation that the program will interpret this code. It won't. Your program will simply display whatever it is given even if what you offer as an argument happens to be a construct of the Java language.

  • How to push app update by command line?

    I want to release new version of my app designed for IPAD 4 by command line. All these devices are managed by Profile Manager. Do you know any methods, that would help me to push new version?

    I want to release new version of my app designed for IPAD 4 by command line. All these devices are managed by Profile Manager. Do you know any methods, that would help me to push new version?

  • Power interuption  during update now only line on bottom of the screen

    power interruption while updating mac mini  as it turned back on only white line on bottom of the screen
    tried unplugging and rebooting  nothing seems to work.  line has been there for over an hour

    Boot to recovery and reinstall the OS
    OS X: About OS X Recovery - Apple Support
    OS X Yosemite: Reinstall OS X

  • Running an update via command line on demand

    In my organization, we are designing a new public access system where the computers will be protected with "rollback" software so no changes are retained. Updates will be handled in a maintainance window and include Windows Updates, Anti Virus Definitions and hopefully Flash Player, Acrobat Reader and Shockwave Player. The "snapshot" of the disk is then updated.
    Is there a way of running the update on demand, I have tried running the EXE that the scheduled task calls, but that doesn't seem to do much (maybe it only runs for the system account?)
    I cannot rely on the automatic update happening to run in the maintainance window and I need to have output of when the update has completed whether there was or was not an update performed.
    Needless to say, all this needs to be able to run silently.
    Any suggestions are gratefully accepted.
    Martin

    I had looked at this before, but had hoped i could just run a command and parse a "No available updates" or "Successfully Updated" ruturn or something. If this is the only way to do it, then it looks like I will have to have an mms.cfg with settings:
    AutoUpdateDisable=0
    AutoUpdateInterval=0
    SilentAutoUpdateEnable=1
    SilentAutoUpdateVerboseLogging=1
    And if I'm reading the documents correctly, I need to then launch a web page that uses Flash to prompt the update? If so, that's easy enough, just open a web page to the Adobe page that shows when an update is successful?
    I can then monitor the log file to see what is going on.

  • Sending mail from command line?

    I don't know how to configure sendmail or anything like that. I'd like to be able to send e-mail from a shell script. What do I have to do to accomplish that?

    It looks like you were right about needing to tweak my mail server configuration to relay through my ISP.
    After sudo postfix start and sudo postfix flush, it seems that postfix attempted to deliver the queued messages. It did not succeed, however. The messages were addressed to myself at cox.net. mailq reports the error "(connect to mx.east.cox.net[68.1.17.3]: Operation timed out)". Sometimes it's mx.west.cox.net.
    I cannot connect to those servers from where I am. Cox will only allow connections on port 25 to their SMTP servers that are intended for users on their network. My closest server is smtp.west.cox.net. How do I tell postfix to route all mail through that server?

  • Calling C from Java. C takes in a command line input

    Hello,
    I have created some basic JNI programs, in which the java file calls the C files. The way I could do it was directly calling the functions in the C files, which I needed. Now I am trying to call a C file from Java, and the C files takes in a command line argument after being compiled.
    Also after compiling the C file, it produces an exe. I cannot change the C file and also want to call it from Java using JNI (as I want to later put all this into a jar and jnlp file and put it on webstart).
    If anyone can help me on how to call the compiled C file and how to send in the input as a command line argument I would greatly appreciate it.
    Thanks
    Nick

    Now I know how to create a C wrapper file and a Java file in JNI format. Does this mean you want to run the exe files by calling the main() method through JNI. Yes you can do that BUT you will need to turn your exe file into a dll and then write a JNI wrapper to act as a bridge between the Java and the dll.Yes. Thats exactly what I want to do. I want to call the C files through JNI. But what I am asking is, how do I send in the input which is originally sent in as stdin? And also what are the steps to follow if I want to call a main method of the C files in the JNI.
    Up till now I have been using JNI to call functions from the initial C files from the C wrapper file. But now I want to call the .exe file by sending it a command line input. Or if you can suggest a better method that would be great.
    You can execute an exe file using ProcessBuilder then there is no need for a JNI wrapper. You must read the 4 sections of [http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html|http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html] and implement ALL the recommendations. Failure to do so will cause you much grief.
    You could achieve the same result but using a lot more code and a hell of a lot more effort by invoking the exe executables from JNI code that invokes the 'C' exec() library. Just thinking about that approach makes my eyes water!
    Well if I just use the exec() library I can do it, yes thats ture. But I wasnt sure if I did that, and then put this on Java Web Start, if non PC users can access it or not. If macs, and linux machines can access this even If i use exec, then my problem is solved.
    Thanks
    Nick

  • Adobe DNG Converter - command-line parameters for new 1.4 features

    Adobe DNG Converter - I need to know what the command-line parameters are for the new DNG-1.4 options (e.g. lossy compression).
    Last I checked, there was no updated documentation released - would somebody please help?
    Rob

    By inspecting strings in the exe file using ProcessExplorer (MS SysInternals), I found these command-line switches for controlling lossy compression:
    -lossy
    -size
    -count
    A D O B E
    Adobe: please take a moment and update the command-line documentation - thanks.
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/photoshop/pdfs/dng_ commandline.pdf
    or, if there is another that is updated - do tell...
    Rob

  • Mail bounces when sent from command-line, works from PHPMailer, Mail.app

    Recently, any mail send from the command-line (manually, or via automated scripts) is getting rejected. However, messages composed with, say, PHPMailer are getting through. One thing I notice about the bounced messages is that there's no user/sender recorded. Here's a snippet of the log:
    Sep 28 16:45:32 ns postfix/pickup[3275]: 64F57343FF2: uid=501 from=<admin>
    Sep 28 16:45:32 ns postfix/cleanup[6126]: 64F57343FF2: message-id=<[email protected]>
    Sep 28 16:45:32 ns postfix/qmgr[3276]: 64F57343FF2: from=<[email protected]>, size=627, nrcpt=1 (queue active)
    Sep 28 16:45:35 ns postfix/smtp[6130]: 64F57343FF2: to=<[email protected]>, relay=mx.metropolis.ca[65.254.254.57], delay=3, status=sent (250 2.0.0 tylR1X05q2fRSSh0000000 mail accepted for delivery)
    Sep 28 16:45:35 ns postfix/qmgr[3276]: 64F57343FF2: removed
    Sep 28 16:45:54 ns postfix/pickup[3275]: 0A7BB343FFF: uid=501 from=<admin>
    Sep 28 16:45:54 ns postfix/cleanup[6126]: 0A7BB343FFF: message-id=<20070928224554.0A7BB343FFF@mail>
    Sep 28 16:45:54 ns postfix/qmgr[3276]: 0A7BB343FFF: from=<[email protected]>, size=423, nrcpt=1 (queue active)
    Sep 28 16:45:54 ns postfix/smtp[6130]: 0A7BB343FFF: to=<[email protected]>, relay=none, delay=0, status=bounced (mail for gpspolice.net loops back to myself)
    The failure reason given "mail for ... loops back to myself" doesn't seem right, since I haven't changed the DNS settings on this machine.
    You'll notice, the message that is sent has the from= address specified, whereas the other two failed examples don't... I'm not really sure why this is failing all of a sudden. Telus, one of our ISPs, is infamous for quietly making major network policy changes (e.g., blocking port 25 for all outgoing business customers). Any suggestions, or a link to a good SMTP mail server (a la OS X server) tutorial would be appreciated. Thanks.
    ...Rene

    David_x wrote:
    David_x wrote:
    Can you explain why you need any zones in your DNS apart from your own?
    OK, I read a previous post from you which explains your internal setup (mini & xserve), so you are using internal domains for web stuff with your local DNS based on your xserve. I presume your mini is using the xserve for DNS? So although I am not entirely clear about everything that is going on, I'll presume you do need these domains in your xserve...
    Yes, that's all correct. The Xserve does runs DNS, Web and Mail Services, the Mini just runs a couple web sites (on port 8080, fwiw).
    If an external mail server is responsible for a domain which you have in your internal DNS then you have to mirror the public MX records in your local DNS. How MX records work...
    This is what I've done in the DNS Services, I believe...
    For the domain gpspolice.net, your mini will ask your xserve for the MX record. This will resolve to a host name - in the public DNS this is "mail.gpspolice.net". Your mini will then ask your xserve to resolve this host name - in the public DNS this is "209.200.253.29". So ideally, you should have these two records (MX record= mail.gpspolice.net, plus "A" record for mail.gpspolice.net = 209.200.253.29) in your xserve dns. You may get away with using a different MX host name as long as the final IP is the same but better if exactly mirrors public DNS records.
    -david
    I think I've done what you've said, and still certain messages don't get sent out. Basically, any message bound for a .baseloc.net domain doesn't get sent. Here's an example of one message that get's stuck in the queue, along with the console log:
    Message ID: 46A1435234C
    Date: Wed Oct 3 09:57:17
    Size: 11009
    Sender: [email protected]
    Recipient(s) & Status:
    [email protected]:
    temporary failure. Command output: couldn't connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmtpd_
    Oct 3 21:00:07 ns postfix/pipe[21091]: 46A1435234C: to=<[email protected]>, relay=cyrus, delay=39770, status=deferred (temporary failure. Command output: couldn't connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmtpd_ )
    I have to say, I really appreciate your help. It's helping me understand the proper approach. Anyway, if there's any other information I can provide to help you [help me], please let me know. Thanks again.
    ...Rene

  • Remote Desktop Initiating Command Line Software Update to local server

    Hi there-
    We have a Software Update server (Mac OS X 10.4.4 Server) that works great. I'm trying to initiate a software update on a lab of 20 computers with ARD through the "send unix command." Now, because it's a software update, you need admin privs to install the software.
    I'm initiating the command line software update as root so that it will install without prompting for a password (and not having to type one in 20 times).
    However, as root user or any other admin the Open Directory setting to have the computer point at our local software update server is ignored. Is there any way around this other than not allowing administrators ignore management settings?
    There doesn't seem to be any way to tell the software update command line utility what server to look at.
    Any ideas?

    I had the same problem and came up with this solution. Create this text file and then copy it to /Library/Managed Preferences/root/com.apple.SoftwareUpdate.plist on each workstation. Replace the <<your server here>> with the address of your actual software update server.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>CatalogURL</key>
    <string>http://<<your server here>>:8088/</string>
    </dict>
    </plist>

  • Powershell script sends e-mail in ISE but not from powershell command line

    I have created a script that generates a report of all users who do not have photos in Active Directory. The script runs and sends an e-mail to a distribution list. It runs fine in ISE, but I cannot run it from command line or as a scheduled task. Any suggestions
    what I am doing wrong?
    #Starts Powershell Snap-In
    Start-Transcript -path c:\Scripts\StaffWithoutPhotos.txt
    add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010 -erroraction silentlyContinue
    $mailboxes = $null
    $mailboxes = @(Get-Mailbox -OrganizationalUnit "Staff User Accounts" -ResultSize Unlimited | Where {$_.HasPicture -eq $False})
    Write-Host $mailboxes
    $report = @()
    foreach ($mailbox in $mailboxes)
    $mbObj = New-Object PSObject
        $mbObj | Add-Member -MemberType NoteProperty -Name "Display Name" -Value $mailbox.DisplayName
        $report += $mbObj
    Write-Host "Diagnostic Output"
    Write-Host "Before Mailbox value check"
    Write-Host $report
    Write-Host "After Mailbox Value check"
    if ($mailboxes -ne $null)
        Write-Host $report
        #Send the report generated to the e-mail list specified above
        $style = "<style>BODY{font-family: Arial; font-size: 10pt;}"
        $style = $style + "TABLE{border: 1px solid black; border-collapse: collapse;}"
        $style = $style + "TH{border: 1px solid black; background: #dddddd; padding: 5px; }"
        $style = $style + "TD{border: 1px solid black; padding: 5px; }"
        $style = $style + "</style>"
        #Start-Sleep -Seconds 5
        $smtpserver = "MAIL.contoso.com"
        $msg = new-object Net.Mail.MailMessage
        $smtp = new-object Net.Mail.SmtpClient($smtpServer)
        $msg.From = "[email protected]"
        $msg.To.Add("[email protected]")
        #$msg.To.Add("[email protected]") #Used for testing
        $msg.Subject = "Staff without Photos report"
        $msg.Body = "This report contains the list of users who do not currently have photos."
        $msg.Body += "<p>"
        $msg.Body += "After photos are available for these users please submit a request to have their accounts updated or send an e-mail to <a href='mailto:[email protected]?Subject=Staff%20Photo%20Updates' target='_top'> [email protected]
    </a> with <b>Staff Photo Updates</b> in the subject."
        $msg.Body += "<p>"
        $msg.Body += "This report runs on Fridays and will only send a message if we have Staff without Photos. For more information please contact your systems administrator."
        $msg.Body += "<p>"
        $msg.Body += $Report | ConvertTo-Html -Head $Style
        $msg.IsBodyHTML = $true
        $smtp.Send($msg)
    Stop-Transcript

    So after researching further and not receiving any more replies I decided to rewrite the script and attempt to use the send-mailmessage function. I have been unable to determine the reason for the original not script not working. We use a very similar script
    to my original code which works to generate a report and e-mail that report as an attachment and it works without any problems.
    After re-writing the script and using the send-mailmessage function I was able to get this report to work as expected. This has now been set up as a scheduled task to run on a server once a week. Here is the final code:
    Start-Transcript -path c:\Scripts\StaffWithoutPhotos.txt
    #Starts Powershell Snap-In
    add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010 -erroraction silentlyContinue
    $mailboxes = $null
    $mailboxes = @(Get-Mailbox -OrganizationalUnit "contoso Staff User Accounts" -ResultSize Unlimited | Where {$_.HasPicture -eq $False})
    Write-Host $mailboxes
    $report = @()
    foreach ($mailbox in $mailboxes)
    $mbObj = New-Object PSObject
        $mbObj | Add-Member -MemberType NoteProperty -Name "Display Name" -Value $mailbox.DisplayName
        $report += $mbObj
    Write-Host "Diagnostic Output"
    Write-Host "Before Mailbox value check"
    Write-Host $report
    Write-Host "After Mailbox Value check"
    if ($mailboxes -ne $null)
        Write-Host $report
        #Send the report generated to the e-mail list specified above
        $style = "<style>BODY{font-family: Arial; font-size: 10pt;}"
        $style = $style + "TABLE{border: 1px solid black; border-collapse: collapse;}"
        $style = $style + "TH{border: 1px solid black; background: #dddddd; padding: 5px; }"
        $style = $style + "TD{border: 1px solid black; padding: 5px; }"
        $style = $style + "</style>"
        $smtpserver = "MAIL.contoso.com"
        $smtpFrom = "[email protected]"
        $smtpTo = "[email protected]
        $messageSubject = "Staff without Photos report"
        $Body = "This report contains the list of users who do not currently have photos."
        $Body += "<p>"
        $Body += "After photos are available for these users please submit a request to the Help Desk to have their accounts updated or send an e-mail to <a href='mailto:[email protected]?Subject=Staff%20Photo%20Updates' target='_top'> [email protected]
    </a> with <b><u>Staff Photo Updates</b></u> in the subject."
        $Body += "<p>"
        $Body += "This report runs on Fridays and will only send a message if we have Staff without Photos. For more information please contact your systems administrator."
        $Body += "<p>"
        $Body += $Report | ConvertTo-Html -Head $Style
        #Send the report
        send-mailmessage -from "$smtpFrom" -to "$smtpTo" -subject "$messageSubject" -body "$Body" -smtpServer "$smtpserver" -BodyAsHtml
    Stop-Transcript

  • Run adobe cs3 updater remotely via command line unix command?

    is there a way to run the adobe updater from the command line for adobe cs3? I have a bunch of machines that already have cs3 installed, and I would like to be able to use ARD to "send unix command" and have the installer run and update the relevant apps?
    Thanks in advance...
    PS-is it me or is this forum ridiculously slow on safari? Sheesh!

    is there a way to run the adobe updater from the command line for adobe cs3? I have a bunch of machines that already have cs3 installed, and I would like to be able to use ARD to "send unix command" and have the installer run and update the relevant apps?
    Thanks in advance...
    PS-is it me or is this forum ridiculously slow on safari? Sheesh!

  • How to send report output to  two  detinations at a time from command line?

    Hi ,
    how to send my report to two detinations at a time from command line i.e FILE and Mail ?
    i created batchfile in that i mentioned one line for file(DESTYPE=FILE) perpose and another line for mail perpose(DESTYPE=Mail).i don't want to mention to lines.
    i want to send my report out put two destinations at a time insted of running two times.
    thx in advance.....
    raghu

    hello,
    did you try to use distribution for that ? check out the reports distribution facilities available in 6i.
    regards,
    the oracle reports team

Maybe you are looking for