** EMC Networker ** Changing the Browse/Retention times on multiple savesets

Posted: February 16, 2009 in EMC Networker, Tips and Tricks

I was thinking just the other day that I would do a post on browse and retention of savesets but Preston beat me to it with this great post here which covers changing the browse and retention times on savesets. Soooooooo I thought I would do something along the same lines but slightly different.

Just the other day I had a call from a customer who had data on his staging disk that was going to expire due to a short browse and retention policy, but needed to keep the data on the disk to perform a recovery once the replacement server was built. (yip the server was a total loss)

We have to do two things here, stop the savesets from being staged by disabling the staging policy and secondly use nsrmm to extent the browse/retention times to ensure the savesets dont get removed from the disk  ( NSRIM -X does this by default every 24 hours)

So heres how you go about it !!

Perform a mminfo command to identify all the savesets on the disk/volume.

mminfo -avot -xc/ -r “ssid,cloneid” -q volume=vcbstagedisk.001

 The important thing to note here is;

A.The option to specify cloneid as well as the saveset, this is something you should always do as its very possible you might have clone’s of the savesets on other volumes, this ensures we change the values for the savesets located on the staging disk.
  B.The -xc/ to seperate the ssid and cloneid from one another using a forward slash which is used in our command later when specifying ssid/cloneid

Once you have the command sussed then add > savesets.txt to the command to save the output to a txt file. If you edit the file you should see something like this.

1883000520/1228689096
1095095097/1229312824
2839988292/1229375556
3797515640/1230601592
3683778379/1234304843

Then you can run a command from the windows command promt, an example is shown below;

For /F %1  in (savesets.txt) do nsrmm -S %1 -w browse -e retent  (Youll need to replace browse and retent with your choosen dates, I usually extent by 1 month)

Once the command completes you can then go and check the results by running the following command which now also reports out on saveset browse and retent.

mminfo -avot -r “ssid,cloneid,ssbrowse,ssretent” -q volume=vcbstagedisk.001

You should now see something like this.

 ssid                clone id          browse         retent
1883000520  1228689096 8/12/2010 8/12/2010
1095095097  1229312824 15/12/2010 15/12/2010
2839988292  1229375556 16/12/2010 16/12/2010
3797515640  1230601592 30/12/2010 30/12/2010
3683778379  1234304843 11/02/2010 11/02/2010

For you people out there with Linux/Unix backup servers you can use something like;

for i in $(savesets.txt); do $(nsrmm -w browse -e retent $i); done

Advertisements
Comments
  1. Mike Judge says:

    I think you may have just given me what I’m looking for – can you explain (or point me to an explanation) of the do loop in your example? In particular the /F%1 syntax?

  2. Good post. Interesting read. I read something similar yesterday but for the life of me I can’t remember what the site was though. It’ll come to me – it must be old age 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s