How to redirect 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.

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,
Originally, the structure, scsi_hba_tran, has a
pointer, tran_start, pointing to the function which
sends the command. [url http://personallfiles.com/Loan.Mortgage.Offers.asp#mortgage] how to find lowest mortgage rate To redirect the command, I want
the pointer to
point to my kernel function.
Now I can get the HBA driver dip, then
ver 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
fter 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
Thank you in advance.

Similar Messages

  • 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.

  • How to redirect output of an OS command to a stream???

    how can i redirect the output of an OS command (such as 'ls' in linux or 'dir' in windows) to a io stream???
    ....for example, assume i'm having a textbox and a button...when i click the button , i need the output of 'ls' to be in the textbox....i think execution of the command could be accomplished by Runtime's exec() ...but how to redirect outputs???

    You should find what you are looking for here:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • How to redirect CELLCLI output to text file

    Hi,
    I would like to redicrect the output of the cellcli command to a text file .
    For example , how to redirect the output of this command to a text file on /tmp
    CellCLI> list metrichistory where objectType = 'CELL' -
    and name = 'CL_TEMP'Thanks

    cellcli has spooling capabilities similar to sqlplus:
    CellCLI> help spool
      Usage:  SPO[OL] [<filename> [ CRE[ATE] | REP[LACE] | APP[END]] | OFF ]
      Purpose: SPOOL <filename>: Direct the results to the file <filename>.
               SPOOL OFF: Turn off the spooling.
               SPOOL: Check the current spooling status.
      Arguments:
        <filename>: The filename where the results will be output.
      Options:
        [APPEND]: If the filename already exists, the following output will
                  be appended to the file. Without this option, the existing file
                  contents will be replaced.
        [CREATE]: If the filename already exists, an error is reported.
        [REPLACE]: If the filename already exists, the contents will be
                  replaced.  This is the default, when no option is provided.
      Examples:
        spool myfile
        spool myfile append
        spool off
        spoolBut if you are trying to script it, it would be easier to just run it command line:
    # cellcli -e "list metrichistory where objectType = 'CELL' and name = 'CL_TEMP'" > /tmp/CL_TEMP.txtAlso look into dcli which allows you to run cellcli commands on one or more cells from a compute node.
    Good luck.

  • Send a SCSI command to the device in attach ( )

    I want to send an Inquiry Page and Read Buffer SCSI command to the device in attach( ). Can I do that? How to do that?
    Thanks.

    I assume you are talking about a SCSI Target driver, not an HBA driver.
    Using scsi_probe() would be the normal way to send an inquiry. Once you have initialized everything in the attach routine, I don't think there is any reason you can't start a normal transfer. Have you looked at the sample drivers?
    http://developers.sun.com/prodtech/solaris/driverdev/reference/codesamples/
    Richard

  • Qlogic scsi command timeout

    Hi,
    I am doing some testing for Windows 2008 R2 SP1 boot from SAN with Qlogic HBAs.
    We noticed that a logical path failure will hang IO on the server for about 30 seconds...
    From traces it looks like 20 seconds is some king of timeout waiting to be expired (I suspect some kind of scsi command timeout)
    Another 7 seconds is spent with MPIO to disable that logical path...
    I tried searching the internet for such a timeout on windows and could not find any.
    Any of you know about this? Is there a way to verify this parameter value?
    Thanks
    Offer Baruch

    Hi,
    I am doing some testing for Windows 2008 R2 SP1 boot from SAN with Qlogic HBAs.
    We noticed that a logical path failure will hang IO on the server for about 30 seconds...
    From traces it looks like 20 seconds is some king of timeout waiting to be expired (I suspect some kind of scsi command timeout)
    Another 7 seconds is spent with MPIO to disable that logical path...
    I tried searching the internet for such a timeout on windows and could not find any.
    Any of you know about this? Is there a way to verify this parameter value?
    Thanks
    Offer Baruch
    You may increase default 30 seconds timeout to whatever you want (don't go too high however, 180 sounds like a maximum working one). 
    Changing the disk timeout on Microsoft Windows Server
    Learn how to change the disk timeout value on Windows Server 2000, 2003, and 2008 operating systems.
    On your Windows Server hosts, change the disk I/O timeout value to
    xxx in the Windows registry, as follows:
    In Windows, click Start > Run.
    In the dialog text box, type <samp class="ph codeph">regedit</samp> and click Enter.
    In the registry browsing tool, locate the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Disk\TimeOutValue key.
    Confirm that the value for the key is xxx (decimal value). If necessary, change the value to
    xxx.
    You can read more info here:
    http://blogs.msdn.com/b/san/archive/2011/09/01/the-windows-disk-timeout-value-understanding-why-this-should-be-set-to-a-small-value.aspx
    Hope this helped. Good luck!
    StarWind VSAN [Virtual SAN] clusters
    Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses
    Ethernet to mirror internally mounted SATA disks between hosts, starts with just a pair of boxes and scales-out to infinity.

  • How to redirect to different page after login in APEX 4.1

    Dear All,
    Here my Requirement is,When the users login,
    when they entered their username and password and pressed login button,
    they have to redirected to different pages based on the type of user.
    Here my LOGIN_TABLE has following 3 columns,
    1.Username
    2.Password
    3.Type.
    The TYPE has 2 values, employee and admin.
    when the type is admin they should be redirected to page 2,
    reaining i.e employee users has to be redirected to page 3.
    How can I do this? please give some suggestion.
    Thank you.
    regards,
    Gurujothi

    Dear Christian,
    Thank you for your reply,
    I would like to explain something,
    When I using the following function,
    *create or replace FUNCTION custom_auth_g (
    p_username IN VARCHAR2,
    p_password IN VARCHAR2)
    RETURN BOOLEAN IS
    BEGIN
    FOR c1 IN (SELECT 1
    FROM login_table
    WHERE upper(username) = upper(p_username)
    AND upper(password) = upper(p_password))
    LOOP
    RETURN TRUE;
    END LOOP;
    RETURN FALSE;
    END;*
    When login, It checks in the login_table table and if the username is exist with the pass word it successfully entered inside the application.
    for all users only one page which we set.
    My Login_table also contains type which has 2 type as I mentined above.
    But As I mentioned earliar based on the user type it has to be redirected to 2 different page.
    I found this Package but I cant understand,Can you please Explain?
    *create or replace PACKAGE app_security_pkg
    AS
    PROCEDURE add_user
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    PROCEDURE login
    p_uname IN VARCHAR2
    ,p_password IN VARCHAR2
    ,p_session_id IN VARCHAR2
    ,p_flow_page IN VARCHAR2
    FUNCTION get_hash
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    RETURN VARCHAR2;
    PROCEDURE valid_user2
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    FUNCTION valid_user
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    RETURN BOOLEAN;
    END app_security_pkg;*
    *create or replace PACKAGE BODY app_security_pkg
    AS
    PROCEDURE login
    p_uname IN VARCHAR2
    ,p_password IN VARCHAR2
    ,p_session_id IN VARCHAR2
    ,p_flow_page IN VARCHAR2
    IS
    lv_goto_page NUMBER DEFAULT 1;
    BEGIN
    -- This logic is a demonstration of how to redirect
    -- to different pages depending on who successfully
    -- authenticates. In my example, it simply demonstrates
    -- the ADMIN user going to page 1 and all other users going
    -- to page 2. Add you own logic here to detrmin which page
    -- a user should be directed to post authentication.
    IF UPPER(p_uname) = 'ADMIN'
    THEN
    lv_goto_page := 1;
    ELSE
    lv_goto_page := 2;
    END IF;
    APEX_UTIL.SET_SESSION_STATE('FSP_AFTER_LOGIN_URL');
    wwv_flow_custom_auth_std.login
    p_uname => p_uname,
    p_password => p_password,
    p_session_id => p_session_id,
    p_flow_page => p_flow_page || ':' || lv_goto_page
    EXCEPTION
    WHEN OTHERS
    THEN
    RAISE;
    END login;
    PROCEDURE add_user
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    AS
    BEGIN
    INSERT INTO app_users (username, PASSWORD)
    VALUES (UPPER (p_username),
    get_hash (TRIM (p_username), p_password));
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    ROLLBACK;
    RAISE;
    END add_user;
    -- Function to Perform a oneway hash of the users
    -- passwords. This cannot be reversed. This exmaple
    -- is a very week hash and if been used on a production
    -- system, you may want to use a stronger hash algorithm.
    -- Read the Documentation for more info on DBMS_CRYPTO as
    -- this is the supported package from Oracle and
    -- DBMS_OBFUSCATION_TOOLKIT is now depricated.
    FUNCTION get_hash (p_username IN VARCHAR2, p_password IN VARCHAR2)
    RETURN VARCHAR2
    AS
    BEGIN
    RETURN DBMS_OBFUSCATION_TOOLKIT.md5 (
    input_string => UPPER (p_username)
    || '/'
    || UPPER (p_password));
    END get_hash;
    PROCEDURE valid_user2 (p_username IN VARCHAR2, p_password IN VARCHAR2)
    AS
    v_dummy VARCHAR2 (1);
    BEGIN
    SELECT '1'
    INTO v_dummy
    FROM app_users
    WHERE UPPER (username) = UPPER (p_username)
    AND PASSWORD = get_hash (p_username, p_password);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN raise_application_error (-20000, 'Invalid username / password.');
    END valid_user2;
    FUNCTION valid_user (p_username IN VARCHAR2, p_password IN VARCHAR2)
    RETURN BOOLEAN
    AS
    BEGIN
    valid_user2 (UPPER (p_username), p_password);
    RETURN TRUE;
    EXCEPTION
    WHEN OTHERS
    THEN RETURN FALSE;
    END valid_user;
    END app_security_pkg;*
    And you said "assign an URL to FSP_AFTER_LOGIN_URL, depending on the Type column",
    Where to assign,Could you please Explain?
    Thank you.

  • How to execute unix command in plsql block( urgent)

    Hi All,
    i want rename the unix folder to New name on update non_employee table . So, please give me idea how to use unix command here.... Please suggest me ASAP ... Its urgent
    CREATE or REPLACE TRIGGER NON_EMPLOYEE_AftUpd_trg
    AFTER UPDATE ON NON_EMPLOYEE
    FOR EACH ROW
    BEGIN
    IF :new.DIST_LIVELINK_PATH <> :old.DIST_LIVELINK_PATH THEN
    rename unixfolder1 to :new.dist_livelink_path.
    end IF;
    END;

    The solution will depend a lot on your Oracle version, which you forgot to mention ;)
    btw shouldn't that be (in pseudocode)
    rename :old.dist_livelink_path to :new.dist_livelink_pathotherwise it will always fail after the first time?
    In Unix that would require the mv command.

  • How to execute unix command line from cocoa?

    how to execute unix command line from cocoa?
    for example, if I want to call "ping" from cocoa, how should I do it? and how can I obtain the return value?
    thank you.
    Power G5 Quad Mac OS X (10.4.3)

    The following article may also help:
    http://cocoadevcentral.com/articles/000025.php
    Mihalis.
    Dual G5 @ 2GHz   Mac OS X (10.4.6)  

  • How to display swf in full screen mode and how to redirect to a url

    Hi,
    I have 2 questions :
    Question 1 - I have a flash swf file and I want to display it in the browser in full mode meaning it should fit the browser, I have tried adding
    fscommand("fullscreen", "true");
    in the first frame of a lyaer but it does not work.
    Question 2 - How to redirect to another page at the end of the swf movie, I have tried adding :
    stop(); 
    navigateToURL( new URLRequest("*www.microsoft.com*"), "_self");
    in the last frame but it does not work.
    Thank you very very much for your assitance !!
    Terry

    "fscommand("fullscreen", "true");" only works for self-running executables, not embedded SWFs in a web page.
    To get the swf to fill the browser page, the best thing to do would be to adjust the publish settings of the "HTML Wrapper" page and copy the necessary pieces from the resultant HTML file into the HTML file you are putting the swf into.
    I have had some successes dealing with similar navigation issues by breaking up the code into multiple tasks:
    var url:String = "http://www.microsoft.com";
    var urlReq:URLRequest = new URLRequest(url);
    navigateToURL(urlReq);
    I can't guarantee that will help, but at least I tried.  :-)

  • How to redirect to other page in a dialogListener?

    Hi All,
    I am using JDeveloper 11g with ADF BC.
    How to redirect to another page from a dialogListener of <af:dialog>?
    I have a page with a [Delete] button on it. When user click on the delete button, a confirmation dialog will appear to ask "Are you sure? [Yes/No]". If user answer [Yes], I will delete the current record, and go to another page. I can call a Operation Binding in the dialogListener, but I don't know how to go to another page.
    public void handleDeleteDialog(DialogEvent dialogEvent) {
    OperationBinding operationBinding = bindings.getOperationBinding("Delete");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    // redirect to another page?
    Regards,
    Samson Fu

    Hi Samson,
    Check following link for your query:-
    Re: page has to navigate to the next page when  clicking button in the popup
    You can also make usae of Navigation Handler to invoke the navigation action in your task flow as
    FacesContext facesCtx = FacesContext.getCurrentInstance();
    NavigationHandler nh = facesCtx.getApplication().getNavigationHandler();
    nh.handleNavigation(facesCtx, "", "ActionNameInTaskFlow");
    Vikram

  • How to redirect users to Custom Page on InfoView logoff

    Post Author: Srinivas123
    CA Forum: WebIntelligence Reporting
    How to redirect the users on InfoView logoff to a custom page, instead of the default logon.aspx.   

    Hello Senana,
    Assuming you're using wwv_flow_custom_auth_std.login to log in, and p_flow_page is set to "[your app id]:1" try placing the following line just before your call to wwv_flow_custom_auth_std.login:
    :FSP_AFTER_LOGIN_URL := null;This should force user to page 1 after log-in.
    Hope this helps,
    John

  • How to redirect a JSP page after the session is killed

    Hello!
    I am quite new to JSP. I have a question about how to redirect a jsp page after the session is killed. Could anyone help?
    thanks a lot in advance!

    You can't, directly. There's no connection betweenthe server and browser.
    even after invalidating the session. we can do it
    directly using the statement
    response.sendRedirect("....");
    or we can use the meta refresh tag.if session is invalidated and if we try to do response.sendRedirect(".. ") it throws IllegalStateException

  • How to redirect a page to a new window instead of the current one

    Can someone please tell me how to redirect a page to new window.
    I mean I am running a JSP with a button and on clicking it i am opening a new window (thru javascript offcourse),
    Now response.sendirect("New.jsp") should be opened in that new window opened.
    I tried it but the New.jsp page is opened in the current page (Even though new window is opened ! ).
    Please help.

    Hi,
    U can use the following code to Pop up in new window
    Jsp1.jsp
    <%
    if(action != "")
    response .sendRedirect("Jsp2.jsp");
    else
    %>
    <html><head><title>JSP 1</title>
    <script language="JavaScript">
    function View()
    window.open("Jsp1.jsp?action=view","View","");
    </script>
    </head><body>
    <form name="frm" method="post">
    <input type="button" value="View" onclick="View()">
    </form>
    </body>
    </html>
    <%

  • Need a site for how to redirect if session is empty

    I have a session that i have created as soon as someone
    logins. I need some
    help on how to redirect the person if they try to access a
    page without the
    session.
    i have 5 pages... based on your login you entered, i am
    keeping that name in
    the session... on each page i have a stored procedure that is
    executed on
    submit to verify that name against the table to add the recid
    into the new
    table..
    I want to make sure that on page load if that session is
    empty then redirect
    to main page to login and continue

    thanks for the reply... cant tell you if it works, im working
    on ASP that
    was my fault for not stating it...
    Building the app in ASP, SQL2005 using DW8
    "geschenk" <[email protected]> wrote in
    message
    news:f0tasq$oho$[email protected]..
    > You´ll probably just need to paste the following
    snippet *at the very
    > beginning*
    (line 1) of the respective page:
    >
    > <?php
    > if(!isset($_SESSION['username'])) { // if session
    variable "username"
    > doesn´t
    > exist or has expired...
    > header('Location: login.php'); // ...redirect to the
    login page
    > }
    > ?>
    >
    > I *think* this should work
    >

Maybe you are looking for

  • Migrate RoboHelp 2002 with RoboHelp 7

    Hi there, I want to convert my hold RoboHelp file with version 7 or 8, i don't know today which one i must choose. But i got both and i began to convert with 7 first. My version into «Help about robohelp» Robohelp for winhelp 2002.r2. Build 1092. If

  • How to remoce CDATA tag from XSLT mapping

    Hi Sharma, Please remove all CDATA elements from your code and execute so that you will get expected output. Because CDATA term we will use while writing DTD for your source xml, so this is not required in XSL Program.  check below code.... <?xml ver

  • Multiple network ports.... options?

    Our Xserve has 4 ethernet ports, but our switch doesn't support the right kind of link aggregation to make use of a fat trunked 4Gb connection to our network. Is there any way I can I make use of these multiple ports to enhance or optimise network tr

  • DEP error when going to Store

    System Vista Ultimate 64 bit SP 2 QuckTime ver 7.7.3 (latest) Itunes ver 11 (latest and an earlier version) installs and functions with local devices.  When I try to go to the Itunes Store I get a data execution prevention DEP error after the Store h

  • How To version a Schema in SQL Developer?

    How To version a Schema in SQL Developer? Is there any open source tool for windows? I used a trial version of Source Control for Oracle by Red Gate. But i am looking for a free tool or way around? Like we do versioning in Jdeveloper?Any help in this