Table of Contents

Search

  1. Preface
  2. Overview of the Server Manager Command Line Interface
  3. Usage Scenario: Using Server Manager CLI Commands to Run Replications
  4. Command Reference

Command Line Interface for the Server Manager

Command Line Interface for the Server Manager

add snmp subscriber

add snmp subscriber

Adds a subscriber of Simple Network Management Protocol (SNMP) notifications of various types of Server Manager events. The notifications are sent to a specific IP address.

Syntax

add snmp subscriber
IP_address
user_name
[oid=
object_ID
] [task=
task_options
] [schedule=
schedule_options
] [sm=
server_manager_options
]
Short form:
asnmps
IP_address
user_name
[oid=
object_ID
] [task=
task_options
] [schedule=
schedule_options
] [sm=
server_manager_options
]
To use a different SNMP OID for each event type, use the following syntax instead of specifying the oid parameter:
[task=
task_option1
:
object_ID1
;
task_option2
:
object_ID2
] [schedule=
schedule_option1
:
object_ID3
;
schedule_option2
:
object_ID4
] [sm=
server_manager_option1
:
object_ID5
;
server_manager_option2
:
object_ID6
]
To enter multiple options in the task, schedule, or sm parameter, use a comma, semicolon, or space separator. If you use a space separator, enclose the entire string of options in single quotation marks. For example:
task=
task_option1
:
object_ID1
,
task_option2
:
object_ID2
schedule='
schedule_option1
:
object_ID1
schedule_option2
:
object_ID2
'

Parameters

The following table describes the command parameters:
Parameter
Description
IP_address
The IP address to which Data Replication will send Server Manager notifications by using SNMP.
user_name
The Data Replication user name for the subscriber.
oid
The object ID for all of the event types that you specify in the task, schedule, and sm parameters.
If you want to specify different OIDs for individual task, schedule, and sm events, do not use this parameter in the command syntax. Instead, include the OID value in the event option specification in the task, schedule and sm parameters.
Object IDs for events must start with the Enterprise Object ID that is specified in the
SNMP community OID field
on the
General
tab in the Data Replication Console.
task
The types of task events for which the subscriber can receive SNMP notifications. Options are:
  • end
  • error
  • execution
  • recovery
  • restart
  • start
  • warning
schedule
The types of schedule events for which the subscriber can receive SNMP notifications. Options are:
  • end
  • error
  • start
sm
The types of Server Manager events for which the subscriber can receive SNMP notifications. Options are:
  • error
  • information
  • warning

Examples

The following command adds the idradmin user as a subscriber who receives SNMP notifications about Server Manager errors and warnings at the specified IP address:
add snmp subscriber 10.51.4.120 idradmin sm='error warning'
The following command adds the idradmin user as a subscriber who receives SNMP notifications about task error and warning events and Server Manager error and warning events at the specified IP address:
add snmp subscriber 10.51.4.120 idradmin task=error:1.3.6.1.2.1.1.1.2.0.1.7;warning:1.3.6.1.2.1.1.1.2.0.1.10 sm=error:1.3.6.1.2.1.1.1.2.0.1.13;warning:1.3.6.1.2.1.1.1.2.0.1.12
Each event type is associated with a different OID.

0 COMMENTS

We’d like to hear from you!