Retrieve server identifier

I`m building a Tuxedo server using ATMI Interface/C++. I intend to run multiple
instances of that server and make diferente log files for each instance.
How can i get the server id for a particular server instance, from a service routine
code?
thanks in advance!
Rosanna

Better still, you might wanna use mypid=getpid() to get the server id for the instance,
then use the pid in the following manner.
TA_CLASS = T_SERVER
TA_OPERATION = GET
TA_FLAGS = MIB_SELF
TA_FILTER = TA_SRVID
TA_PID= mypid
In this way you will always get one server id back, the one you proposed would
return as many id's as you have servers with the server name.
"Rosanna Vasconi" <[email protected]> wrote:
>
Hi!
Thanks for the advice!
Finally, I make a request to TMIB through tpadmcall using:
TA_CLASS = T_SERVER
TA_OPERATION = GET
TA_SERVERNAME = myservername
TA_FLAGS = MIB_SELF
TA_FILTER = TA_SRVID
Thanks again,
see you next time!
Rosanna
"ashish" <[email protected]> wrote:
Hello Rosanna,
You can make a function which should be called only once and shouldbe
first statement
in ur service. This function can make a tpcall to .TMIB with input TA_CLASS,TA_OPERATION
and TA_FLAG values. It will return you several values like CLOPTs,Server
ID,Server
Group etc. I hope this will help out.
Regds
Ashish
"Rosanna Vasconi" <[email protected]> wrote:
I`m building a Tuxedo server using ATMI Interface/C++. I intend to
run
multiple
instances of that server and make diferente log files for each instance.
How can i get the server id for a particular server instance, froma
service routine
code?
thanks in advance!
Rosanna

