Operating System - HP-UX
1834634 Members
3325 Online
110069 Solutions
New Discussion

Solaris /usr/sbin/sys_unconfig -- Any HPUX Equiv?

 
SOLVED
Go to solution
Alzhy
Honored Contributor

Solaris /usr/sbin/sys_unconfig -- Any HPUX Equiv?

sys_unconfig "unconfigures" a Solaris system so that on its next startup, it will prompt the admin new parameters for hostname and networking...

What is the equivalent on HPUX? - so on a server's bootup, the admin/user will be asked to put in a new hostname and networking information...?

Graci.
Hakuna Matata.
13 REPLIES 13
James A. Donovan
Honored Contributor
Solution

Re: Solaris /usr/sbin/sys_unconfig -- Any HPUX Equiv?

You want to use the set_parms command.

# /sbin/set_parms initial
Remember, wherever you go, there you are...
Robert-Jan Goossens
Honored Contributor

Re: Solaris /usr/sbin/sys_unconfig -- Any HPUX Equiv?

Hi,


not quit the same but

# /sbin/set_parms initial
+ reboot looks like it.

Robert-Jan
Kevin Wright
Honored Contributor

Re: Solaris /usr/sbin/sys_unconfig -- Any HPUX Equiv?

set_params
Alzhy
Honored Contributor

Re: Solaris /usr/sbin/sys_unconfig -- Any HPUX Equiv?

But isn't it that "set_parms initial" will invoke a dialogue that will ask you to fill in host and network info?

What I'd want is invoke such a command.. shut the system down so when it is delivered to a site - on power up (bootup) it will ask for host and network info...

Hakuna Matata.
Patrick Wallek
Honored Contributor

Re: Solaris /usr/sbin/sys_unconfig -- Any HPUX Equiv?

The closest you can come is with Ignite/UX. If you do a make_tape_recovery backup and interact with the new install, you can tell Ignite to have the machine ask for the parameters at first boot up. You'd just have to have interrupt that first boot so it will ask for the parameters at the customers site.

Other than that, there really isn't an HP equivalent to sys_unconfig. It would be kind of nice.
Alzhy
Honored Contributor

Re: Solaris /usr/sbin/sys_unconfig -- Any HPUX Equiv?

Hmm.. I wonder how HP does it. I am sure I've seen HPUX servers/workstations in the past wherein on 1st power-up(boot) it asks you for all the host and networking info.
.
.
Could this be an undocumented set_parms parameter or a file/switch somewhere?
Hakuna Matata.
James Specht
Trusted Contributor

Re: Solaris /usr/sbin/sys_unconfig -- Any HPUX Equiv?

couldn't you run '/sbin/set_parms initial' in a script and set it up as the first init script under init lever 1 or 2?

--Jim
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."
Steven E. Protter
Exalted Contributor

Re: Solaris /usr/sbin/sys_unconfig -- Any HPUX Equiv?

Ignite has an option that can be built into a Golden image that lets you set networking at that time, or at first boot from the console.

Its a pull down menu in the /opt/ignite/bin/ignite interface.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Alzhy
Honored Contributor

Re: Solaris /usr/sbin/sys_unconfig -- Any HPUX Equiv?

James.. you a mind reader?

That's what I was about to try out.. sort of a run-once rc script. Must be the very method used by HP...
Hakuna Matata.
Alzhy
Honored Contributor

Re: Solaris /usr/sbin/sys_unconfig -- Any HPUX Equiv?

SEP.. what I am after is after install/QA of a server -- we "sys_unconfig" it and ship it off to a client. So no Ignite/whatsover is invlved.. something along the lines that HP uses when they ship out fully imaged servers.
Hakuna Matata.
James A. Donovan
Honored Contributor

Re: Solaris /usr/sbin/sys_unconfig -- Any HPUX Equiv?

I don't have the time to look at it more extensively right now, but you may want to look at the /tmp/install.vars and /sbin/auto_parms files. Setting the _hp_locale variable. Seems that if _hp_locale=ASK_AT_FIRST_BOOT, and the hostname value in /etc/rc.config.d/netconf is unset, then the system may come up asking for its initial parameters.
Remember, wherever you go, there you are...
Denver Osborn
Honored Contributor

Re: Solaris /usr/sbin/sys_unconfig -- Any HPUX Equiv?

Can't believe no on caught this... All you need to do is remove /etc/rc.config.d/netconf, copy /usr/newconfig/etc/rc.config.d/netconf to /etc/rc.config.d/netconf, then reboot...

when the box boots it will ask "Are you ready to link this system to a network?"

-Denver
James Specht
Trusted Contributor

Re: Solaris /usr/sbin/sys_unconfig -- Any HPUX Equiv?

OK denver...if you want to do it the RIGHT way.

I think I'll tuck that in my notes file since I seem to have totally forgotten that.

--Jim
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."