Re: [Networker] How to enable a disabled device from commandline
2005-02-25 11:14:13
Somen Chanda wrote:
Davina,
Thanks for your earlier response and your syntax works fine but it only fails if I have a remote device for example rd=backup1:/dev/nst1
Nsradmin expects the name to be put as follows:
Name: "rd=backup1:/dev/nst1" it does not like the : between the backup1 and
/dev/nst1. I get the following error
Resource parse error: unterminated value list
name: rd=backup1:/dev/nst1
^
Could you or anyone help on this. I tried putting name: "$DEV" but it doesn't
seem to help.
Not strictly a NetWorker question, more of a shell syntax question.
Anyway here goes:
DEV="rd=mymode:/dev/rmt/0cbn"
echo "print type:NSR device; name: \"$DEV\"" | nsradmin -i -
When you tried it you were quoting inside quotes, so all it did was undo
the quoting. The \ forces the " to be taken literally inside the quotes.
--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listserv.temple DOT edu or visit the list's Web site at
http://listserv.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|
|
|