How to I send host-name to my router?

When I log into my netgear router's webmin page, my Arch Linux connection is reported as "UNKOWN" even though /etc/rc.conf has
HOSTNAME="thinkpad"
eth0="dhcp"
and /etc/conf.d/dhcpcd has
DHCPCD_ARGS="-t 30 -h $HOSTNAME"
Can someone please tell me why my hostname is not being sent to my router and what I need to do to get to be sent?

Sjoden wrote:
All the small office/home office routers I've used were unable to get the hostname from my linux boxes. Netgear, SMC, Actiontec... I don't think it is uncommon.
Zack
i have had this same experience.  the only boxes on my home network that ever show a hostname are either windows or my roommate's ubuntu.  possibly the use of dhclient vs dhcpcd, but i'm not entirely sure.

Similar Messages

  • Send Host name by socket? in servlets

    Hi !
    how to send request with out Host Name, is it possible ?.
    like : http:///servlet/Sample .
    send Host Name by socket programming(may be in c or c++).
    if yes,how to communicate with that socket.
    Please Help me.
    Thanks in advance,
    vij.

    Hi Nitin,
    Following is the specification for getRemoteHost()
    "Returns the fully qualified name of the client that sent the request, or the IP address of the client if the name cannot be determined. For HTTP servlets, same as the value of the CGI variable REMOTE_HOST." I think the same would be true for getHostName().....
    So, this can be one possiblity why ur given IP.

  • How to resolve a host name from IP using JNDI/DNS service provider

    Hi
    I got two questions on JNDI/DNS service provider:
    1) How to resolve a host name when i got an IP
    I understand How I do it inverse.
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.dns.DnsContextFactory");
    env.put(Context.PROVIDER_URL, "dns://"+server+"/"+domain);
    DirContext ictx = new InitialDirContext(env);
    Attributes attrs1 = ictx.getAttributes(host, new String[] {"A"});
    2) This example above works when I specify the domain in the provider url.
    If I am not specifing a domain but only the dns server I got an NameNotFoundException.
    What should I do if I don't got the domain?
    get the availible domains and loop on them?

    Hi,
    if your DNS server supports that, you can do a reverse DNS lookup. This works as follows:
    String server = "your.dns.server";
    String domain = "in-addr.arpa";
    String ip = "4.3.2.1";
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.dns.DnsContextFactory");
    env.put(Context.PROVIDER_URL, "dns://" + server + "/" + domain);
    DirContext ictx = new InitialDirContext(env);
    Attributes attrs1 = ictx.getAttributes(ip, new String[] {"PTR"});1: Use the pseudo-domain in-addr.arpa
    2: Use the reverse IP address for lookup, i.e. if your host has 1.2.3.4, use 4.3.2.1!!
    3: Request the PTR attribute
    see also [http://en.wikipedia.org/wiki/Reverse_DNS_lookup|http://en.wikipedia.org/wiki/Reverse_DNS_lookup]
    Martin

  • How to read Sender Interface name in adapter Module in PI 7.31

    Hello All,
    I am working on Adapter module .it accomplish to generate file with message id,message key ,sent time,received time,FromService(Business system names),toServiece(Business system name),sender interface name,receiver interface name .
    i got all details in my file by calling module data by method get principal data,but i am fail to get sender interface in that file .
    can you please guide me how to get sender interface name in adapter module.
    I am getting some information from this following blogs
    https://scn.sap.com/thread/1583665
    How to read Sender Interface name in Adapter module
    but i am facing same error what they faced.
    Please guide me to how to get sender interface name in adapter module.
    Thanks
    Ganesh

    Hi Ganesh
    Write a module in the sender adapter and use this piece of code
    Message mes = null;
    mes = (Message) inputModuleData.getPrincipalData();
    String SI = mes.getAction().getName();
    Also you can read the same by creating a UDF in message mapping
    Following is the code
    InputHeader inputHeader = container.getInputHeader();
    String SI = inputHeader.getInterface() ;

  • [SOLVED] NetworkManager dhclient send host-name

    I use network-manager-applet on xfce4 . dhclient does not send the host name to the server. I don't see any related option in the applet.
    dhclient is started without the "-H" option and the generated conf does not have a "send host-name" line.
    "dhcp-client-identifier" is something different.
    [il@vmarch ~]$ ps -Af | grep dhcp
    root 548 185 0 12:01 ? 00:00:00 /usr/bin/dhclient -d -q -sf /usr/lib/networkmanager/nm-dhcp-helper -pf /var/run/dhclient-enp0s3.pid -lf /var/lib/NetworkManager/dhclient-eae8589b-41a8-4e9a-9bf1-29c0a43dc88a-enp0s3.lease -cf /var/lib/NetworkManager/dhclient-enp0s3.conf enp0s3
    [il@vmarch ~]$ sudo cat /var/lib/NetworkManager/dhclient-enp0s3.conf
    # Created by NetworkManager
    option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
    option ms-classless-static-routes code 249 = array of unsigned integer 8;
    option wpad code 252 = string;
    also request rfc3442-classless-static-routes;
    also request ms-classless-static-routes;
    also request static-routes;
    also request wpad;
    also request ntp-servers;
    Last edited by leniviy (2015-03-29 15:54:58)

    For some reason, NM does not use the host name obtained from OS.
    Workaround:
    [root@vmarch ~]# nmcli con show
    NAME UUID TYPE DEVICE
    enp0s3 84b17c75-9129-4944-849e-b82003511578 802-3-ethernet enp0s3
    [root@vmarch ~]# nmcli con show enp0s3 | grep ipv4.dhcp-hostname
    ipv4.dhcp-hostname: --
    [root@vmarch ~]# nmcli con modify enp0s3 ipv4.dhcp-hostname `hostname`
    Last edited by leniviy (2015-03-29 15:54:46)

  • How to read Sender Interface name in Adapter module

    I have a need to read the Sender Interface name in an adapter module that will be attached to a Sender SOAP channel. Any ideas on how this can be done.
    I am familiar with the following code construct from the docs
    Hashtable mp = (Hashtable)inputModuleData.getSupplementalData("module.parameters");
    fileName = (String) mp.get("FileName");
    What is the key name (in the hashtable) for Sender Interface name ? The docs seem to be silent on this
    I dug around some and found references to "mp.context" and "message.interface". I guess I could just test this out but I dont have deploy access and I dont want to keep asking the BASIS group to deploy the module while I play around with different combinations...
    So would the following work
    Hashtable mp = (Hashtable)inputModuleData.getSupplementalData("mp.context");
    interfaceName = (String) mp.get("message.interface");
    Thank you
    Anil

    Hi Anil,
    I am not sure of how to get the Sender interface name. I even tried the code that you suggested above. It gave me a null pointer exception.
    I think instead of Sender Interface name you can decide upon the Sender System/Service.
    To get the Sender System Name:
    Object obj = null;
    Message msg = null;
    obj = ModuleData.getPrincipalData();
    msg = (Message) obj;
    String SenderSystem = msg.getFromService();
    Here based on the sender system you can do your partner specific processing in Proxy. Instead of Sender Interface Name.
    Hope this helps
    Regards,
    Aravind

  • How to get a host-name representing a WebLogic cluster

    Hi guys,
    We are using weblogic to deploy a service. Service uses the below property to connect on managed port and get datasource informations
    PROVIDER_URL=t3://abc.com:20005
    Now this is fine but in PRODUCTION we have cluster who have 2 machines-manged server (mt1 and mt2) on which service is deployed. 
    Now what could be the PROVIDER_URL value inside the service code? we can't choose any of the mt1 (or mt2) as if that server down then service will not respond. We need to use a kind of abstarct host name so that this t3:// access
    always will be there. In the env we have LBR but that is an OHS which listen http only. Can any body tell me how to fix this issue?
    Thanks in advance.

    Here you can find some examples:
    Oracle Fusion Middleware Programming JNDI for Oracle WebLogic Server - 11g Release 1 (10.3.6)
    Best Regards
    Luz

  • How to check the host name or rename the host name in Enterprise Manager

    Hello,
    How do i check the host name or rename the host name in Enterprise Manager for Oracle 11g?
    Regards,
    Ming Man

    there is a shell script called chgip or something
    like that is there . I used it for IAS. I beleive the
    same is there for database too
    Rajesh AlexIf there is, I have not been able to find it.
    Off the top of my head, changing the host name involves at least the following (others feel free to add on):
    For listener and connectivity
    - listener.ora
    - tnsnames.ora (on all clients as well)
    - potentially ldap.ora (on all clients as well)
    - init.ora parameter LOCAL_LISTENER
    For admin using Enterprise Manager (starting 10g)
    - the contents of the sysman schema
    - the directory name of the OEM agent directory
    - the directory name of the OEM OC4J config directory
    - various config files in the OEM OC4J config directory
    Oracle provides the emca to handle this last set.
    In addition, the following refer to hosts that are [probably] not local
    - init parameter REMOTE_LISTENER (usually just points to a tnsnames.ora entry naming remote hosts)
    - init parm SMTP_OUT_SERVER
    Again, adding to the list might be interesting.

  • DHCP Client does not send host name to DHCP Server

    Hello,
    I installed Solaris 10 on VirtualBox and I cannot ping/ssh/telnet the virtual machine by its host name (even from the host computer) but only by it's ip.
    I tried everything I could find on internet with no success (I don't want to add the hostname in every hosts file on every computer because it's not really professionnal)
    I followed what said here: http://docs.oracle.com/cd/E26505_01/html/E27061/eyhuv.html#scrolltoc
    Can someone has an idea of what I can do or why this does not work.
    I installed a virtual Windows7 and an Ubuntu, and it worked perfectly.
    Any help would be grantly appreciated.
    Thank you
    Here is my current configuration:
    Oracle VM VirtualBox 4.3.8 (I choose "Oracle 10 10/09 and later (64 bit))
    Oracle Solaris 10 1/13
    Network: bridge with RealTek interface
    NB: I don't have access to dhcp server on my netgear router (access is disabled by my ISP)
    Files in /etc:
    dhcp.e1000g0 (empty)
    nodename (contains "thorgal")
    nsswitch.conf has following lines:
    hosts: files dns # Added by DHCP
    ipnodes: files dns # Added by DHCP
    networks:   files
    protocols:  files
    rpc:        files
    ethers:     files
    netmasks:   files
    bootparams: files
    hostname.e1000g0 (contains "inet thorgal")
    /etc/inet/hosts:
    ::1             localhost
    127.0.0.1       localhost loghost
    192.168.0.17    thorgal # Added by DHCP
    /etc/default/dhcpagent:
    REQUEST_HOSTNAME=yes
    PARAM_REQUEST_LIST=1,3,6,12,15,28,43
    .v6.PARAM_REQUEST_LIST=7,12,23,24,27,29
    I also try "ifconfig e1000g0 dhcp release" with no success
    the debugging of dhcpagent:
    # pkill -x dhcpagent
    # /sbin/dhcpagent -d1 -f &
    1088
    # ifconfig e1000g0 dhcp start
    /sbin/dhcpagent: debug: insert_pif: e1000g0: sdumax 1500, hwtype 1, hwlen 6
    /sbin/dhcpagent: debug: set_packet_filter: set filter 805869f (DHCP filter)
    /sbin/dhcpagent: debug: get_smach_cid: getting default client-id property on e1000g0
    /sbin/dhcpagent: debug: in state INIT; allowing start command on e1000g0
    /sbin/dhcpagent: debug: ipc_action_start: started start (command 4) on e1000g0
    /sbin/dhcpagent: debug: set_smach_state: changing from INIT to INIT_REBOOT on e1000g0
    /sbin/dhcpagent: debug: dhcp_selecting: host thorgal
    /sbin/dhcpagent: info: configure_v4_lease: setting IP netmask to 255.255.255.0 on e1000g0
    /sbin/dhcpagent: info: configure_v4_lease: setting IP address to 192.168.0.17 on e1000g0
    /sbin/dhcpagent: warning: configure_v4_lease: no IP broadcast specified for e1000g0, making best guess
    /sbin/dhcpagent: info: configure_v4_lease: using broadcast address 192.168.0.255 on e1000g0
    /sbin/dhcpagent: info: configure_v4_timers: e1000g0 acquired lease, expires Fri Mar 21 21:33:05 2014
    /sbin/dhcpagent: info: configure_v4_timers: e1000g0 begins renewal at Fri Mar 21 09:33:05 2014
    /sbin/dhcpagent: info: configure_v4_timers: e1000g0 begins rebinding at Fri Mar 21 18:33:05 2014
    /sbin/dhcpagent: debug: set_smach_state: changing from INIT_REBOOT to PRE_BOUND on e1000g0
    /sbin/dhcpagent: info: added default router 192.168.0.1 on e1000g0
    /sbin/dhcpagent: debug: set_smach_state: changing from PRE_BOUND to BOUND on e1000g0
    /sbin/dhcpagent: debug: configure_bound: bound e1000g0
    /sbin/dhcpagent: debug: ipc_action_finish: finished start (command 4) on e1000g0: 0

    During the Solaris installation process, you told it what the hostname was going to be and that you wanted that environment to exist with a dynamic IP address instead of a specific address that you desired.
    When Solaris boots it broadcasts that hostname and waits for a DHCP server to be quasi-intelligent enough to award an IP address based upon a pre-configured list inside that DHCP server.   Hostname ABC would always get IP address 123 on subnet rst, hostname DEF would always get IP address 456 on subnet xyz, and so on and so on.
    That's the fundamental process for proper (and thus secure) DHCP.
    All your other environments (Windows, Debian, Ubuntu) are what might be thought of as "hacked for convenience" to get around that sort of network configuration.  They take the lazy way to exist.  That partial networking setup is good enough for a home network but would be miserably insecure in a corporate environment.  Those choices are operating environments that are nice for end-user desktops but aren't Enterprise Class.
    My suggestion?
    Review the IP address range in your Netgear router's setup.
    It is likely something like 192.169.0.1 through 192.168.0.50 and can be customized.
    You probably don't have 50 devices on your network and probably will never have 50 simultaneous devices on your network.
    ... just do a reconfigure reboot and set your Solaris to use a static IP of 192.068.0.45
    Then reboot and I predict your issue that prompted this forum thread will be gone.
    That's how I've done it at home for many years, even when installing Solaris to bare metal (no virtualization).

  • How to get XI host name & IP address in Message Mapping

    Hi,
    Does anyone have an idea how we can get XI host name & IP address dyanamically in our mapping.
    Thanks in advance.
    Regards,
    Sarvesh

    Hi,
    Please find the code below for the UDF which serves the function: to check value for the PI system id (probably use System.getProperty("SAPSYSTEMNAME")) - if the system name is PIP then the function returns u201CPu201D; otherwise the function should return u201CTu201D
    String SystemID = null;
    SystemID = System.getProperty("SAPSYSTEMNAME");
    if (SystemID.equals("PIP"))
    result.addValue("P");
    else result.addValue("T");
    No input is required for the UDF and also no import packages required apart from the default ones in UDFs..
    regards,
    Kishore

  • How to change Sender`s Name in SOST transaction

    Hi all,
    I`m a newbie to SDN. My requirement compels me to change the sender`s name in SOST Transaction. How can I change this? I mean which table and which field should i be looking for, to do this.
    Thanks & Regards,
    Gnanasambanthan. V
    Edited by: Gnanasambanthan Venkataraman on Aug 19, 2008 8:58 AM

    Thanks Mr.  Dzed Maroz for the answer,
    The issue has been solved.
    The thread is closed
    Regards,
    Gnanasambanthan.V

  • How to get PC host name using labview

    hi,
    I have a need to display the pc host name(login name) in my application. How can i get it using labview in runtime i.e. if i write a program and execute it in different PC systems/same system with different users, then i should get the corresponding login names.
    Can any one help me on this?
    Thanks,
    Regards,
    Arvinth
    Solved!
    Go to Solution.

    Well, the PC host name and the login name are two different things, so which one are you trying to get? Darin's snippet gives you the login name. If you want the PC name use this method.

  • HOW TO DEFINE VIRTUAL HOST NAME IN HPIA64 + SAP R/3 ENTERPRISES 4.7

    Hi all,
    I am trying to install sap r/3 enterprises 4.7 with OS as HP-UX and Database as Oracle in a cluster environment.
    In cluster environment sap installation should be done on virtual hostname ( package id ). I'm using the env variable SAPINST_USE_HOSTNAME=<VIRTUAL HOSTNAME>.
    My cluster is running and I'm able to ping it from network, but at the time of SAP Installation my sapinst starts with the physical host name not with the virtual host name.
    What can be the solution ..?
    Thanks,
    Chandresh Pranami.

    Hi Chandresh,
    Try executing sapinst with virtual hostname.
    eg. ./sapinst SAPINST_USE_HOSTNAME=<VIRTUAL HOSTNAME>.
    This should work.
    -Pinkle

  • How to set dynamic host name in the URL of a URL iView?

    Hello,
    I am using a standard URL iView that points to some J2EE app I've written and deployed on the same server.
    I would like to set the host name to be a dynamic one, this way I won't need to change the iView URL when transporting it from one portal to another. As far as I know the system for a URL iView only controls authorizations but cannot replace the full URL set in the iView.
    Any idea who can this be achieved?
    Roy

    Hi Mrityunjay,
    forced URL at runtime will require me to call the URL iView from another iView that I will need to code (setting the URL in the Request object). If I did all this I might as well call it from this iView already.
    I would like to do it with no further developments. I would have thought that SAP has constants that can be plugged in the URL for this type of thing, i.e. $hostname...
    Rgds,
    Roy
    Edited by: Roy Cohen on Aug 21, 2008 4:03 PM

  • How to get the Host name of Unix server

    Hi all,
    I am need to use the Host name of application server for some purpose.
    where can i see the host name of the unix server ?

    SYST-HOST or SY-HOST contain the name of the application server.
    You may also use the following internal call to get the actual application server
      call 'C_SAPGPARAM'
         id 'NAME'  field 'rdisp/myname'
         id 'VALUE' field servername.
    For the IP adress
      CALL FUNCTION 'DB_DBRELINFO'
        IMPORTING
          dbinfo = dbinfo.
      READ TABLE kernel_version INDEX 11.
      kinfostruc-ip_address = kernel_version-data.
    Regards

Maybe you are looking for