Note

The commands described here relate only to the legacy OID model and not the static OID model introduced in Rhino 3.1.

To list, set, create, remove, or remove inactive OID mappings for parameter set types, use the following Rhino management console commands.

listsnmpoidmappings

Command

listsnmpoidmappings [parameter set type name|-inactive]
  Description
    Lists the current configurable Parameter Set Type -> OID mappings.  If a
    parameter set type name is specified, then only the OID mapping associated with
    that parameter set type is listed, otherwise all mappings are listed.  The
    -inactive option limits the listing to only inactive mappings.

Example

[Rhino@localhost (#1)] listsnmpoidmappings
Parameter Set Type OID Mappings
===============================
 OID                        Status     Namespace   Parameter Set Type
------------------------------------------------------------------------------------------
 1.3.6.1.4.1.19808.2.1.1    (active)               Events
 1.3.6.1.4.1.19808.2.1.2    (active)               Activities
 1.3.6.1.4.1.19808.2.1.3    (active)               StagingThreads
 1.3.6.1.4.1.19808.2.1.4    (active)               LockManagers
 1.3.6.1.4.1.19808.2.1.5    (active)               Services
 1.3.6.1.4.1.19808.2.1.6    (active)               Transactions
 1.3.6.1.4.1.19808.2.1.7    (active)               ObjectPools
 1.3.6.1.4.1.19808.2.1.9    (active)               MemDB-Local
 1.3.6.1.4.1.19808.2.1.10   (active)               MemDB-Replicated
 1.3.6.1.4.1.19808.2.1.12   (active)               LicenseAccounting
 1.3.6.1.4.1.19808.2.1.13   (active)               ActivityHandler
 1.3.6.1.4.1.19808.2.1.14   (active)               JVM
 ...

setsnmpoidmapping

Command

setsnmpoidmapping [-namespace] <parameter set type name> <-oid
<oid>|-auto|-none>
  Description
    Sets or clears the OID used for the specified parameter set type.  The -oid
    option sets the mapping to a specific OID, while the -auto option auto-assigns
    an available OID.  The -none option clears any existing mapping.
Note If the parameter set type has default pre-defined OID mapping, -auto will set the OID mapping to the pre-defined value. Otherwise, it will set to an auto-generated value.

Example

[Rhino@localhost (#1)] setsnmpoidmapping JVM -oid 1.3.6.1.4.1.19808.2.1.14
SNMP OID mapping set to 1.3.6.1.4.1.19808.2.1.14

createsnmpmappingconfig

Command

createsnmpmappingconfig [-namespace] <parameter set type name>
  Description
    Create a new SNMP mapping configuration for the specified parameter set type.
    The mapping is created in the global environment unless the optional -namespace
    argument is used, in which case the mapping is created in the current namespace
    instead.

Example

[Rhino@localhost (#1)] createsnmpmappingconfig -namespace Usage.Services.SbbID[name=UsageTestSbb,vendor=OpenCloud,version=1.0]
SNMP mapping config for parameter set type Usage.Services.SbbID[name=UsageTestSbb,vendor=OpenCloud,version=1.0] created in the current namespace
Note

After creation, the OID mapping for the specified parameter set type is set to cleared status. Use the command setsnmpoidmapping to set the OID mapping afterwards.

removesnmpmappingconfig

Command

removesnmpmappingconfig <parameter set type name>
  Description
    Remove the SNMP mapping configuration for the specified parameter set type

Example

[Rhino@localhost (#1)] removesnmpmappingconfig Usage.Services.SbbID[name=UsageTestSbb,vendor=OpenCloud,version=1.0]
SNMP mapping config for parameter set type Usage.Services.SbbID[name=UsageTestSbb,vendor=OpenCloud,version=1.0] removed

removeinactivesnmpmappingconfigs

Command

removeinactivesnmpmappingconfigs
  Description
    Removes all SNMP mapping configurations that are currently inactive

Example

[Rhino@localhost (#1)] removeinactivesnmpmappingconfigs
Removing mappings from the default namespace
 removing mapping configuration for parameter set type Usage.Services.SbbID[name=UsageTestSbb,vendor=OpenCloud,version=1.0]

Removed 1 mapping configuration
Previous page Next page
Rhino Version 3.1