viPrintf get parameter

I have to write a GPIB (viprintf) command, and the get of the user parameter. the bleow using viPrintf is fair?

If (InstrumentName_status = viPrintf (instrSession, "TPCSTEMP", stepsize, "\n"<0)       ="" is="" right="" to="">
Return InstrumentName_status;

It 'TPCSTEMP' is a GPIB command, stepsize is a parameter which ueser set.

and is not the main function, just a son as a document DLL function!

Thank you!

Yes, I think that the return code (code State VISA) is stored in InstrumentName_status, but this writing code is not good. Ideally store the return value to a variable and a condition IF statement must be separated.

InstrumentName_status = viPrintf (instrSession, "...");

If (InstrumentName_status< 0="" )="">

...

}

In addition, this viPrintf call does not reflect the given parameter because there is no identifier '% '. You should write as

InstrumentName_status = viPrintf (instrSession, "TPCSTEMP %d\n", stepsize (int) ');

Tags: NI Software

Similar Questions

  • The mandatory "IdcService" to POST or GET parameter is missing

    Hello experts.
    When: At the time of service of jQuery as:
    var submitData = { 
         IdcService: 'MH_MAIN_ALBUM_CONTENTS',
         albumId: $(elm).attr('albumId'),
         albumName: $(elm).attr('albumName'),
         index: $(elm).attr('index')
    }; 
              
    $.ucm.executeService(submitData, function(ucmResponse) { 
    
    });
    Who:
    The request was not processed by the Service handler because of a protocol error.
    The request headers parsed from the request are:
    {IsServletRequest=1, HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E), CONTENT_TYPE=application/x-www-form-urlencoded; charset=UTF-8, SERVER_PROTOCOL_TYPE=NONE, HTTP_ACCEPT_LANGUAGE=en-in, HTTP_REFERER=http://10.0.110.59:16200/DAM_EW/index.htm#dam, HTTP_ACCEPT=text/html, */*; q=0.01, HTTP_CACHE_CONTROL=no-cache, IDCCOOKIEPATH=, HTTP_X_REQUESTED_WITH=XMLHttpRequest, HTTP_ACCEPT_ENCODING=gzip, deflate, SERVER_NAME=10.0.110.59, SERVER_SOFTWARE=WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050 Oracle WebLogic Server Module Dependencies 10.3 Thu Sep 29 17:47:37 EDT 2011 Oracle WebLogic Server on JRockit Virtual Edition Module Dependencies 10.3 Wed Jun 15 17:54:24 EDT 2011 , URI_PATH=/cs/idcplg, IDCSESSIONKEY=JSESSIONID, HTTP_COOKIE=JSESSIONID=vv7pRJFMYtfFsk9W5QQDgrjMKlvBlphRzfzmCh38cpCLbpnSj7rq!549796933; IntradocLoginState=1; __utmc=259457290; IdcLocale=English-US; IntradocAuth=Internet; __utma=259457290.1686298530.1354798527.1360237557.1360299504.5; __utmz=259457290.1354798527.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=259457290.1.10.1360299504, SERVER_PROTOCOL=HTTP, REQUEST_METHOD=POST, RemoteClientHostAddress=10.0.67.58, SERVER_PORT=16200, REMOTE_ADDR=10.0.67.58, IdcAuthChallengeType=http, IS_HTTPS=0, HTTP_HOST=10.0.110.59:16200, HTTP_CONNECTION=Keep-Alive, EXTERNAL_ACCOUNTS=#all, REMOTE_USER=tapasb, IsCookieLoggedIn=1, EXTERNAL_ROLES=admin,sysmanager,refineryadmin,rmaadmin,pcmadmin,ermadmin, IDC_REQUEST_AGENT=webserver, ThreadCount=1}
    --------------
    Mandatory parameter 'IdcService' for POST or GET is missing. Request could not be processed. Cannot find the parameter 'IdcService'. [ Details ]
    
    An error has occurred. The stack trace below shows more information.
    
    !$The request was not processed by the Service handler because of a protocol error.<br>The request headers parsed from the request are:<br>{IsServletRequest=1\, HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)\, CONTENT_TYPE=application/x-www-form-urlencoded; charset=UTF-8\, SERVER_PROTOCOL_TYPE=NONE\, HTTP_ACCEPT_LANGUAGE=en-in\, HTTP_REFERER=http://10.0.110.59:16200/DAM_EW/index.htm#dam\, HTTP_ACCEPT=text/html\, */*; q=0.01\, HTTP_CACHE_CONTROL=no-cache\, IDCCOOKIEPATH=\, HTTP_X_REQUESTED_WITH=XMLHttpRequest\, HTTP_ACCEPT_ENCODING=gzip\, deflate\, SERVER_NAME=10.0.110.59\, SERVER_SOFTWARE=WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050 Oracle WebLogic Server Module Dependencies 10.3 Thu Sep 29 17:47:37 EDT 2011 Oracle WebLogic Server on JRockit Virtual Edition Module Dependencies 10.3 Wed Jun 15 17:54:24 EDT 2011 \, URI_PATH=/cs/idcplg\, IDCSESSIONKEY=JSESSIONID\, HTTP_COOKIE=JSESSIONID=vv7pRJFMYtfFsk9W5QQDgrjMKlvBlphRzfzmCh38cpCLbpnSj7rq\!549796933; IntradocLoginState=1; __utmc=259457290; IdcLocale=English-US; IntradocAuth=Internet; __utma=259457290.1686298530.1354798527.1360237557.1360299504.5; __utmz=259457290.1354798527.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=259457290.1.10.1360299504\, SERVER_PROTOCOL=HTTP\, REQUEST_METHOD=POST\, RemoteClientHostAddress=10.0.67.58\, SERVER_PORT=16200\, REMOTE_ADDR=10.0.67.58\, IdcAuthChallengeType=http\, IS_HTTPS=0\, HTTP_HOST=10.0.110.59:16200\, HTTP_CONNECTION=Keep-Alive\, EXTERNAL_ACCOUNTS=#all\, REMOTE_USER=tapasb\, IsCookieLoggedIn=1\, EXTERNAL_ROLES=admin\,sysmanager\,refineryadmin\,rmaadmin\,pcmadmin\,ermadmin\, IDC_REQUEST_AGENT=webserver\, ThreadCount=1}<br>--------------<br>Mandatory parameter 'IdcService' for POST or GET is missing. Request could not be processed.!syParameterNotFound,IdcService
    intradoc.data.DataException: !syParameterNotFound,IdcService
            at intradoc.data.DataBinder.getEx(DataBinder.java:1253)
            at intradoc.data.DataBinder.get(DataBinder.java:1052)
            at intradoc.server.ServiceManager.processCommand(ServiceManager.java:347)
            at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
            at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1354)
            at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1731)
            at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:222)
            at sun.reflect.GeneratedMethodAccessor415.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at idcservlet.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:87)
            at idcservlet.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:305)
            at idcservlet.common.ClassHelperUtils.executeMethodWithArgs(ClassHelperUtils.java:278)
            at idcservlet.ServletUtils.executeContentServerIntegrateMethodOnConfig(ServletUtils.java:1696)
            at idcservlet.IdcFilter.doFilter(IdcFilter.java:457)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
            at java.security.AccessController.doPrivileged(Native Method)
            at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
            at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
            at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
            at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
            at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
            at java.security.AccessController.doPrivileged(Native Method)
            at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
            at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
            at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
            at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
            at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    The service worked very well. Suddenly, since yesterday, I started this error. Any suggestions would be very helpful.

    See http://bexhuff.com/2010/06/oracle-ucm-jquery-plugin-for-ajax or http://cfour.fishbowlsolutions.com/2010/06/11/jquery-and-ucm/

    The only clue I could understand is - you use

    IdcService: 'MH_MAIN_ALBUM_CONTENTS',
    

    and they do

    IdcService : "PING_SERVER"
    

    Perhaps, you will need to use "instead of"? "

  • Not sure why I get parameter with Group param count mismatch.

    Hi again,

    So, for everything that you regulars out there, I'm sure you're tired of the questions.  I'm developing with sheets of AE, so I'll probably be here more often as you like!

    I have trouble understanding why I get a parameter count mismatch error when I consolidate some parameters with PF_ADD_TOPIC().

    Here is the enum that I have in my .h file:

    enum {
        MY_TOPIC_LAYER_START,
        MY_ENABLE_LAYER,
        MY_FORM,
        MY_TOPIC_LAYER_END,
        MY_NUM_PARAMS
    };
    

    Here is the code I have in my ParamsSetup():

    {
              PF_Err                    err                    = PF_Err_NONE;
              PF_ParamDef          def;
    
        AEFX_CLR_STRUCT(def);
        PF_ADD_TOPIC("Options", MY_TOPIC_LAYER_START);
    
            AEFX_CLR_STRUCT(def);
            PF_ADD_CHECKBOXX("Enable Layer", true, PF_ParamFlag_CANNOT_TIME_VARY, MY_ENABLE_LAYER);
    
            AEFX_CLR_STRUCT(def);
            PF_ADD_LAYER("Form Group", 0, MY_FORM);
    
        AEFX_CLR_STRUCT(def);
        PF_END_TOPIC(MY_TOPIC_LAYER_END);
    
        printf("\nMy Plugin has %d parameters",MY_NUM_PARAMS);
    
              out_data->num_params = MY_NUM_PARAMS;
    
              return err;
    }
    

    So, why I get a shift parameter count error?  What should I change?

    Thank you!

    Well I googled a little and found this thread with the same question asked by the one and only Andrew Kramer in 2007. It was resolved by adding a the out_data-> num_params value.  He has also worked for me, although I really don't see who is in the Paramarama example.  What gives?  If I do:

    out_data-> num_params = MY_NUM_PARAMS + 1;

    The plugin works fine and I get no incompatibility errors in counting.  By I want to understand why.  The bbb user (who I also see throughout the comments in the SDK) States:

    .. .because that each plug-in receives a layer of input params [0].

    Well, I guess that could be placed in the SDK documentation during the review parameters to establish useful information.  So, why the examples need not + 1 their out_data-> num_params?

  • Internet link with the GET parameter

    I try to make a link to a Web page at the end of my session of e-Learning with GET - parameters e.g. http://www.MyPage.com?PAR1=name & PAR2 = Surname

    Is it possible to do that - I tried to use custom variables (NAME, first NAME) and try to make a link to a URL like

    NAME of http://www.mypage.com?par1=$ $$$ & par2 = NAME$ $$$ but the url with the content of the Captivate process variables won´t.

    You can not do like this directly from Captivate unfortunately.

    You must create a JavaScript function instead (and put in your HTML) and then call this function from Captivate. With the help of JavaScript, it is possible to recover the user defined and variable system in Captivate, then you can build your link as you please.

    / Michael

    Click here to visit the blog of www.captivate4.com

  • Trying to create the repair disk. I get incorrect parameter 0 x 800 70057

    I am trying to create a repair disk after installing Windows 7 Professional. I get "parameter is incorrect0x80070057.

    A prompt by right clicking and select "Run as Administrator"
    and then at the command prompt, type: chkdsk /f r, then press the Enter key.

    If you are asked to plan the volumn to check the next time that the system restarts,
    Enter: y

    If you know the manufacturing of your hard drive you can also download their diagnostic software.

    Another use: SpeedFan has an online health analysis function
    (SMART tab) for hard drives. It will show how your disks
    compared with other discs of the same brand and model.
    http://www.almico.com/SpeedFan.php

    ========================================================================

    Run the SFC/scannow command. This will check and repair if necessary all of the critical Windows system files.

    Click on start / all programs/accessories then
    Right-click on the command prompt option and select "Run as Administrator".
    (or "Safe Mode" open a command prompt)
    At the command prompt, enter: SFC/scannow

    Windows 7 - order SCANNOW SFC - System File Checker
    http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.html

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    How to analyze the entries in log file generating the program Checker (SFC.exe) resources of Microsoft Windows in Windows Vista:
    http://support.Microsoft.com/kb/928228

    J W Stuart: http://www.pagestart.com

  • How to get LUN ID?

    Hello

    How can I get the LUN ID, when I run the script below, it runs successfully, but LUN ID shows empty.

    Help, please.

    Get - VM crpt01 | Get-hard drive |

    Select @{N = "VMName"; E={$_. Parent.Name}},

    @{N = "HDName"; E={$_. Name}},

    @{N = "Datastore"; {E = {Get-Datastore - VM $_}},

    @{N = "NAA"; E={$_. ScsiCanonicalName}},

    @{N = "Monday"; E = {$_parent.} RuntimeName.Split(':') [3]. Trim('L')}} |

    Export Csv C:\test001.csv - NoTypeInformation

    Take a look on vNugglets: get drives of VM and RDM using PowerCLI and see if it looks like what you're trying to do. It uses the display method which is usually much faster than the cmdlets from the example of the first.

    VMware KB: identification of the virtual drives pointing to Raw Device Mappings (RDMS) gives an example how to get just the RDM disks using the - DiskType 'RawPhysical', 'RawVirtual' hard disk Get parameter

  • Get-template-location NOMCLUSTER

    I'll try to find patterns that exist in a cluster - but -location parameters on the cmdlet get-model doesn't seem to work.  Any thoughts on a work around?

    FYI - using U1 4.1 build 332441

    Thanks in advance!

    [vSphere PowerCLI] C:\Scripts > MYTEMPLATE template-get-location
    Get-model: 28/01/2011 12:44:29 Get-model not found VIContainer with the name "MYTEMPLATE".
    On line: 1 char: 13
    + get-model < < < <-location MYTEMPLATE
    + CategoryInfo: ObjectNotFound: (MYTEMPLATE:String) [Get - Tem
    plate], VimException
    + FullyQualifiedErrorId: Core_ObnSelector_SelectObjectByNameCore_ObjectNo
    tFound, VMware.VimAutomation.ViCore.Cmdlets.Commands.GetTemplate
    Get-model: 28/01/2011 12:44:29 get parameter Template VIContainer: did not find any object specified by its name.
    On line: 1 char: 13
    + get-model < < < <-location MYTEMPLATE
    + CategoryInfo: ObjectNotFound: (VMware.VimAutom... iner Locati [])
    on: RuntimePropertyInfo) [Get-model], ObnRecordProcessingFailedException
    + FullyQualifiedErrorId: Core_ObnSelector_SetNewParameterValue_ObjectNotF
    oundCritical, VMware.VimAutomation.ViCore.Cmdlets.Commands.GetTemplate

    The same principle as your solution, but maybe a little shorter.

    $clusName = "MyCluster" $esx = Get-Cluster -Name $clusName | Get-VMHost | %{$_.Extensiondata.MoRef}
    $templates = Get-Template | where {$esx -contains $_.Extensiondata.Runtime.Host}
    
  • How to call a stored procedure with a REF CURSOR output parameter

    I'm looking forward to example calling a function/stored procedure with a REF CURSOR output parameter and get the result.
    In other words, I have a stored function/procedure that runs a SELECT statement using the OCI library and then he could get the values of each row and each column.

    I put a code snippet, it have only the main thing to call a simple stored procedure and to print the name of each column of the cursor, but I couldn t to print out values in the table that calls the stored procedure.
    I understand that the next step is to call an OCIStmtFetch.
    How to associate the slider with the OCIStmtFetch?

    If you need more information, just tell me.

    I use ANSI C with HP - UX (HP - UX C) operating system and Oracle 10 g.


    Kind regards.

    Antonio Garcia


    / * callOracleSP * /.

    #include < stdio.h >
    #include < string.h >
    #include < oci.h >
    #include < stdlib.h > to

    char * pConnectChar = "Server";
    char * pUsernameChar = "user";
    char * pPasswordChar = "passwd";
    char * sqlCharArray1 = "BEGIN SP_GETCITIES (:,: c); END; « ;
    int retval;
    UB4 parmcnt = 0;
    UB4 pos2 = 0;
    text * pcoln [20];
    UB4 namelen [20];
    char state_key [5];

    OCIStmt * pOciStatement;
    OCIStmt * pOciStatCursor;
    OCIError * pOciError;
    OCIEnv * pOciEnviron;
    OCIServer * pOciServer;
    OCISession * pOciSession;
    OCISvcCtx * pOciServiceContext;
    OCIBind * pOciBind [500];
    OCIParam * pOciParam;


    int main()
    {
    retval = OCIEnvCreate (& pOciEnviron, OCI_DEFAULT, NULL, NULL, NULL, NULL, 0, NULL);
    retval = OCIEnvInit (& pOciEnviron, OCI_DEFAULT, 0, NULL);
    retval = OCIHandleAlloc (pOciEnviron, (void *) & pOciError, OCI_HTYPE_ERROR, 0, NULL);
    retval = OCIHandleAlloc (pOciEnviron, (void *) & pOciServiceContext, OCI_HTYPE_SVCCTX, 0, NULL);
    retval = OCIHandleAlloc (pOciEnviron, (void *) & pOciStatement, OCI_HTYPE_STMT, 0, NULL);

    retval = OCILogon (pOciEnviron, pOciError, & pOciServiceContext,(unsigned char *) pUsernameChar,
    strlen (pUsernameChar), (unsigned char *) pPasswordChar, strlen (pPasswordChar).
    (unsigned char *) pConnectChar, strlen (pConnectChar));
    printf ("retval=%d\n",retval OCILogon);

    retval = OCIStmtPrepare (pOciStatement, pOciError, (unsigned char *) sqlCharArray1, strlen (sqlCharArray1),)
    OCI_NTV_SYNTAX, OCI_DEFAULT);
    printf ("StmtPrepare retval=%d\n",retval);

    retval = OCIHandleAlloc (pOciEnviron, (void *) & pOciStatCursor, OCI_HTYPE_STMT, 0, NULL);
    retval = 1 OCIBindByPos(pOciStatement,&pOciBind[0], pOciError, (ub4), (void *) & state_key,)
    ((sb4) sizeof (state_key), SQLT_STR, (void *) 0, (ub2 *) 0, (ub2 *) 0, (ub4) 0, (ub4 *) 0, OCI_DEFAULT (ub4));
    printf ("BindByPos OCI_HTYPE_STMT retval=%d\n",retval);

    retval = OCIBindByPos(pOciStatement,&pOciBind[1], pOciError, (ub4) 2, (void *) & pOciStatCursor,)
    ((sb4) 0, SQLT_RSET, (void *) 0, (ub2 *) 0, (ub2 *) 0, (ub4) 0, (ub4 *) 0, OCI_DEFAULT (ub4));
    printf ("BindByPos OCI_HTYPE_STMT retval=%d\n",retval);

    strcpy (state_key, 'ca');

    retval = OCIStmtExecute (pOciServiceContext, pOciStatement, pOciError, (ub4) 1, (ub4) 0,)
    (OCISnapshot *) NULL, (OCISnapshot *) NULL, OCI_DEFAULT (ub4));
    printf ("StmtExecute retval=%d\n",retval);

    / * How to get the values of the cursor? */

    / * Number of parameters of the cursor * /.
    OCIAttrGet ((void *) pOciStatCursor, OCI_HTYPE_STMT (ub4), (void *) & parmcnt,(ub4 *) 0,)
    (ub4) (OCI_ATTR_PARAM_COUNT, pOciError);
    printf ("\nNumber of the slider settings = %d\n",parmcnt);

    for (int pos = 1; pos < = (int) parmcnt; pos ++)
    {
    OCIAttrGet ((void *) pOciStatCursor, OCI_HTYPE_STMT (ub4), (void *) & pos2,(ub4 *) 0,)
    (ub4) (OCI_ATTR_CURRENT_POSITION, pOciError);
    retval = OCIParamGet ((void *) pOciStatCursor, OCI_HTYPE_STMT (ub4), pOciError, (void *) & pOciParam,)
    POS (ub4));
    OCIAttrGet pOciParam, (ub4) ((void*) OCI_DTYPE_PARAM,(void*) & pcoln [pos - 1],(ub4 *) & namelen [pos-1],)
    (ub4) OCI_ATTR_NAME,(OCIError *) pOciError);
    }
    for (int i = 1; i < = (int) parmcnt; i ++)
    printf ("%i\tNAME = % column. ("* s\n", i, namelen [i-1], pcoln [i-1]);

    return 0;
    }


    This is the script that create the table, insert records and create the stored procedure

    CREATE TABLE CITIES)
    STATE_CODE VARCHAR2 (2) NULL,
    CITY_CODE NUMBER (15.5) NULL,
    CITY_NAME VARCHAR2 (30) NULL
    )
    /


    INSERT INTO CITIES (STATE_CODE, CITY_CODE, CITY_NAME)
    VALUES ('CA', 30, 'SAN DIEGO')
    /
    INSERT INTO CITIES (STATE_CODE, CITY_CODE, CITY_NAME)
    VALUES ('CA', 40 'SACRAMENTO')
    /
    INSERT INTO CITIES (STATE_CODE, CITY_CODE, CITY_NAME)
    VALUES ('FL', 10, 'MIAMI')
    /
    INSERT INTO CITIES (STATE_CODE, CITY_CODE, CITY_NAME)
    VALUES ('FL', 20, 'ORLANDO')
    /
    INSERT INTO CITIES (STATE_CODE, CITY_CODE, CITY_NAME)
    VALUES ('NEW YORK', 10, 'NEW YORK')
    /
    INSERT INTO CITIES (STATE_CODE, CITY_CODE, CITY_NAME)
    VALUES ('NEW YORK', 20, 'ALBANY')
    /
    INSERT INTO CITIES (STATE_CODE, CITY_CODE, CITY_NAME)
    VALUES ('CA', 10, 'LOS ANGELES')
    /
    INSERT INTO CITIES (STATE_CODE, CITY_CODE, CITY_NAME)
    VALUES ('CA', 20, 'SAN FRANCISCO')
    /


    CREATE or REPLACE PACKAGE globalPkg AUTHID CURRENT_USER AS
    / * The following is specific global variables T/SQL. */
    TYPE RCT1 IS REF CURSOR; / * new cursor low definition * /.
    END globalPkg;
    /



    CREATE OR REPLACE PROCEDURE SP_ADDCITY)
    P_STATE_CODE IN VARCHAR,
    P_CITY_CODE NUMBER,
    P_CITY_NAME IN VARCHAR2,
    P_RETURN IN NUMBERS)
    AS
    StoO_error INTEGER;
    StoO_selcnt INTEGER;
    StoO_rowcnt INTEGER;
    StoO_errmsg VARCHAR2 (255);

    BEGIN
    StoO_rowcnt: = 0;
    StoO_error: = 0;
    StoO_selcnt: = 0;
    P_RETURN: = 0;
    INSERT INTO CITIES (STATE_CODE, CITY_CODE, CITY_NAME)
    VALUES (P_STATE_CODE, P_CITY_CODE, P_CITY_NAME);
    StoO_rowcnt: = number of LINES SQL %;
    EXCEPTION
    WHEN TOO_MANY_ROWS THEN
    StoO_rowcnt: = 2;
    WHILE OTHERS THEN
    StoO_rowcnt: = 0;
    StoO_selcnt: = 0;
    StoO_error: = SQLCODE;
    StoO_errmsg: = SQLERRM;
    IF StoO_error! = 0 THEN
    BEGIN
    P_RETURN: = 1;
    RETURN;
    END;
    END IF;
    END;
    /

    CREATE OR REPLACE PROCEDURE SP_GETCITIES)
    STATE_KEY IN VARCHAR,
    RC1 IN OUT globalPkg.RCT1)
    AS
    StoO_error INTEGER;
    StoO_selcnt INTEGER;
    StoO_rowcnt INTEGER;
    StoO_errmsg VARCHAR2 (255);
    BEGIN
    StoO_rowcnt: = 0;
    StoO_error: = 0;
    StoO_selcnt: = 0;
    OPEN FOR RC1
    SELECT STATE_CODE, CITY_CODE, FRANCISCO
    CITIES
    WHERE STATE_CODE = STATE_KEY
    ORDER BY CITY_CODE;
    StoO_rowcnt: = number of LINES SQL %;
    EXCEPTION
    WHILE OTHERS THEN
    StoO_rowcnt: = 0;
    StoO_error: = SQLCODE;
    StoO_errmsg: = SQLERRM;
    END;
    /

    Hi Antonio,.

    I see this:

    c_buf=(ub1 **)calloc(sizeof(ub1 *),3);
    
    ...
    
    rc=OCIDefineByPos(pOciStatCursor,&pdef,(OCIError *)pOciError,pos,c_buf[pos-1],size+1,(ub2)type,(dvoid *)c_indp[pos-1],(ub2 *)0,(ub2 *)0,OCI_DEFAULT);
    

    That I don't understand. You allocate space for 3 pointers ub1 but I don't see where these pointers are then initialized to point to where the data is to be stored.

    I do not read correctly?

    Sorry for posting code long, but here is an example of code that I have. It is much more 'code' for your code, but maybe that will be enough...

    NOTE: This is just the code example and not rigorous. For example, I don't check the memory, allocations etc in this code!

    Kind regards

    Mark

    #ifdef WIN32
    #define _CRT_SECURE_NO_DEPRECATE 1
    #endif
    
    #include 
    #include 
    #include 
    #include 
    
    void checkerr(sword status, OCIError *errhp);
    
    int main(int argc, char *argv[]) {
      OCIEnv      *envhp = NULL;  /* OCI Environment handle     */
      OCIError    *errhp = NULL;  /* OCI Error handle           */
      OCISvcCtx   *svchp = NULL;  /* OCI Service Context handle */
      OCIServer   *srvhp = NULL;  /* OCI Server handle          */
      OCISession  *usrhp = NULL;  /* OCI User Session handle    */
    
      OCIStmt     *stmtp = NULL;  /* OCI Statement handle       */
      OCIStmt     *cursr = NULL;  /* OCI Statement handle       */
    
      OCIParam    *prmp1 = NULL;  /* OCI Parameter handle       */
      OCIParam    *prmp2 = NULL;  /* OCI Parameter handle       */
      OCIParam    *prmp3 = NULL;  /* OCI Parameter handle       */
    
      OCIDefine   *defp1 = NULL;  /* OCI Define handle          */
      OCIDefine   *defp2 = NULL;  /* OCI Define handle          */
      OCIDefine   *defp3 = NULL;  /* OCI Define handle          */
    
      OCIBind     *bndp1 = NULL;  /* OCI Bind handle            */
      OCIBind     *bndp2 = NULL;  /* OCI Bind handle            */
      OCIBind     *bndp3 = NULL;  /* OCI Bind handle            */
    
      /* used to hold column width */
      ub2 col_width;
    
      /* used to set the prefetch count */
      ub4 prefetch_count = 32;
    
      /* will hold output from database */
      oratext *pEmpId = NULL;
      oratext *pFirstName = NULL;
      oratext *pLastName = NULL;
    
      /* the anonymous block to execute */
      /* this opens a ref cursor        */
      oratext *sqlstmt = "begin " \
                         "  open :1 for " \
                         "  select   to_char(employee_id), " \
                         "           first_name, " \
                         "           last_name " \
                         "  from     hr.employees " \
                         "  order by last_name, " \
                         "           first_name; " \
                         "end;";
    
      /* used to hold the results of each OCI call */
      sword result = 0;
    
      /* Initialize and create a default environment  */
      result = OCIEnvCreate(&envhp,
                            OCI_DEFAULT,
                            (dvoid *) 0,
                            0,
                            0,
                            0,
                            (size_t) 0,
                            (dvoid **) 0);
    
      /* allocate an error handle */
      result = OCIHandleAlloc((dvoid *) envhp,
                              (dvoid **) &errhp,
                              OCI_HTYPE_ERROR,
                              0,
                              (dvoid **) 0);
    
      /* allocate a service context handle */
      result = OCIHandleAlloc((dvoid *) envhp,
                              (dvoid **) &svchp,
                              OCI_HTYPE_SVCCTX,
                              0,
                              (dvoid **) 0);
    
      /* allocate a server handle */
      result = OCIHandleAlloc((dvoid *) envhp,
                              (dvoid **) &srvhp,
                              OCI_HTYPE_SERVER,
                              0,
                              (dvoid **) 0);
    
      /* allocate a user session handle */
      result = OCIHandleAlloc((dvoid *) envhp,
                              (dvoid **) &usrhp,
                              OCI_HTYPE_SESSION,
                              0,
                              (dvoid **) 0);
    
      /* create a server context using the "ORADEMO" database */
      result = OCIServerAttach(srvhp,
                               errhp,
                               "ORADEMO",
                               (ub4) strlen("ORADEMO"),
                               OCI_DEFAULT);
    
      /* set the server attribute in the service context handle */
      result = OCIAttrSet((dvoid *) svchp,
                          OCI_HTYPE_SVCCTX,
                          (dvoid *) srvhp,
                          (ub4) 0,
                          OCI_ATTR_SERVER,
                          errhp);
    
      /* open the session with the database */
      /* using external authentication      */
      result = OCISessionBegin(svchp,
                               errhp,
                               usrhp,
                               OCI_CRED_EXT,
                               OCI_DEFAULT);
    
      /* set the user session attribute in the service context handle */
      result = OCIAttrSet((dvoid *) svchp,
                          OCI_HTYPE_SVCCTX,
                          (dvoid *) usrhp,
                          (ub4) 0,
                          OCI_ATTR_SESSION,
                          errhp);
    
      /* allocate the statement handle */
      result = OCIHandleAlloc((dvoid *) envhp,
                              (dvoid **) &stmtp,
                              OCI_HTYPE_STMT,
                              0,
                              (dvoid **) 0);
    
      /* prepare the statement for execution */
      result = OCIStmtPrepare(stmtp,
                              errhp,
                              sqlstmt,
                              (ub4) strlen((char *) sqlstmt),
                              OCI_NTV_SYNTAX,
                              OCI_DEFAULT);
    
      /* allocate the handle for the ref cursor */
      result = OCIHandleAlloc((dvoid *) envhp,
                              (void **) &cursr,
                              OCI_HTYPE_STMT,
                              0,
                              NULL);
    
      /* bind the ref cursor parameter */
      result = OCIBindByPos(stmtp,
                            &bndp1,
                            errhp,
                            1,
                            &cursr,
                            0,
                            SQLT_RSET,
                            NULL,
                            0,
                            NULL,
                            0,
                            0,
                            OCI_DEFAULT);
    
      /* execute the statement */
      result = OCIStmtExecute(svchp,
                              stmtp,
                              errhp,
                              1,
                              0,
                              NULL,
                              NULL,
                              OCI_DEFAULT);  
    
      /* get parameter descriptor for first column */
      result = OCIParamGet((dvoid *) cursr,
                           OCI_HTYPE_STMT,
                           errhp,
                           (dvoid **) &prmp1,
                           (ub4) 1);
    
      /* get parameter descriptor for second column */
      result = OCIParamGet((dvoid *) cursr,
                           OCI_HTYPE_STMT,
                           errhp,
                           (dvoid **) &prmp2,
                           (ub4) 2);
    
      /* get parameter descriptor for third column */
      result = OCIParamGet((dvoid *) cursr,
                           OCI_HTYPE_STMT,
                           errhp,
                           (dvoid **) &prmp3,
                           (ub4) 3);
    
      /* get the first column width in characters */
      result = OCIAttrGet((dvoid*) prmp1,
                          (ub4) OCI_DTYPE_PARAM,
                          (dvoid*) &col_width,
                          (ub4 *) 0,
                          (ub4) OCI_ATTR_DATA_SIZE,
                          errhp);
    
      /* allocate memory to hold the result */
      pEmpId = (oratext *) malloc(sizeof(oratext) * (col_width + 1));
    
      /* define the first column in the results */
      result = OCIDefineByPos(cursr,
                              &defp1,
                              errhp,
                              1,
                              (dvoid *) pEmpId,
                              (sword) col_width + 1,
                              SQLT_STR,
                              (dvoid *) NULL,
                              (ub2 *) 0,
                              (ub2 *) 0,
                              OCI_DEFAULT);
    
      /* get the second column width in characters */
      result = OCIAttrGet((dvoid*) prmp2,
                          (ub4) OCI_DTYPE_PARAM,
                          (dvoid*) &col_width,
                          (ub4 *) 0,
                          (ub4) OCI_ATTR_DATA_SIZE,
                          errhp);
    
      /* allocate memory to hold the result */
      pFirstName = (oratext *) malloc(sizeof(oratext) * (col_width + 1));
    
      /* define the second column in the results */
      result = OCIDefineByPos(cursr,
                              &defp2,
                              errhp,
                              2,
                              (dvoid *) pFirstName,
                              (sword) col_width + 1,
                              SQLT_STR,
                              (dvoid *) NULL,
                              (ub2 *) 0,
                              (ub2 *) 0,
                              OCI_DEFAULT);
    
      /* get the third column width in characters */
      result = OCIAttrGet((dvoid*) prmp3,
                          (ub4) OCI_DTYPE_PARAM,
                          (dvoid*) &col_width,
                          (ub4 *) 0,
                          (ub4) OCI_ATTR_DATA_SIZE,
                          errhp);
    
      /* allocate memory to hold the result */
      pLastName = (oratext *) malloc(sizeof(oratext) * (col_width + 1));
    
      /* define the third column in the results */
      result = OCIDefineByPos(cursr,
                              &defp3,
                              errhp,
                              3,
                              (dvoid *) pLastName,
                              (sword) col_width + 1,
                              SQLT_STR,
                              (dvoid *) NULL,
                              (ub2 *) 0,
                              (ub2 *) 0,
                              OCI_DEFAULT);
    
      /* loop through and print the results */
      while ((result = OCIStmtFetch(cursr,
                                    errhp,
                                    (ub4) 1,
                                    (ub2) OCI_FETCH_NEXT,
                                    (ub4) OCI_DEFAULT)) == OCI_SUCCESS)
      {
        printf("Employee ID: %s\n", pEmpId);
        printf(" First Name: %s\n", pFirstName);
        printf("  Last Name: %s\n\n", pLastName);
      }
    
      /* free allocated memory */
      free(pEmpId);
      free(pFirstName);
      free(pLastName);
    
      pEmpId = NULL;
      pFirstName = NULL;
      pLastName = NULL;
    
      /* terminate the session with the database */
      result = OCISessionEnd(svchp, errhp, usrhp, OCI_DEFAULT);
    
      /* detach from the server */
      result = OCIServerDetach(srvhp, errhp, OCI_DEFAULT);
    
      /* deallocate the environment handle     */
      /* OCI will deallocate the child handles */
      result = OCIHandleFree((dvoid *) envhp, OCI_HTYPE_ENV);
    
      return OCI_SUCCESS;
    }
    
    void checkerr(sword status, OCIError *errhp)
    {
      oratext errbuf[512];
      sb4 errcode = 0;
    
      switch (status) {
        case OCI_SUCCESS:
          break;
    
        case OCI_ERROR:
        case OCI_SUCCESS_WITH_INFO:
          (void) OCIErrorGet((dvoid *) errhp, (ub4) 1, (oratext *) NULL, &errcode, errbuf, (ub4) sizeof(errbuf), OCI_HTYPE_ERROR);
          (void) printf("Error: %.*s\n", sizeof(errbuf), errbuf);
          break;
    
        case OCI_NEED_DATA:
          (void) printf("Error - OCI_NEED_DATA\n");
          break;
    
        case OCI_NO_DATA:
          (void) printf("Error - OCI_NO_DATA\n");
          break;
    
        case OCI_INVALID_HANDLE:
          (void) printf("Error - OCI_INVALID_HANDLE\n");
          break;
    
        case OCI_STILL_EXECUTING:
          (void) printf("Error - OCI_STILL_EXECUTING\n");
          break;
    
        case OCI_CONTINUE:
          (void) printf("Error - OCI_CONTINUE\n");
          break;
    
        default:
          break;
      }
    }
    
  • Scan for SQL Injection

    Hello

    My site has been pulled down by the host. They sent me the following message is displayed:

    "We got information that there is injection of SQL code on our server and when we draw the injection point is for your domain. '.
    This is the type of attack:
    SQL generic sql update injection attempt - GET, SQL union select parameter - possible sql injection attempt - GET parameter

    That's why we need to disable your Web site for temporary.
    Please, scan your PC and the Web site of local files and make sure that your local files from PC and the site Web is virus-free.
    If you have you analyze local files on PC and the website also make sure that there is no virus please update this post once again.
    So we can reactivate your website. »

    Anyone know what I use for scanning for this please?

    Thank you

    Apple hosts your Web site?

  • Run two MySQL commands as SET @a = 'foo '; SELECT @a; in Labiew?

    I would like to test some MySQL's stored procedures that have parameters OUT. In Toad for MySQL, I can write

    CALL CleverProcedure (42, @var);
    SELECT @var;

    And I'll get the @var out parameter value. If I try the same thing in my standard, simple 'RunSQL.vi' I get syntax errors when using several MySQL set commands. "I use ' DB tools run query VI" on the basis of data/advanced palette.

    I think that there is a quick way to do this? It's only for the test, so I don't mind beeing solution quick and dirty!

    / Ola

    Use creating parameterized query VI.  The text of the query will be the name of your stored procedure, and you will need to build an array of parameters for the input and output parameters.  Entrance to the stored procedure must be true.  A thread that in executing query VI, followed by the Get parameter value VI.

    Something like this should work (untested).  You need to establish the connection details.

  • dv5 1002nr difficulty for the black screen and 2 flashing lights

    Hello!

    So I have this laptop (dv5 1002nr) and of course just after the warranty goes out did the laptop. This original computer was one of my friends who took to Best Buy Geek Squad and they told him to fix this laptop it would cost $400 if not more.

    So to make a long story short, she got a new computer and I helped get parameter and everything and then I asked for this laptop (I have set now free) did not work if I could have. He was a useless piece of junk so she agreed.

    After about an hour of resistance tests, transistors, etc., I can verify that all energy through the computer is as it should. I spent maybe 30 minutes on Google without success, and finally I decided to try everything. I started with the new ram without success. I tried all the silly little "trouble shooting tips" HP has for this laptop.  I'm running a little more than 2 hours working on this seemingly useless task when I finally managed to make it work.

    I did about 3 - 5 times now and it works every time.

    First I remove all the ram and then turn it on. (of course it doesn't)

    Turn the power off.

    Then remove the processor and turn it on. (attention)

    Disable.

    Put the processer back in and turn it on. (still not working)

    Disable.

    Put the ram back in and turn on.

    That's what I did and it works every time for me.

    Since I was only 17 and a little short on money I can't go just around portable computers purchase like these with this problem and test this further.

    If anyone has this problem please try this and let me know.

    Oh and HP. thank you very much your 'support' really helped me... at the expense of my portfolio.

    Oh and one thing...

    I did the 'live chat' and they said that my laptop having is not a display might be due to my hard drive or the motherboard.

    1. the hard drive would not effect my monitor does not. Or on a hard disk of the computer AFTER.

    2. except when he said to the motherboard he also lies the processor he was wrong, once again.

    3. it is a faulty laptop and I know other people have had this problem I hope, they read this insead of wasting their time with "HP support".

    GYM - after 2 years dead my DV-5 is back to life.

    Turn on your computer - press and hold what ESC - then the END button repeatedly.

    It worked for me

  • How about you, the personalization feature in reading a csv file?

    I want to know about the personalization feature and how to implement it in j2me blackberry for reading a csv file

    So guys someone help me about this

    It is a code that I found somewhere that will provide this type of functionality.

    It uses % and $ to indicate where substitutions must go, and the number between the two is used as the index in the array of strings that you provide as the second parameter.

    I suspect that you can adapt it to your needs.

    As Simon points out, it's really just a problem of standard Java, and you will be able to find solutions to these kinds of things looking around the Internet rather than here, where our attention is BlackBerry Java.    in fact, I think I found this code somewhere on the Net.

            private final static char LEFT_INDICATOR = '%';
            private final static char RIGHT_INDICATOR = '$';
    
            /**
            * Replace placeholders in template with parameters.
            *
            * @param message  the template with placeholders
            * @param params   array of parameters
            * @return         buffer containing formatted message
            */
            public static String formatMessage(String message, String[] params) {
                    if (message == null || message.length() < 1 || params == null || params.length < 1 ) {
                            throw new NullPointerException("formatMessage Template or parameter array is null or empty.");
                    }
                    boolean inside = false;
                    boolean escaped = false;
                    StringBuffer result = new StringBuffer();
                    StringBuffer placeholder = null;
                    char lookingFor = LEFT_INDICATOR;
                    char c;
    
                    for (int i = 0; i < message.length(); i++) {
                            c = message.charAt(i);
                            if (c == lookingFor) {
                                    if (escaped) {
                                            result.append(c);
                                            escaped = false;
                                            continue;
                                    }
                                    if (c == LEFT_INDICATOR) {
                                            // look ahead for escaped indicator
                                            if ((i + 1) < message.length() &&
                                                    message.charAt(i + 1) == LEFT_INDICATOR) {
                                                    escaped = true;
                                            } else {
                                                    inside = true;
                                                    lookingFor = RIGHT_INDICATOR;
                                                    placeholder = new StringBuffer();
                                            }
                                    } else {
                                            inside = false;
                                            lookingFor = LEFT_INDICATOR;
                                            // placeholder finished get parameter
                                            int index = -1;
                                            try {
                                                    index = Integer.parseInt(placeholder.toString());
                                                    result.append(params[index-1]);
                                            } catch (Throwable t) {
                                                    result.append(Characters.EM_DASH); // Something
                                                    t.printStackTrace();
                                                    LibraryRepository.logEventError("Format Error for:" + message +
                                                            ", placeholder: " + placeholder.toString() + ", parm #:" + params.length);
                                            }
                                    }
                            } else {
                                    if (inside) {
                                            placeholder.append(c);
                                    } else {
                                            result.append(c);
                                    }
                            }
                    }
                    // for
                    return result.toString();
            }
    
  • New-VM

    Hi all

    I'm trying to script on the creation of a cluster of virtual machines. I use the option Import-CSV and when I run the script I get continuous error

    "New-VM: could not validate the argument on the 'Name' parameter." The argument is null or
    empty. Provide an argument that is not null or empty, and then try the command ag
    Ain.
    To D:\Pathtoscriptandscriptname.ps1: tank 4:15
    + New-VM-name < < < < $_. Name - VMHost (Get-VMHost GetHosts) - Datastor
    (Get-Datastore GetTheDatastores) e - DiskMB $_. OSDisk - MemoryMB $_. MEM - NumCpu $_. NUM
    CPU - RunAsync - WhatIf
    + CategoryInfo: InvalidData: (:)) [new-VM], ParameterBindingValid)
    ationException
    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutom
    ation.ViCore.Cmdlets.Commands.NewVM ".

    SE connect-VIServer VCServer
    Import-CSV D:\Pathtoscriptandscriptname.ps1 | Foreach
    (
    New-VM-name $_. Name - VMHost ESXHost - MemoryMB $_. MEM - NumCpu $_. NumCPU - RunAsync - WhatIf

    )

    Also when I run the script, I get the following...


    ForEach-Object cmdlet in the command pipeline position 2
    Provide values for the following parameters:
    Process [0]:

    I ran the Import-CSV to the command window and displays in the command window fiine. I can't understand what is problems...

    Thanks in advance.

    If you do:

    Get-Help New-VM-complete

    under the SYNTAX, you will see that there are four sets of parameters of the New-VM cmdlet. DiskMB, MemoryMB, NumCPU and ID settings are only in the first parameter. The setting of the virtual machine is defined only in the second parameter. You must use parameters from a single parameter configured only. Otherwise, you get the error 'parameter set can be solved by using named parameters'.

    You can easily see what parameter, define a function using Hal Rottenberg Get-parameter parameter belongs.

    Get news-VM parameter. Sort-Object ParameterSet, name | Select-Object Name, Parameterset. Format-Table - AutoSize

    gives the following result:

    Name ParameterSet
    ----                ------------
    Data store CloneVm
    Description CloneVm
    DiskStorageFormat CloneVm
    DrsAutomationLevel CloneVm
    HAIsolationResponse CloneVm
    HARestartPriority CloneVm
    Location CloneVm
    Name CloneVm
    OSCustomizationSpec CloneVm
    ResourcePool CloneVm
    RunAsync CloneVm
    Server CloneVm
    VApp CloneVm
    VM CloneVm
    VMHost CloneVm
    AlternateGuestName Imagefieldconfig
    CD Imagefieldconfig
    Data store Imagefieldconfig
    Description Imagefieldconfig
    DiskMB Imagefieldconfig
    DiskPath Imagefieldconfig
    DiskStorageFormat Imagefieldconfig
    DrsAutomationLevel Imagefieldconfig
    Floppy Imagefieldconfig
    ID Imagefieldconfig
    HAIsolationResponse Imagefieldconfig
    HARestartPriority Imagefieldconfig
    Location Imagefieldconfig
    MemoryMB Imagefieldconfig
    Name Imagefieldconfig
    NetworkName Imagefieldconfig
    NumCpu Imagefieldconfig
    ResourcePool Imagefieldconfig


    RunAsync Imagefieldconfig
    Server Imagefieldconfig
    VApp Imagefieldconfig
    Version Imagefieldconfig
    VMHost Imagefieldconfig
    VMSwapfilePolicy Imagefieldconfig
    Description RegisterVm
    DrsAutomationLevel RegisterVm
    HAIsolationResponse RegisterVm
    HARestartPriority RegisterVm
    Location RegisterVm
    Name RegisterVm
    ResourcePool RegisterVm
    RunAsync RegisterVm
    Server RegisterVm
    VApp RegisterVm
    VMFilePath RegisterVm
    VMHost RegisterVm
    Model of data store
    Model description
    Model DiskStorageFormat
    Model DrsAutomationLevel
    Model HAIsolationResponse
    Model HARestartPriority
    Model rental
    Model name
    Model OSCustomizationSpec
    ResourcePool model
    Model RunAsync
    Server model
    Model model
    VApp model
    Model VMHost

    If you want to clone a virtual machine, you can only use settings from the value of the CloneVm parameter.

    Best regards, Robert

  • Configuration profiles

    I have a question about setting up the profiles.  I want to know how I can set up a profile that will run for all users for all powershells including the VI toolkit.

    I setup the cmdlet get-parameter of the function get-parameter on the HAL site copy and will then need to run. .\get-parameter.ps1 every time I open a shell.  How can I get this command to be installed in my profile so that it works whenever I open a new shell.  If anyone can help with easy step by step instructions.

    (1) Yes, what you want in your PS session automatically must be placed in one of the profile.ps1 files

    (2) you can select a graphical interface as PowerGui or the Vesi where you can add your scripts and run them from there

    (3) for execution from other computers, you must take into account the ExcecutionPolicy (or sign your scripts). Note that the PS v2 remote possibilities that were missing from PS v1.

    (4) you can use the ConvertTo-Html cmdlet to produce HTML output or the Export-Csv cmdlet to create a CSV file.

  • TNSListener question

    Hello

    I have tnslr listening on tcp port 8080 and I need to stop (I don't no need)

    When I enter the lnsnrctl status, I get:


    Parameter Listener of the /opt/oracle/product/10.2/db_1/network/admin/listener.ora file
    The listener log file /opt/Oracle/product/10.2/Db_1/network/log/listener.log
    Summary of endpoints listening...
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=oracle.lubelskie.pl) (PORT = 1521)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=oracle.lubelskie.pl) (PORT = 8080)) (Presentation = HTTP)(Session=RAW))

    The problem is that I don't see port 8080 in /opt/oracle/product/10.2/db_1/network/admin/listener.ora

    How to disable?

    If you want to disable http://daust.blogspot.com/2006/01/xe-changing-default-http-port.html

Maybe you are looking for