I don't see any .18 in the rfc1573b mib, but anyway..
The general approach is: Define a field to Netview; Collect the values to
be stored; import the values.
Fields are stored in files in /usr/OV/fields/C and discussed in the
Programmer's Guide. Here is an example:
/*****
***
* Customer XXX fields
***
*****/
Field "XXX_Concentrator" {
Type String;
Flags locate;
}
Field "XXX_Ring" {
Type String;
Flags locate;
}
Field "XXX_ifAlias" {
Type String;
Flags locate;
}
Collecting the values can be done with a script that issues an snmpget
to each node for the oid you want and producing output like
selectionName,value
See the man page for snmpget. Hint: use the output of nvUtil as input
to your script. See the manpage for nvUtil.
Importing the value is done with the nvdbimport command. See the man
page, and example control files in /usr/OV/conf/nvdbtools.
A sample import file would look like:
Selection Name,XXX_ifAlias
Node1,value1
Node2,value2
Extremely useful stuff. If the field is defined with the Locate flag, you
will
be able to do searches on it, or base Smartsets on it.
Cordially,
Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
Detroit
Ruggieri Francesco
<Francesco.Ruggieri@n To: "'NV-L'" <nv-l@tkg.com>
etsiel.it> cc:
Sent by: Subject: [NV-L] Automatic
set of new field
owner-nv-l@tkg.com object
08/29/01 11:58 AM
Please respond to IBM
NetView Discussion
How Can automatically keep the interface MIB value:
( .iso.org.dod.internet.mgmt.mib-2.ifMIB.ifMIBObjects.ifXTable.ifXEntry.18)
and set a new Interface Object Field (e.g. SNMP ifAlias) ?
(like Openview NNM ifAlias field of "Interface Properties" object menu)
My environment: Netview 6.0.1, Framework 3.7
Francesco
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
|