Networker

Re: [Networker] NSRADMIN_Help Needed

2007-06-07 11:20:18
Subject: Re: [Networker] NSRADMIN_Help Needed
From: "Faidherbe, Thierry" <Thierry.Faidherbe AT HP DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 7 Jun 2007 15:15:44 -0000
Let's start with the following :

nsradmin -s <server>

nsradmin> show
nsradmin>option hidden
nsradmin> print type:nsr device

Networker will list info for each tape device.
Look at what you need.
Format is quite simple :
        <resource name> : <value>

Once you selected what you need. Take care,
resource name are sometime case sensitive.
Always use name as shown in the resource.
once you are ready :

nsradmin> show <resource name>[;<resource name>...]
nsradmin> print type:nsr device

eg

nsradmin> show name;CDI;enabled
nsradmin> print type:nsr device
                        name: "\\\\.\\tape3";
                     enabled: No;
                         CDI: Not used;

The rest is string parsing ;-)



you can do the same for nsr savegroup, nsr client, nsr license,
nsr schedule, nsr pool, ...

/Have fun,

TH

Kind regards - Bien cordialement - Vriendelijke groeten,

Thierry FAIDHERBE

HP Services - Storage Division
Tru64 Unix and Legato Enterprise Backup Solutions Consultant
                                  
 *********       *********   HEWLETT - PACKARD
 *******    h      *******   1 Rue de l'aeronef/Luchtschipstraat
 ******    h        ******   1140 Bruxelles/Brussel/Brussels
 *****    hhhh  pppp *****  
 *****   h  h  p  p  *****   100/102 Blv de la Woluwe/Woluwedal
 *****  h  h  pppp   *****   1200 Bruxelles/Brussel/Brussels
 ******      p      ******   BELGIUM
 *******    p      *******                             
 *********       *********   Phone :    +32 (0)2  / 729.85.42  
                             Mobile :   +32 (0)498/  94.60.85
                             Fax :      +32 (0)2  / 729.88.30  
     I  N  V  E  N  T        Email/MSN : thierry.faidherbe(at)hp.com
                             Internet  : http://www.hp.com/
Enterprise number 0402.220.594 - RPM/RPR Brussels
 
-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of Fazil Saiyed
Sent: jeudi 7 juin 2007 15:13
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] NSRADMIN_Help Needed

Hello,
I have been strugling to get relavent information out of nsradin to 
acomplish two task.
1. I would like to get autumated email sent out to operations staff and 
myself when a drive goes into service mode.
I designed a process that gets me some usefull info if i use it
manually, 
but if i use the nsradmin cmd via input file the output is quite
different 
for the same cmd, can someone debug why this is hapening.
i.e
Below is my bat file.
D:
cd D:\nsr\bin\
nsradmin -i D:\Scripts\TAPEW\LegatoDevices.txt 
>>D:\Scripts\TAPEW\LegatoDevices_In_ServiceModeout.txt
___
This bat file takes input from 
show type :nsr device
show enabled;name;CDI;status
print nsr device
+++++++
However the output differ when i type in nsradmin cmd line vs suppying
it 
via input file
I have very similar process that works the same way for groups running (

after hrs-during day) i want to know why a group is still running during

day time, as due to some poor throughput\issues with clients not running

with their full potential, it could clash with next run time of the same

group.
Sure i can look at NMC but i sometime dont have time to look at it every

day and if there were issues i would like to be emailed right away.
If you have other usefull processes to help networker admin and tips on 
nsradmin usage that would be well appriciated.
Thanks

To sign off this list, send email to listserv AT listserv.temple DOT edu and
type "signoff networker" in the body of the email. Please write to
networker-request AT listserv.temple DOT edu if you have any problems with this
list. You can access the archives at
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

<Prev in Thread] Current Thread [Next in Thread>