Sun Java System Portal Server 7 Command-Line Reference

psadmin reset-monitoring-mbeans

Description

Resets Portal Server MBeams to their initial state.

Be careful when using this command to reset a MBean with type MonitoringConfiguration . MonitoringConfiguration MBean reset unregisters all Portal Server instance or Portal Server Secure Remote Access instance MBeans, and restarts instance monitoring. This command may show an error message if MonitoringConfiguration MBean has been reset, and the command tries to reset other MBeans.

Syntax

Long Format

psadmin reset-monitoring-mbeans --adminuser uid --passwordfile password-filename [--portal portal-ID] | [--proxy-type sra-proxy-type ] --instance instance-ID [--type type-name-property[--name-properties mbean-name-properties] | [--object-name mbean-object-name] [--interactive ] [--output output-filename] [--verbose] [mbean-name-regexp]

Short Format

psadmin reset-monitoring-mbeans -u uid -f password-filename [-p portal-ID] | -x sra-proxy-type] [-i instance-ID] [[ -t type-name-property [ --name-properties mbean-name-properties] | [--object-name mbean-object-name]] -o output-filename [ -v] [mbean-name-regexp]

Options

The following options are required:

[--adminuser | -u] uid

Specifies the administrator's distinguished name.

[--passwordfile | -f] password-filename

Specifies the administrator's password in the password file.

[--instance | -i] instance-ID

Specifies the Portal Server instance or Portal Server Secure Remote Access instance for this command. Portal Server Secure Remote Access instance is also known by Portal Server Secure Remote Access profile name.

The following options are not required:

[--portal | -p] portal-ID

Specifies the portal ID.

[--proxy-type | -x ] sra-proxy-type

Identifies Portal Server Secure Remote Access Proxy type: Gateway, Rewriter Proxy, or Netlet Proxy. sra-proxy-type can be either gateway, rwp, or nlp respectively.

[--type | -t] type-name-property

Specifies the unique identity of the MBean ObjectName.

--name-properties "key1=value1,key2=value2,..."

If ObjectName property 'type' is not unique, MBean ObjectName may have additional name-properties to uniquely identify it. You can locate such MBean specifying additional name-properties using this option, along with the -–type option.

--object-name mbean-object-name

Specifies a valid JMX ObjectName pattern to select monitoring MBeans.

--interactive

Prompts for user confirmation to confirm resetting the selected MBean.

[--output | -o ] output-filename

Names the output file.

[--verbose | -v]

Shows progression of command.

The following operand is available:

[attribute-name-regexp]

Specifies a java.util.regex regular expression as an operand to locate a MBean, if type and name-properties options are not enough.

Examples


Example 5–17 psadmin reset-monitoring-mbeans -u amadmin -f ./password -p portal1 -i nicp104_80 --interactive --name-properties "name=RedirectChannel"

The following snippet shows how a particular MBean can be reset


Do you want to continue operation with <com.sun.portal:
type=ChannelActionStatistic,channelAction=Content,name=RedirectChannel,
class=com.sun.portal.providers.jsp.JSPProvider>? [y/n]
n

        No MBeans reset
./psadmin get-monitoring-attributes -u amadmin -f ./password -p portal1
s -i nicp104_80 --name-properties "name=RedirectChannel"
com.sun.portal:type=ChannelActionStatistic,channelAction=Content,
name=RedirectChannel,class=com.sun.portal.providers.jsp.JSPProvider
        Count = 2
        Description = Rolling average time to get fresh content for this 
channel
        LastSampleTime = 1129282758188
        LastTime = 4
        LowerBound = 100
        MaxTime = 3179
        MinTime = 4
        Name = PS Channel Action Statistics: Content
        RollingAvgTime = 2120
        StartTime = 1129214725856
        TotalTime = 3183
        Unit = RollingAvgTime
        UpperBound = 1000
./psadmin reset-monitoring-mbeans -u amadmin -f ./password -p portal1 -i 
nicp104_80 --interactive --name-properties "name=RedirectChannel"
Do you want to continue operation with <com.sun.portal:
type=ChannelActionStatistic,
channelAction=Content,name=RedirectChannel,class=com.sun.portal.providers.
jsp.JSPProvider>? [y/n]y
com.sun.portal:type=ChannelActionStatistic,channelAction=Content,
name=RedirectChannel,class=com.sun.portal.providers.jsp.JSPProvider
        MBean reset
./psadmin get-monitoring-attributes -u amadmin -f ./password -p portal1 -i 
nicp104_80 --name-properties "name=RedirectChannel"
com.sun.portal:type=ChannelActionStatistic,channelAction=Content,
name=RedirectChannel,class=com.sun.portal.providers.jsp.JSPProvider
        Count = 0
        Description = Rolling average time to get fresh content for this 
channel
        LastSampleTime = 1129283756991
        LastTime = 0
        LowerBound = 100
        MaxTime = 0
        MinTime = 0
        Name = PS Channel Action Statistics: Content
        RollingAvgTime = 0
        StartTime = 1129283756991
        TotalTime = 0
        Unit = RollingAvgTime
        UpperBound = 1000