dpinink_silva

updated

20 years ago

D

dpinink_silva

2 Intern

•

724 Posts

0

3713

February 8th, 2007 09:00

When will hostid change?

Hello all,

I've seen a lot of info about hostid change, but it seems different not only for each OS, but also for each Nw version. Does anyone know when this will change for each case?

Of course, I'm asking this because we're going to change the IP address of our HP-UX Nw server, and need to know if this will change the hostid or not. I believe that the answer is "yes", but after find different answers, it's better to ask someone else :)
  • ble1

    6 Operator

    •

    14354 Posts

    •

    56186 Points

    2422

    0

    Posted February 9th, 2007 06:00

    Oh sorry, I read somehow you were to change NIC. With IP change it should not matter.

    HP used to have this information on their site, but link I have doesn't work anymore. However, the rule of thumb so far was:
    Windows -> Since NW 5.7, Security ID (SID)
    UNIX -> via the command gethostid
    Linux -> from the IP address
    NetWare -> from the OS serial number

    Solaris : From the hostid man page: gethostid() returns the 32-bit identifier for the current host, which should be unique across all hosts. This number is usually taken from the CPU board's ID PROM.

    HP-UX : http://dsportal.eservices.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,1171,00.html

    "There is no hostid or sysinfo command on HP-UX, but there are various ways to retrieve the host id--the 48-bit MAC address on the system network card." BTW - The Celestra product for HP-UX ships with a hostid command since the operating system does not supply one.

    AIX: http://www.rs6000.ibm.com/idd500/usr/share/man/info/en_US/a_doc_lib/libs/commtrf2/gethostid.htm#QF390cher

    "The gethostid subroutine allows a process to retrieve the 32-bit identifier for the current host. In most cases, the host ID is stored in network standard byte order and is a DARPA Internet address for a local machine" There is the function sethostid() available for AIX which allows changing the host id.

    SGI : The man page on hostid indicates that SGI will normally derive its host ID from the IP address. It also refers to the /etc/init.d/network file, where the host id is set upon startup. You can also use the hostid -h option, or the sethostid function to change the host id on SGI.

    Tru-64: The gethostid function returns a host id derived from the IP address.

    Of course, that used to be the fact during 6.x era and I didn't hear things have changed since...
  • bladd

    5 Posts

    2422

    0

    Posted February 8th, 2007 11:00

    What version of NetWorker are you currently running?
  • dpinink_silva

    2 Intern

    •

    724 Posts

    2422

    0

    Posted February 8th, 2007 12:00

    Oops, forgot to say that. I'm running on 7.3.2 Jumbo
  • ble1

    6 Operator

    •

    14354 Posts

    •

    56186 Points

    2422

    0

    Posted February 8th, 2007 13:00

    On HPUX hostid is generated from the 48-bit MAC address on the system network card so I assume it will change.
  • dpinink_silva

    2 Intern

    •

    724 Posts

    2422

    0

    Posted February 9th, 2007 05:00

    If it's based only in the MAC address, changing only the IP address won't change the hostid, am I right? We'll have problems when we need to replace the NIC.

    Is there any place where we can find this info? Like:

    HP-UX -> Hostid based on MAC address
    AIX -> Hostid based on ....
    Windows -> Hostid base on ... etc etc


    I didn't see this in any docs I have.
  • dpinink_silva

    2 Intern

    •

    724 Posts

    2422

    0

    Posted February 9th, 2007 06:00

    That's great, thank you very much!