nv-l

RE: [nv-l] Importing Smarset Definitions

2003-11-17 05:26:36
Subject: RE: [nv-l] Importing Smarset Definitions
From: "Oliver Bruchhaeuser" <oliver.bruchhaeuser AT de.ibm DOT com>
To: nv-l AT lists.us.ibm DOT com
Date: Mon, 17 Nov 2003 11:15:52 +0100
why so complicated?
Take a look at colmaint.
Get help with colmaint.

Kind regards

Oliver Bruchhaeuser
Tivoli NetView EMEA L2 Support




|---------+---------------------------->
|         |           "Bursik, Scott   |
|         |           {PBSG}"          |
|         |           <Scott.Bursik@pbs|
|         |           g.com>           |
|         |           Sent by:         |
|         |           owner-nv-l@lists.|
|         |           us.ibm.com       |
|         |                            |
|         |                            |
|         |           13.11.2003 21:07 |
|         |           Please respond to|
|         |           nv-l             |
|         |                            |
|---------+---------------------------->
  
>------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                     |
  |       To:       "'nv-l AT lists.us.ibm DOT com'" <nv-l AT lists.us.ibm DOT 
com>                                                |
  |       cc:                                                                   
                                     |
  |       Subject:  RE: [nv-l] Importing Smarset Definitions                    
                                     |
  |                                                                             
                                     |
  |                                                                             
                                     |
  
>------------------------------------------------------------------------------------------------------------------|



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 AT pbsg DOT com
(972) 963-1400

________________________________________
From: Meyos Yemveng [mailto:yemveng AT yahoo DOT 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







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