SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
generating a bootstrap file and email report
Author Message
Post generating a bootstrap file and email report 
Everyone,
I have a need to generate a bootstrap report to a file and email as
well. I have tried several different suggestions without success.
In the final analysis, I generated a perl script that should handle
these, but I seem unable to call the script from the notification action
for the bootstrap email.
Any and all suggestions would be appreciated.
We are running V7.1.1 and the server is also a client. The bootstrap
does show up fine on the savegroup completion for the client. If I
configure the bootstrap email notification simply to make a file or to
send an email, this works ok, but want to do both.
Thanks in advance for your suggestions.
Bob

Note: To sign off this list, send a "signoff networker" command via email
should be sent to stan < at > temple.edu

Post generating a bootstrap file and email report 

Everyone,
I have a need to generate a bootstrap report to a file and email as
well. I have tried several different suggestions without success.
In the final analysis, I generated a perl script that should handle
these, but I seem unable to call the script from the notification action
for the bootstrap email.
Any and all suggestions would be appreciated.
We are running V7.1.1 and the server is also a client. The bootstrap
does show up fine on the savegroup completion for the client. If I
configure the bootstrap email notification simply to make a file or to
send an email, this works ok, but want to do both.

Have you tried just making 2 notifications, one for each?

Darren Dunham ddunham < at > taos.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
should be sent to stan < at > temple.edu

Post generating a bootstrap file and email report 
Darren,
Yep, tried it. Must be doing something wrong because I was only able to
get one or the other. I left the "bootstrap email" in place and created
another notification call "bootstrap file" with exactly the same
selections. Did I miss something?
Bob

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


Everyone,
I have a need to generate a bootstrap report to a file and email as
well. I have tried several different suggestions without success.
In the final analysis, I generated a perl script that should handle
these, but I seem unable to call the script from the notification
action
for the bootstrap email.
Any and all suggestions would be appreciated.
We are running V7.1.1 and the server is also a client. The bootstrap
does show up fine on the savegroup completion for the client. If I
configure the bootstrap email notification simply to make a file or to
send an email, this works ok, but want to do both.

Have you tried just making 2 notifications, one for each?

Darren Dunham ddunham < at > taos.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
should be sent to stan < at > temple.edu

Note: To sign off this list, send a "signoff networker" command via email
should be sent to stan < at > temple.edu

Post generating a bootstrap file and email report 

Darren,
Yep, tried it. Must be doing something wrong because I was only able to
get one or the other.

You mean you were able to create the notification without error, but
only one of them was working?

In the final analysis, I generated a perl script that should handle
these, but I seem unable to call the script from the notification
action for the bootstrap email.

Is this unix or windows?
How does the action appear in your attempt to launch the script?

Darren Dunham ddunham < at > taos.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
should be sent to stan < at > temple.edu

Post 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.
/usr/bin/sh -c '/usr/bin/cat | /opt/adm/scripts/Bootstrap_Notify'
Is this out of line? The perl script simply reads the input and outputs
it to a file and emails it to a list.
Bob
-----Original Message-----
From: Legato NetWorker discussion [mailto:NETWORKER < at > LISTMAIL.TEMPLE.EDU]
On Behalf Of Darren Dunham
Sent: Tuesday, December 07, 2004 2:16 PM
To: NETWORKER < at > LISTMAIL.TEMPLE.EDU
Subject: Re: [Networker] generating a bootstrap file and email report


Darren,
Yep, tried it. Must be doing something wrong because I was only able
to
get one or the other.

You mean you were able to create the notification without error, but
only one of them was working?

In the final analysis, I generated a perl script that should handle
these, but I seem unable to call the script from the notification
action for the bootstrap email.

Is this unix or windows?
How does the action appear in your attempt to launch the script?

Darren Dunham ddunham < at > taos.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
should be sent to stan < at > temple.edu

Note: To sign off this list, send a "signoff networker" command via email
should be sent to stan < at > temple.edu

Post 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.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
should be sent to stan < at > temple.edu

Post generating a bootstrap file and email report 
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.EDU]
On Behalf Of Darren Dunham
Sent: Tuesday, December 07, 2004 2:34 PM
To: NETWORKER < at > LISTMAIL.TEMPLE.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.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
should be sent to stan < at > temple.edu

Note: To sign off this list, send a "signoff networker" command via email
should be sent to stan < at > temple.edu

Post generating a bootstrap file and email report 
I have a perl script called send_bootstrap which begins:

#!/usr/bin/perl
< at > 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.EDU]
On Behalf Of Darren Dunham
Sent: Tuesday, December 07, 2004 2:34 PM
To: NETWORKER < at > LISTMAIL.TEMPLE.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.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
should be sent to stan < at > temple.edu

--
Note: To sign off this list, send a "signoff networker" command via email
should be sent to stan < at > temple.edu


Roberta Butcher
Lawrence Livermore National Laboratory
ICC/HPSD - Security Technologies Group
rbutcher < at > llnl.gov
(925) 422-0167

Note: To sign off this list, send a "signoff networker" command via email
should be sent to stan < at > temple.edu

Post generating a bootstrap file and email report 
Everyone,
Thanks for the many inputs that I received concerning my problem.
The problem turns out to be my own configuration. I was attempting to
add another notification (in addition to the default bootstrap
notification) that I called "bootstrap email". The notification was set
up exactly like the default but the action line pointed to a script that
would capture the input and generate a file (for archival purposes) as
well as send an email with the bootstrap report.
Legato informs me that we cannot do that. Only one bootstrap
notification can be set up. I deleted my "bootstrap email" notification
and modified the default "bootstrap" notification to point to my script.
This works. Too bad we cannot have more that one notification set up for
bootstrap.
Thanks again,
Bob

