You can use the Jython or Jacl scripting languages to configure security with the wsadmin tool. The commands and parameters in the WSCertExpMonitorCommands group can be used to start or update the certificate expiration monitor. The WSCertExpMonitorCommands command group for the AdminTask object includes the following commands:
Target object None.
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask createWSCertExpMonitor {-name testCertMon –autoReplace true –deleteOld true –daysBeforeNotification 30 –wsScheduleName testSchedule –wsNotificationName testNotifier –isEnabled false}
AdminTask.createWSCertExpMonitor ('[-name testCertMon –autoReplace true –deleteOld true –daysBeforeNotification 30 –wsScheduleName testSchedule –wsNotificationName testNotifier –isEnabled false]')
AdminTask.createWSCertExpMonitor (['-name', 'testCertMon', '–autoReplace', 'true', '–deleteOld', 'true', '–daysBeforeNotification', '30', '–wsScheduleName', 'testSchedule', '–wsNotificationName', 'testNotifier', '–isEnabled', 'false'])
Interactive mode example usage:
$AdminTask createWSCertExpMonitor {-interactive}
AdminTask.createWSCertExpMonitor ('[-interactive]')
AdminTask.createWSCertExpMonitor (['-interactive'])
Target object None.
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask deleteWSCertExpMonitor {-name testCertMon}
AdminTask.deleteWSCertExpMonitor ('[-name testCertMon]')
AdminTask.deleteWSCertExpMonitor (['-name', 'testCertMon'])
Interactive mode example usage:
$AdminTask deleteWSCertExpMonitor {-interactive}
AdminTask.deleteWSCertExpMonitor ('[-interactive]')
AdminTask.deleteWSCertExpMonitor (['-interactive'])
The getWSCertExpMonitor command displays the settings of a particular scheduler.
Target object None.
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask getWSCertExpMonitor {-name testCertMon}
AdminTask getWSCertExpMonitor ('[-name testCertMon]')
AdminTask getWSCertExpMonitor (['-name', 'testCertMon'])
Interactive mode example usage:
$AdminTask getWSCertExpMonitor {-interactive}
AdminTask.getWSCertExpMonitor ('[-interactive]')
AdminTask.getWSCertExpMonitor (['-interactive'])
The listWSCertExpMonitor command lists the scheduler in the configuration.
Target object None.
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask listWSCertExpMonitor {-displayObjectName false}
AdminTask.listWSCertExpMonitor ('[-displayObjectName false]')
AdminTask.listWSCertExpMonitor (['-displayObjectName', 'false'])
Interactive mode example usage:
$AdminTask listWSCertExpMonitor {-interactive}
AdminTask.listWSCertExpMonitor ('[-interactive]')
AdminTask.listWSCertExpMonitor (['-interactive'])
The modifyWSCertExpMonitor command changes the setting of an existing scheduler.
Target object None.
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask modifyWSCertExpMonitor {-name testCertMon –autoReplace false –deleteOld false –daysBeforeNotification 20 –isEnabled true}
AdminTask.modifyWSCertExpMonitor ('[-name testCertMon –autoReplace false –deleteOld false –daysBeforeNotification 20 –isEnabled true]')
AdminTask.modifyWSCertExpMonitor (['-name', 'testCertMon', '–autoReplace', 'false', '–deleteOld', 'false', '–daysBeforeNotification', '20', '–isEnabled', 'true'])
Interactive mode example usage:
$AdminTask modifyWSCertExpMonitor {-interactive}
AdminTask.modifyWSCertExpMonitor ('[-interactive]')
AdminTask.modifyWSCertExpMonitor (['-interactive'])
The startCertificateExpMonitor command performs certificate monitoring. This command visits all key stores and checks to see if they are within certificate expiration range.
Target object None.
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask startCertificateExpMonitor
AdminTask.startCertificateExpMonitor()
Interactive mode example usage:
$AdminTask startCertificateExpMonitor {-interactive}
AdminTask.startCertificateExpMonitor ('[-interactive]')
AdminTask.startCertificateExpMonitor (['-interactive'])