nv-l
[Top] [All Lists]

RE: nvdbimport question

To: nv-l@lists.tivoli.com
Subject: RE: nvdbimport question
From: demeter@hu.ibm.com
Date: Sat, 10 Mar 2001 08:59:57 +0100

Gary,

Thanks, but I think my question was not exact.  What I'd like to do is to
add a list of strings, where the string means an expression like: "Card1
SerialN: 342243 Mem: 6M".  So it contains spaces, and I when I'm creating a
report I'd like to see these strings in separate lines just like the
interface list.

If I creating a 'normal' string attribute I'm able to add strings, but I'm
unable to add line separators.  So I checked the TopM Interface List
attribue's definition which is a list, and created my own list type string
attribute.  So now I don't know how to populate it, because the nvdbimport
always gives me an error:
 Database Update Failed:
        FieldID  21032 (CardList) for Object 10590 (demo3.com) when given
Card1 Card2 10590 (demo3.com) - SET FieldID 21032 (CardList) to Card1 Card2

Best regards,
Peter Demeter, Enterprise Systems Management
IBM Hungary, H-1117 Budapest, Neumann Janos street 1.
Tel: +36 1 382 5848  Fax: +36 1 382-5501


"Boyles, Gary P" <gary.p.boyles@intel.com> on 2001.03.09 17:48:40

Please respond to IBM NetView Discussion <nv-l@tkg.com>

To:   "'IBM NetView Discussion'" <nv-l@tkg.com>
cc:
Subject:  RE: [NV-L] nvdbimport question




Peter,
I do use nvdbimport, and it works fine.  I don't use any quotes,
and I don't use spaces between field-definitions.  Don't know if
I can or not... but I don't.

You should probably lose the quotes (single or double).
I've never tried it with quotes.  You might want to try
a back-slash in front of the quote if you insist on including it
in the string, or use something else to delimit the cards.

The following example should work without a problem:

IP Hostname,CardList
demo1.com,This is my string
demo2.com,card1 card2 card3 card4 card5
demo3.com,card 1::card 2::card 3::card 4

Like I said... you'll have to experiement if you want to use quotes.

Regards,

Gary Boyles, Intel





-----Original Message-----
From: demeter@hu.ibm.com [mailto:demeter@hu.ibm.com]
Sent: Friday, March 09, 2001 3:12 AM
To: nv-l@tkg.com
Subject: [NV-L] nvdbimport question




Hello,

I'm trying to import a list of strings (installed PCI cards):
created the attribute definition, similar to 'TopM Interface List', in a
new file in /usr/OV/fields/C

Field "CardList" {
     Type StringType;
     Flags     list;
}

I can see it by using the ovobjprint -f command. How can I specify the list
in my import file?  I tried to search in the documentation and the nv-l
archive without success.  I tried with the following import files:
1.
IP Hostname, CardList
demo.com,"card1" "card2"
2.
IP Hostname, CardList
demo.com,'card1' 'card2'

I'm even unable to add a single string to this new field:
3.
IP Hostname, CardList
demo.com,card1

Could someone let me know how can I do this?  I think it's possible because
the 'TopM Interface List' holds similar data what I'd like to import, but I
don't know if this type of import is possible with nvdbimport.  I would
appreciate any advice...

I'm using NV 6.0.1 with AIX 4.3.3.

Best regards,
Peter Demeter, Enterprise Systems Management
IBM Hungary, H-1117 Budapest, Neumann Janos street 1.
Tel: +36 1 382 5848  Fax: +36 1 382-5501


_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l

_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l


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

Archive operated by Skills 1st Ltd

See also: The NetView Web