Changing hostname on solaris

I am trying to change my hostname on my sun box. Can anyone advice me on this...

all you need to do is use vi and change:
/etc/hostname.<network port> ... eg: le0/hme0
to the name you want.
You also need to change /etc/nodename
Also, /etc/hosts

Similar Messages

  • Still need help with changing hostname on Solaris 10

    Hello.
    I have some difficulties with changing host name of my computer.
    It is DHCP Client.
    AS I understand there are the following steps that I have to do:
    1. Edit the /etc/default/dhcpagent file and change the line that reads the following:
    #REQUEST_HOSTNAME=no
    to
    REQUEST_HOSTNAME=no
    2. There are two empty /etc/hostname files: hostname and hostname6.
    Do I have just to put there hostname?
    3. /etc/hosts has what I need to change.
    4. I was unable to find /etc/nodename. Do I have to create it? What properties should contain this file?
    5. hostname <new hostname>
    In previous time when I tried to change host name with Management Console my system crashed, I changed: /etc/hosts, but it didn't work.
    Thank you.

    Hello.
    Using DHCP you may really have problems changing the hostname.
    The fact is: The DNS server may assign your machine a host name which has nothing to do with the host name you sent to the DHCP server. Depending on the server (typically DHCP and DNS server are the same machine) nothing will really work. (This is the case with my configuration where the servers are located on a DSL router.)
    I solved the problem the following way:
    * I created two host names (MyMachine and MyMachineNet) in the /etc/hosts file (Solaris 10 and newer: /etc/inet/ipnodes must be changed, too.)
    * "MyMachine" is 127.0.0.1 (localhost):
    127.0.0.1 localhost MyMachine
    192.168.178.100 MyMachineNet* I assigned the name "MyMachineNet" to the network interface in /etc/hostname.networkcard.
    * I use DHCP
    The computer name (in /etc/nodename) is "MyMachine". Some programs (e.g. Gnome !) establish a TCP/IP connection to "MyMachine" instead of "localhost" (I do not understand why). These programs are now satisfied because the host name "MyMachine" represents 127.0.0.1 (localhost).
    I know that there is a switch that tells Solaris to take the machine name from DHCP/DNS instead of /etc/nodename. Unfortunately I forgot where it is.
    Martin

  • Changing Hostname on Solaris 10

    Hi all, I am new to solaris and I just reinstalled it on my laptop which is an AMD64 turion. I searched on google how change the hostname and I edited the /etc/hosts, /etc/hostname.<network_card> and also created an /etc/nodename file and entered the host name. I read somewhere that I had to edit the /etc/inet/ipnodes file which was edited too. However when I reboot the computer, DHCP assigns it the ip address and also the name "new-host-3" .
    How can I change the name permanently to what I want?

    As root, vi:
    /etc/default/dhcpagent
    and remove option 12 (hostname) as one of the parameters to request from the DHCP server.
    or
    reconfigure your DHCP server to send the appropriate hostname.
    alan

  • What needs to be changed if we change hostname in linux

    Dear all,
    I have a question and will appreciate for appropriate answer(s).
    My machine name was lxcms120.cern.ch and Oracle 10g DB was running fine on it (listener, DB, Enterprise Manager). It is not a production system rather a test system.
    Now, i changed its name to docms11.cern.ch
    I change hostname in listener.ora & tnsnames.ora and listener started successfully.
    I started db from sqlplus and it started without any complaints.
    Now, when i tried to start Enterprise Manager (emctl start dbconsole), it didn't and return this error.
    OC4J Configuration issue. /localscratch/orahome/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_docms11.cern.ch_oralxcms120 not found.
    Now, i know that when the machine name was initially lxcms120, it was /localscratch/orahome/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_lxcms120.cern.ch_oralxcms120
    and if i go to that directory, i could see OC4J_DBConsole_lxcms120.cern.ch_oralxcms120 but of course there is no OC4J_DBConsole_docms11.cern.ch_oralxcms120
    My dbname instance is oralxcms120 and has nothing to do with hostname.
    So, what is the solution to the problem. Moreover, are there any steps to do while changing hostname of the oracle database like in my case which i can follow to make all required changes.
    Best regards,
    Anjum

    You will need to do a little more than just directory rename,
    From Oracle document,When the database host name (including the domain name) or the IP address changes, deconfigure and then reconfigure the Database Console with the repository create command. Run the following command:
    emca -deconfig dbcontrol db -repos drop
    emca -config dbcontrol db -repos create
    or
    emca -deconfig dbcontrol db
    emca -config dbcontrol db -repos recreate
    http://download.oracle.com/docs/cd/B19306_01/em.102/b40002/structure.htm#CACBBFGI

  • Changing resolution in Solaris 10 sparc system

    How do change resolution in solaris 10 on sparc system?
    During install display was fine. Once boot to OS, display is bad. Need to know how I can change resolution to get a decent display on screen.

    I'm not too sure about sparc hardware, as I don't know which graphic server it uses, but on my system(x86) the same thing happened. What I had to do was make an xorg.conf as the install doesn't create one.
    On the CLI execute '/usr/X11/bin/xorgconfig' and this should step you through creating an xorg.conf file- as long as you are using the Xorg server of course.
    or
    execute '/usr/X11/bin/Xorg -configure' this should create a basic xorg.conf and you just edit it yourself where appropriate.
    Personally, if you know your graphic board,monitor, keybrd and mouse along with refresh rates the first method is probably best.
    H.T.H.

  • How to repair Open Directory Master after Changing Hostname

    Summary:
    How to repair Open Directory after Changing your Server's Hostname (see separate post)
    Problem:
    I had to change our server's hostname from a private hostname (server.name.private) to a public hostname (name.dyndns.org).
    Procedure:
    1. Precautions:
    Since I was anticipating major dramas I tested the change of hostname on a clone ( I used Super Duper, and I very strongly advise everybody to heed this warning because a change of hostname will corrupt your server services, in particular Open Directory)
    Second, I exported the network users from Server Admin and copied the archive to the Drop Folder of the server's local account (because the network accounts will be unavailable after demoting the OD Master.)
    2. Change hostname and demote OD Master
    a) I re-booted the server from the clone
    b) I changed the hostname in Server App and I noticed that the Open Directory Password and the Kerberos database were still stuck with the old hostname.
    c)  I then demoted to a standalone directory (Server Admin) and I tried to promote the server to an OD Master using the Server App (Manage Network Accounts). Server App always returned an error saying I should check my network settings.
    3. List of 'fixes'
    I tried the following fixes to no avail (which does not mean that you can skip them)
    a) I checked the DNS entries, forward and reverse were working fine (sudo checkip -changehostname)
    b) Checked with Lookup in Network Utility, all was fine
    c) I deleted all system certificates (Keychain) which showed the name of the previous hostname
    ( N.B. you need not delete email certificate and private/public keys)
    d) I tried to assign a new static IP in Networking Preferences (had no visible result)
    e) I re-booted from the working drive and I re-paired permissions on the clone; I ran disk repairs.
    Despite all this I could not re-create an OD Master.
    I then looked for this dubious folder /var/root/Library/Application Support/Certificate Authority.
    I could not find this folder when using the Finder's Go To Folder, nor did "Easy Find" see this folder.
    I was about to give up when I read the posts on this page and I entered the Terminal commands
    sudo rm -R /var/root/Library/Application\ Support/Certificate\ Authority/
    I had not much hope when I set about to re-create the OD Master from the Server App.
    But lo and behold !!! I did not trust my eyes when Server App claimed that the OD Master had been successfully created. And indeed, Server admin showed a running OD Master, LDAP, Kerberos and Password Server all running again !
    Final touch: re-import the user accounts.
    Epilogue:
    I woud not have been able to fix this issue had not so many others shared their experience and the working solution.
    (Refer : https://discussions.apple.com/thread/3219325?start=0&tstart=0 )
    Thank you all !
    Let's hope that Apple will fix this annoying issue in the next server update.
    Regards,
    Twistan

    Hi Rhyan,
    Please try clearing the security cache
    http://www.sharepointanalysthq.com/2014/05/active-directory-groups-and-sharepoint-security/
    https://sergeluca.wordpress.com/2013/07/06/sharepoint-2013-use-ag-groups-yes-butdont-forget-the-security-token-caching-logontokencacheexpirationwindow-and-windowstokenlifetime/
    http://webactivedirectory.com/active-directory/windows-active-directory-cached-user-credentials/
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Changing hostname on Callmanager 6.1 and generate new SSL

    I'm looking to change the hostname of our Callmanager because of a change in the naming convention for all our servers.
    Is it as easy as it seems or are there any precautions I need to be aware of?
    My thoughts were to just Change hostname under Cisco Unified CM Configuration for both PUB and SUB
    Since I use mostly IP address for most of my configuration, are there anything else I need to be concerned about?
    Also, how do I generate a new SSL cert based on this change so admins and users won't get a certificate mismatch prompt?
    Thanks!

    Hi Ken,
    Thought you might want to see this
    CSCtf23432 Bug Details Bug #11 of 38 | < Previous | Next >
    CUCM Hostname change does not update self-signed certificates
    None
    Symptom:
    After a hostname change, self-signed certificates are not regenerated.  Web browser may indicate
    that the CUCM certificate is not valid.
    Conditions:
    hostname change procedure.
    Workaround:
    From the os admin page:
    1) security->certificate management
    2) select "find"
    3) for all the self-signed certs (identified by the description field),
    select regenerate.
    Further Problem Description:
    n/a
    Status
    Fixed             
    Severity
    3 - moderate
    Last Modified
    In Last Year        
    Product
    Cisco Unified Communications Manager (CallManager)         
    Technology
    1st Found-In
    7.1(2)       
    Fixed-In
    8.0(2.98000.25)
    8.0(2.10000.4)
    7.1(4.98000.167)
    8.0(2.98000.31)
    8.0(2.10000.24)
    7.1(5.10000.12)
    Cheers!
    Rob

  • Change hostname/domain in ebs 12.0.6

    Hi All,
    I have single node installation of EBS R12 (12.0.6) and database version is 10.2,
    I want to change hostname and domain name of application and database.
    I have found this document (ID 341322.1). i think this document is for  EBS 11i ,
    may i follow this document on EBS R12 ?
    Thank & Regards
    Ravi Kumar

    Hi Ravi,
    Please have a look at the following notes, applicable to r12:
    How to change the hostname and/or port of the Database Tier using AutoConfigNote (338003.1 )
    How to change the hostname of an Applications Tier using AutoConfig (341322.1 )
    You may follow link:
    CHANGE HOSTNAME OR IP-Address OR DOMAIN NAME ON APPS-TIER OR DB-TIER in R12
    http://applicationsdba.blogspot.com/2011/04/r12-iphost-name-change.html
    Additionally, 2nd step would be..
    - Run preclone script on DB and Apps Tier
    - Change network necessary changes
    - Run the post clone script.
    Hope this helps!
    Best Regards 

  • Cluster changing hostname & Logical host

    hello I have sunCluster 3.1 update 4.
    the cluster is 2(v440) + 1(v240) installed on solaris8.
    Did anyone actualy succeeded to change the hostnames of all the nodes & Logical host on SunCluster system like above?
    I saw a procedure that is not realy supported :
    1. Reboot cluster nodes into non-cluster node (reboot -- -x)
    2. Change the hostname of the system (nodenames, hosts etc)
    3. Change hostname on all nodes within the files under /erc/cluster/ccr
    4. Regenerate the checksums for each file changed using ccradm -I /etc/cluster/ccr/FILENAME -0Reboot every cluster node into the cluster
    is it works?
    Thanks & Regards

    So if I understand you correctly, you have two metasets already created and mounted. If so, this is a fairly tricky process (outlined from memory):
    1. Backup your data
    2. Shut down the RGs using scswitch -F -g <RGnames>, make the RGs unmanaged
    3. Unmount the file systems
    4. Deconstruct the metasets and mediators
    5. Shutdown the cluster and boot -x
    6. Change the hostnames in /etc/inet/hosts, etc
    7. Change the CCR and re-checksum it
    8. Reboot the cluster into cluster mode
    9. Re-construct metasets and mediators with new host names
    10. scswitch -Z -g <RGs>
    If you recreate your metasets in the same way as they were originally created and the state replicas haven't changed in size, then the data should be intact.
    Note - I have not tried this process in a long time. Remember also that changing the CCR as described previously is officially unsupported (partly because of the risks involved).
    Regards,
    Tim
    ---

  • Oracle 11.2 standalone grid infrastructure - change hostname

    Hi
    I have changed hostname of my server running RHEL 5.3 with Oracle 11.2 Grid Infrastructure (standalone). After I changed the hostname of the server, the crs daemon stopped working and I cannot connect to my +ASM instance any longer.
    In Oracle 10g2it was enough to run localconfig delete, localconfig add
    What should I do in 11.2 ?
    Thanks for help
    Groxy

    Hi Groxy,
    I recently found myself asking the same question and after a fair amount of digging around I found a way to do it. Your question is now a few months old, so maybe you have found the solution already, but if not the key is using roothas.pl rather than localconfig. I have written a brief blog post covering the approach I used, so please check that out if you want more information.
    [http://oraganism.wordpress.com/2009/12/20/11-2-changing-hostname/|http://oraganism.wordpress.com/2009/12/20/11-2-changing-hostname/]
    I hope this helps.
    Martin

  • How to disable auto-changing hostname?

    I set my computer a hostname (let's say "MyComputer"), but when I connect to wired network, it changes hostname to whatever reverse DNS IP lookup turns out (let's say "Workstation312").
    I know I can change the hostname using "hostname" in terminal- but is there a way to disable auto-changing hostname?

    Hi,
    Please try the steps in the following thread to see whether it could help:
    Remove IE10's “clear field” X button on certain inputs?
    http://stackoverflow.com/questions/14007655/remove-ie10s-clear-field-x-button-on-certain-inputs
    Regards,
    Vincent Wang
    TechNet Community Support

  • R12 Change Hostname

    hi,
    I want to change hostname of R12 Database and Application servers
    Ebiz R12 is running in 2 RAC DBtier and 2 appstier
    Can anyone share a documents on how to configure this
    Can this be done without a downtime?
    regards,
    rose

    Hi,
    You will have to follow the steps in these documents (it is applicable for 11i and R12).
    Note: 338003.1 - How to change the hostname and/or port of the Database Tier using AutoConfig
    Note: 341322.1 - How to change the hostname of an Applications Tier using AutoConfig
    Regards,
    Hussein

  • Change hostname of MaxDB server.

    Dear All,
    I want to change hostname of MaxDB server.
    For the Oracle, some parameter should be changed. (ex.listener file).
    What about MaxDB?
    Regards,
    Kim

    Hi,
    this link may help you...
    [Hostname change on R/3 hosts running SAP DB or MaxDB.|Hostname change on R/3 hosts running SAP DB or MaxDB.]
    AND
    [http://www.saptechies.com/changing-host-name-on-r3-host-what-do-you-do/|http://www.saptechies.com/changing-host-name-on-r3-host-what-do-you-do/]
    Regards.
    Rajesh Narkhede

  • 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

  • SMC Error after change hostname. Solaris9/Sparc

    Hello friends:
    We have a little problem with Solaris Management Console after changing out hostname in Solaris9/Sparc.
    After change de hostname using sys-unconfig, we had to go to Console -> Preferences -> Home Toolbox location and change the hostname of our host. After doing this S.M.C. began to run another time....OK
    Now it runs all OK, but we can see the next error inside the left toolbar:
    LegacyAppTool.client.LaunchLegacyAppTool
    Clicking on it we can see:
    The specified host machine could not be resolved into a valid IP address.
    In the toolbar we can see .... host not found.
    How you can see S.M.C. continues looking for our old hostname for something.
    Where could we change it?
    What do we have to do to delete this error? ( we like the perfection ;) )
    We have been looking for it, but has been impossible.
    A lot of thank's.

    If you go to /var/sadm/smc/toolboxes/this_computer and edit the this_computer.tbx XML file, you'll notice that the last section in the end of the file looks something like this:
      <Tool TreeDisplay="false">
        <Name>Terminal</Name>
        <ServerName>unknown</ServerName>
        <ClassName>LegacyAppTool.client.LaunchLegacyAppTool</ClassName>
        <Properties>
          <Key>Name</Key> <Value>Terminal</Value>
          <Key>Type</Key> <Value>XAPP</Value>
          <Key>Command</Key> <Value>/usr/dt/bin/dtterm</Value>
        </Properties>
      </Tool>Change the key <ServerName>unknown</ServerName> with <ServerName><?server ?></ServerName> and you won't not see the same error in SMC.
    This also happens with Solaris 10.

Maybe you are looking for

  • Dashboard is not working, HELP ME!

    Hi, I am running OS X 10.5.2 and dashboard isn't working, It opens and the X appears, I can click on the X and the widget dock pops up but when a click on one dashboard closes. The only widget that opens is the one called "Widgets". Can anyone help m

  • Logic crashing and quitting constantly

    And pretty much as soon as its launched. repaired permissions(but there are a small number that dont seem to repair). trashed permissions Can the program logic get corrupted? Anyway, any helpfull suggestions appreciated

  • Billing document doesnt exsist

    When i created billing document And when I wanted to see it in display mode it is saying "Billing document doesnt exsist"please help me.

  • 5.1 Speaker on a MAC?

    Hello all, Trying to get this migration from my PC to the MAC going and I have come up with a question in regards to my PC Speakers. I have a Logitech 5.1 Surround sound speaker set. As such there are 3 plugs that plug into my PC. Can I still use all

  • Search for the end of each text frame?

    I'd like to insert some kind of marker at the end of each of my text frames in order to preserve where the page breaks occur, even after I've exported my file. The only function in InDesign that seems to recognize pages is the text variables that can