Sunday 31 July 2016

How to Delete Websphere Application Server Profile ?

First list all profiles on a server:
List the profile using one of these commands

  • Windows: was_install_dir\bin\manageprofiles.bat –listProfiles
  • UNIX/Linux: was_install_dir/bin/manageprofiles.sh –listProfiles

Remove a WebSphere Application Server profile:
Delete the profile using one of these commands:

  • On Windows: was_install_dir\bin\manageprofiles.bat –delete –profileName profile
  • On UNIX/Linux: was_install_dir/bin/manageprofiles.sh –delete –profileName profile

Ensure that references to the deleted profile are removed from the profile registry by running the following command:

  • On Windows: was_install_dir\bin\manageprofiles.bat –validateAndUpdateRegistry
  • On UNIX/Linux: was_install_dir/bin/manageprofiles.sh –validateAndUpdateRegistry

Delete the profile directory tree (if it was not deleted by the previous action).
Delete the profile Directory using one of these commands:

  • On Windows: was_install_dir\profiles\rmdir /s profileDirectory
  • On UNIX/Linux: was_install_dir\profiles\rm -R profileDirectory

Security. Understanding People, User, and Labor Records in MAXIMO

When you create records for individuals,the system requires the creation of additional records in the following cases:
Labor- You use the Labor application to create and manage labor records for employees and contractors who perform work on tickets and work orders. Labor records contain information about an individual’s skills and qualifications. These records are used toplan and schedule work, and to track labor costs for tickets and work orders.
A labor record must have a person record associated with it. A labor record needs a user record if the laborer is going to use the system to view work orders, report labor hours, and so forth. You can associate a labor and user with the same person record. As a best practice, you createcraft records for different job skills and qualification records for certifications, and record that information about the labor record. Other resources records are optional, but not required. For example, a labor record can have:
  • One or more crafts
  • One or more skill levels associated with a craft
  • One or more qualifications
Person - You use the People application to create and manage records for individuals. A person record contains basic information about an individual’s name, address, contact information,and other generic information.
A person record does not require any other resource records, such as craft, labor, user, and so forth. However, you must create a person record when you create a user record or labor record. You can associate a single person record with both a labor and user record.
A person can be a user and a laborer or neither. For example, someone calling the service desk to make a service request does not need to be a user, but your company might require that a person record exist for that user.
As a best practice, create a person record for any individual whose name appears anywhere on a record. For example, someone calling the service desk might not need a user ID to access the system. However, you can use person records to check if the individual is authorized to make a service request.
To manage employee information, you can create person records for all of your employees and contractors. Alternatively, you can create person records for laborers and others who must access the applications as part of their jobs.
User - You use the Users application to create and manage records for users. User records contain user names, passwords, and security profiles that determine which applications, options, and data a user can access. A user must have a person record. A user record can be associated with only one person record, and a person record can be associated with only one user record. You can associate a labor record and user record with the same person record.
Other resource records (labor, craft, and so forth) are optional, but not required. If you create new user records and you do not specify a value in the Person field, the system prompts you to create a matching person record for the user record.
You create a user record for anyone who must log into the system to view create or manage records.

Maximo Asset Management and SmartCloud Control Desk Migration Series

Abstract

This series is intended to assist our customers in planning their upgrade to the latest versions of Maximo Asset Management and SmartCloud Control Desk. The bulk of this series will be devoted to the Maximo product suite, add-on's and industry solutions.

In each session, a member of the business architecture team will deliver a presentation chronicling the incremental enhancements made in the product as well as point out functional changes to existing features. Ample time will be allowed for customer questions. Attendees will come away with a better understanding of what to expect, functionally, after the upgrade. This information should prove valuable for customers in determining customizations and configurations that could be modified or removed upon implementation of the latest version. Who should attend these sessions? Any current Maximo customer who is on version 6.x or 7.1.x and is planning to upgrade to version 7.5 or any customer who plans to upgrade to or implement the latest version of SmartCloud Control Desk. Review the session schedule to determine who from your organization is the best fit for each topic.

This session is also open to any IBM business partner or IBM employee who would gain useful information in helping your clients upgrade to the latest versions of Maximo or SmartCloud Control Desk. Please note that these sessions are primarily intended for customers. If time allows, business partners and IBM employees can pose questions after all customer questions have been addressed.

