Networker

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

2005-02-25 10:47:04
Subject: Re: [Networker] How to enable a disabled device from commandline
From: Somen Chanda <schanda AT NETJETS DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Fri, 25 Feb 2005 10:44:22 -0500
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.

Thanks

Somen 

-----Original Message-----
From: Legato NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] 
On Behalf Of Davina Treiber
Sent: Monday, February 21, 2005 10:00 AM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: Re: [Networker] How to enable a disabled device from commandline

On Mon, 21 Feb 2005 09:57:52 -0500, Davina Treiber <treiber AT HOTPOP DOT COM>
wrote:

>On Mon, 21 Feb 2005 09:12:45 -0500, Somen Chanda <schanda AT NETJETS DOT COM>
>wrote:
>
>>Has anyone enabled a automatically disabled device from commandline. I am
>>trying to do this by a script.
>>
>

Third time lucky - curse that web interface....

#!/bin/ksh
DEV=$1
echo "
    . type: NSR device;
      name: $DEV
    update enabled: Yes" \
        ¦ nsradmin -i -

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