However what you ask for is already contained in savegrp.log. (maybe even in messages as well, depending what is set to go there in your syslog.conf). Check it out and see if it help. (if log would be suppressed use NO_SUPPRESS to override that).
I just notice you titled this topic mail script... I believe something liek does already happen and it goes to root mail queue by default... so you can just change the email address.
Hi, I´ve used "mail script", because the client want to generate the script and send it using e-mail. But he want to start it using the command line. I have a LAB with Networker and Windows 2k3. If I use nsrlog -f savegrp.log there´s no return, so I´m trying to understand the nsrlog -f -C -P Message and -D option...so, I think, I can see what I can create to help the client to show the time that it started, ended and information that is possible to create using nsrlog command.
If I understand correctly your customer has HPUX... so that's where you should test it... Windows and HPUX don't have many things in common - script posibilities included.
On Windows system you would use probably blat utility.
maybe you can use built-in notifications, select event savegroup and choose priority, in action field put in something like smtpmail -s "subject" -h mailserver emailadress. If you will choose group completion, you will get what you want - start time, savesets...
I'd agree that whatever you want to achieve here should be possible from a script, but you need to be a little clearer about the end point. From what I can gather you want to run a script on the CLIENT (as opposed to the server) which will gather some information a group backup then e-mail; if you are gathering information about a group then you will need to be looking on the server for this information - so you could be using the nsradmin -s server command to query the group resource(s); alternatively you could use notifications but these are automatic from the Networker server; or you could look at the messages file which will log details of completion.
ble1
4 Operator
•
14.4K Posts
0
March 15th, 2006 05:00
However what you ask for is already contained in savegrp.log. (maybe even in messages as well, depending what is set to go there in your syslog.conf). Check it out and see if it help. (if log would be suppressed use NO_SUPPRESS to override that).
ble1
4 Operator
•
14.4K Posts
0
March 15th, 2006 05:00
hlyra5
6 Posts
0
March 15th, 2006 05:00
I have a LAB with Networker and Windows 2k3. If I use nsrlog -f savegrp.log there´s no return, so I´m trying to understand the nsrlog -f -C -P Message and -D option...so, I think, I can see what I can create to help the client to show the time that it started, ended and information that is possible to create using nsrlog command.
ble1
4 Operator
•
14.4K Posts
0
March 15th, 2006 05:00
ble1
4 Operator
•
14.4K Posts
0
March 15th, 2006 06:00
On Windows system you would use probably blat utility.
pgolob
37 Posts
0
March 15th, 2006 07:00
maybe you can use built-in notifications, select event savegroup and choose priority, in action field put in something like smtpmail -s "subject" -h mailserver emailadress. If you will choose group completion, you will get what you want - start time, savesets...
Regards,
Ojo
DavidHampson
2 Intern
•
1.1K Posts
0
March 27th, 2006 01:00