Content

Session topics, with the recording playback Amazon Cloud Download links are listed below.

Session Topic
Date
Playback Amazon Cloud Download links
Integration
17-Jul
Amazon Cloud Download link
ERP Adapters
19-Jul
Amazon Cloud Download link
Reporting
24-Jul
Amazon Cloud Download link
Email, Workflow, Esclations
26-Jul
Amazon Cloud Download link
Security
2-Aug
Amazon Cloud Download link
Migration Manager
7-Aug
Amazon Cloud Download link
Archiving, Monitoring
9-Aug
Amazon Cloud Download link
Scripting
14-Aug
Amazon Cloud Download link
Nuclear
16-Aug
Amazon Cloud Download link
Work Management
21-Aug
Amazon Cloud Download link
PMs, Meters, Condition Monitoring
23-Aug
Amazon Cloud Download link
Labor, Person, Craft
06-Sep
Amazon Cloud Download link
Utilities
11-Sep
Amazon Cloud Download link
Assets and Locations
13-Sep
Amazon Cloud Download link
Control Desk
18-Sep
Amazon Cloud Download link
Life Science, Calibration
20-Sep
Amazon Cloud Download link
Scheduler
25-Sep
Amazon Cloud Download link
Crew Management and Healthcare
27-Sep
Amazon Cloud Download link

Where clause for condition node in workflow for definition related records in not final status

For TICKET: 
(select count(1) from ticket where origrecordid = :ticketid and origrecordclass = :class and status not in ('CLOSED', 'RESOLVED')) = 0
and
(select count(1) from workorder where origrecordid = :ticketid and origrecordclass = :class and status not in ('CLOSE', 'REJECTED', 'CAN', 'FAILPIR', 'COMP', 'FAIL', 'REVIEW')) = 0
For WORKORDER: 
(select count(1) from ticket where origrecordid = :wonum and origrecordclass = :class and status not in ('CLOSED', 'RESOLVED')) = 0
and
(select count(1) from workorder where origrecordid = :wonum and origrecordclass = :class and status not in ('CLOSE', 'REJECTED', 'CAN', 'FAILPIR', 'COMP', 'FAIL', 'REVIEW')) = 0

Installation of Maximo Content Pack from Local Directory

Even if you cannot access the internet, you can still install Smartcloud Control Desk content packs using using Content Installer.  However, you must first download the content pack remotely and then copy it to your SCCD server.
To install content packs from behind a firewall, complete the following steps.
  1. Create an XML file called ContentSource.xml in the C:\temp directory on your Smartcloud Control Desk server system that contains the following text:
    <?xml version="1.0" encoding="UTF-8"?>
    <catalog infourl="" lastModified="" owner=""
      xmlns:tns="http://www.ibm.com/tivoli/tpae/ContentCatalog"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="ContentCatalog.xsd">
      <catalogItem>
        <version>Enter the version number of the Content Installer pack, for example 7.5.1</version>
        <type>mriu</type>
        <name>Enter the name of package</name>
        <description>Enter a description of the package here</description>
        <homepage/>
        <licenseurl/>
        <category>Describe the category of the content</category>
        <url>file:////C:\temp\TestPackage.zip</url>
      </catalogItem> 
    </catalog>
  2. Edit the name and description and the category according to the content that you are installing. Change the file name in the URL to the name of the content pack zip file.
  3. Save the file.
  4. Copy the content pack zip file to the C:\temp directory on the server.
  5. Go to the ISM Content Installer application: System Configuration>IBM Content Installer.
  6. Click the New icon.
  7. Enter the location of the ContentSource.xml that you created in step 1 and a description. The file name in our example is:  file:////c:\temp\ContentSource.xml
  8. Click Save.
  9. Click the newly created content source.
  10. Click the download link to install the content.

Saturday 18 June 2016

Differentiating ReportedBy and AffectedBy when using Classifications in SR

Question

I change the ReportedBy user in the Service Request but I'm not getting an updated list of classifications based on my new User. I can see the classifications that belonged to the original user. Why?

Cause

I'm creating an SR and I select ReportedBy User1, the list of classifications is populated but once I change that user to User2, the classifications aren't being updated based on the updated ReportedBy user.

Answer

