ehowton: (Default)
Worked two weeks to modify an existing push script to break up machines according to operating systems (HP/UX & SUN) and versions (11i, 11iv2 & 11iv3, 5.8 & 5.9) to allow the proper packages to get installed and equalize my password across all boxes which were under the maintenance window this weekend.

Keeping in mind that the -n option for pkgadd directs Sun's package installer to do to so without prompting for interaction, (-n Installation occurs in non-interactive mode.) I found the following caveat frustrating:

The -n option causes the installation to halt if any interaction is needed to complete it.

Two weeks worth of work so I could fire off the script and just sit back and watch my installations take place was in jeopardy, which would require me instead to log into each and every box and run these commands by hand.

That's when I discovered -a my saving grace!

Simply put, I copied the default /var/sadm/install/admin/default file to one named noask and changed the following lines from 'ask' to 'nocheck'

#ident "@(#)default 1.4 92/12/23 SMI" /* SVr4.0 1.5.2.1 */
mail=
instance=unique
partial=ask
runlevel=ask
idepend=ask
rdepend=nocheck
space=ask
setuid=nocheck
conflict=nocheck
action=nocheck

basedir=default

Since the file noask was created in the default path, all I had to do was follow the pkgadd command with '-a noask'

pkgadd -a noask -d [/path_to/pkg]

From that point, I just kicked off the script, put my feet up, and watched the magic happen.
◾ Tags:
Date/Time: 2009-03-15 20:15 (UTC)Posted by: [identity profile] celtmanx.livejournal.com
THAT'S AWESOME!!!

What does that mean exactly???
Date/Time: 2009-03-15 20:41 (UTC)Posted by: [identity profile] ehowton.livejournal.com
Which part?
Date/Time: 2009-03-16 00:13 (UTC)Posted by: [identity profile] celtmanx.livejournal.com
All of it!!!
Date/Time: 2009-03-16 00:24 (UTC)Posted by: [identity profile] ehowton.livejournal.com
I had 17 sheets of metal to hammer flat, and decided not to hammer them all one at a time, so I constructed a long pole above the sheets of metal, and affixed 17 sets of hammers to the pole, and simply turned the pole to hammer all 17 sheets of metal at once.

Unfortunately, the sheets of metal kept slipping under the beats of the hammer, and I'd have to move them back into place, so I said in a really angry voice to those pieces of metal, "STOP MOVING AROUND!" And they did, and I was able to pound my metal with a multitude of hammers simultaneously. It was like, 17 other people hammering my metal for me.
Date/Time: 2009-03-16 14:27 (UTC)Posted by: [identity profile] celtmanx.livejournal.com
Well when you put it that way it really makes sense!!!
Date/Time: 2009-03-16 16:25 (UTC)Posted by: [identity profile] thesweetestnote.livejournal.com
Now I get it!!!

and affixed 17 sets of hammers to the pole

Reminds me of Pink Floyd's "The Wall"
Date/Time: 2009-03-15 21:07 (UTC)Posted by: [identity profile] bsdcat.livejournal.com
Clearly, you should be using Linux instead. ;-)
Date/Time: 2009-03-15 21:28 (UTC)Posted by: [identity profile] ehowton.livejournal.com
Clearly.



(Of course that's how easy I *thought* this was going to be...)
Date/Time: 2009-03-16 23:23 (UTC)Posted by: [identity profile] thesweetestnote.livejournal.com


I tried finding the scene from Dogma when Silent Bob does it but couldn't find it, so...

Edited Date/Time: 2009-03-16 23:33 (UTC)
Date/Time: 2009-03-26 19:50 (UTC)Posted by: [identity profile] leonardii.livejournal.com
Sheer genius!!
Date/Time: 2009-03-26 22:43 (UTC)Posted by: [identity profile] ehowton.livejournal.com
Oh the joys of

(Pun intended)

June 2025

S M T W T F S
1 2 3 4 5 6 7
8 9 1011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Expand Cut Tags

No cut tags