snm_error manual page
Table of Contents

NAME

snm_error - error code for snmdb routines

DESCRIPTION

snm_error is an external variable containing the error reason for the last error. It should not be used if the return code of snmdb routine is TRUE.

ERROR CODES

SNMDB_BAD_ARGUMENT 1 "Invalid argument"
An invalid argument was specified.

SNMDB_NOT_INITIALIZED 2 "Database not initialized" An attempt was made to open an uninitialized database. The console must be started first with the -i switch to initialize the database.

SNMDB_UNKNOWN_AGENT 3 "Unknown agent name" The agent name specified is not a known agent.

SNMDB_NO_MEMORY 4 "Out of memory"
The operation required memory to be allocated, but no additional memory was available.

SNMDB_INVALID_TYPE 5 "Invalid type"
The record name specified is not a known record type.

SNMDB_TOO_LONG 6 "Record too long"
The record being built is too long.

SNMDB_ELEMENT_NOT_FOUND 7 "Element not found" The element specified was not found in the database.

SNMDB_NO_KEY_FIELD 8 "No key"
The record being written to the database does not contain a key field.

SNMDB_DUPLICATE_ID 9 "Duplicate ID"
The record being added to the database has the same ID as an existing record.

SNMDB_DUPLICATE_NAME 10 "Duplicate name"
The record being added to the database has the same name as an existing record.

found"
SNMDB_CONNECTED_TO_ELEMENT_NOT_FOUND 11 "Connected to element not The element to which current element is connected could not be found in the database.

SNMDB_CONNECTION_EXISTS 12 "Connection exists" The connection to be added conflicts with an existing connection.

SNMDB_CONNECTION_NOT_FOUND 13 "Connection not found" The connection to be deleted was not found.

SNMDB_CANNOT_CONNECT_TO_SELF 14 "Cannot connect to self" The connection cannot be added since element cannot connect to itself.

SNMDB_ELEMENT_ALREADY_IN_VIEW 15 "Already in view" The element could not be added to the view because it was already in the view.

SNMDB_ELEMENT_NOT_IN_VIEW 16 "Not in view" The element could not be deleted from the view because it was not in the view.

SNMDB_SUBVIEW_IS_NOT_EMPTY 17 "Subview not empty" The element cannot be deleted since its subview still contains objects.

SNMDB_UNABLE_TO_DELETE_ELEMENT 18 "Unable to delete" The element cannot be deleted due to database error.

SNMDB_UNKNOWN_PROPERTY 19 "Unknown property" The property specified is not defined for the element.

SNMDB_INVALID_DATA_IN_BUFFER 20 "Invalid data buffer" The data in the element buffer is not valid.

SNMDB_NOT_CONNECTED_TO_ANY 21 "Not connected to any element" The element is not connected to any other element.

SNMDB_NOT_IN_ANY_VIEW 22 "Not in any view" The element does not have any membership record; it does not appear in any view.

SNMDB_NO_AGENT_APPLY 23 "No agents apply" The element does not have any agent run on the system, or applied to the system.

SNMDB_AGENT_NOT_FOUND 24 "No such agent found" The agent specified is not running on, or does not apply to the element.

SNMDB_X_AND_Y_UNDEFINED 25 "x and y coordinates not defined" x and y coordinates have not been defined previously for this element glyph. Either the element glyph has been automatically positioned by the Console when found by the Discover tool, or the element has been added to the view (with snmdb_add_to_view ) with -1 specified for x, y, and z arguments.

SNMDB_INVALID_FILE 26 "Invalid output file pointer" The file pointer specified is invalid; no output is written to the file.

SNMDB_GLYPH_FILENAME_NOT_FOUND 27 "No glyph filename found" There is no glyph file name defined for the specified element type.

SNMDB_ALIAS_NOT_FOUND 28 "No alias found" The object does not have the specified alias.

SNMDB_NO_ALIAS_EXIST 29 "No alias exists" The object does not have any alias.

SNMDB_UNABLE_TO_DELETE_ALIAS 30 "Unable to delete alias" Unable to delete the specified alias.

SNMDB_READ_ONLY_MODE 31 "Read only mode"
The database is read-only.

SNMDB_LIMITS_EXCEEDED 32 "Limits exceeded" The database limit has been exceeded for Site Manager.

SNMDB_NO_LICENSE 33 "No license found"
There is no license installed in the system.


Table of Contents