NSR_RESOURCE(5) Legato NetWorker 3.0 NSR_RESOURCE(5)
NAME
NSR resource - NetWorker resource format
SYNOPSIS
resource ::= attribute list <blank line>
attribute list ::= attribute [ ; attribute ]*
attribute ::= name [ : value [ , value ]* ]
name, value ::= <printable string>
DESCRIPTION
The NetWorker system uses files containing resources to describe
itself and its clients. Each resource represents a component of the
NetWorker system that might need administration. Devices, schedules,
and clients are examples of NetWorker resources. The system adminis
trator manipulates resources to control the NetWorker system. The
file and the resources in them are accessible through the net
worker(8) and the nsradmin(8) programs. They can also be viewed with
a normal text editor.
The files all share a common format. The same format is used by the
nsradmin(8) program. Each resource is described by a list of
attributes, and ends in a blank line. Each attribute in the
attribute list has a name and an optional list of values. The
attribute name is separated from the attribute values by a colon (:),
attribute values are separated by commas (,), and each attribute ends
in a semicolon (;). A comma, semicolon or back-slash (\) at the end
of a line continues the line. A line beginning with a pound-sign (#)
is a comment and the rest of the line is ignored. The back-slash
character can also be used to escape the special meaning of other
characters (comma, semicolon, pound-sign, and back-slash).
The attribute name and values can contain any printable character.
Upper and lower case is not distinguished on comparisons, and extra
white space is removed from both ends but not from inside of names
and values. For example,
Name: this is a test;
matches
name : This Is A Test ;
but is different than
Name: this is a test;
In the following example resource, there are eight attributes. They
are type, name, server, schedule, directive, group, save set, and
recover access. The recover access attribute has no value.
type: NSR client;
name: venus;
server: earth;
schedule: Default;
directive: Default;
group: Default;
save set: All;
recover access: ;
Licensed material--property of copyright holder(s) 1
NSR_RESOURCE(5) Legato NetWorker 3.0 NSR_RESOURCE(5)
In the following resource, there are six attributes. The administra
tor attribute has three values: &engineering, root, and tadl. Note
that the three values are separated by commas. The action attribute
has one value: incr incr incr incr incr full incr. Note that this is
a single value - it just happens to have spaces separating its words.
type: NSR schedule;
action: incr incr incr incr incr full incr;
administrator: &engineering, root, operator;
name: engineering servers;
override: ;
period: Week;
SPECIAL ATTRIBUTES
Each NetWorker resource includes three special attributes: type,
name, and administrator. The type attribute defines which other
attributes a resource can contain. For example, a resource with type
NSR client will always include the attribute server, while a resource
of type NSR schedule does not.
The name attribute is a descriptive name of the object that a
resource represents. In the first example above, the name attribute
is the name of the NetWorker client machine. In the second example,
the name attribute describes a schedule used to back up the the
servers in the engineering department.
The administrator attribute is the list of users that have permission
to modify or delete this resource. This attribute is inherited from
the type: NSR resource when a new resource is created. The adminis
trator in the NSR resource also controls who has permission to create
and delete NetWorker resources.
In some cases, the resource identifier will be visible. Although it
may look like an attribute, it is an internal value that is set and
used by the NetWorker system to provide unique identification of each
resource. When new resources are created in the edit command of
nsradmin(8), the resource identifier attribute should be left off.
This signals that this is a new resource and a new identifier will be
assigned.
NetWorker resources are implemented by the Legato Resource Adminis
tration Platform, which is described in the resource(5) manual page.
This flexible architecture means that in future releases of Net
Worker, more resource types or attributes may be added, and the
administration tools in this release will automatically be able to
use them. To make this possible, each server provides type descrip
tors that are used internally to describe the attributes of each
type, between the administration tools and the services. These type
descriptors may cause limitation on the values, such as only allowing
a single value, allowing no value, or only numeric values.
RESOURCE TYPES
This release of NetWorker defines the following types of resources:
Licensed material--property of copyright holder(s) 2
NSR_RESOURCE(5) Legato NetWorker 3.0 NSR_RESOURCE(5)
NSR This resource describes a NetWorker server. It contains
attributes that control administrator authorization, informa
tion about operations in progress, and statistics and error
information about past operations. For more information see
the nsrservice(5) manual page.
NSR client
This resource describes a NetWorker client. It includes
attributes that specify the files to save, which schedule to
use, and which group this client belongs to. There may be
more than one client resource for a NetWorker client. This
allows a client to save files on different schedules. For
more information see the nsrclient(5) manual page.
NSR directive
This resource describes a directive. Directives control how a
client's files are processed as they are being saved. For
more information see the nsrdirective(5), the nsr(5) and the
uasm(8) manual pages.
NSR device
This resource type describes a storage device. It includes
attributes that specify a particular device name (for example,
/dev/rmt/1), media type (for example, 8mm), and the name of
the currently mounted volume. It also provides status and
statistics on current and past operations. For more informa
tion see the nsrdevice(5) manual page.
NSR group
This resource specifies a logical grouping of NetWorker
clients and a starting time. Each day, at the specified time,
all members of the group will start their saves. For more
information see the nsrgroup(5) manual page.
NSR notification
A notification specifies an action to be performed when a par
ticular type of NetWorker event takes place. For more infor
mation see the nsrnotification(5) manual page.
NSR schedule
Schedule resources define a sequence of save levels and an
override list. The override list is made up of pairs of lev
els and dates. The level controls the amount of data saved
when a client is backed up. For more information see the
nsrschedule(5) manual page.
FILES
/etc/nsr.res Holds the NetWorker server's resources.
SEE ALSO
resource(5), nsr(5), nsrdevice(5), nsrdirective(5), nsrgroup(5),
nsrnotification(5), nsrschedule(5), nsrservice(5),
nsrnotification(5), nsr(8), savegroup(8), savefs(8), nsradmin(8),
uasm(8).
Licensed material--property of copyright holder(s) 3