?

Log in

No account? Create an account
Sun Logo

NOCHECK

Posted on 2009.03.15 at 12:45
Current Location: 75070
Current Music: Queen - A Kind of Magic
Tags: ,
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.

Comments:


CeltManX, Devlin O' Coileáin
celtmanx at 2009-03-15 20:15 (UTC) (Link)
THAT'S AWESOME!!!

What does that mean exactly???
ehowton
ehowton at 2009-03-15 20:41 (UTC) (Link)
Which part?
CeltManX, Devlin O' Coileáin
celtmanx at 2009-03-16 00:13 (UTC) (Link)
All of it!!!
ehowton
ehowton at 2009-03-16 00:24 (UTC) (Link)
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.
CeltManX, Devlin O' Coileáin
celtmanx at 2009-03-16 14:27 (UTC) (Link)
Well when you put it that way it really makes sense!!!
Samantha
thesweetestnote at 2009-03-16 16:25 (UTC) (Link)
Now I get it!!!

and affixed 17 sets of hammers to the pole

Reminds me of Pink Floyd's "The Wall"
Cat Who Likes OpenBSD
bsdcat at 2009-03-15 21:07 (UTC) (Link)
Clearly, you should be using Linux instead. ;-)
ehowton
ehowton at 2009-03-15 21:28 (UTC) (Link)
Clearly.

sudo apt-get upgrade [pkg]

(Of course that's how easy I *thought* this was going to be...)
Samantha
thesweetestnote at 2009-03-16 23:23 (UTC) (Link)

NOTICKET



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



Edited at 2009-03-16 11:33 pm (UTC)
Renegade
leonardii at 2009-03-26 19:50 (UTC) (Link)
Sheer genius!!
ehowton
ehowton at 2009-03-26 22:43 (UTC) (Link)
Oh the joys of man.

(Pun intended)
Previous Entry  Next Entry