Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

networker commands (Windows) 1

Status
Not open for further replies.

182RacingBlue

Technical User
Sep 5, 2005
8
0
0
GB
Im looking for a way to take results say from mminfo or other commands in text files and incorporate them into other networker commands, example

use mminfo to identify volumes with no location field, results forwarded to a text file.

use mmlocate to set the location from the results all scripted daily.

Sorry a little new to networker have just really started managing our 7.2 environment.

can anyone help?
 
I guess it could be done with unix/linux scripting, say awk, sed, others... (sorry, I'm not very good in windows scripting - but I guess it can be done with vbs). So, as I'm familiar with awk I should install "Unix tools for windows" (google for it).

Cheers.

Chacal, Inc.[wavey]
 
Nothing is easier than this - what about a standard Windows redirection:

mminfo [options] > textfile

mmlocate [options] > textfile

more textfile

 
182RacingBlue said:
use mmlocate to set the location from the results all scripted daily.

[tt]mminfo [options] > textfile[/tt]

will make the query, but he wants to use that textfile in order to issue some [tt]mmlocale[/tt] command.

I think [tt]mmlocate [options] > textfile[/tt] will not set anything, or at least not in the desired result file.

Cheers.

Chacal, Inc.[wavey]
 
Of course you are right. Sorry for the confusion.
 
I sussed it if anyone cares.

writern a script to identify volumes used in the last week and withdraw them and also label the location as offsite (this is for Windows).

mminfo -r volume -t "last week" -q "pool=default,pool=monthlys" >f:\legato\utils\stage\withdraw.txt
f:
cd\legato\utils\stage
for /F %%i in (withdraw.txt) do nsrjb -w %%i

mminfo -r "volume" -q "location= " >f:\legato\utils\stage\offsite.txt
f:
cd\legato\utils\stage
for /F %%i in (offsite.txt) do mmlocate -u -n %%i "Offsite"
 
Thank you for sharing this script. Although there are a bunch of product specialists, not everybody is good in writing scripts.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top