WSNotifierCommands command group for the AdminTask object

You can use the Jython or Jacl scripting languages to configure deployed applications with the wsadmin tool. The commands and parameters in the WSNotifierCommands group can be used to create and manage notifications settings. WS-Notification enables web services to use the publish and subscribe messaging pattern, creating a one-to-many message distribution pattern.

The WSNotifierCommands command group for the AdminTask object includes the following commands:

createWSNotifier

The createWSNotifier command creates the notification settings in the configuration. Use this command to notify users when certificates are expired.

Parameters and return values

-name
The name that uniquely identifies the notification configuration. (String, required)
-logToSystemOut
Set the value of this parameter to true if you want the certificate expiration information to log to system out. If not, set the value of this parameter to false. (Boolean, optional)
-sendEmail
Set the value of this parameter to true if you want to email the certificate expiration information. If not, set the value of this parameter to false. (Boolean, optional)
-emailList
The list of email addresses where you want to send certificate expiration information. Separate the values in the list with colons (:). (String, optional)

Returns:The configuration object name of the notification object that you created.

Examples

Batch mode example usage:

  • Using Jacl:
    $AdminTask createWSNotifier {-name testNotifier -logToSystemOut false -sendEmail true -emailList tester}
  • Using Jython string:
    AdminTask.createWSNotifier ('[-name testNotifier -logToSystemOut false -sendEmail true -emailList tester]')
  • Using Jython list:
    AdminTask.createWSNotifier (['-name', 'testNotifier', '-logToSystemOut',
     'false', '-sendEmail', 'true', '-emailList', 'tester'])

Interactive mode example usage:

  • Using Jacl:
    $AdminTask createWSNotifier {-interactive}
  • Using Jython string:
    AdminTask.createWSNotifier ('[-interactive]')
  • Using Jython list:
    AdminTask.createWSNotifier (['-interactive'])

deleteWSNotifier

The deleteWSNotifier command deletes the settings of a notification configuration.

Parameters and return values

-name
The name that uniquely identifies the notification configuration. (String, required)

Examples

Batch mode example usage:

  • Using Jacl:
    $AdminTask deleteWSNotifier {-name testNotifier}
  • Using Jython string:
    AdminTask.deleteWSNotifier ('[-name testNotifier]')
  • Using Jython list:
    AdminTask.deleteWSNotifier (['-name', 'testNotifier'])

Interactive mode example usage:

  • Using Jacl:
    $AdminTask deleteWSNotifier {-interactive}
  • Using Jython string:
    AdminTask.deleteWSNotifier ('[-interactive]')
  • Using Jython list:
    AdminTask.deleteWSNotifier (['-interactive'])

getWSNotifier

The getWSNotifier command displays the settings of a particular notification configuration.

Parameters and return values

-name
The name that uniquely identifies the notification configuration. (String, required)

Examples

Batch mode example usage:

  • Using Jacl:
    $AdminTask getWSNotifier {-name testNotifier}
  • Using Jython string:
    AdminTask.getWSNotifier ('[-name testNotifier]')
  • Using Jython list:
    AdminTask.getWSNotifier (['-name', 'testNotifier'])

Interactive mode example usage:

  • Using Jacl:
    $AdminTask getWSNotifier {-interactive}
  • Using Jython string:
    AdminTask.getWSNotifier ('[-interactive]')
  • Using Jython list:
    AdminTask.getWSNotifier (['-interactive'])

listWSNotifier

The listWSNotifier command lists the notifier from the configuration.

Parameters and return values

-displayObjectNames
If you set the value of this parameter to true, this command returns all notification configuration objects within the scope. If you set the value of this parameter to false, this command returns a list of strings that contain the key set group name and the management scope. (Boolean, optional)

Examples

Batch mode example usage:

  • Using Jacl:
    $AdminTask listWSNotifier {-displayObjectName true}
  • Using Jython string:
    AdminTask.listWSNotifier ('[-displayObjectName true]')
  • Using Jython list:
    AdminTask.listWSNotifier (['-displayObjectName', 'true'])

Interactive mode example usage:

  • Using Jacl:
    $AdminTask listWSNotifier {-interactive}
  • Using Jython string:
    AdminTask.listWSNotifier ('[-interactive]')
  • Using Jython list:
    AdminTask.listWSNotifier (['-interactive'])

modifyWSNotifier

The modifyWSNotifier command changes the settings of an existing notification configuration.

Parameters and return values

-name
The name that uniquely identifies the notification configuration. (String, required)
-logToSystemOut
Set the value of this parameter to true if you want the certificate expiration information to log to system out. If not, set the value of this parameter to false. (Boolean, optional)
-sendEmail
Set the value of this parameter to true if you want to email the certificate expiration information. If not, set the value of this parameter to false. (Boolean, optional)
-emailList
The list of email addresses where you want to send certificate expiration information. Separate the values in the list with colons (:). (String, optional)

Examples

Batch mode example usage:

  • Using Jacl:
    $AdminTask modifyWSNotifier {-name testNotifier -logToSystemOut false -sendEmail true -emailList tester}
  • Using Jython string:
    AdminTask.modifyWSNotifier ('[-name testNotifier -logToSystemOut false -sendEmail true -emailList tester]')
  • Using Jython list:
    AdminTask.modifyWSNotifier (['-name', 'testNotifier', '-logToSystemOut',
     'false', '-sendEmail', 'true', '-emailList', 'tester'])

Interactive mode example usage:

  • Using Jacl:
    $AdminTask modifyWSNotifier {-interactive}
  • Using Jython string:
    AdminTask.modifyWSNotifier ('[-interactive]')
  • Using Jython list:
    AdminTask.modifyWSNotifier (['-interactive'])