Similar Messages

  • Could not retrieve server initialization data

    This is in regard to recent issue reported under MS Project 2010 Proffesional edition. We were trying to connect MS Project 2010 Proffesional Client edition to MS Project 2010 server so that we can upload the project to resource center directly.
    Right information is added under info-> Accounts and post to that MS Project client reports the following error "Could not retrieve server initialization data". Please let me know how to get rid of this.
    Quick help is required!!
    Thanks
    Yash Bindlish

    - Confirm you created your Project Server account within the Project Client? This is done from the backstage by clicking File > Info tab. If you haven't completed
    this step, you cannot connect to Project Server.
    - Confirm when you open Project Professional 2010, did you register the account?
    To register the account
    FILE   >>> INFO 
    >>> "Manage Accounts"
    Also, make sure all the accounts do not have a default account. 
    This is to make sure the default "Computer" account is not being used.
    Also you can try with
     “Disable the loopback check”
    http://support.microsoft.com/default.aspx/kb/896861?p=1
    Thanks

  • How do I retrieve the Identifier number from iPad 2, running iOS 5.1.1?

    I am trying to de-bug a game on my daughter's iPad 2, running iOS 5.1.1, and want to send the Advertising Identifier number to the game developer. However, I seem to be unable to retrieve the number.
    I tried downloading the app "the identifiers," but whenever I click "i" to enable numbers, it crashes.
    Also, when I visit the apple support page for retrieving the advertising identifier name, it says to enter "oo.apple.com" on the device, but that link seems to only redirect back to itself.
    Very frustrating. How else might I locate the Advertising Identifier?
    Message was edited by: chris romano

    Oh, another mistake on my part!
    I need to ENABLE the identifier on the iPad2 iOS 5.1.1... this should get The Identifier app working, and then I can read the number and tell them.
    However, on iOS 5.1.1, there is no Settings > Privacy > Advertising that I have been able to find.
    I apologize for all the fumbles on my end... I put this problem down a week ago and I am just picking it back up, so I kind of forgot some important details. Doh!

  • Problems in Retrieve Server's Data from Client through RMI

    //I feel that this question quite challenging for me. maybe it is easy for you all. anyway, so anybody if know it, pls point out my mistake and give some opinion on my programs.thanks....
    /*I have written one retrieve method in my server that is going to
    be called by the client�s pc. But I am facing the error when
    running
    it. The error is � SQL Error in retrieve statemet:
    [Microsoft][ODBC
    Microsoft Access
    Driver] Data type mismatch in criteria expression.� So anybody
    know
    where is my mistakes? Is it my server retrieveData method wrong? Or
    my client is calling not properly? Thanks.
    Actually my expected result is when client pc input the particular
    staff id , then the client textfield will show all the information
    of that particular staff according to the input id to the client
    interface text field. */
    ******************* Interface *****************************
    public interface RemoteDBServer extends
    java.rmi.Remote //RemoteDBServer interface
         public String retrieveData(String idd, String ln, String
    fn, String op, String oe, String hp, String ps, String ss) throws
    java.rmi.RemoteException;
    *************** Server Program ***********************************
    //id, last_name, first_name, office_phone, office_ext��..is a
    table�s attribute name
    //the jdbc and odbc path already been set in control panel �
    administrative tools.
    public String retrieveData(String idd) throws
    java.rmi.RemoteException
              String result=" ";
              try
              //create a statement
              Statement statement = connection.createStatement();
         String sql="SELECT * FROM emp_overview WHERE id ='"+idd+"'";
              //execute quury and capture results
              ResultSet rs = statement.executeQuery(sql);
              rs.next();
                   String ln = rs.getString("last_name");
                   String fn = rs.getString("first_name");
                   String op = rs.getString("office_phone");
                   String oe = rs.getString("office_ext");
                   String hp = rs.getString("home_phone");
                   String ps = rs.getString("primary_skill");
              String ss = rs.getString("secondary_skill");
                   statement.close();
              catch (SQLException sqlex)
         System.out.println("SQL Error in retrieve statement: "
    +sqlex);
              sqlex.printStackTrace();
         return result;
    ****************************Client Program ************************
    ..............����
    //findName already declared in JButton
    //tln, tfn, top, toe�..already declared in JTextField
    else if (event.getSource() == findName)
                   try
                        db.retrieveData(tid.getText());
                        tln.setText("");
                        tfn.setText("");
                        top.setText("");
                        toe.setText("");
                        thp.setText("");
                        tps.setText("");
                        tss.setText("");
                   catch(Exception e)
              System.out.println ("Cant delete to server " + e);

    Hi Kevin,
    It looks like your id field is of Numeric datatype and you are wrapping it with single quotes in your query, which is not correct.
    Your wrote :
    String sql="SELECT * FROM emp_overview WHERE id ='"+idd+"'";
    If id is of type numeric data type then, use:
    String sql="SELECT * FROM emp_overview WHERE id ="+idd;
    regards,
    Humayun

  • Retrieve server status of Access Manager

    Hi,
    I have just joined a company which uses Access Manager and Identity Manager.
    I have joined as a Junior and have been given a small project to work on. It includes creating a website which can retrieve the status of the several application servers. The website will be hosted on a different server to the one AM and IDM are currently hosted on.
    Could anyone please put me in the right direction.
    Many thanks,
    Kam

    Are you talking about Access Manager flopping over from ds1 to ds2 if ds1 is down?
    In serverconfig.xml look for the line containing 'Server Name' and add a line like this directly underneath of it:
    <Server name="Server2" host="ds2" port="389" type="SIMPLE" />
    Save and exit
    vi AMConfig.properties and add something like this after the existing com.iplanet.am.directory.host and com.iplanet.am.directory.port:
    /* Added for multi-master directory fail-over */
    com.iplanet.am.directory.host=ds2
    com.iplanet.am.directory.port=389
    com.iplanet.am.replica.retries=3
    com.iplanet.am.replica.delay.between.retries=5000
    /* End Added for multi-master directory fail-over */
    Save and exit
    Restart the Access Manager web container

  • Retrieve server msg from procedures located on other servers

    all works fine executing this:
    set serveroutput on;
    execute dbms_java.set_output(20000);
    execute JProg_Caller;
    Output Created By JProg_Caller:
    JProg_Caller's Message
    but when I am NOT Connected to the server where JProg_Caller is located on:
    executing this on another server:
    set serveroutput on;
    execute dbms_java.set_output(20000);
    execute JProg_Caller@ServerWhereJProg_CallerIsStored;
    I am not receiving any line, the Database link works fine and the JProg_Caller seem to do its job.
    How do I get the Lines provided by DBMS_OUTUT.put_line() ?

    Hello
    unfortunately the remote db is called like this:
    MY.OTHER.SERVER
    [email protected];
    and
    [email protected];
    function well,
    but
    [email protected] (ch_array,n );
    is causing:
    12/7 PL/SQL: Statement ignored
    12/7 PLS-00306: wrong number or types of arguments in call to
    'GET_LINES'
    DBMS_Output.get_lines@remote (ch_array,n );
    LINE/COL ERROR
    11/7 PL/SQL: Statement ignored
    11/7 PLS-00201: identifier 'DBMS_OUTPUT@REMOTE' must be declared
    11/7 PLS-00352: Unable to access another database 'REMOTE'
    o.k. because the Database remote does'nt exist.
    also
    DBMS_Output.get_lines@"MY.OTHER.SERVER" (ch_array,n );
    will cause
    12/7 PL/SQL: Statement ignored
    12/7 PLS-00306: wrong number or types of arguments in call to
    'GET_LINES'

  • How to Retrieve Server Name for creating connection pool during startup!

    Hi All,
    I am going thru the edocs documentation of weblogic for creating the connection pool and the datasource dynamically. The URL I referred to was as under
    http://edocs.bea.com/wls/docs81/jdbc/programming.html
    There is a sample given in the above-mentioned URL. The Server MBean is created by passing the server name.
    The code below mentioned was have placed in my dblib.java
    svrAdminMBean = (ServerMBean)adminMBeanHome.getAdminMBean("myserver", "Server");
    I am creating the connection pool from the servlet by invoking the dblib.java
    I cannot hard-code the server name in the dblib.java since the same code was shared across multiple servlets.
    Each Servlet will create its own connection pool during application server startup.
    Is there a way to retrieve the server name in which the dblib.java is invoked.
    Any pointers to info source will be REALLY appreciated.
    Many Thanks in Advance,
    C R Baradwaj

    You can get it from the Java system property weblogic.Name, i.e. System.getProperty("weblogic.Name");
    Cheers
    Feargal

  • Retrieve server information

    Hi,
    I have a web application which uses an informix database. My question is how can i retrieve information about the informix server? I would like to know which port it uses, the service, dbspaces etc..
    thanks

    :-) I mean that program must be able to find out this kind of information. I know all the information but the program must look this up dynamically.
    The reason i am asking this is that i need to know the db service name and some other information from which i can not know just like that.

  • Unable to retrieve server listen address through MBEAN API in Weblogic 10.3

    Hi,
    I am using weblogic 10.3 and i am lookign to retrive the listen address of the weblogic server where my application has been deployed. I have used the below piece of code to do that.
    Code snippet :
    ======================================
    private Properties loadXMLSchema(Properties cosbProps)
    String serverName, serverPort, serverUrl;
    Environment env = new Environment();
    Hashtable ht = new Hashtable();
    Context ctx = null;
    try
    ht.put(Context.SECURITY_PRINCIPAL,
    cosbProps.getProperty("COSB.security.principal"));
    ht.put(Context.SECURITY_CREDENTIALS,
    cosbProps.getProperty("COSB.security.credentials"));
    ctx = new InitialContext(ht);
    MBeanHome home = MBeanHome)ctx.lookup(MBeanHome.LOCAL_JNDI_NAME);
    serverName = home.getMBeanServer().getServerName();
    Object mbeanArray[] =
    home.getMBeansByType("ServerConfig").toArray();
    int i = 0;
    for (i = 0; i < mbeanArray.length; i++)
    DynamicMBean mbean = (DynamicMBean)mbeanArray;
    if (serverName.equals(mbean.getAttribute("Name")))
    break;
    DynamicMBean mbean = (DynamicMBean)mbeanArray[i];
    serverPort =
    mbean.getAttribute("ListenPort").toString();
    serverUrl =
    mbean.getAttribute("ListenAddress").toString();
    Properties props = new Properties();
    props.setProperty("port", serverPort);
    props.setProperty("ipAddress", serverUrl);
    return props;
    catch (Exception ex)
    System.out.println("exception in loadXMLSchema method" + ex);
    return null;
    ======================================
    This code is successfully running in wls 8.15 and i can able to see the listen address(ip address where weblogic server is running) in the JNDI information of weblogic server.
    Now when i try this same piece of code in wls 10.3 , i am not able to see the listen address(ip address where weblogic server is running) in the JNDI information of weblogic server. The listen address is coming as NULL. I have tried to align the JMX specification in wls 10.3 by using the following argument in JDK startup option.
    -Djmx.serial.form=1.0
    But still the listen address is unable to reflect in JNDI specifcations of wls 10.3.
    Would you please help in getting the listen address information in wls 10.3.
    Thanks, Pralay
    Edited by: ghoshp on Oct 12, 2011 11:35 AM

    james.bayer wrote:
    startManagedWebLogic should call setDomainEnv which should call commEnv
    On Windows, mine is located here:
    <WLS_11gPS1_Install>\wlserver_10.3\common\bin\commEnv.cmd
    Looking at commEnv.sh it looks like you should be able to search for "SunOS" to see the section that specifies the locations of 64bit shared objects on your LD_LIBRARY_PATH.That is the first place that I looked.
    Here's the code:
    <pre>
    SunOS)
    arch=`uname -m`
    if [ -n "${LD_LIBRARY_PATH}" ]; then
    <snip>
    if [ "${SUN_ARCH_DATA_MODEL}" = "64" ]; then
    LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${WL_HOME}/server/native/solaris/sparc64:${WL_HOME}/server/native/solaris/sparc64/oci920_8
    else
    LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${WL_HOME}/server/native/solaris/sparc:${WL_HOME}/server/native/solaris/sparc/oci920_8
    # LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${WL_HOME}/server/native/solaris/sparc64:${WL_HOME}/server/native/solaris/sparc/oci920_8
    </pre>
    Even when 64-bit is selected and WebLogic starts with a 64-bit JVM, it does not set the LD_LIBRARY_PATH accordingly. As you see I have even tried forcing the path - but even that didn't work. It seems to be overriding the value elsewhere.
    One thing: what is the "vendor" supposed to be set as when using the Sun JBM? Sun? Oracle? I notice that further down the script it checks for "Oracle."

  • How Web server identify which app server domain it should connect to

    Hi All,
    I have installed -
    application server and created an app server domain HR84DEV.
    Web server and created a web server domain peoplesoft
    As you all know, to start web server we need to make sure that app server has already been started so as the database server moreover hence, I have first started database instance HR84DEV then started app server domain HR84DEV followed by web server domain peoplesoft
    App server knows very well which database instance it should connect to since we mention it on app server configuraiton.
    But, How web server domain peoplesoft identifys the app server domain HR84DEV to which it is connected since we nowhere mention the name of app server domain while installing PIA but just JSL/HTTP port and host name.

    Connection between webserver and appserver is defined in the configuration.properties file to be found in
    \webserv\peoplesoft\applications\peoplesoft\PORTAL.war\WEB-INF\psftdocs\[site]
    file contains the entry
    # To enable jolt failover and load balancing, provide a list of application server
    # domains in the format of; psserver=AppSrvr:JSLport,...
    # For example: psserver=SERVER1:9000,SERVER2:9010,SERVER3:9020
    ## sd="Application Server Connect String", ld="This string embodies the failover and load balancing string for PIA to connect to Application Server domains. Consult the PeopleBooks recommendations on load balancing and failover for more information. The format is psserver=AppSrvr:JSLport where AppSrvr is your fully qualified domain name. Multiple domains should be comma separated", tip="Format: psserver=AppSrvr:JSLport where AppSrvr is your fully qualified domain name, e.g psserver=SERVER1.oracle.com:9000,SERVER2.oracle.com:9010"
    psserver=[appservermachine]:[JSL port]
    If the webserver cannot connect to your appserver, make sure you can ping the appserver and/or adjust your hosts file to reflect the appserver.

  • How to check/retrieve server logs?

    Hi. I have an app that is running off a CF server. The app has been crashing lately and a programmer recommends I check the server logs. Could someone please tell me how I do that? Thanks so much.

    Hi Luke,
    Login to CFadmin http://URL/cfide/administrator/index.cfm
    then select Debugging & Logging > Log Files
    search or download server.log or other logs present.
    Alternate CF Java log files in CF\runtime\logs (\Jrun4\logs multi-server)
    might provide hint to crash outage.
    HTH, Carl.

  • Cannot retrieve server response...

    Hi!
    If you use telnet, and after logginh in, ask for information about a group on the usenet, it looks something like this:
    GROUP alt.binaries.pictures.autos
    the server would respond something like this:
    211 60277 1128105 1188381 alt.binaries.pictures.autos
    Now I can establish a connection to the server in java, and can send the query to the server, but I don't know how should I go about reading back the server's response. Can anyone help me out? The procedure is very similar to that of SMPT's and similar old basic protocols.
    Any help appreciated!!!
    XJS

    This question isn't about anything related to JavaMail, right?
    You're just talking to some other server using some other protocol?
    I'm not sure what part you're confused about. Socket has an InputStream and
    an OutputStream. Read the response from the InputStream.

  • Retrieve server monitor info for iDS 5.1?

    In version iDS 4.x I used ldapsearch to return monitor information of the server:
    ldapsearch -h server_name -s base -b "cn=monitor,cn=ldbm" objectclass=*
    Of great use was the entrycachehitratio and dbcachehitratio values that were returned. What command line request gets the same info out of iDS 5.1?

    This search will show you all of the monitors:
    ldapsearch -s sub -b "cn=config" "cn=monitor"

  • ACS View sometimes cannot retrieve server list

    Hi Guys,
    Sometimes our ACS View cannot retrieve our list of integrated ACS servers and it posts this error:
    ERROR - com.cisco.acsview.gui.actions.DataCollectionAction  - Unable to retrieve the list of servers
    com.cisco.acsview.viewapi.ViewUIException: Unable to retrieve the ACS Servers from DB
    Do you guys have any idea on how to go about this issue? Or shall I just go on ahead and re-image it
    regards,
    Adrian

    ODI uses a standard JDBC methods for reverse engineering tables/columns.
    It is possible that the method used in the Novell LDAP/JDBC driver is not following exactly the JDBC standard. What I would suggest is to try the "RKM Jython" provided in ODI, and eventually adapt it with the piece of code you have sent.

  • Client Socket Problem: retrieving data from my Simple http Server...

    here's the main part of the "sending" of data from my server class:
    write(b.getBytes());
    outtStream.write(version.getBytes());
    outStream.write(replyCode.getBytes());
    here the server sends the data back to the client...i've tested this on a webbrowser and got a correct response...
    now in my client side, I'm having problems...
    1) I dont know how to retrieve the data from the outStreams above...
    2) Can anyone give me some help plz...or descriptive sample code
    here's the main part of the client sending its data first from the user input(client) and then sending the data...(ive created the socket)
    input = new BufferedReader(new InputStreamReader(System.in));
    output = new PrintWriter(socket.getOutputStream(),true);
    while((message = input.readLine()) != null)
    output.println(message);//sends the client's input to server?
    System.out.println(input.readLine());//retrieves server's response
    //then outputs it

    also i tried adding
    input = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    after the System.in one and still no luck :[                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Is this a bug in Safari for iOS ??

    http://www.clfsrpm.net/sample/ The control buttons above playlist display just fine in every Android, Linux, and Windows browser I have used - including Safari for Windows. However they do not display properly in Safari for iOS as tested on my iPod (

  • Tables involved in F110

    Hey All: Could you please tell me what are the tables involved in when we run F110. I would like to extract some past payment information in SAP to sync up the legacy system. Please advice on how I can extract that kinda information from tables( may

  • Photos - can't transfer them into iphoto.

    I recently lost all the contents of OSX. I purchased iPod Photo Liberator to transfer my photos from my iPod photo and the photos are back on my HD - but I can transfer them into iphoto - it won't let me. Any ideas?

  • How to Restrict transaction GR55

    Hi friends, I want to restrict generate option in transaction GR55 to  some users. only few groups needs to be able to generate the reports.I ran a trace and could not find any auth object which restricts the Generate option.Please help. Thanks, kuma

  • Photos will not publish in Mobil me

    I have tried several times to publish albums in MobilMe. Once I publish them, I go into MObilMe and it says it will automatically remove the latest album I published from MObilMe.  I don't know what is happening. Anyone else having trouble? Have they