Oops, I forgot to add the MIB definition of the
mpbcRMHNotifiedNMSipAddressTable OID:
mpbcRMHNotifiedNMSipAddressTable OBJECT-TYPE
SYNTAX SEQUENCE OF MpbcRMHNotifiedNMSipAddressEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "Please replace this text with your
description."
::= { mpbcRMHNetMgt 1 }
mpbcRMHNotifiedNMSipAddressEntry OBJECT-TYPE
SYNTAX MpbcRMHNotifiedNMSipAddressEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "Please replace this text with your
description."
INDEX {
mpbcRMHNotifiedNMSipAddressIndex
}
::= { mpbcRMHNotifiedNMSipAddressTable 1 }
MpbcRMHNotifiedNMSipAddressEntry ::= SEQUENCE {
mpbcRMHNotifiedNMSipAddress-IP
IpAddress,
mpbcRMHNotifiedNMSipAddress-Description
OCTET STRING,
mpbcRMHNotifiedNMSipAddress-Enabled
TruthValue,
mpbcRMHNotifiedNMSipAddressIndex
INTEGER
}
mpbcRMHNotifiedNMSipAddressIndex OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "Index"
::= { mpbcRMHNotifiedNMSipAddressEntry 1 }
mpbcRMHNotifiedNMSipAddress-IP OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS read-write
STATUS current
DESCRIPTION "Please replace this text with your
description."
::= { mpbcRMHNotifiedNMSipAddressEntry 2 }
mpbcRMHNotifiedNMSipAddress-Description OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-write
STATUS current
DESCRIPTION "Please replace this text with your
description."
::= { mpbcRMHNotifiedNMSipAddressEntry 3 }
mpbcRMHNotifiedNMSipAddress-Enabled OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-write
STATUS current
DESCRIPTION "Please replace this text with your
description."
::= { mpbcRMHNotifiedNMSipAddressEntry 4 }
This table does not support row creation and deletion. The table length is
fixed to 10 rows, and data is held solely within the agent.
Now it works fine for setting existing row but the MIB browser let the user
to set to an non-existing row, then it fails (Agent crash)
It seems that the structure netsnmp_table_request_info can help for
validating if the row exists or not before actually writing to it. The
number_indexes member of that strucure can't be of any help since the
indexes are not always consecutive. Any hints?
thanks,
Francois
2012/3/2 Francois Bouchard <[email protected]>
> Hello,
>
>
> With net-snmp, when doing a SET on a table's row, is there a way to check
> if that row actually exists before doing a set on that row from the browser?
>
>
>
> Francois
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
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