Networker

[Networker] Updating attribute with nsradmin

2006-08-07 10:55:58
Subject: [Networker] Updating attribute with nsradmin
From: "Willeat, Todd" <TWilleat AT MHP.SMHS DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Mon, 7 Aug 2006 09:45:05 -0500
Hi all,

I'm trying to update a jukebox attribute with nsradmin and not getting it
quite right. I'm able to query the jukebox, but when I try to update the
attribute, I get the error "No resources found for query". I'm using NW
7.1.3 on AIX 5.2. Here's what I'm doing:

[root@mhp-topaz] nsradmin -s mhp-topaz -i - <<EOF
> print type: NSR jukebox;
> name: "rd=mhp-robin:Scalar100-1"
> EOF
                        type: NSR jukebox;
                        name: "rd=mhp-robin:Scalar100-1";
                     comment: ;
                 description: "[email protected]: Standard SCSI Jukebox";
                       model: Standard SCSI Jukebox;
                     enabled: Yes;
                control port: "rd=mhp-robin:[email protected]";
                     devices: "rd=mhp-robin:\\\\.\\Tape0",
                              "rd=mhp-robin:\\\\.\\Tape1";
             bar code reader: Yes;
       match bar code labels: Yes;
             available slots: 1-36;
            STL device names: ;
          STL device sharing: ;
           STL interface lib: ;
                  auto clean: No;
              cleaning slots: 36;
           default cleanings: 50;
       auto media management: Yes;
            application name: ;
             application key: ;
               read hostname: mhp-robin;
                NDMP jukebox: No;
               NDMP hostname: ;
                 remote user: ;
                    password: ;
         NDMP jukebox handle: ;
[root@mhp-topaz] nsradmin -s mhp-topaz -i - <<EOF
> print type: NSR jukebox;
> name: "rd=mhp-robin:Scalar100-1";
> update read hostname: mhp-batman
> EOF
No resources found for query:
                        name: "rd=mhp-robin:Scalar100-1";
                        type: NSR jukebox;
        update read hostname: mhp-batman;


               _______________________________________
              /            Todd A. Willeat            \  
             |       UNIX & Storage Administrator      |
             |           Mercy Health Plans            |
             | 14528 South Outer Forty Road, Suite 300 |
           _ |       Chesterfield, MO 63017-5705       | _
          / )|  (314) 214-2329 / (314) 214-3291 (fax)  |( \
         / / |         twilleat AT mhp.mercy DOT net          | \ \
       _( (_ |     http://www.mercyhealthplans.com/
<http://www.mercyhealthplans.com/>     | _) )_
      (((\ \> \/->___________<-=-=-=-=->___________<-\/ </ /)))
      (\\\\ <\\\\>  \_/ /                                   \ \_/ ////)
       \       /                                     \       /
        \    _/                                       \_    /
        /   /                                           \   \
       /___/                                             \___\


This e-mail contains information which (a) may be PROPRIETARY IN NATURE OR
OTHERWISE PROTECTED BY LAW FROM DISCLOSURE, and (b) is intended only for the
use of the addressee (s) named above. If you are not the addressee, or the
person responsible for delivering this to the addressee (s), you are hereby
notified that reading, copying or distributing this e-mail is prohibited. If
you have received this e-mail in error, please contact the sender
immediately.




To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu 
if you have any problems
wit this list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

<Prev in Thread] Current Thread [Next in Thread>