Thursday, July 29, 2010

How to delete CEI events

The eventpurge command deletes events from the event database.

Example

The following example deletes all events from the database whose severity (optional) is 20 (harmless) and were generated earlier than 10 minutes ago (if not seconds you can give –end for events generated before the end date/time to be deleted).

eventpurge -group "All events" -severity 20 -seconds 600

Purpose

Deletes events from the event database.

eventpurge [-seconds seconds | -end end_time] [-group event_group] [-severity severity] [-extensionname extension_name] [-start start_time] [-size size]

Description

The eventpurge command deletes events from the event database. You can delete all events from the event database, or you can limit the deletion to events meeting certain criteria.

Security: If WebSphere® security is enabled, your user ID must be mapped to the eventAdministrator role to delete events.

Parameters

-seconds seconds

The minimum age of events you want deleted. The seconds value must be an integer. Only events older than the specified number of seconds are deleted. This parameter is required if you do not specify the -end parameter.

-end end_time

The end time of the group of events you want to delete. Only events generated before the specified time are deleted. The end_time value must be specified in the XML dateTime format (CCYY-MM-DDThh:mm:ss ). For example, noon on 1 January 2006 in Eastern Standard Time would be2006-01-01T12:00:00-05:00. For more information about the dateTime data type, refer to the XML schema at www.w3.org.

This parameter is required if you do not specify the -seconds parameter.

-group eventGroup

The event group from which to delete events. The event_group value must be the name of an event group defined in the Common Event Infrastructure configuration. This parameter is optional.

-severity severity

The severity of the events you want deleted. The severity value must be an integer; only events whose severity is equal to the value you specify are deleted. This parameter is optional.

-extensionname extension_name

The extension name of the events you want included in the deletion. Use this parameter to restrict the deletion to events of a specific type. Only events whose extensionName property is equal to extensionName are deleted. This parameter is optional.

-start start_time

The beginning time of the group of events you want to delete. Only events generated after the specified time are deleted. The start_time value must be specified in the XML dateTime format (CCYY-MM-DDThh:mm:ss ). This parameter is optional.

-size size

The number of events to delete in a single transaction. The size value must be an integer. After this number of events have been deleted, the command commits the transaction before continuing in a new transaction. This parameter is optional.



This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system.

Posted via email from shaker's posterous

Friday, July 16, 2010

scp - secure copy (remote file copy program for Linux/UNIX)

If you have to copy files (lot of them and big in size) from one remote computer to another remote computer, using regular ftp clients may take a lot of time.

You may have to download files from one remote computer to your local computer and then upload to the second remote computer. Lot of hassle and time consuming!

Using scp command will save a lot of time.

Example: scp –r localfolder1 remoteuser@remotehost:remotefoldername (scp –r /var/logs/ wasadmin@uprwas01:/var/logs/)

scp - secure copy (remote file copy program)

Syntax

scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port]  -S program] [[user@]host1:]file1 [...] [[user@]host2:]file2

-1

Forces scp to use protocol 1.

-2

Forces scp to use protocol 2.

-4

Forces scp to use IPv4 addresses only.

-6

Forces scp to use IPv6 addresses only.

-B

Selects batch mode (prevents asking for passwords or passphrases).

-C

Compression enable. Passes the -C flag to ssh(1) to enable compression.

-c cipher

Selects the cipher to use for encrypting the data transfer. This option is directly passed to ssh.

-F ssh_config

Specifies an alternative per-user configuration file for ssh. This option is directly passed to ssh.

-i identity_file

Selects the file from which the identity (private key) for RSA authentication is read. This option is directly passed to ssh.

-l limit

Limits the used bandwidth, specified in Kbit/s.

-o ssh_option

Can be used to pass options to ssh in the format used in ssh_config. This is useful for specifying options for which there is no separate scp command-line flag. For full details of the options listed below, and their possible values, see ssh_config.

AddressFamily
BatchMode
BindAddress
ChallengeResponseAuthentication
CheckHostIP
Cipher
Ciphers
Compression
CompressionLevel
ConnectionAttempts
ConnectionTimeout
GlobalKnownHostsFile
GSSAPIAuthentication
GSSAPIDelegateCredentials
Host
HostbasedAuthentication
HostKeyAlgorithms
HostKeyAlias
HostName
IdentityFile
IdentitiesOnly
LogLevel
MACs
NoHostAuthenticationForLocalhost
NumberOfPasswordPrompts
PasswordAuthentication
Port
PreferredAuthentications
Protocol
ProxyCommand
PubkeyAuthentication
RhostsRSAAuthentication
RSAAuthentication
ServerAliveInterval
ServerAliveCountMax
SmartcardDevice
StrictHostKeyChecking
TCPKeepAlive
UsePrivilegedPort
User
UserKnownHostsFile
VerifyHostKeyDNS

-P port

Specifies the port to connect to on the remote host. Note that this option is written with a capital 'P', because -p is already reserved for preserving the times and modes of the file in rcp.

-p

Preserves modification times, access times, and modes from the original file.

-q

Disables the progress meter.

-r

Recursively copy entire directories.

-S program

Name of program to use for the encrypted connection. The program must understand ssh options.

-v

Verbose mode. Causes scp and ssh(1) to print debugging messages about their progress. This is helpful in debugging connection, authentication, and configuration problems.

Examples

scp myfile.txt hope@computerhope: myfile.txt

The above example would copy the file myfile.txt to the computerhope server under the name hope.

scp remote:/home/hope/*.

Copy files in the remote machine in the /home/hope directory to your local computer.



This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system.

Posted via email from shaker's posterous

Thursday, July 1, 2010

SCA Container is disabled because WPS profile is not set

I am using WID's process server to deploy a simple SCA module. Another portlet ( running on WAS 5.1.0.3 and Process Server 601 ) tries to initiate this process deployed in WID's runtime.

I get this error message when the processAction() attempts to populate the input DataObject.

ClientObjectWrapper inputMsgWrapper = businessProcess.createMessage(templateData.getID(), inputTypeName);

if(inputMsgWrapper.getObject() != null && (inpuMsgWrapper.getObject() instanceof DataObject)) {

The problem seem to be occurring at :

DataObject bdo = (DataObject)inputMsgWrapper.getObject();

Here's the exception that I get :

RVE0068E: Could not invoke the service() method on servlet My_Sample1_Portlet. Exception thrown : java.lang.ExceptionInInitializerError

·        

·        

·         Caused by


Caused by: com.ibm.websphere.sca.ServiceRuntimeException: caused by: com.ibm.websphere.sca.ServiceRuntimeException: SCA Container is disabled because WPS profile is not set

Solution:

1. Do not copy sca.jar to <any> ( like <Portal_root> / shared / app folder) location if you get a NoClassDefFoundError.
2. Copy the server-core.xml from server1 folder to WebSphere_Portal folder under <Profile_root> \ config\cells\<cellname> \ nodes\<nodename> \servers
3. Restart WebSphere_Portal and server1

Other related links:

http://www-01.ibm.com/support/docview.wss?uid=swg21308257

http://www-01.ibm.com/support/docview.wss?rs=688&uid=swg21322547



This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system.

Posted via email from shaker's posterous