help

jihed lazid <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I have to add a MIB files in the agent. I try to use mib2c to generate a
template for my MIB.

the MIB is private for the CEN/XFS that has the oid : 1.3.6.4.1.16213. I
downlowded it for the site :

http://www.cen.eu/cen/Sectors/Sectors/ISSS/Activity/Pages/xfs_cwas.aspx

when I installer the 'MIB Installer SDK 1.10'. in installing this SDK, it
add the 15 MIB files and their .h files.

this MIBs are organised with this architecture :
http://img413.imageshack.us/img413/3773/mibxfs.jpg

the SDK generate 15 MIB Files:

- xfsGeneral
- xfsalm
-xfsApplication
- xfscam
- xfscdm
- xfsceu
- xfsceu
- xfscim
- xfsdep
- xfsidc
- xfspin
- xfsptr
- xfssiu
- xfsttu
- xfsvdm

as it clear, the xfsGeneral is in the head of my MIB. but this file has this
head declaration :






XFSMIB DEFINITIONS ::= BEGIN
IMPORTS
enterprises, Integer32, OBJECT-TYPE, OBJECT-IDENTITY, NOTIFICATION-TYPE
FROM SNMPv2-SMI
DisplayString
FROM SNMPv2-TC;
-- ********************************************************************
-- General #defines
-- ********************************************************************
IxfsMIBDeviceStatus ::= INTEGER
{
xfsDevOnline(1),
xfsDevOffline(2),
xfsDevPowerOff(3),
xfsDevNoDevice(4),
xfsDevHWError(5),
xfsDevUserError(6),
xfsDevBusy(7)
}
xfsMIBRoot OBJECT IDENTIFIER ::= { enterprises 16213 }
xfsGeneral OBJECT IDENTIFIER ::= { xfsMIBRoot 1 }
--
********************************************************************************
--
-- The XFS (1.3.6.1.4.1.16213)
-- General Group (1.3.6.1.4.1.16213.1)
--
-- Implementation of the general group is mandatory for all agents
-- supporting the XFS MIB.
--
-- 
********************************************************************************
xfsMIBV1 OBJECT IDENTIFIER ::= { xfsGeneral 1 }
xfsMIBRelease OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The XFS MIB release supported by the agent."
::= { xfsMIBV1 1 }
xfsXFSRelease OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The XFS documentation release that the MIB corresponds to."
::= { xfsMIBV1 2 }
xfsJXFSRelease OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The J/XFS documentation release that the MIB corresponds to."
::= { xfsMIBV1 3 }


.......






I followed the tutorial in the web site when i add the MIB files to
/usr/share/snmp/mibs then i use the command

MIB=ALL

but snmptranslate can't see my MIBs and mib2c too when i try the commande :

mib2c -c mib2c.int_watch.conf XFSMIB
or
mib2c -c mib2c.int_watch.conf xfsGeneral

what is the problem here ? Please help me


Note: I used ubuntu 9.10
-- 
Jihed LAZID
-------------------------------------
Elève ingénieur à l'Ecole Supérieure des Communications de Tunis (SUPCOM)
-------------------------------------
Tel : +216 21 789 187

http://jihed.lazid.netcv.com/

------------------------------------------------------------------------------

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.