|
To add a new row to an SNMP table from the manager, the table should be an SMIv1 table with entryStatus defined or an SMIv2 table with rowStatus defined.
SMIv1 Tables with entryStatus Column
The entryStatus column is used to manage the creation and deletion of conceptual rows in SMIv1 tables. This represents the status of a table entry. The status column can have the following.
'valid(1)' - indicates that the row exists and is available for use.
'createRequest(2)' - supplied by the manager wishing to create a row.
'underCreation(3)' - indicates that the row is created.
'invalid(4)' - supplied by the manager wishing to invalidate the corresponding entry.
If a manager wishes to add a row, the status column should be set to createRequest(2). Immediately after the creation, the agent sets this object to underCreation(3). The entry remains in the underCreation(3) state until it is configured. Then its value is set to valid(1). If the status remains underCreation(3) for an abnormally long period, the agent sets the status to invalid(4).
SMIv2 Tables with rowStatus Column
In SMIv2 tables, the rowStatus column is used to manage the creation and deletion of conceptual rows. This column has six defined values as follows.
active(1) - indicates that the conceptual row with all columns is available for use by the managed device.
notInService(2) - indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device.
notReady(3) - indicates that the conceptual row exists in the agent, one or more required columns in the row are not instantiated.
createAndGo(4) - supplied by a manager wishing to create a new instance of a conceptual row and make it available for use.
createAndWait(5) - supplied by a manager wishing to create a new instance of a conceptual row but not making it available for use.
destroy(6) - supplied by a manager wishing to delete all the instances associated with an existing conceptual row.
An existing conceptual row can be in any one of the three states, 'notReady', 'notInService', or 'active'. If the manager wishes to add a row in a single shot with values for all the columns, the status column should be given as 'createAndGo(4)'. After the creation of a row, its value is set to active(1). If a row has to be created with values for only some columns, the status column should be 'createAndWait(5)'. Also, this row with partially filled columns has the status 'notReady(3)'. The entry remains in this state until the values for all the columns are set. After all the values are set, the agent changes this value to active(1).
For SMIv2 tables, a new row can be added in three ways.
CreateAndWait
CreateAndGo using Multiple-Variable Set
CreateAndGo using SNMP table UI
CreateAndWait
In this method, you should SET the RowStatus with value "CreateAndWait" and SET each column one by one. Finally, SET the RowStatus to "Active".
Each SET method can be performed either using MibBrowser or through command line application.
CreateAndGo Using Multiple-Variable Set
Instead of using multiple SET methods to create a new row, you can use Multiple-variable SET method to create a new row in a single SET method. For this, all the columns with their value should be given and RowStatus should be CreateAndGo.
Multiple-variable SET can be done using the command line application.
CreateAndGo Using SNMP Table
A new row for a table can also be created using SNMP table User Interface. The following image displays the SNMP Table dialog box. Right-click any of the columns to display a context-sensitive menu.

Select "add a new row to the table" to invoke the following dialog box. The user has to fill in all the information and click the OK button.

|