Create and delete from *very* simple table in MIB

Kees-Jan Hermans <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi all,

Simple picking of the brains here (MIB related):

I would like to define a simple list of unique ip addresses in a MIB. So I’ve defined a table in which there are two fields: a data field (the IP address), which is the index at the same time (to enforce uniqueness). And the other field is the RowStatus field. I wonder now, how to create and delete a field in this table. Suppose the table OID is x, it has an entry definition called 1 (as usual), the IPaddress field is 1, and the RowStatus field is 2. Given that I want the IP address 192.168.2.2 in the list, to create, do I:

snmpset x.1.1.192.168.2.2 = 192.168.2.2
snmpset x.1.2.192.168.2.2 = active

Or do I leave the first snmpset command out?

And to delete, do I:

snmpset x.1.2.192.168.2.2 = destroy

?

Thanks,

KJ
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
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.