Networker

Re: [Networker] How to enable a disabled device from commandline

2005-02-28 06:26:23
Subject: Re: [Networker] How to enable a disabled device from commandline
From: Conrad Macina <conrad.macina AT PFIZER DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Mon, 28 Feb 2005 06:20:36 -0500
Another way to do it would be:
Name: rd=backup1\:/dev/nst1
with a backslash to escape the colon.

A colon separates server from device name, but nsradmin uses a colon to
separate field name from contents. The same would be true if you had a colon
in a group name; for example, a group that starts at midnight might be
called 00:00_Start. When referencing it via nsradmin you have to say,
"group:00\:00_Start".

Conrad Macina
Pfizer, Inc.


On Fri, 25 Feb 2005 16:09:54 +0000, Davina Treiber <Treiber AT HOTPOP DOT COM> 
wrote:

>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
>=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

--
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
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=