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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mminfo command to find out devices 2

Status
Not open for further replies.

04041977

IS-IT--Management
Sep 2, 2005
5
DE
Hello,

does anyone know a mminfo-command or another command to find out which devices belong to a pool? I have found several commands which show me the volumes but I couldn`t find one which brings out the devices. In the nwadmin-Window the devices are shown, but I need it in a script form.

Thanks for your help!!!
 
mminfo is not the command you need...

Try this:

nsradmin -i file.txt -s server

where file.txt is:

show name; devices
print type: NSR pool
quit
 
Thank you for your help. With this command I see all pools with the belonging devices.

Can I ask for a special pool, e.g. for pool "Default", so that only this information is shown??

Thank you again :)
 
Just extend the inputfile as follows:

...where file.txt is:

show name; devices
print type: NSR pool; name: Default
quit


However, please let me explain that this specific command is useless - in fact it is nonsense.

The reason for that is simple: You may not even change the settings for the pool "Default" so you will not be able to assign any device to this pool at all. Simply try it.

If you do not know exactly the consequences, never assign devices to pools - it is not needed. The best example in fact is the pool "Default" - it can backup even though no device can be assigned.
 
Hello 605,

I extended the script as you suggested, but it doesn`t bring a senseful output.

The general problem is, that I want to write a script which labels and mounts my filedevices. After one device is full, the next one should be labelded and mountet. For this script I want to have an output which shows me the devices belonging to the pool who submits the requirement.
 
It does work. However, it can only work if you have assigned a device for a pool. And this is simply impossible for the pool Default. As i said - it is nonsense.

But do you make it so complicated? Finding out the relations between drives and and pools is one thing, automatic labeling is another one.

For automatic labeling processes you better use the "auto media management" feature for the device. NW will label the drives to the appropriate pool whenever such is needed.

To find out the relationship for a device, you should query the DEVICE resource.

In such case, the input file should read like this:
show name; volume name; volume pool
print type: NSR device: name : device_name
quit


Please be aware that the "device_name" for a Windows device must read like: "drive_letter:\\dir_1\\dir_2\\etc"

 
Are you talking about automatically labeling tape volumes?

One of your responses mentioned file devices. Are you refering to a file type device? Those are disk file storage devices. In that case you can control space utilization within that storage area so you can attempt
to avoid running out of space. Files in the disk storage area can be migrated to tape to create free space.

There are many features available for Advanced File Type
Storage devices that can be used to maintain free space.
 
Slowly please.

First of all, please use strictly NetWorker terminology as this will avoid 'language problems'. I do not understand what you mean by "disk file storage devices".

Also, please be aware of differences between the older File Type Device and the new "Advanced" FTD.

One important difference is that you can only specify the size for a FTD by setting the "Volume Default Capacity" BEFORE you label the media. NW will stop when reaching this value.

However, the AFTD by definition will never get assigned the status "full" although you of course can fill it up. Also the "Volume Default Capacity" is not accepted for this device type. It obviously is the wrong device type for your scenario.


But yes, you can use Auto Media Management (AMM) for both device types.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top