Extending the agent

CHAHIBI Samira <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi all,
I want to extend my agent with a mib containing one simple integer variable. My problem is that i can't make snmpget on my variable.
This is what I made:
[root@localhost ~]# cp /home/CHAHIBI/Desktop/SCALAR-VAR-MIB.txt /usr/local/share/snmp/mibs
[root@localhost ~]# snmptranslate -On -Td SCALAR-VAR-MIB::scalarVar
.1.3.6.1.4.1.31900.2.1
scalarVar OBJECT-TYPE
  -- FROM       SCALAR-VAR-MIB
  SYNTAX        Integer32
  MAX-ACCESS    read-write
  STATUS        current
  DESCRIPTION   "test on scalar variable"
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) leadTechDesign(31900) tests(2) 1 }
[root@localhost mibgroup]# mib2c -c mib2c.int_watch.conf tests
[root@localhost net-snmp]# ./configure --with-mib-modules=tests
[root@localhost net-snmp]# make
[root@localhost net-snmp]# make install
[root@localhost Desktop]# snmpget -v 2c -c local localhost scalarVar.0
scalarVar.0: Unknown Object Identifier (Sub-id not found: (top) -> scalarVar)
[root@pc-00021 snmp]# snmpget -v 2c -c local localhost sysUpTime.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (57390) 0:09:33.90

Thanks for your help,
Samira.


_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
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.