The classification is filtered according to the Customer field. When you
add the User1 as Affected By, User1 is also added into Affected Person
that adds the Customer (customer) on the customer field. The customer field
is linked with Affected By person and not Reported By.
So when you change Reported By to User2, the Affected Person and
Customer fields are not changed. That is why an updated list in classifications is not being
displayed when you change the Reported By.


The customer comes from the Affected By, not the Reported By.

1. Go to SR app.
2. New SR
3. Entered Sinclair in Reported By. Sinclair also appeared in the
Affected By and Gillette appeared in the Customer field
4. Tabbed to the Affected By and replaced Sinclair by Reid. Received a
warning message about changing Customer value. I clicked on Accept My
Value.
5. Reid displayed in the Affected By field, and the Customer was
changed from Gillette to DCH.

Setting Site on SRs created from chats

Question

How do I change the default site that gets applied to a Service Request created from a chat so that it matches the SITE of the person who reports it?

Answer

1) Create a crossover domain with the following settings:

Name: SR_SITE
Object: PERSON
Validation Where clause: personid=:reportedby
Source field: LOCATIONSITE
Destination field: SITEID

2) Associate the created domain to the SR.REPORTEDBY attribute with Database Configuration

3) In the Attributes tab, select the REPORTEDBY attribute and click on the Edit Lookup Map button that is beside the trash button

4) Create a lookup map with the following settings:

Target Attribute: SITEID
Source Object: Person
Source Key: Locationsite
Sequence: 1
Allow Null: checked

With that setting the livechat will be creating SRs, where the SITEID will be the same of the REPORTEDBY Site id.

Note that it is required that the Person record, in the Peoples applications have the Person's Site set.

Relating incident records to global issue not working



Problem(Abstract)

From an Incident select "Show Similiar Tickets' from action menu, check the relate incident records , click the 'relate records to global issue' , receive 'bmxaa4187e relationship called does not exist for the TICKET business object'

Cause

System does not allow you to relate incidents to global incidents.

Resolving the problem

Add the following relationship to the INCIDENT object.
Field Value
Relationship GLOBALINCIDENT
Where Clause ticketid=:globalticketid and class='INCIDENT'
Child Object INCIDENT
Remarks Relationship to the global incident for this
incident

Advance Search and Save Query buttons

Technote (troubleshooting)


Problem(Abstract)

The Advanced Search and Save Query buttons aren't showing up in View Service Requests application.

Symptom

These buttons are missing from the application.

Diagnosing the problem

Go to Self Service -> Service Requests -> View Service Requests. The bottom table is View Service Requests. The table looks like this:

Resolving the problem

Go to System Configuration -> Platform Configuration -> System Properties.
Search for mxe.webclient.searchMenubar.
Set the Global Value to = 1.
Save.
Click the checkmark next to property name and hit Live Refresh

Now if you go back to View Service Requests this is how it looks:

Service bulletin warning dialog in incidents and service requests

This document applies only to the following language version(s):

English

Question

How to enable or disable the service bulletin warning dialog in incidents and service requests application

Answer

Procedure:
1. Open the System Properties application (Go To > System Configuration > Platform Configuration > System Properties).
2. Click Filter.
3. In the Property Name field, type the first few letters of the property that you want to modify, and press Enter.
This is the property Name:
pmcom.ticket.enable.serviceBulletinWarningDialog

4 Open the property, and in the Global Value field, enter 1 to enable the dialog or 0 to disable it.
5 Click save 
6 Check the box beside the name of the property that you have modified, and click live refresh  to refresh the system properties to include your modification.

Adding button to row of buttons on top of app

Question

How to add a button to the top of the app?
 For example, how to add the "Take Ownership" button to the top of the Service Request (SR) app?

Answer

To add the Take Ownership button to the toolbar of the SR app, follow these steps.
Note that step #8 is not necessary for the Take Ownership button but may be necessary for other actions that do not appear in the left pane.

1) Go to -> System Configuration -> Platform Configuration -> System Properties

2) In Global Properties - filter by mxe.webclient.showOnToolbar

3) In Global Value - Add OWNERSHIP. OWNERSHIP is the action for "Take Ownership". Use the action for the button you wish to add.
For example, the value will be something like this:

INSERT,SAVE,CLEAR,PREVIOUS,NEXT,NAVHISTORY

