Legato NetWorker Commands Index:
ansrdascdcode
cdi_block_limits
cdi_bsf
cdi_bsr
cdi_eod
cdi_filemark
cdi_fsf
cdi_fsr
cdi_get_config
cdi_get_status
cdi_inq
cdi_load_unload
cdi_locate
cdi_offline
cdi_rewind
cdi_set_compression
cdi_space
cdi_ta
cdi_tapesize
cdi_tur
changers
dasadmin
ddmgr
EMASS_silo
erase
generate_test_tape
hadump
hafs
hagentd
hagetconf
haprune
hascsi
hasubmit
hasys
hpflip
IBM_silo
ielem
inquire
jbconfig
jbexercise
jbverify
ldunld
lgtolic
lgtolmd
libcdi
libscsi
libsji
libstlemass
libstlibm
libstlstk
lrescan
lreset
lus_add_fp_devs
lusbinfo
lusdebug
mini_el
mm_data
mminfo
mmlocate
mmpool
mmrecov
msense
mt
ndmpjbconf
networker
nsr (1)
nsr (5)
nsr_archive_request
nsr_client
nsr_crash
nsr_data
nsr_device
nsr_directive
nsr_getdate
nsr_group
nsr_ize
nsr_jukebox
nsr_label
nsr_layout
nsr_license
nsr_migration
nsr_notification
nsr_policy
nsr_pool
nsr_regexp
nsr_resource
nsr_schedule
nsr_service
nsr_shutdown
nsr_stage
nsr_storage_node
nsr_support
nsr_usergroup
nsradmin
nsralist
nsrarchive
nsrcap
nsrcat
nsrck
nsrclone
nsrcnct
nsrd
nsrexec
nsrexecd
nsrhsmck
nsrhsmclear
nsrhsmd
nsrhsmls
nsrhsmnfs
nsrhsmrc
nsrhsmrecall
nsrib
nsriba
nsrim
nsrindexasm
nsrindexd
nsrinfo
nsrjb
nsrlic
nsrls
nsrmig
nsrmm
nsrmmd
nsrmmdbasm
nsrmmdbd
nsrmon
nsrndmp_clone
nsrndmp_recover
nsrndmp_save
nsrpmig
nsrports
nsrretrieve
nsrssc
nsrstage
nsrtrap
nsrwatch
nwadmin
nwarchive
nwbackup
nwrecover
nwretrieve
pathownerignore
pmode
preclntsave
pstclntsave
read_a_block
recover
relem
resource
save
savefs
savegrp
savepnpc
scanner
sjiielm
sjiinq
sjimm
sjirdp
sjirdtag
sjirelem
sjirjc
sjisn
sn
ssi
stk_eject
STK_silo
stli
sym2xdm
tapeexercise
tur
uasm
writebuf
* - Windows Only
* mt
* nsrlpr
* nsrperf
nsradmin
nsradmin - NetWorker administrative programSYNOPSIS
nsradmin [ -c ] [ -i file ] [ -s server ] [ -p prognum ] [ -v version ] [ query ] nsradmin [ -c ] [ -i file ] [ -d resdir ... ] [ -t typefile ] [ query ] nsradmin [ -c ] [ -i file ] [ -f resfile ... ] [ -t typefile ] [ query ]
DESCRIPTION
The nsradmin command is a command-line based administrative program for the NetWorker system. Normally nsradmin monitors and modifies Net- Worker resources over the network. Commands are entered on standard input, and output is produced on standard output. If nsradmin is started without a query it uses a default query that selects all resources involved in NetWorker products.
OPTIONS
-c Uses the termcap(5) and curses(3) packages to implement a full- screen display mode, just like the visual command described below. (UNIX Only) -d resdir Uses the NetWorker resource database resdir instead of opening a network connection. The database resdir must be in directory format. This should be used sparingly, and only when the Net- Worker server is not running. Multiple -d and resdir arguments can be used to start nsradmin with access to more than one database at a time. -f resfile Similar to the -d resdir option except that it opens an existing resource file, rather than a resource directory. Some configu- ration databases are stored in file format, others in directory format. -i file Takes input commands from file instead of from standard input. In this mode, the interactive prompt will not be printed. -s server Opens a connection to the named NetWorker server instead of allowing administration of all servers. Useful to limit the num- ber of resources if there are many servers, or to administer when the RAP location service is not working. -p program Use the given RPC program number or name instead of the default program number of 390103 - which refers to nsrd. Other suitable program arguments include: -t typefile Uses the alternate file typefile to define RAP types. -v version Binds to the NetWorker RAP service with the given version num- ber. The default is 2. This option is generally used only for debugging. query If a query is specified (in the form of an attribute list), the edit operation is performed on the results of the query. See COMMANDS for more information on how the edit command works.
RESOURCES
Each NetWorker resource is made up of a list of named attributes. Each attribute can have zero or more values. The attribute names and values are all represented by printable strings. Upper and lower case is not distinguished on comparisons, and spaces are ignored except inside the names and values. The format for specifying attributes and attribute lists is: attribute ::= name [ : value [ , value ]* ] An attribute is a name optionally followed by a colon, followed by zero or more values, with values separated by commas. A comma at the end of a line continues the line. attribute list ::= attribute [ ; attribute ]* An attribute list is one or more attributes separated by semi- colons. A semicolon at the end of a line continues the line. The list is ended by a newline that is not preceded by a comma or semi-colon. Here is an example of an attribute list: name: mars; type: NSR client; remote access: mars, venus, jupiter; For more information on attributes, attribute lists and the NetWorker resource types, see the resource(5), nsr_resource(5), and rap(1) manual pages.
COMMANDS
At each input prompt, nsradmin expects a command name and some optional arguments. Command names can be shortened to the smallest unique string (for example, p for print). Command arguments are always specified in the form of an attribute list. Most commands operate on a set of resources returned by a query. The query is specified as an attribute list which is used to match resources with the following rules: 1) The resource must match all the given attributes. 2) If more than one value is specified the resource can match any one of the values. 3) Values in a query may be in the form of ed(1) style regular expressions. A pattern match is attempted against all resources test will match all resources that have a type attribute with the value NSR device and a name attribute with a value of either mars or venus, and an attribute test with any value. If the query has only one name and no values (for example, if there is no semi-colon or colon in it), then the program tries to guess a more reasonable query. If the name is a host name, then the query will select all the resources on the given host. Otherwise, the name will be interpreted as a type name, and all resources of that given type will be selected. bind [query] Bind to the service that owns the resource described by query. If no query is specified, queries are sent to the RAP Resource Directory, and update, create, and delete commands to the ser- vice that owns the resource being changed. On failure, the pre- vious service will continue to be used. create attribute list Create a resource with the given attributes. One of the attributes must be type to specify a NetWorker type that can be created. The types command can be used to find out which Net- Worker types a server supports. Note that the RAP types are case sensitive and must be used exactly as shown by the types command. For example, NSR group is a valid type, whereas nsr group is not. delete [query] Delete the resources that match the current query. If a query is specified, it becomes the current query. edit [query] Edit the resources that match the current query. If a query is specified, it becomes the current query. If the environment variable EDITOR is set, then that editor will be invoked, other- wise vi(1) will be started. When the editor exits, nsradmin applies update, delete and create operations based on the changes to the resources. Be careful to not edit the resource identifier attribute, and to write the file out before exiting the editor. (UNIX Only) help [command] Print a message describing a command. If no command name is given a synopsis of all of the commands is printed. option [list] This command enables some options to change the display of resources. With no arguments it displays the current options; with a list of options it turns the specified ones on. The options are: Dynamic displays all dynamic attributes, even the normally hidden ones. Hidden displays all attributes, even the normally hidden ones. Resource ID displays the resource identi- fier on each resource, a number that is used internally to pro- vide sequencing and uniqueness. print [query] Print the resources that match the current query. If a query is Bind to the given NetWorker server name. If no server is speci- fied, the RAP location service will be used. On failure, the previous server will continue to be used. show [name; ...] If a name list (really an attribute list with no values) is specified, add those names to the show list. Only these attributes will be displayed in subsequent print commands. If no name list is given the show list is cleared, resulting in all attributes being shown. types Print a list of all known types. unset [list] This command turns off the specified option. update attributes Update the resources given by the current query to match attributes. visual [query] Enter a full-screen mode using the curses(3) package to step through commands in a perhaps more user-friendly manner than the command line interface. You can get this mode directly using the -c command line argument. (UNIX Only) . [query] If a query is specified, this command will set the current query without printing the results of the query. Otherwise, it will display the current query, show list, server binding, and options. ? [command] Same as the help command above.
EXAMPLES
print type:NSR device Print all resources of type NSR device and make this the current query. show type; name Set the show list to display only the attributes type and name. delete Delete all resources that match the current query. delete type:NSR device; hostname: mars Delete the resource with attributes: type: NSR device and hostname: mars. edit type:NSR notification Edit all resources of type NSR notification.
SEE ALSO
ed(1), vi(1), curses(3), nsr_resource(5), termcap(5), nsr(1).
DIAGNOSTICS
The following exit status values are meaningful:
ADVERTISEMENT
Legato NetWorker 7.xMan(1) output converted with man2html, sed, awk