Networker

Re: [Networker] generating a bootstrap file and email report

2004-12-07 18:47:43
Subject: Re: [Networker] generating a bootstrap file and email report
From: Roberta Butcher <rbutcher AT LLNL DOT GOV>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Tue, 7 Dec 2004 15:48:57 -0800
I have a perl script called send_bootstrap which begins:

#!/usr/bin/perl
@Bootstrap_Info = <>;           # This line gets bootstrap info


In the Action Field of Bootstrap notification:

/usr/local/admin/scripts/send_bootstrap

*** This seems to work ...

Darren,
My message should have read, it is attempting to fire up the script.
I have not verified that it does so successfully. I'll give your
suggestions below a try.
Thanks,
Bob

-----Original Message-----
From: Legato NetWorker discussion [mailto:NETWORKER AT LISTMAIL.TEMPLE DOT EDU]
On Behalf Of Darren Dunham
Sent: Tuesday, December 07, 2004 2:34 PM
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Subject: Re: [Networker] generating a bootstrap file and email report


 Hi Darren,

 It looks like my action field in the notification script is just not
 working. It is firing up a perl script (yes we are on HP/UX).
 The action field seems to me to be the problem.

It *is* firing up the script?  How are you detecting that?

 /usr/bin/sh -c '/usr/bin/cat | /opt/adm/scripts/Bootstrap_Notify'
 Is this out of line?

It might work, but I always worry about quotes and stuff in the action
field itself.  Simply calling the script itself seems to be safer.  I
can't remember when to escape the quotes.

Does something like this work?

Verify your perl script is executable.

#!/usr/bin/perl
open (OUT, ">/tmp/bootstrap");
print OUT <>;

action: /tmp/executable_perl_script

Assuming you get the data in /tmp/bootstrap, then it's just a matter of
refining what the script does.

--
Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

--
Note: To sign off this list, send a "signoff networker" command via
email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=


--
Roberta Butcher
Lawrence Livermore National Laboratory
ICC/HPSD - Security Technologies Group
rbutcher AT llnl DOT gov
(925) 422-0167

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=