Home
You are not currently signed in.

MIB Smithy

  1. Up to Table of Contents

Setting Database Properties

Syntax:

% dbcmd set option value ?option value ...?

Returns:

  • Nothing.

Properties:

-enumformat format
Specifies the default format for enumerated INTEGER values returned by the format command. Default: %n (enumeration label only).
-filename path
Specifies a file name to be associated with the database. This is generally used to associate the database with project file for reference purposes. Default: none.
-logchannel channel
Specifies the name of a channel (such as stdout, stderr, or an open Tcl file handle, or a memory channel) to which all compiler messages should be directed. This property controls messages generated by the validate and log database commands. Default: stderr
-logcommand proc
Specifies the name of a callback procedure to be invoked with details about a log message for custom formatting (see Logging Compiler Messages for callback format).
-oidformat format
Specifies the default format for OBJECT IDENTIFIER values returned by the format command. Default: %n%s (name plus subidentifiers).
-strformat format
Specifies the default format for OCTET STRING values, in DISPLAY-HINT syntax, returned by the format command. Default: 1x: (colon-delimited hex string).
-ticksformat format
Specifies the default format for TimeTicks values returned by the format command. May be an INTEGER DISPLAY-HINT or %t for special TimeTicks formatting. Default: %t (Nd HH:MM::SS.ss).

Example - Direct log messages to stdout

% smilib set -logchannel stdout
  1. Up to Table of Contents