Executing amadmin command in Unix box.

I tried to execute following command on Unix machine:
./amadmin -u uid=amAdmin,ou=People,o=ievesp.net -v -w "password"
-s /etc/opt/SUNWam/config/xml/amUser.xml
I am getting following error message:
Info 112: Entering ldapAuthenticate method!
Success 0: No Exceptions! LDAP Authentication success!
Info 113: Calling SSO method!
Error 9: Operation failed: null
Please tell me why I am getting this Error?
Where can I find log files?
Can anyone please help me on this?

Following is the error message that is recorded at LDAP logs:
[27/Jun/2006:06:31:01 -0400] conn=145220 op=-1 msgId=-1 - fd=83 slot=83 LDAP connection from <<ip address>> to <<ip address>>
[27/Jun/2006:06:31:01 -0400] conn=145220 op=0 msgId=1 - BIND dn="uid=amAdmin,ou=People,o=seccap.net" method=128 version=3
[27/Jun/2006:06:31:01 -0400] conn=145220 op=0 msgId=1 - RESULT err=0 tag=97 nentries=0 etime=0
dn="uid=amadmin,ou=people,o=seccap.net"
[27/Jun/2006:06:31:01 -0400] conn=145220 op=1 msgId=2 - UNBIND
[27/Jun/2006:06:31:01 -0400] conn=145220 op=1 msgId=-1 - closing - U1
[27/Jun/2006:06:31:01 -0400] conn=145220 op=-1 msgId=-1 - closed.
[27/Jun/2006:06:31:03 -0400] conn=145221 op=-1 msgId=-1 - fd=83 slot=83 LDAP connection from <<ip address>> to <<ip address>>
[27/Jun/2006:06:31:03 -0400] conn=145222 op=-1 msgId=-1 - fd=88 slot=88 LDAP connection from <<ip address>> to <<ip address>>
[27/Jun/2006:06:31:03 -0400] conn=145222 op=0 msgId=3 - BIND dn="" method=128 version=3
[27/Jun/2006:06:31:03 -0400] conn=145222 op=0 msgId=3 - RESULT err=0 tag=97 nentries=0 etime=0 dn=""
[27/Jun/2006:06:31:04 -0400] conn=145221 op=-1 msgId=-1 - closing - B1
[27/Jun/2006:06:31:04 -0400] conn=145222 op=-1 msgId=-1 - closing - B1
[27/Jun/2006:06:31:04 -0400] conn=145222 op=-1 msgId=-1 - closed.

Similar Messages

  • Executing amadmin command in Unix box.  --*** Urgent*****

    I tried to execute following command on Unix machine:
    ./amadmin -u uid=amAdmin,ou=People,o=ievesp.net -v -w "password"
    -s /etc/opt/SUNWam/config/xml/amUser.xml
    I am getting following error message:
    Info 112: Entering ldapAuthenticate method!
    Success 0: No Exceptions! LDAP Authentication success!
    Info 113: Calling SSO method!
    Error 9: Operation failed: null
    Please tell me why I am getting this Error?
    Where can I find log files?
    Can anyone please help me on this?

    I suggest that you post this question to the Access Manager Forum...
    <http://swforum.sun.com/jive/forum.jspa?forumID=79>
    Regards,
    Ludovic.

  • Executing "at" command of UNIX through JSP

    Friends,
    1. "at" command in UNIX execute Unix command at a scheduled time. 2. For each user there will be a table maintained internally which can be accessed by "at" with "-l" argument.
    3. A mail will be sent to the owner with the output of the commands as a message.
    I tried to run the "at" command of Unix in JSP, which gets succesfully executed in Oracle 10g App Server container (Installed in Solaris machine). I have tested the successful execution of command with the log file. But I haven't got any mail for the output. If anyone had any idea, please help me.
    The code I have wtitten is
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec(new String[] {"sh","-c","at 2115 Dec 7 < /export/home/usr1/abc.sh"});
    InputStream stderr = proc.getErrorStream();
    InputStreamReader isr = new InputStreamReader(stderr);
    BufferedReader br = new BufferedReader(isr);
    String line = null;
    logger.info("<ERROR>");
    while ( (line = br.readLine()) != null)
    logger.info(line);
    logger.info("</ERROR>");
    int exitVal = proc.waitFor();
    logger.info("Process exitValue: " + exitVal);
    My doubts are:
    1. Who is the owner of the output of "at"command, which gets executed under Oracle 10g App Server container?
    2. If no one is the owner, then where will the output of "at" command will go?
    3. Is there any other way to execute "at" command of UNIX in java program? If so, then please help me.
    Thanks in advance.
    regards
    Nandha Kumar.M

    I would imagine the process call out will be under the guise of the process owner of the OC4J instance which executing the call.
    Have you seen anything different.
    cheers
    -steve-

  • Facing issues while executing LDAPBind command in Unix

    Dear All,
    We are trying to invoke a shell script from PeopleCode(which is having the ldapbind command) through exec command. We are able to invoke the shell script but the ldapbind command fails to execute. It throws the below error
    +"/usr/bin/ldapbind: error while loading shared libraries: libclntsh.so.10.1: wrong ELF class: ELFCLASS32"+
    Not sure whether this is an issue with the installation or configuration. Kindly help us to resolve this issue.
    however when we executed this script in unix server directly, its running successfully.
    When I have tried to invoke the shell script from PeopleCode using WinExec command, got the below error from PeopleSoft itself
    +"Function '%1' cannot be run on the application server. (2,164)+
    +A PeopleCode program that is running as part of a processing group on the application server is using a PeopleCode built-in function that is not allowed on the application server."+
    Kindly help us to understand what is missing here.
    Thanks,
    Hari.A

    Still no clue to fix this issue.
    we are able to invoke the script from PeopleCode which has the LDAPBind command. We are writing the log files after invoking this script.
    We are able to see those log files getting generated also. But it's not capturing the result of LDAPBind and looks like ldapbind command is skipped from execution.
    Please help us to understand where we are missing?
    Thanks,
    Hari.A

  • Problem while executing a command using exec()

    I'm trying to execute a command on Unix O/S with the help of java program. For this I have used Runtime class available in java.lang. It works fine for some of the basic unix commands like 'ls','cp' but when I tried to execute command "sqlldr userid=<user>/<pwd> control=/u01/dw/snb/log/sp_shd05721_ins_stg_sqlldr.ctl" , then it's not getting executed. Please advise.

    You may be having a problem with the command path, which I don't think Runtime.exec() uses. Try specifying the full path

  • How can I connect to a UNIX server to execute a command?

    How can I connect to a UNIX server and execute a command using PowerShell? My shell script is sitting on one server, while the UNIX box is on another.
    also, I don't like the idea of hardcoding a username/password within the script file in order to do so.
    -Nothing to see. Move along.

    You will need a library to handle SSH connections.
    I'm using SSH.NET, you can find info on it here : http://www.powershelladmin.com/wiki/SSH_from_PowerShell_using_the_SSH.NET_library
    It has a bit of a learning curve but the web site has some fairly good tutorials.

  • Execute command on UNIX and get the result

    I want to write a Java program, which can execute a shell script in UNIX and get back the result. Any idea?

    Check these two tips:
    How to execute a command from code
    http://www.java-tips.org/java-se-tips/java.lang/how-to-execute-a-command-from-code.html
    How to read output from a Command execution
    http://www.java-tips.org/java-se-tips/java.lang/how-to-read-output-from-a-command-execution.html

  • How to execute a Window program from Unix box using Java

    I am trying to execut a program running on a Window box from Shell Script on a Unix box. Does anybody knows how to do that using Java. Thanks. Any feedback appreciated.
    kevin

    You need to use
    String fileNane = "setup.exe";
    Runtime.getRuntime().exec(fileName);that is if you are writing code
    if you are just calling if from a terminal just write
    java then the file name ( well I think that is right :)
    I do know that the code above work as I have it working on a windoze box
    Craig
    Hope this is right if not please let me know

  • Execute a Window program from Unix box using Java

    Hello everyone,
    I need to call a application running on a Window box from Shell Script on a Unix box. Does any one have some idea how to do it? Sample codes? I was thinking using Java. Any feedback appreciated.
    Thanks.
    CrossonKevin

    Search
    Profit
    http://onesearch.sun.com/search/developers/index.jsp?col=devforums&qp_name=Java+Programming&qp=forum%3A31&qt=execute+program

  • System.out  View Console via Unix box/ Command Line

    I am dumping messages to System.out. When I package it and run it as a service, I can drop this to an out file. When I just run the jar file from the windows command line or from a Unix box it runs silently. Is there a way to have the System.out dropped to a file in this scenario or better yet shown on screen?
    Once I run the jar file how do I kill it without killing the process?
    Thanks

    Fanbladeus02 wrote:
    "Killing a jar file..." I don't want to kill the Jar file itself, but I do want to stop it from running after I launch it.Then you mean you want to kill the process which is using the jar file.
    >
    Example from my unix prompt I do something like this:
    java -jar -classpath </home/user/jarprog/> /home/user/jarprog/JARPROG.jar jarprog.Main.java
    I don't see any output, it just drops to the next open prompt. This means the program has finished. It could have started another one which does the real work, but you have no control over it.
    I assume java is still running my jar file somewhere. (My first thought was) That is very unlikely unless the writers of the code have gone to great lengths to hide another running process from you. (But reading further this appears to be the case)
    How do I stop it? Find the process with "ps" and send it a kill signal.
    Once I start the program how do I interact with it to stop it?ctrl-C, but you cannot kill it after the prompt has returned because its not running any more. (it started another process and then bailed)
    Similiarly in Windows, I run it from the command line it drops to the next "c:\". I look in task manager and see java running. It appears your program starts another java process in the background.
    I look in the database that it is updating and the records are flying in. If I end the process, the records stop flying in (DUH). Again how do I interact with it to gracefully end the process?It appears that whoever wrote the program has gone to some lengths to prevent you from doing that. I would ask them.

  • Mount a new device in Unix box from Java

    Hi,
    Would anybody please help me how to write a method that could mount a new device to the sever?
    For example, I have new device call "d0". After telnet and login the Unix box, I could execute "/sbin/mount d0". But I don't know how to execute this command from my java app. Someone suggested me to use "telnet" protocol while other suggested to use "socket". I don't know syntax either one.
    Please help and thanks in advance.
    Hung.

    Thank you, newio.
    You'll than have to communicate with it using the Telnet protocol. >There i probably a class out there that does this for you, so use >Google to find it.If I find Telnet protocol class, how can I use it with my socket. Is that a stand alone application or class? Honestly, I don't know anything about socket programming. Please clerify a little bit loggically how it works.
    Thanks
    Hung

  • Managing a remote unix box with OSX server apps...

    Aside from running an OSX server, I am in charge of maintaining an external, SUN unix server from my Mac, and I hate using line commands, esp. with how jaded I've become using the nice tools for managing the Mac server. For now I use terminal in order to change passwords, set permissions and so on as the sudo user on the unix box, and use rbrowser to edit cron jobs.
    So, my question is, is there a way to get the OSX server admin tool to think the unix box is an OSX server? And if not, is there a graphical interface to maintain the server (it's running Apache too)? Rbrowser is cool and all, but doesn't let me use sudo for making chnages.
    Thanks for any help.
    Greg

    Bummer about not having the Mac feel on SUN. Life can't always be perfect.
    As far as the Webmin, no, haven't heard of it, but it sounds cool. The trick would be getting a huge client like SD County to let us buy it, then go through all the hoops and red tape to get it installed. Most likely their answer would be "Well, what have you been using this whole time and why isn't that good enough now all of a sudden?".
    So for the time being, I'l have to be happy using RBrowser for file transfers between the test and production servers (beats the pants off of typing scp -p -i over and over again) and editing cron scripts. Too bad it doesn't provide sudo for changing passwords, groups, and so forth.
    I'm this close to having the perfect work environment (the office I work in was all Windows with Dell laptops...until now).
    Dual G5 tower   Mac OS X (10.4.6)  

  • Executing System Commands In Java

    Hi,
         I am not sure if this is a bug � or I am just doing this wrong. I have
    written a program to move files into ~/.trash/ . My problem is that this
    works only for files without spaces � but for files with spaces it will
    not work. Some of my code is below.
    I have temporarily uploaded the complete file at
    http://www.geocities.com/carmaski/Remove.java
    public static void main(String args[]) {
    String currDir = System.getProperty("user.dir") + "/";
    String trashDir = "\" \"/home/masca/.trash/";
    String commandString = "";
    for (int i = 0; i < args.length; i++ ) {
    File tmpFile = new File(currDir + args);
    if(tmpFile.exists()) {
    commandString = "mv \"" + currDir + args[i] + trashDir
    + args[i] + getTimeTag() + "\"";
    System.out.println("The command would be -- " +
    commandString);
    try {
    Process p = Runtime.getRuntime().exec(commandString);
    catch (IOException e) {
    e.printStackTrace();
    System.exit(-1);
    As an example I tried � this with a file that has a space � and I get
    the following output.
    The command would be -- mv "/home/masca/WORK/Text File"
    "/home/masca/.trash/Text File_2005.04.17_04hrs:25mins:36secs"
    However the file remains without being moved.
    I cannot understand why the mv command does not work in java. If I
    manually copy this to the command line I can get the file to work. It
    should be noted that this program works perfectly if the file does not
    have a space.
    Regards,
    Rio

    Use File.separator or simply / instead of Windows
    backslashes.
    - SaishI think OP is on a unix machine, and he still needs to escape the spaces. The escape character is, of course, a back-slash.
    Depending on the shell (my experience is with bash), to execute the command mv Test File.txt newTest File.txt, the file names either need to be double-quoted so that the command shell will treat them as a single token (I think that will work), or the spaces need to be escaped (I know that will work). In java, to include a single \ in a literal String, you need to escape the escape character, which is why I think two \\ are needed in the String, so that one will survive to be passed on to the exec command.
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Re: How to avoid APPS password displayed in Unix box  .

    Hi
    How to avoid APPS password displayed in Unix box by using ps command for concurrent program with execution method set as "host" .
    Regards .

    Hi;
    What is EBS version?
    Please see:
    Apps password hide
    Hide apps password
    Regard
    Helios

  • How to execute sh file of unix in java

    iam trying to execute a sh file in target machine which will startup the database from source machine..
    sh file is ..
    # Synopsys
    # This program startup's the database.
    # Parameters
    # @1: tuserconnect
    # @2: tenvfile
    # @3: tUserHome
    progname=ajstartdb
    echo "ssh ${1} . ${2} \&\& ${3}"
    ssh ${1} . ${2} \&\& ${3}/ajss/sql/ajstrtdb.sh
    retval=$?
    echo "DEBUG::${progname}--> Completing execution with return code: $retval" > $progname.out
    If i try to execute this ajstartdb.sh file in target itself it is executing perfectely.So i think no prob's with sh file..
    but when i try to execute this sh file from java.. the process control is remaining in the prgm itself even after the cmd is executed.. i mean prgm is not exiting.
    java prgm is :
    import java.io.*;
    class StartShut1
    public static void main(String[] args)
    try {
    String cmd="ssh [email protected] . /d03/AppsGOLD/golddb/9.2.0/GOLD_hydapps.env \\&\\& /home/oragold/ajss/ajstrtdb.sh";
                             System.out.println(" the cmd is: "+cmd);
         Process p =Runtime.getRuntime().exec(cmd);
         int i = p.waitFor();
         System.out.println("Exit value of process is "+j);
                             System.out.println("Output of the Cmd is : "+i);
         String s=null;
         if (i!=0){
                                  System.out.println("ERROR in executing the command");
                                  BufferedReader cmdr = new BufferedReader(new InputStreamReader(p.getErrorStream()));
         while ((s = cmdr.readLine()) != null) {
                                                 System.out.println(s);
                                                      s = null;
         BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
                                       // read the output from the command
                                       s=stdInput.readLine();
                             System.out.println(s);
         while (s!= null)
         System.out.println(s);
    InputStream in = p.getInputStream();
    int ch;
    StringBuffer sb = new StringBuffer(512);
    while ( ( ch = in.read() ) != -1 )
    { sb.append((char) ch); }
    System.out.println("output from string buffer"+sb);
    }catch(Exception e)
    System.out.println("ERROR :"+e);
    e.printStackTrace();
    }//main
    }//class
    Kindly Reply me if u get an idea

    And also u hv specified & in the cmd ... it is executing when we specify \&\& there.
    Do u hv any idea ragarding this symbol (\&\&) in unix..Let us try first without vowels (the OP tends to drop them):
    & n cmmnd prmpt wll trmnt th cmmnd nd rn t n th bckgrnd.
    && wll wrk lk n C (r Jv fr tht mttr): t wll vlt th frst trm nd g n xctng nd vltn
    g f t ws "tr", tht s, f t yldd "zr" s rtrn cd.
    For the faint the one with vowels:
    & in a command prompt will terminate the command and run it in the background.
    && will work like in C (or Java for that matter): it will evalute the first term and go on executing and evaluating if it was "true", that is, if it yielded "zero" as return code.
    Thus
    posman@proli:~/ivan/fnt> test -d mydir && ls -l mydir
    posman@proli:~/ivan/fnt> mkdir mydir
    posman@proli:~/ivan/fnt> ls >mydir/1
    posman@proli:~/ivan/fnt> test -d mydir && ls -l mydir
    total 4
    -rw-r--r--  1 posman users 522 Oct  4 12:24 1

Maybe you are looking for

  • Can't access icloud due to long running script

    keep getting this error message when logging on to icloud to access my email: can't access icloud due to long running script And if I do get logged into icloud and try to open the email application I can't open my email or any other applicationii. HE

  • How to fix incorrectly/accidentally accepted suspect in Acrobat PDF

    Hi, I performed an OCR on a PDF document in Acrobat X, then started going through the document to correct/accept the suspects. I think I may have accidentally accepted an incorrect suspect. Is there a way to review the suspects you've accepted and ed

  • How do i add a Full Screen Button?

    Hi guys, I have used Quicklime X - File > Save for Web option to upload a video to my web site. This gave me a Java Script player and code to embed into my site, i have all the files running local on my server and the videos works well. My problem is

  • I can't turn computer off.

    Under apple menu,these do not work: About this Mac Force Quit Sleep Restart... Shut Down... Choosing any of these has no visible results. Previously, I was off-grid and trying to attacth an external hard drive with no success. Tried Time Machine and

  • MSS Homepage Customization

    Hi All, We have a requirement where in MSS Homepage customization is required.Portal version in use is EP5.0 and we have SAP 4.6C as R/3. Customization through Homepage Framework concept is not there in SAP 4.6 C it seems.And help is this regard with