Instead change it to this:

INSERT,SAVE,CLEAR,PREVIOUS,NEXT,NAVHISTORY,OWNERSHIP

That is, add OWNERSHIP. Where you add it does not make a difference in how it is displayed, so just add it to the end.

4) Save

5) Check the mxe.webclient.showOnToolbar and click on Live Refresh

6) Click OK

7) Go to -> Service Desk -> Service Request

8) The icon should appear in the toolbar. If it does not, then go to App Designer and select "Add Modify Toolbar Menu".
Add a new row with these values:

Element Type: OPTION
Key Value: OWNERSHIP
Position: (give it a number to determine where it shows relative to the over button's values)
Subposition: 0
Image: nav_icon_takeOwnership.gif
Visible: mark the checkbox
Access Key: CTRL+ALT+T
Tabs: All

Now #8 should already be set up for you. There should already be an
OWNERSHIP value but I am putting it here so you know all the steps
involved in making this button appear. Remove either the property or
the row, and the button will disappear.

How to add Service Request Attributes in a Communication Template

Question

How do I access Service Request attributes within a communication template?

Answer

You can get the attributes by using a relationship to the object. For instance, if the Communication is created in the Incident application, you can use relationship ACTIVITY to get the attributes of any of the
activities of the Incident. If the Communication is generated from the Activity object, use relationship ORIGTICKET.

If the relationship returns more than 1 record, treat it as an array. For instance, if the Incident has 3 Activities, the :ACTIVITY relationship can return 3 objects. Use brackets to refer to them.

For example, :ACTIVITY[2].CINUM gets the CINUM of the 3rd Activity of the Incident. 

Removing Remote Diagnostics from the context menu

Question

How to remove Remote Diagnostics menu option from ticket apps? We have a tool already for this, and do not want our users to see the Remote Diagnostic option.

Answer

Go into Application Designer and export the MENUS system xml. Save a back up copy of it. Then modify it. Search for the word "remote". You will find 4 lines. These are various menus used off the Asset or CI attributes to launch the Remote Diagnostics. Delete these four lines and import the xml back in.

Thursday 9 June 2016

How to Delete Websphere Application Server Profile ?

First list all profiles on a server:
List the profile using one of these commands

  • Windows: was_install_dir\bin\manageprofiles.bat –listProfiles
  • UNIX/Linux: was_install_dir/bin/manageprofiles.sh –listProfiles

Remove a WebSphere Application Server profile:
Delete the profile using one of these commands:

  • On Windows: was_install_dir\bin\manageprofiles.bat –delete –profileName profile
  • On UNIX/Linux: was_install_dir/bin/manageprofiles.sh –delete –profileName profile

Ensure that references to the deleted profile are removed from the profile registry by running the following command:

  • On Windows: was_install_dir\bin\manageprofiles.bat –validateAndUpdateRegistry
  • On UNIX/Linux: was_install_dir/bin/manageprofiles.sh –validateAndUpdateRegistry

Delete the profile directory tree (if it was not deleted by the previous action).
Delete the profile Directory using one of these commands:

  • On Windows: was_install_dir\profiles\rmdir /s profileDirectory
  • On UNIX/Linux: was_install_dir\profiles\rm -R profileDirectory

Maximo Integration Framework (MIF). Which Components to Use?

How do I determine which integration components to use for my integration scenario?
This is a common question for those who are not familiar with the I-F.  Reasons for choosing the use of certain I-F components is often decided based on one or more of the following:
  1. The integration capabilities of the application being integrated to Maximo
  2. The integration skills of the developers who will implement the integration
  3. The need to have the integration processing occur in a synchronous or asynchronous manner
  4. What level of error management is required and what level is supported by the external application
  5. Do integration messages need to process based on events (ie. approval of a Work Order)
  6. Does the integration need to operate in a batch or real-time (near) mode.
  7. Is the I-F being used to support implementation data loading
  8. Will the integration be deployed using a common ESB layer within your enterprise
The above list is not intended to be all-inclusive, but it should give you an idea of the types of things to consider when planning integration with Maximo.  Keep in mind, large integration deployments could involve many systems and require different integration components to be used for different external applications.
To help answer the stated question above, you need to start by having a general understanding of the capabilities offered by I-F. 
The I-F is a framework that supports the sending and receiving of XML messages for querying and updating of the data in the Maximo Business Objects (MBOs).  Although the framework is based on data messages in an XML format, there is support for other data formats such as .CSV, Database tables and JSON.
Beyond the format of the data, there is support for sending/receiving data in an asynchronous manner by placing integration messages into JMS queues. This allows the sender (either Maximo or the external application) of the message to drop the message to the queue and not wait until the message is processed by the receiving application.  There is also support for synchronous process where one system may query the other system for data and take the response of that request for use in its application processing.
The I-F provides support for a number of common integration protocols that a customer may choose to integrate with.  Some of the most common include HTTP Post of XML, SOAP-based web services, JMS queue to queue, Files (XML or .CSV) and interface tables (DB).  The choice of which integration protocol is often made based on the capabilities of the external application (ie. external app only supports SOAP messages) or the capabilities of those who will implement the integration (ie developers are strong with PL/SQL and DB access, not familiar with XML).
In addition to the above, other features of the I-F include:
  • Support for customizations using processing rules, java classes or XSL
  • Event based processing where an event in Maximo will trigger the sending of an integration message to an external application
  • Error Management application that allows for an administrator to view messages in error, provide corrections to messages and initiate the reprocessing of messages
  • Support for RESTful interactions where external application can retrieve/update Maximo data as REST resources
  • Enabling OSLC interactions where resource links can be saved in Maximo and used to view external resource data using the delegated UI of an OSLC Provider application.
Now that we have discussed the general capabilities of the I-F, let's look at the individual components that provide this functionality.
There are 3 main layers of the I-F.  The most important is the Object Structure layer.  This layer defines the content (Maximo objects and attributes) of the message (XML schema). A number of object structures are provided 'out of box' with the products and there is also an object structure application where new/custom object structures can be created by customers/implementers. Below depicts the MXPO object structure content that supports the creation and updating of a Purchase Order in Maximo. 
The object structure identifies the objects (PO, POLINE, POCOST and POTERM) and its attributes that make up the message content (schema).  Object structures can be defined for any objects that are registered in the Maximo Data Dictionary (DD), including custom objects. Channels and Services include a reference to an object structure that identifies the content of the message within the channel or service.  An object structure can also used for integrating data stand-alone.
The Channel/Service layer is used to process an outbound (Channel) and inbound (Service) message. This layer is primarily used to implement filtering and perform data mapping or business rules that are specific to the integration processing.  Like object structures, there are a number of channels and services provided 'out of box' and there are applications provided to create new/update existing channels and services.  The last layer supports the sending and receiving of the messages.  The End Point definition defines the protocol to be used when sending a message out of Maximo.  The external system represents the application being integrated with and identifies the end point and all the channels and services being used with that external application.  Depending upon your integration scenario you may need to use/configure all 3 layers or just the object structure layer.
When evaluating I-F components for your integration scenario, it is common to consider outbound integration separate from inbound. Outbound integration is when Maximo is the sender of the message to the external application.  Inbound integration is when Maximo is the receiver of the message from the external application.
Outbound Integration Scenario
To support outbound integration scenarios, the I-F provides 2 Channel components, Publish and Invocation.  The Publish Channel is the more commonly used channel and it provides the means to send an outbound message based on an event in asynchronous model.  The Invocation Channel, supports a synchronous message processing where the response of the request from the external application may be used to update a Maximo object.

The Publish Channel can be initiated from an event (on left in image above), such as an update of an asset, or by an admin user performing a Data Export on the Channel.  The XML message is created by the object structure tied to the channel and then the message processes through the channel layers before dropping to the outbound JMS queue.  In the case of an event based message, the Maximo user's transaction (the user updating an asset record) will be committed after confirmation that the message was saved to the JMS queue.  The Processing layers in the channel are where the implementers could choose to use the processing rules, Java code and/or XSL to modify the message, perform business rules or transaction filtering. Processing of messages out of the queue is done (by default) by the JMS CRON task. Messages retrieved from the queue are processed in a strict FIFO (First In-First Out) order and messages are delivered to the external application as defined by the configured End Point in the External System application.
The Invocation channel can be initiated from an action class (class provided with product).  The XML message is created by the object structure tied to the channel and the message processes through the channel layers before invoking the End Point configured on the channel (there is no external system configuration for an invocation channel).  The Processing layers in the channel are where the implementers could choose to use java and/or XSL to modify the message, perform business rules or transaction filtering. Since the processing is synchronous, the response of the invoked service is returned to the channel and the implementer can provide code to have the data mapped to a Maximo object structure for updating or could display the data from the response in the Maximo UI if desired.
The most common points (not all) to consider when deciding on which channel to use is:
  • If you need event-based message processing:    Publish Channel
  • if you need an asynchronous processing model: Publish Channel
  • if you need a synchronous processing model:     Invocation Channel

Inbound Integration Scenario
To support inbound integration scenarios the I-F provides 3 Service components, Object Structure, Enterprise and Standard.  The Object Structure and  Enterprise Service provide support CRUD (create, replace, update, delete) operations on the MBOs that are defined in the object structure. Standard services are more fine-grained service for specific actions of a MBO such as change status or move asset.  Choosing between the use of an object structure service versus an enterprise is dependent upon the integration scenario and integration capabilities of the application calling the service.  The table below summarizes the capabilities of each service:
FeatureObject Structure ServiceEnterprise ServiceEnterprise Service
ProcessingSynchronousSynchronousAsynchronous
Options to invokeEJB, Web Service, HTTP Post,File (XML or .csv),REST, OSLCEJB, Web Service, HTTP PostEJB, Web Service, HTTP Post, JMS, File (XML or .csv), DB Tables
CustomizationnoneYesYes
XML formatRequires Maximo XMLMaximo or external XMLMaximo or external XML
ConfigurationLess: requires object structure configurationmore: requires object structure, enterprise service & external system configurationmore: requires object structure, enterprise service & external system configuration
So from the table above there are some very clear choices in certain cases.  If you want to leverage interface tables then your only option is to use enterprise services in an asynchronous model.  If you are integrating using REST or OSLC then your only option is to use object structure services. If you need to leverage customization points during the processing of an inbound message then you need to use an enterprise service (using a sync or async model). If you want your external system to call a web service synchronously and that system will provide Maximo XML, you can use either service type.  However, you may choose to use the object structure service simply because it requires less configuration in Maximo.


The object structure service allows synchronous calls to query and/or update Maximo data.  When calling, data must be a in Maximo XML format and there are no customization layers to manipulate the message.  Object structures are also use for Application-based importing where the data can be in either an XML (Maximo XML) or .CSV format.  This loading process is intended to be for relatively small amounts of data (not for loading 1000's of records).  See this link for more information application importing.


The Enterprise Service offers the most capabilities for inbound processing.  It support many protocols, offers synchronous and asynchronous processing models and provide implementers multiple choices for customization.  Probably the most common use of enterprise services is using either XML over HTTP or as a Web Service (SOAP).  In addition, the use of file loading (either .CSV or XML) and integration through interface tables is heavily used as well.  In terms of which protocol to use, this is often based on the external systems capability.  If your external application can only invoke a SOAP web service then the enterprise service needs to be deployed as a web service. 
In terms of whether to use JMS (aync) or not, may depend on whether your external application requires an immediate confirmation that the record in Maximo was created/updated successfully.  One key factor here is that if you choose to not use JMS (sync processing), then the external application owns the responsibility of managing errors that may be returned to it from Maximo and it also must manage the errors and subsequent re-processing of the message to Maximo as needed.  When posting a message to the Maximo inbound queue (async processing), the external application only gets confirmation that the message made it successfully to the queue.  Any problems in processing the message from the queue into Maximo would be managed in Maximo by an administrator using the integration Message Reprocessing application where integration messages that hit errors can be viewed and managed.
The Standard Service is a fine-grained service for operations such as Change Status or Asset Move.  These services require method annotations to be done in Application services.  At this time there is a small number of services available and the use of these services is relatively small when compare to object structure or enterprise services.  Standard Services can be identified using the Web Service Library application.  In some cases, such as Change Status, the same functionality is available through the object structure.

IBM Readme for IBM Maximo Asset Management 7.6.1.3 Fix Pack

  Fix Readme Abstract This fix pack updates IBM® Maximo® Asset Management version 7.6.1, 7.6.1.1, and 7.6.1.2 Content IBM Maximo Asset Manag...