See also ChangeXhierIrixHostname. ST#54572 is the primary motivation for this.
waterloo-network
package installed - it has a renumber
command.
Create a renumber_mappings
file:
129.97.74.18 129.97.84.215 blackshadow.math blackshadow.cs 129.97.74.1 129.97.84.1
This particular host is a bit tricky, because it thinks its hostname is blackshadow, not blackshadow.math. Except DNS was backwards to that. I'm trying to fix that too.
Note: this file seems to take any pair of strings, changing any occurrence of string1 to string2. So, if you're just renumbering, but not renaming, you should be able to have a file like:
129.97.74.18 129.97.84.215 129.97.74.1 129.97.84.1
Run renumber:
# renumber -m renumber_mappings No match renumber FYI: /etc/defaultrouter needs to be changed Index: /etc/defaultrouter 1c1 < 129.97.74.1 --- > 129.97.84.1 ======= renumber FYI: /fsys1/.software/local/os-extras/data/gateway needs to be changed Index: /fsys1/.software/local/os-extras/data/gateway 1c1 < 129.97.74.1 --- > 129.97.84.1 ======= renumber FYI: /fsys1/.software/regional/os-extras/config/regional/mailname needs to be changed Index: /fsys1/.software/regional/os-extras/config/regional/mailname 2c2 < blackshadow.math.uwaterloo.ca --- > blackshadow.cs.uwaterloo.ca ======= renumber FYI: /fsys1/.software/local/xhier/config/local/allowed-types needs to be changed Index: /fsys1/.software/local/xhier/config/local/allowed-types 5c5 < regional=blackshadow.math.uwaterloo.ca --- > regional=blackshadow.cs.uwaterloo.ca ======= renumber FYI: /fsys1/.software/regional/xhier/data/default-allowed-types/regional needs to be changed Index: /fsys1/.software/regional/xhier/data/default-allowed-types/regional 2c2 < blackshadow.math.uwaterloo.ca --- > blackshadow.cs.uwaterloo.ca ======= #
OK, that looks good. But I don't think it got the OS stuff. Solaris 8:
One will have to muck about a great deal with xhier itself in order to convince it that it hasn't lost its mind.
xh-local-maintenance
to have it check that everything is working properly
/etc/hostname.hme0 /etc/nodename /etc/net/ticlts/hosts /etc/net/ticots/hosts /etc/net/ticotsord/hosts to be services16.student.cs
on services16.student.cs /fsys/.software/local/nsdata/conf/named.local /fsys/.software/share/local_rees.math.uwaterloo.ca/.admin/{HostMaintained ,Synopsis,Install,Options} on student.cs /.software/regional/sendmail-8.13/config/regional/clients /software/setpw/data/config/setpw.config /software/setpw/data/config/hosts/hosts.misc.rdist /.software/regional/finger-gnu/config/regional/clients removed /.software/regional/xhier/data/region/packages/rees.math on cscf.cs /fsys1/.software/admin/xhier/data/access-rights /fsys1/.software/admin/cscf-specific/export/hosts/{solaris.student.cs,student.cs} /.software/admin/lpr/data/hosts.equiv.lpd on capo /fsys1/.software/share/cf-specific/export/hosts/cscf_clients /.software/share/undergrad.math/data/hosts.equiv
-- MikePatterson - 03 Aug 2006