How to map IP address with HostName?

Following is the link to execute one servlet, if i give IP address it works fine but at the same time instead of IP address if i give the corresponding host name ..its not taking..
My application is running on 'JRUN' not 'Tomcat'.
FOR IP: http://192.168.152.18:8100/Brio/browse/login
For Host name : http://AESOP_APP:8100/Brio/browse/login

i think these code will be useful, just try it.
import java.net.*;
import java.io.*;
import java.net.InetAddress;
public class IPaddress
     public static void main(String args[])
     int[] xcluster= {192,168,7,198};
     try
          InetAddress in = InetAddress.getLocalHost();
          System.out.println(in.getHostName());
          catch(Exception e)
          System.out.println(e);
          String sunsite= " 198.168.7.177";
          try
          InetAddress in = InetAddress.getLocalHost();
          System.out.println(in.getHostName());
          catch(Exception e)
          System.out.println(e);
}

Similar Messages

  • CUOM - How to add IP address with hostname (device name)

    Hello all,
    I have a quick question regarding CUOM(Operation Manager).
    How I could add devices' hostname to CUOM for monitoring?
    I could add IP address as below ,  if I only add IP address, then it looks NO "device name' field which I could add.
    Devices ->Device Management->Add  Devices
    Thank you for your help in advance.
    Howard

    It is resolved by updating host file on CUOM server.

  • How to map Idoc fields with external file

    Hi All,
    How to map Idoc fields with external file.
    I want to check the settings where Idoc fields are mapped with external file.
    Thanks in advance.
    Regards,
    Govind.

    If you have configured a fileport where on trigger of IDOC you are creating the file, you can look at the message type documentation and get the offset values for each field in each segment

  • How to map a query with the Multiprovider?

    Hello All,
    Can any one please tell me how to map a query with a multiprovider?
    Appreciate your help.
    Regards,
    Soumya.

    Hi,
    Can you please elaborate , do you mean how to create a query with multiprovider. if that is your question it is very simple just create the query on the multiprovider.
    What is the purpose for mapping the query with multiprovider

  • How to map secondry elements with main if have same ids for both?

    I need to map secondry elements with its matching primary elements if they both have same id.
    How can this be achieved in xslt.
    If ids are not matching then not a single element of secondry sholud be shown.
    If ids matching, then other fields of secondry elements, should be mapped to similar fields of primary elements.
    Eg: Its like some program running and in between some add on programs started (may be trailor or advertisement).
    the add on program is not always shown (optional), and whenever shown it has its own data information etc etc.
    Please provide me some input, how to map and proceed.
    Not sure what this code is really doing.
    <xsl:template match="SECONDARY_EVENT_LIST">
              <xsl:variable name="secondaryElements" select="ancestor::SCHEDULE/SECONDARY_ELEMENT_LIST"/>
              <xsl:for-each select="SCHEDULE_ELEMENT_ID">
                   <xsl:variable name="id" select="."/>
                   <xsl:apply-templates select="$secondaryElements/SCHEDULE_ELEMENT[(@ID=$id)]"/>
              </xsl:for-each>
         </xsl:template>
    Is this having any relation with what my requirement is all about?

    Hi,
    You can use XPATH command to get the exact tag.
    You can access each tag with it location like “/Report_Name/Group_Tag/Element_ID”.
    I think this will remove the ambiguity of Tags with same ID.

  • How to change IP address and hostname in solaris 9

    Hi experts,
    I want to change IP address and hostname of the server , Plese give steps, or any precise document .
    Thanks
    Mohan
    Message was edited by:
    mohan_sr

    did you already change your ip and host?
    if not, do the following instructions:
    * verify your hostname
    - uname -a
    - cat /etc/nodename
    both should show your hostname
    * alter your hostname
    - uname -S newname
    * verify the hostname
    - uname -a
    - cat /etc/nodename
    both should show your newname
    * edit /etc/hostname.ce0 (type ce0 depends on your net device)
    - echo 'newname' > /etc/hostname.ce0
    * verify /etc/hostname.ce0
    - cat /etc/hostname.ce0
    should show your newname
    * edit the following files
    - /etc/net/ticlts/hosts
    - /etc/net/ticots/hosts
    - /etc/net/ticotsord/hosts
    replace old with new hostname
    * edit /etc/inet/hosts
    replace ip and hostname
    * you have to look for
    - /etc/inet/networks
    - /etc/inet/netmask
    fit yout data
    After doing all changes you have to reboot your system.
    Use ipconfig to verify network data

  • How to map a table with out a primary key with a pojo?

    hello
    Is it possible to map a pojo with a table, table don't have primary key. I m using hibernate,How to do that in hibernate.
    Thanks &Regards
    snimi

    Hello,
    EclipseLink has support for database object-relational datatypes, but they are not supported or exposed through JPA. Instead, you will need to leave it unmapped and then change the mapping, using a customizer to create the mapping described:
    http://wiki.eclipse.org/Introduction_to_Object-Relational_Data_Type_Mappings_(ELUG)#Object-Relational_Data_Type_Array_Mapping
    Best Regards,
    Chris

  • How to map development object with quality object

    Hi
       I have problem regarding to mapping development object with quality  object  i.e the  development object will be order_dev  and quality object will be order_ qa ..i have to map this two wat is the process..
    thanku

    You have an object in QA and not in Dev....you want to map this QA object with an object in Dev.....create a same object in DEV and then do the mapping....then transport.....you should have both the objects in both the environments.
    When you say map...i assume it to be the mapping program (message/ XSLT/ JAVA)
    Regards,
    Abhishek.

  • How to configure IP address and hostname?

    May I know any method to configure IP address and Hostname? besides change it from /etc/hosts and /etc/inet/hosts.
    any other method?
    Any command to change?

    May I know any method to configure IP address and
    Hostname? besides change it from /etc/hosts and
    /etc/inet/hosts.
    any other method?
    Any command to change?Yes, to do it temperiorly you can use ifconfig command, but after the reboot, these things will go off.
    The syntax is:
    ifconfig <interface> <ip addr> netmask <input based on your nwt> broadcast <> up.
    ex:
    ifconfig ce3 180.144.67.40 netmask 255.255.0.0 broadcast 180.144.255 255
    HTH,
    Prabu.S

  • How to map MAC address to Logical name

    Hi all:
    Is there any command to get the logical NIC name according to MAC address?
    The 'ifconfig -a' command only list the network information for these plumbed network card.
    But how to get the logical name for these unplumbed network cards if I know the MAC address?
    Thanks a lots!

    Hi both, Thanks!
    I have tried to use "prtconf -v > output_file" and search under /dev and /devices method. It couldn't find the unplumbing network name.
    Is there any other suggestion?
    And also I think I should describle more clear about my question.
    I want to configure IPMP group automatically by scripts after OS (spac system)installed. For the script, only the MAC addresses(which network card is not unplumbed) are passed as parameter for IPMP group setting. You know for IPMP setting. it needs to written setting in /etc/hostname.<interfacename>.
    So I need to map the MAC address(which is not unplumbed) to logical name(interface name).
    how to do this?
    I wonder for the "ifconfig -a" command:
    When I use "ifconfig -a" command in Beign script, which is called before OS Jumpstart installation. It works to find out all network interface and MAC address.
    See below script:
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    probe_interfaces()
    SI_INT=`ifconfig -a|awk -F: '/^[^.lo.]/ && /^[a-zA-Z]/{print $1;}'`
    SI_NUMINT=`ifconfig -a|awk -F: 'BEGIN{num=0;}/^[^.lo.]/ && /^[a-zA-Z]/{num++;}END{print num;}'`
    export SI_INT
    export SI_NUMINT
    probe_ethers()
    SI_ETHERS=`ifconfig -a|grep ether|awk ' { print $2 } '`
    export SI_ETHERS
    And the result of executing in Begin script , see below:
    Ethernet interfaces detected:( I got all these interface name and MAC address)
    bge0
    bge1
    bge2
    bge3
    ce0
    ce1
    MAC addresses:
    0:3:ba:dd:de:4f
    0:3:ba:dd:de:50
    0:3:ba:dd:de:51
    0:3:ba:dd:de:52
    0:3:ba:d9:eb:f7
    0:3:ba:d9:eb:f8
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    I only configure one network card on this OS. But after the OS installed, the "ifconfig -a" doesn't work to find all these network interface. It is only show the configured network interface.
    I don't know why the behaviors of "ifconfig -a" command are different between before OS installed and after OS installed.
    Thanks!

  • How to map IDoc segment with qualifiers

    Hi everyone!
    I have the following problem: In an IDoc of type DESADV01 there can be several segments of type E2EDS01. Each segment has a different qualifier, which is the value of the field SUMID in this case. My target structure (type EDIFACT) now has several segments, each again with a sort of qualifier. Now I have to map the values of certain source segments to the respective target segments.
    Exaple (in XML format):
    Source
      <E1EDS01 SEGMENT="1">
        <SUMID>021</SUMID>
        <SUMME>0000000001.000</SUMME>
        <SUNIT>KGM</SUNIT>
      </E1EDS01>
      <E1EDS01 SEGMENT="1">
        <SUMID>022</SUMID>
        <SUMME>0000000001.000</SUMME>
        <SUNIT>KGM</SUNIT>
      </E1EDS01>
    Target
      <S_MEA>
        <C_C502>
          <D_6313>N</D_6313>
        </C_C502>
        <C_C174>
          <D_6411>KGM</D_6411>
          <D_6314>1</D_6314>
        </C_C174>
      </S_MEA>
      <S_MEA>
        <C_C502>
          <D_6313>G</D_6313>
        </C_C502>
        <C_C174>
          <D_6411>KGM</D_6411>
          <D_6314>1</D_6314>
        </C_C174>
      </S_MEA>
    (i have omitted several details here, but I'm only interested in the general procedure anyway).
    So in general the source segment with qualifier "021" should be mapped to a target structure with qualifier "N" etc.
    How can this be done using standard XI mapping techniques?
    Regards, Joerg

    Hi everyone!
    Thanks for your input data - unfortunately this wasn't quite what I was looking for. However I thik I solved my original problem and I just wanted to share this solution with you - maybe it helps others, maybe some of you have suggestions what I could do differently.
    To sum up the requirement: There can be multiple input segments, each with a certain qualifier. These input segments have to be mapped to the target segments, respectively - however, the qualifiers change. There can be several segments with qualifiers that do not match the requirement, and required segments might be missing.
    So here's what I came up with:
    Use the qualifier of the source segments as an input to a <b>FixValues</b> function. In this function, map the desired qualifiers to the value <b>true</b>, use <b>false</b> as the default value. Map the output of the <b>FixValues</b> function to a <b>createIf</b> function and use this to create the desired output segment. This way, for each of the required segments, one target segment will be created. All other segments (with unwanted qualifiers) will be removed.
    So far, this technique worked for me - do you have improvements/suggestions?
    Regards, Joerg

  • How do Map files work with a Windows application?

    I need confirmation on how map files work.
    I have created a map file previously and have updated the HTML help with a few new topics and changed the Title on a handfull of topics.
    The map file setup is done for the new topics, but I am thinking I need to "fix" those topics whose title has changed.
    I have opened the Map.h file I created and looked at the references, for simplicity sake lets say it looks like this:
    #define Dials_Setup 1
    #define Project_Setup 2
    #define Scenario Scenario_Setup 54
    I assume the mapping process goes like this:
    (1) I hand off map file and the CHM help file
    (2) Developer addes the ID of "2" to the Project Setup window form
    (3) When the user is on the Project Setup window, they press F1
    (4) The Project Setup window form gets the ID of "2"
    (5) The Map.h file translates the "2" to "Project_Setup" topic title
    (6) The CHM is opened to the topic with a title of "Project_Setup"
    So, if I changed the title of the topic from "Project_Setup" to "Project_Setup_Window" would I have to update the line item in the Map.h file from "Project_Setup" to "Project_Setup_Window" for the mapping to work and the client to see the correct topic when the press F1?
    I am thinking these all need to be in sync between the Map.h file and the CHM file.
    As always, thanks for any guidance.
    Michael F Weart

    Hi, Michael
    You have it right - basically. I'll just add a few notes.
    Yes. Typically you would give the .h and the .chm file to the developer. However, sometimes the developer will give you a .h file created from their IDE tool (e.g., Visual Studio). In that case, you would Import the .h file into your RoboHelp project and map it that way. Or it can be a combination as long as there are no duplicates of Map #s or Context IDs. Another tip: You can also generate a Map File Report (Tools > Reports > Map IDs) which can be a handy guide for the developer.
    Note: The alphanumeric string for the Context ID (sometimes also called a Topic ID) does not necessarily have to be formed from the Topic Title. The reason it may seem that way is because RoboHelp uses the Topic Title as a matter of convenience to help you keep track of the which topic is being mapped.  The main thing is that there are no duplicates and RoboHelp has a report for that as well. In Microsoft HTML Help (.chm), the actual mapping from the .h Map # to the URL of the actual topic can be found in the .ali (alias) file which can be found in your Project root. The .ali file is compiled into the .chm itself.
    Here is a good Online Help topic with more details:
    http://help.adobe.com/en_US/robohelp/robohtml/WS5b3ccc516d4fbf351e63e3d11aff59c571-7ff9.ht ml
    Rob Chandler has really good documentation for Microsoft HTML Help which you will find here:
    http://helpware.net/htmlhelp/how_to_context.htm
    John Daigle
    Adobe Certified RoboHelp and Captivate Instructor
    Evergreen, Colorado
    www.showmethedemo.com

  • How to map different dataset with ESB

    Hi All,
    We have an interface in which an application is exposing webservice, but the way the msg format defined at the Requestor is not as provider
    eg: wsdl of Service Requestor
    <s:element name="sample">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="SampleXML" type="s:string" />
    </s:sequence>
    </s:complexType>
    sending the entire msg data in the element SampleXML
    sample data:
    <Complaint xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TestSchema.xsd">
    <Com_Source_ID>1</Com_Source_ID>
    <Address1>Test Address1</Address1>
    <Address2>Test Address2</Address2>
    <Address3>Test Address3</Address3>
    <Address4>Test Address4</Address4>
    <District>MUMBA</District>
    the wsdl of the Service Provider looks like
    <xsd:sequence>
    <xsd:element
    name="Id"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string30">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewAddrLine1"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string100">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewAddrLine2"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string100">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewCity"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string50">
    </xsd:element>
    </Sequence>
    How can i map these different dataset using ESB.
    Any Ideas..
    Thanks,
    Azeem.

    Hi All,
    We have an interface in which an application is exposing webservice, but the way the msg format defined at the Requestor is not as provider
    eg: wsdl of Service Requestor
    <s:element name="sample">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="SampleXML" type="s:string" />
    </s:sequence>
    </s:complexType>
    sending the entire msg data in the element SampleXML
    sample data:
    <Complaint xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TestSchema.xsd">
    <Com_Source_ID>1</Com_Source_ID>
    <Address1>Test Address1</Address1>
    <Address2>Test Address2</Address2>
    <Address3>Test Address3</Address3>
    <Address4>Test Address4</Address4>
    <District>MUMBA</District>
    the wsdl of the Service Provider looks like
    <xsd:sequence>
    <xsd:element
    name="Id"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string30">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewAddrLine1"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string100">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewAddrLine2"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string100">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewCity"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string50">
    </xsd:element>
    </Sequence>
    How can i map these different dataset using ESB.
    Any Ideas..
    Thanks,
    Azeem.

  • How to find mac address with 10.7.2 on macbook air

    my dorm doesnt have wifi we r required to sumit our mac address in order to connect to use internet with internet cable
    i have an air with 10.7.2 and bought a ethernet adapter still can find my mac address.........plz help me

    Use the System Information. To get to this, go to the Apple menu, select About this Mac, and click the System Report button.
    In the left column go to Network and select Wifi. Under interfaces select en1 and look for the MAC address.
    Alternatively you can use System Preferences > Network > Wi-Fi > Advanced button > Hardware tab > MAC address.
    Best of luck.

  • How to associate one address with a "reply to" address?

    I have several mail accounts in Mail, including one IMAP account and one Mac account.
    Due to some recent problems with one of those addresses, I would like to include a different address in the "Reply to" line.
    Of course, I have no problem to include manually the "Reply to" address each time. But I would prefer to have the possibility to have automatically messages sent from that address include the "Reply to" address - not for all accounts, but only for that one.
    I have made several attempts, using for instance "Personalize" in a message, hoping that future messages sent from that account would keep the settings for future messages, but it does not seem to work.
    Maybe there is no way - but maybe there is one which has not even come to my mind. If somebody knows a trick in order to produce the desired result, I would be delighted to know it!

    When I try to add participant to a calendar event, then click "Save".
    BB would give error "No associated email account". To correct this, I would select "Associate Email", then add a local email account to be associated. Then when try to save again, BB will come up with same error message  ...  "No associated email account". Then it will go through the loop again. Get the point? I think this is a software bug that needs to be corrected.

Maybe you are looking for

  • How to setup e-mail account without deleting web mail server

    When I delete e-mail on i-phone, it delete web mail server mail also.     I like to keep these web mail server mail. Like old i-phone 4 was not delete web mail server mail, even I delete i-phone mail. Please tell me how to set up e-mail on i-phone. T

  • Factory calendar issue changing validity date

    Hi, We have come across the OSS note 1532398 and 1529649. It's for our Solution Manager system. We are on SP24 EHP1 and i wanted to know how far up can you go in the validity date? I understand the holiday dates need to be changed first but how far u

  • BI report in CRM

    Dear all, I am working on some queries which are using in CRM 7.0.  I found most BI queries are 3.X version which are using in CRM.  I just wonder how the 3.X queries can be displayed like 7.0 look in BI query? For example, the BW 3.X web template 0T

  • Drop down Values in Adobe form

    Dear All,      Greetings.      I am using the Adobe interactive form for E Recruitement(copying the standard and changing it as per the requirement). When i am using the Drop down value for one of the field. Instead of the drop down its showing as a

  • Include a page .jsp

    It is possible to include a page .jsp in another page??? How?? thanks