in reply to Solaris - change hostname / ip / default-router-ip script

please read man sys-unconfig and tell me, why your script is better?

Replies are listed 'Best First'.
Re^2: Solaris - change hostname / ip / default-router-ip script
by Qiang (Friar) on Feb 22, 2005 at 02:20 UTC
    okay. I have read it and I don't see how it is going to help me.

    the doc says that sys-unconfig is used to restore a system's configuration to an “as-manufactured” state, ready to be reconfigured again. and it removes few of the config files too. care to read it yourself??
    sys-unconfig manpage from sun.com

      AND it "Executes all system configuration applications."
      so sys-unconfig erases all your system configuration and let you configure them after the reboot. it's what your script wants to be and more.
      this is not intendet to be offense, but i just see no point in writing a script that does what you can do by only typing _one_ system command.
        sounds like sys-unconfig would be of little use unless you have physical access to the machine after the reboot. seems like it would be a lot better to change the network info before the reboot so you can access the machine after the reboot... besides, who would want to walk around and completely reconfigure machines after a reboot when all you want to do is change the network info.