-----Original Message-----
From: Roberta Butcher [mailto:rbutcher < at > llnl.gov]
Sent: Tuesday, December 07, 2004 5:49 PM
To: Legato NetWorker discussion; Gates, Robert L .
Subject: Re: [Networker] generating a bootstrap file and email report


I have a perl script called send_bootstrap which begins:

#!/usr/bin/perl
< at > 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.EDU]
On Behalf Of Darren Dunham
Sent: Tuesday, December 07, 2004 2:34 PM
To: NETWORKER < at > LISTMAIL.TEMPLE.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.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
should be sent to stan < at > temple.edu

--
Note: To sign off this list, send a "signoff networker" command via
email
should be sent to stan < at > temple.edu


Roberta Butcher
Lawrence Livermore National Laboratory
ICC/HPSD - Security Technologies Group
rbutcher < at > llnl.gov
(925) 422-0167

Note: To sign off this list, send a "signoff networker" command via email
should be sent to stan < at > temple.edu

Post generating a bootstrap file and email report 
As your scripts collected the info to a file for archival purposes,
can't you just add a line to it and get it to mail you the file?
Allan.

robert.l.gates < at > PFIZER.COM 09/12/04 14:23:37 >>>
Everyone,
Thanks for the many inputs that I received concerning my problem.
The problem turns out to be my own configuration. I was attempting to
add another notification (in addition to the default bootstrap
notification) that I called "bootstrap email". The notification was
set
up exactly like the default but the action line pointed to a script
that
would capture the input and generate a file (for archival purposes) as
well as send an email with the bootstrap report.
Legato informs me that we cannot do that. Only one bootstrap
notification can be set up. I deleted my "bootstrap email"
notification
and modified the default "bootstrap" notification to point to my
script.
This works. Too bad we cannot have more that one notification set up
for
bootstrap.
Thanks again,
Bob

-----Original Message-----
From: Roberta Butcher [mailto:rbutcher < at > llnl.gov]
Sent: Tuesday, December 07, 2004 5:49 PM
To: Legato NetWorker discussion; Gates, Robert L .
Subject: Re: [Networker] generating a bootstrap file and email report


I have a perl script called send_bootstrap which begins:

#!/usr/bin/perl
< at > 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.EDU]
On Behalf Of Darren Dunham
Sent: Tuesday, December 07, 2004 2:34 PM
To: NETWORKER < at > LISTMAIL.TEMPLE.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.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
list
should be sent to stan < at > temple.edu

--
Note: To sign off this list, send a "signoff networker" command via
email
list
should be sent to stan < at > temple.edu


Roberta Butcher
Lawrence Livermore National Laboratory
ICC/HPSD - Security Technologies Group
rbutcher < at > llnl.gov
(925) 422-0167

Note: To sign off this list, send a "signoff networker" command via
email
should be sent to stan < at > temple.edu

Note: To sign off this list, send a "signoff networker" command via email
should be sent to stan < at > temple.edu

Post generating a bootstrap file and email report 
Yep,
That's what we do.
Bob

-----Original Message-----
From: Legato NetWorker discussion [mailto:NETWORKER < at > LISTMAIL.TEMPLE.EDU]
On Behalf Of Allan Nelson
Sent: Thursday, December 09, 2004 2:08 PM
To: NETWORKER < at > LISTMAIL.TEMPLE.EDU
Subject: Re: [Networker] generating a bootstrap file and email report

As your scripts collected the info to a file for archival purposes,
can't you just add a line to it and get it to mail you the file?
Allan.

robert.l.gates < at > PFIZER.COM 09/12/04 14:23:37 >>>
Everyone,
Thanks for the many inputs that I received concerning my problem.
The problem turns out to be my own configuration. I was attempting to
add another notification (in addition to the default bootstrap
notification) that I called "bootstrap email". The notification was
set
up exactly like the default but the action line pointed to a script
that
would capture the input and generate a file (for archival purposes) as
well as send an email with the bootstrap report.
Legato informs me that we cannot do that. Only one bootstrap
notification can be set up. I deleted my "bootstrap email"
notification
and modified the default "bootstrap" notification to point to my
script.
This works. Too bad we cannot have more that one notification set up
for
bootstrap.
Thanks again,
Bob

-----Original Message-----
From: Roberta Butcher [mailto:rbutcher < at > llnl.gov]
Sent: Tuesday, December 07, 2004 5:49 PM
To: Legato NetWorker discussion; Gates, Robert L .
Subject: Re: [Networker] generating a bootstrap file and email report


I have a perl script called send_bootstrap which begins:

#!/usr/bin/perl
< at > 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.EDU]
On Behalf Of Darren Dunham
Sent: Tuesday, December 07, 2004 2:34 PM
To: NETWORKER < at > LISTMAIL.TEMPLE.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.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
list
should be sent to stan < at > temple.edu

--
Note: To sign off this list, send a "signoff networker" command via
email
list
should be sent to stan < at > temple.edu


Roberta Butcher
Lawrence Livermore National Laboratory
ICC/HPSD - Security Technologies Group
rbutcher < at > llnl.gov
(925) 422-0167

Note: To sign off this list, send a "signoff networker" command via
email
should be sent to stan < at > temple.edu

Note: To sign off this list, send a "signoff networker" command via
email
should be sent to stan < at > temple.edu

Note: To sign off this list, send a "signoff networker" command via email
should be sent to stan < at > temple.edu

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB