How to redirect the scsi command

Usually, the scsi command goes to HBA driver after it is built by the target driver. However, my project is to intercept the scsi command and send it to the remote server because we want to implement network storage . Originally, the structure, scsi_hba_tran, has a pointer, tran_start, pointing to the function which sends the command. To redirect the command, I want the pointer to point to my kernel function.
Now I can get the HBA driver dip, then get the pointer of tran_start. But after I change the pointer to point to my function, I mount the scsi disk and use it, I can't see any difference before changing the pointer and after changing it. I'm suspecting whether I really get the pointer or I should use other method to test.
Any suggestion is precious. Thank you in advance.

java -DAPRO_HOME=%APRO_HOME%
-DInit=E:\Test_B2b\XicoB2Bi3.0\Repository\Configs\CF_I
nit.xml com.b2binternet.apro.Startup -debugThe class com.b2binternet,apro.StartUp is being executed with a command line argument as "-debug" and properties "APRO_HOME" and "Init" are being set for the System.

Similar Messages

  • How to filter the "delete" command in oracle streams ?

    How to filter the "delete" command in oracle streams ? (oracle 9i R2 )
    Message was edited by:
    user507013

    Hello
    write a procedure doing "nothing" for delete transcation :
    connect adminstrm/..
    CREATE OR REPACE PROCEDURE write_delete_lcr (
    message IN SYS.ANYDATA,
    error_stack_depth IN NUMBER,
    error_numbers IN DBMS_UTILITY.NUMBER_ARRAY,
    error_messages IN EMSG_ARRAY )
    AS
    s_id sys.anydata ;
    ad SYS.ANYDATA;
    lcr SYS.LCR$_ROW_RECORD;
    ret PLS_INTEGER;
    vc VARCHAR2(30);
    apply_name VARCHAR2(30) ;
    errlog_rec log_errors%ROWTYPE ;
    ov2 SYS.LCR$_ROW_LIST;
    BEGIN
    return;
    End;
    for your apply do :
    BEGIN
    DBMS_APPLY_ADM.SET_DML_HANDLER(
    object_name => TABLE_NAME,
    object_type => 'TABLE',
    operation_name => 'DELETE',
    error_handler => true,
    user_procedure => 'write_delete_lcr',
    apply_database_link => NULL);
    END;
    Hafedh KADDACHI
    Oracle DBA

  • How to write the CMD command for restarting all obi services?

    Hi Experts,
    BIEE:11.1.1.6
    How to write the CMD command for restarting all obi services automatically by windows task scheduler?
    I am try to write the code as below, but it does not work. Please help me to review it and check what I am missing.Thanks.
    Or is there any better method for solving my requirement ? Please share me.Thanks very much.
    cd C:\InstallPath\OBIEE\instances\instance1\bin
    opmnctl stopall
    opmnctl startall
    I am facing the problem that it does not excute the 'opmnctl startall' code, which will be stopped after 'opmnctl stopall',
    So how to modify the command ?Thanks

    See if any of the these are useful or solves your query -
    4.5.2 Using a Windows Service to Start and Stop System Components
    http://docs.oracle.com/cd/E23943_01/bi.1111/e10541/components.htm#BABEEAAI
    4.5.3 Using the Oracle BI Systems Management API to Programmatically Start and Stop Oracle Business Intelligence
    http://docs.oracle.com/cd/E23943_01/bi.1111/e10541/components.htm#BABFGICA
    Edited by: Abhi on May 8, 2013 4:44 AM

  • How to make the print command wait until form is rendered.

    This is an ongoing issue that so far I haven't been able to figure out how to fix, so I'm hoping that someone will have a good idea or work around. I'm working in LiveCycle Designer ES v8. using JavaScript.
    I have to include a feature that allows the user the choice to print out a dynamic form to fill out by hand. So I've created a button that asks if this is what they want to do, if they answer "Yes", then several things are scripted to happen. All data is reset, some subforms and pages are made visible, while other subforms are hidden, and text fields are expanded. This causes the form to expand from one page to 15 pages. Then it prints using this command:
              xfa.host.print(1,   
    "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);
    The problem is that when the print dialogue box appears, the Print Range is always set to less than the total number of pages. It looks like that the print commands fires before the form has completed rendering. This isn't a big deal since the user can click to set the Print Range to "All" which will print all 15 pages. The problem is that most people don't read the dialogue box. They click "okay" and end up with their form cut off.  Then I get phone calls that my form doesn't work.
    Is there anyway to delay the print command until everything has finished rendering? Or set the Print Range to always go to "All"?
    Thanks in advance for your help with this.

    It sounds like you'd be fine if you just separated the print function from your "Yes" button. It will require a 2nd button click from the user but that would be the only inconvenience.

  • How to Capture the user command value instead of ucomm and pfkey from syst

    Hi,
    How to capture the value of enter key in the enhancements.
    Iam getting the sy-ucomm value as space. Please let me know the better solution ASAP.
    regards
    Nagendra

    Hello,
    If is a module pool program, take a look to the variable defined to receive the user-command (you can see this in the screen painter).
    Regards.

  • How to redirect the page to home after alert message in APEX

    Hi All,
    I have 4 tab and home page APEX report in that home page I have organization to select as parameter for all the page which is mandatory column so without select the organization in home page I can move to other 4 page but some time users directly pressing the tab for this I have create the ORG_ALERT in each 4 page which this we are able to see the pop-up message when we directly hitting on tab but after select the OK to alert message the page is run for long time and it show all the organization data which I don't want so how can I modify the alert so that after pop-up message it will go to home page.
    Declare Output VARCHAR2 (20);
    begin 
    Output := 1;
    Output := NVL( :AI_ORGANIZATION_ID , 0);
    IF Output  = '0'  THEN
       APEX_UTIL.SET_SESSION_STATE('AI_ORGANIZATION_CODE','');
       HTP.p ('<script type="text/javascript">');
       HTP.p ('alert("No Organization selected.\n Please select an Organization");' );
       HTP.p ('</script>');  
    END IF; 
    END;
    Regards,
    Sushant

    Hi Kiran,
    I have created two process -- On Load - After Header
    1)  Sequence=10
    Declare Output VARCHAR2 (20);
    begin
    Output := 1;
    Output := NVL( :AI_ORGANIZATION_ID , 0);
    IF Output  = '0'  THEN
       APEX_UTIL.SET_SESSION_STATE('AI_ORGANIZATION_CODE','');
       HTP.p ('<script type="text/javascript">');
       HTP.p ('alert("No Organization selected.\n Please select an Organization");' );
       HTP.p ('</script>'); 
    END IF;
    END;
    2) Sequence=20
    Declare Output VARCHAR2 (20);
    begin 
    Output := 1;
    Output := NVL( :AI_ORGANIZATION_ID , 0);
    IF Output  = '0'  THEN
       htp.init;
        owa_util.redirect_url('f?p=&APP_ID.:1:&APP_SESSION.');
    ELSE
    htp.init;
    owa_util.redirect_url('f?p=&APP_ID.:4:&APP_SESSION.');
    END IF;
      END;
    but after click on tab directly it is not showing the pop-up message and directly going to home page. I want when I click on pop-up message to OK then it need to redirect the home page also from home page when I am selecting any organization and trying to go on tab it is not going maybe due to owa_util.redirect_url. Please advise.
    Regards,
    Sushant

  • Upload servlet: how to redirect the user back to the portlet

    Hi. From what I've read in this forum, Oracle Portal does not support "multipart/form-data" forms, so the way to upload a file is to use a standalone servlet. The problem is, how do I redirect the user back to the portlet? Should I pass the back URL as a parameter to this servlet? How do I construct it?
    Since it's an standalone servlet, I can't use oracle.portal.provider.v2.url.UrlUtils to construct a "back link". I had thought of using the referer header, but since this isn't always guaranteed to be present (for example, I know you can disable it in Firefox, and I think SSL conections disable it, too), I guess that maybe sending the URL generated using UrlUtils.PAGE_LINK, UrlUtils.REQUEST_LINK or UrlUtils.REFRESH_LINK (I would have to test which one suits my needs), it could work. Do you think is this the best solution?
    Thanks in advance

    If you use a popup window for file upload, you don't have such a redirect problem.

  • How can redirect the errorPage to another frame?

    Please advise, I have been sticking to this problem for a whole day and still can't solve it. :-(
    What I basically want to do is to redirect the errorPage to another frame, say, the main frame.
    My application has 2 frames, the main frame is a search page, the left frame is a tree which is written by JavaScript and it is a hidden frame. The form code of the search page in the main frame is like that:
    <form name="form1" method="post" action="FindAgent.jsp" target="leftFrame">
    when the submit button is clicked, it will invoke the FindAgent.jsp which will update the tree and also has codes to catch any exception if there is. The problem is that when exceptions occur, the errorPage will be shown in the leftFrame which is hidden frame so it doesn't show anything. So how can I make the errorPage displayed in the _TOP window?
    I would not mind to have the errorPage displayed in the mainFrame by changing the target to "_SELF" or doesn't specify the target attribute at all in the search page. But anyother problem arose by doing that is that the search page will go away and try to display the FindAgent.jsp which doesn't have any appearance code after submitting. So how can I keep the current search page still but the submit() has been called actually, i.e. submit the form without redirecting the current search page.
    Any suggestions? Thanks in advance!

    Here's an idea. Have your error page (in the hidden frame), look something like this:
    <%
      String strErrorMessage = ... // get your error message text here
    %>
    <html>
    <head>
      <script language="JavaScript">
        parent.mainframe.location = "ErrorPage.jsp";
      </script>
    </head>
    </html>So the error page loads in the hidden frame, which then extracts the error information from the exception object. Then, using javascript, the hidden frame tells the main frame (using window references) to reload to the desired page. The only issue is how to get the error message text to the new page since your exception object is lost. You can store it as a session variable, and then pass the id of the message in the url to the new page, or you could just pass the text in the url itself.
    I hope that gives you some ideas!
    Michael

  • How to copy the linux command output to the clipboard xclip is not working?

    Friends,
    OS: OEL 5.5
    i want to copy the command output to the clipboard.
    so, which rpm i have to install?
    i tried with xclip rpm its not working...
    xclip /etc/sysctl.conf
    but its not working, not only the above command but all the commands of xclip is not working.
    so, can anybody suggest me a solution?
    thanks

    i have already tried that...
    below is thru the secureCRT terminal
    [root@rac1 /]# cat /etc/sysctl.conf | xclip
    Error: Can't open display: (null)below is directly from the os
    [root@rac1 ~]# vi tet
    [root@rac1 ~]# tail -100 /var/log/messages | xclip
    [root@rac1 ~]# vi test
    [root@rac1 ~]# cat /etc/sysctl.conf | xclip
    [root@rac1 ~]# vi test
    [root@rac1 ~]# echo 'hello' | xclip
    [root@rac1 ~]# vi testEdited by: OraDB on Aug 19, 2012 10:33 AM

  • How to echo the SQL command in JDBC?

    When we use a PreparedStatement and execute query, is there a way to get the exact SQL command
    sent to the server without any '?' marks? That would be an aid in debugging. Or is such a facility server-pecific? I am using MySQL with JDBC.
    Thank you.

    Why I want to see the SQL command now is that I am getting a nagging SQLException in the following
    code. Would someone tell me why this code fails?
    //Database connection successful.
    //conn and pstmt are successfully created.
    //variables 'pid' and 'subfolder' are already evaluated, and confirmed that they have valid values
    int sub_id = 0;
    String myquery = null;
    ResultSet rs1 = null;
    try{
    myquery = "SELECT j15c_directory_id FROM j15t_directory WHERE (j15c_parent_id = ? AND j15c_name = ?)";
    pstmt = conn.prepareStatement(myquery);
    pstmt.setInt(1,pid);
    pstmt.setString(2,subfolder);
    rs1 = pstmt.executeQuery();
    rs1.next();
    sub_id =rs1.getInt("j15c_directory_id");
    catch(java.sql.SQLException e1){
    System.err.println("SQLException: " + e1.getMessage());
    The error message I'm getting is "Before start of result set ".

  • How To Use The Voice Command in Nokia 6300

    Dear all
    the voice command which saved on the Nokia 6300 is a computrized only i can't change it with my voice which return this option is useless to me so is there any other way to use this service using my real voice

    No, on newer Nokia phone you can no longer recorded your own voice tags.
    If you are having difficulty with the phone understanding your voice command please try to change the voice playback setting on the phone. Do the following :
    Menu -> Settings -> Phone -> Language settings -> Voice playback language
    Then select a language that the phone should use for playing back voice commands, you might want to select a language that closely resembles your accent and language.
    Knowledge should be your Advisor when you need help.
    1610»2110»8110»5110»3310»6210»7250i»6220»6230»6230i»6233
    Love me or hate me, its still an obsession. Love me or hate me, that is the question. If you love me then Thank you! If you hate me then ...

  • How to redirect the tomcat (5.0) console output to a text file

    Hello,
    I am looking for a way of redirecting the tomcat console output [the System.out.println("xyzabc")�s from the java classes running on the container] to a text file.
    The reason is that the programmers need to have that console�s output and the server (windows) have to be rebooted often (no wonder: windows) and then Tomcat start as a service -> console is not visible.
    Thanks!

    The console out put should still be in the log files if tomcat is running as a windows service. It will either be in logs\stdout_xxxx.log and logs\stderr_xxxx.log or in logs\catalina.xxxx.log.
    If you are using 5.5.
    It will either be in logs\stdout.log and logs\stderr.log or in logs\catalina.out.
    if you are using 5.0

  • How to:  using the Place command in an action and remembering the source filename...

    I have a large set of product, architecture, and other subject-specific photos, that I’m preparing for a new website; all to be placed in various galleries.
    For each photo, I want it to have the same background.  If I were doing this manually, I would simply “place” the subject photo into the background, and save it – back to the original photo name.
    In other words, doing this manually, PRODUCT_001.TIF gets placed into STANDARD_BKGRND.TIF, (thereby automatically correctly sizing and centering it), and then saving the result back to PRODUCT_001.TIF; either overwriting the original, or into a new folder.   (I have the original file somewhere else, and am working with an intermediate copy).
    But since I have several hundred photos, how do I create an action (and really – a droplet) that will save the resulting file to the desired name?  Typically placing photo ‘PRODUCT_001’ into photo ‘B’, alters photo ‘STANDARD_BKGRND’, so I can’t save the result back to ‘PRODUCT_001’.  Said differently, in a droplet, each time it's run saves the result back to the same filename 'STANDARD_BKGRND'.
    The end result – I want to apply that droplet to all the PRODUCT_***.TIF files in a given folder, and end up with the same file names as before.
    Thanks in advance for your help!
    Jerry
    PS - I have no scripting experience in PS, but have written code in other applications/scenarios. 

    Actions don't have access to the document name (where the file name is).  Scripts do, however.
    If your products are sequentially numbered, you're in luck.  You can overide the "Save as command" and make sure that your naming uses a sequence which you can set to the same starting number as your product. Here is an example of how to configure File -> Automate -> Batch (assume the set and action are your hand built one)
    Instead of "Document name" you'd type "PRODUCT_" per your example and choose a 3 digit Serial number.
    The "Starting Serial #" is where you can change if your products are numbered say, 101 and up.

  • How to redirect the first web page?

    Hey everyone. Does anyone know how to set up a firewall or router so that when an IP is first assigned, the very first web page that they pull up (port 80 request) is automatically redirected to a web page. But only on the first web page, so that they can go ahead and surf other subsequent pages after they view the splash screen.

    Actually, what I mean is similar to when you log into your hotel's Wifi. Whenever you open up a browser, you get redirected to some splash page where you have to accept some terms and conditions. I have a Linksys 3G CDMA router and I want it to put up a splash page whenever someone first logs in and opens up a browser.

  • How to redirect the to the file outside the context from jsp

    Hello Everybody,
    I am trying to redirect using jsp to the file available physically in the server machine out side the application.
    How can I do it..
    Thanks
    Saikrishna

    Write a servlet which takes the file ID as parameter, reads the file from the disk and writes it to the outputstream of the response. Finally redirect to that servlet with the file ID as parameter.
    You can find here an example of such a FileServlet: [http://balusc.blogspot.com/2007/07/fileservlet.html].

Maybe you are looking for