RE: segmentation fault on simple table agent

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC084238E4@mailserver.metatv-ds.metatv.com>
	[I'll assume that you (or I) had mailer problems and that you did not intentionally send this three times in an hour.  That would be rude.]

> From: [email protected] 
> [mailto:[email protected]] On 
> Behalf Of Denny Zulfikar
> Sent: Tuesday, April 01, 2008 11:52 PM

> I am new in this list, I am learning make a simple MIB for 
> host that connect to my host. 
> All IP address is listed in file /etc/HostIndex with format 
> "index Ip_address". This is the example of /etc/HostIndex :
> # cat /etc/HostIndex
> 0 192.168.1.3
> 1 192.168.2.2
> 
> that file updated sometimes, so I dont need realtime update 
> of that value on get request.

	A sensible way to start.  Make sure you deliver the data before worrying about the values.

> myPrivMIB MODULE-IDENTITY
>     LAST-UPDATED "200803310000Z"
>     ORGANIZATION "Mine"
>     CONTACT-INFO "Bandung
>                 [email protected]
>                 "
>     DESCRIPTION  "Private MIB for listing any host who ever 
> connect to this host
>                  "
>     ::= { ucdExperimental 18 }

	If this code goes anywhere at all, even submitted as an assignment, move that table into authorized space.

> myPriv     OBJECT IDENTIFIER ::= { myPrivMIB 1 }
> 
> 
> myHostTable OBJECT-TYPE
>     SYNTAX      SEQUENCE OF WiltHostEntry
>     MAX-ACCESS  not-accessible
>     STATUS      current
>     DESCRIPTION
>         "This is an object that simply supports a writable integer
>          when compiled into the agent.  See
>          implementation details."
>     ::= { myPriv 1 }

	SPOING!!!  WiltHostEntry??!!  There's no such animal in this MIB.  Should be myHostEntry, yes?


	HTH,

Mike

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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.