Start a Conversation

Unsolved

M

1 Rookie

 • 

9 Posts

60

November 11th, 2023 20:33

Find client policy and workflow through CLI

Hello Guys . 

Is there a way to find a client's policy and workflow  via the command line ? 

I know it can be done with mminfo 
mminfo -q client={} -r"policy,workflow"

But this doesnt always help, if there is no backup to display . 

this doesn't work also : 

nsradmin> . type:NSR client; name: client
    Current query set
nsradmin> show policy
nsradmin> print
nsradmin>

Is there a certain way to do it? 

thanks :) 

1 Rookie

 • 

117 Posts

November 17th, 2023 13:36

you need to look at nsrpolicy and hence would need to know things like policy and workflow to report about it. I created a simple script that I mentioned in a way earlier post, that loops through all polices, listing all workflows defined underneath each policy, showing their schedule time and whether they are enabled.

Is this intended to show their configuration, their success state or rather to start them via cli?

see for example (slightly older): https://youtu.be/5Z1NulvZRZQ

to monitor jobs:

https://www.dell.com/support/manuals/en-us/networker/nw_p_nwadmin/using-nsrpolicy-monitor?guid=guid-47e17efa-745a-41b4-a8d1-24f3af745173&lang=en-us

https://www.dell.com/support/manuals/en-us/networker/nw_p_nwadmin/creating-data-protection-policy-resources-from-a-command-prompt?guid=guid-38802ffb-2b3e-472c-87dc-f69b2e442d5d&lang=en-us also gives some hints how to use nsrpolicy to show configs for policy/workflow/group.

(edited)

1 Rookie

 • 

9 Posts

November 21st, 2023 18:16

@bbeckers1​ mm . I am actually looking for the policy and workflow under which a certain client in configured . 
I start by not knowing what the policy and workflow are  and I was hoping there is some way to find them . 

1 Rookie

 • 

117 Posts

November 24th, 2023 14:08

if you don't know what a policy and workflow are, then you first need to get a grip on the very basics of how networker works and how things are configured. might better start by looking at configuration using NW NMC or NWUI gui's and working from there.

Or dou you mean that as you don't know the policy or workflow yet, that you then don't know where to start?

You can loop through all policies, lsiting all workflows amd then for using both policy and workflow names list their configuration.

This is also one of the things that is severly lacking that NW is not able to simply list configurations as seen from client end. I don't care too much about policies or workflows, I want to be able to see which clients have what kind of backup configurations and be able to see in one view if that workflow even has its schedule enabled.

Such an overview does not exist and is severly missed.

So you can list with nsradmin nowadays what the policy and workflow are for individual client definitions and use the nsradmin output to then list that policy/workflow combination.

1 Rookie

 • 

9 Posts

November 28th, 2023 07:36

@bbeckers1​ thanks for the reply . 
I know what they are . 
and I am not trying to do this from the client's end . I want to do this on the backup server itself . 

I am just trying to list the policy and workflow of a certain client . not all at once . For automation purposes . 


No Events found!

Top