nv-l
[Top] [All Lists]

RE: [nv-l] Importing Smarset Definitions

To: nv-l@lists.us.ibm.com
Subject: RE: [nv-l] Importing Smarset Definitions
From: Mahesh Tailor <mahesh.tailor@network.carilion.com>
Date: 14 Nov 2003 10:54:44 -0500
Delivery-date: Fri, 14 Nov 2003 16:00:48 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
In-reply-to: <42AF0749A8EB7448A661EC423CBE76FA01EDAC8E@pbswmu00003.corp.pep.pvt>
Organization: Carilion Health System
References: <42AF0749A8EB7448A661EC423CBE76FA01EDAC8E@pbswmu00003.corp.pep.pvt>
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com
Probably an easier way to do this would be the following:

On the current/old machine: 

oldmachine# /usr/OV/bin/colmaint -d
                                                                                
                                                                             
This will create /usr/OV/conf/collection.conf.  Ftp this file to the new server 
(easiest to put it in /usr/OV/conf).
                                                                                
                                                                             On 
the new server:
                                                                                
                                                                             - 
delete all SmartSets - if you do not do this, you will get errors when you 
import the file.

- use colmaint -v to view any stray SmartSets

- use colmaint -l to import the definitions in collection.conf.

If you place the collection.conf in a directory other than /usr/OV/conf,
then give the complete path and filename after colmaint -l.

For example:

newmachine# /usr/OV/bin/colmaint -l /tmp/collection.conf

Works great!

Mahesh



On Thu, 2003-11-13 at 15:07, Bursik, Scott {PBSG} wrote:
> I found the scripts. Here they are:
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> smartsetbackup.pl 
> #!/usr/local/bin/perl -w
> 
> @ListSmartsets = `/usr/OV/bin/nvUtil L`;
> 
> foreach $smartset (@ListSmartsets)
>  {
>    chomp($smartset);
>    `/usr/OV/bin/nvUtil g $smartset > ./cfg/$smartset`;
>  }
> 
> 
> 
> 
> 
> 
> 
> 
> smartsetrestore.pl 
> 
> #!/usr/local/bin/perl -w
> 
> if (defined($ARGV[0]))
>   { 
>     $cnt = 0;
>     foreach $smartset (@ARGV)
>       {
>        $ListSmartsets[$cnt] = './cfg/' . $smartset . "\n";
>        $cnt++;
>       }
>   }
>  else
>   { @ListSmartsets = `ls ./cfg/*` }
> 
> foreach $item (@ListSmartsets)
>  {
>   chomp($item);
>   @Config = `cat $item`;
>   foreach $cfg (@Config)
>    {
>     chomp($cfg);
>     $pos = index($cfg, 'SmartSet:');
>     if ($pos != -1)
>       {
>         $name = substr($cfg, $pos+10);
>       }
>     $pos = index($cfg, 'Description:');
>     if ($pos != -1)
>       {
>         $descr = substr($cfg, $pos+13);
>       }
>     $pos = index($cfg, 'Rule:');
>     if ($pos != -1)
>       {
>         $rule =  substr($cfg, $pos+6);
>       }
>    }
>   `/usr/OV/bin/nvUtil a \"$name\" \"$descr\" \"$rule\"`;
> 
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Scott Bursik
> PepsiCo Business Solutions Group
> Enterprise Systems Management
> scott.bursik@pbsg.com
> (972) 963-1400
>  
> ________________________________________
> From: Meyos Yemveng [mailto:yemveng@yahoo.ca] 
> Sent: Thursday, November 13, 2003 1:47 PM
> To: netview Tivoli
> Subject: [nv-l] Importing Smarset Definitions
> 
> Hi Folks,
> I am setting up a new NV server (NV7.1.3 SOLARIS) and would like to import
> my defined smartsets from the old box to th enew one ...
>  
> Q: How do I do this?
>  
>  
> 
> 
> Thank You,
> Meyos 
> "ALLEZ LES LIONS INDOMPTABLES"
> 
> ________________________________________
> Post your free ad now! Yahoo! Canada Personals
-- 
Mahesh Tailor
WAN/TSM/NetView Administrator
Carilion Health System
Information Services
37 Reserve Avenue
Roanoke, VA 24016
Phone: 540.224.3929
Fax: 540.224.3954



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

Archive operated by Skills 1st Ltd

See also: The NetView Web