Saturday 10 October 2015

How to Turn off Admin Mode in Maximo 7

Question

How to Turn off Admin Mode in Maximo 7

Answer

Admin Mode is Maximo 7.5 allows you to configure your database configuration changes without having to shut down Maximo server like in Maximo 6.
Having the Admin Mode on will have impact on our areas of Maximo. You should ALWAYS turn it off once the changes have been carried out.

Do these steps to turn off Admin mode:
1) Log in as a user who has full access to the Database Configuration application.
2) Go To -> System Configuration -> Platform Configuration -> Database Configuration
3) Select Action -> Manage Admin Mode
4) Click on the "Turn Admin Mode OFF" button.
It should be noted that the permission required to set Admin Mode are not the same as the permission required for admin login security authorization, which lets you to log in when the server is in admin mode. It is possible to have Admin users who can turn admin mode on but are not be able to login once Admin Mode has started.
You grant the authorization to logon while in Admin Mode from the Security Groups application:

1 In the Security Groups application, click the Applications tab.
2 In the Applications table window, search for Start Center.
3 In the Options for Start Center table window, select Identifies whether the user is permitted to login when
server is in Admin Mode.
If you have Admin Mode ON but do not have a user who can login to turn it off, you may be able to reset it via using SetAdminMode.bat C:\ibm\SMP\maximo\tools\maximo\internal\SetAdminMode.bat
Please see the comments below on the syntax for using SetAdminMode.bat
REM Command line parameter must be one or both of the following:
REM -m (mode) Set AdminMode. The value of mode must be ON or OFF.
REM For example, -mON sets AdminMode ON.
REM -n (num sessions) Set value for mxe.adminmode.numsessions property.
REM Num sessions must be an integer.
REM For example, -n8 sets the value to 8. 

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


How to Turn off Admin Mode in Maximo 7 if unable to do so through Maximo Front End through Manage Admin Mode.


Receiving errors on the Database Configuration screen when shutting down Admin Mode:

BMXAA4030I - Starting to set Admin Mode ON.
BMXAA4004I - Admin Mode is pending (turning on) for this server.
BMXAA4013I - Setting maxvar ADMINRESTART to ON.
BMXAA4008I - Notifying users to sign out.
BMXAA4036W - All users will be logged out in 1 minutes!
BMXAA4007I - Administratively logging out all remaining users.
BMXAA4011I - Waiting until all cron tasks are sleeping...
BMXAA4010I - Preventing events from firing.
BMXAA4014I - Setting this server's maxsession active flag to 0.
BMXAA4032I - Successfully set Admin Mode ON.
system#AdminModeIsConfiguring
system#AdminModeIsConfiguring
system#AdminModeIsConfiguring
system#AdminModeIsConfiguring
system#AdminModeIsConfiguring

Cause
Database in a state of configuring.

Diagnosing the problem
Run this statement on the database: select * from maxvars where varname='CONFIGURING';

Resolving the problem
If the value is 1


Run this update statement below to set the value to 0

update MAXVARS set varvalue='0' where varname='CONFIGURING';

This will reset the flag and will allow Admin Mode to be shut down.


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

"Admin Mode" function in Maximo 7.x

Question

What happens in Maximo when "Admin Mode" is ON?

Answer

There is an "Admin Mode" function in Maximo 7.x. That function enables the system administrator to configure the database without having to shut the Maximo server down temporarily.
This function exists in the Database Configuration application.

When setting Admin Mode to ON, there are some limitations that the users and system administrator may run into.

1) It blocks users from the product applications. Only users with the privilege "'Can Log In During Admin Mode" can log in to Maximo.
The SQL statement below shows groups with the privilege "'Can Log In During Admin Mode" :
SELECT * FROM APPLICATIONAUTH WHERE OPTIONNAME ='ADMINMODELOGIN'

If no one can log in to Maximo, please check if "Admin Mode" is on and who has "Can Log In During Admin Mode" privileges.


2) It suspends crontasks.
Only the BBCron instance will run. You can check when each crontask instance runs last with this SQL query:
SELECT * FROM TASKSCHEDULER

If you meet the problem "crontasks are not running" without any reason, you can check "Admin Mode" and If "Admin Mode" is set to ON, change it to OFF.
The crontasks will then run again.

Below is the SQL command to check the "Admin Mode" setting":
SELECT * FROM MAXVARS WHERE VARNAME = 'ADMINRESTART'

cf ) Using a back-end SQL script , you can change "Admin Mode" setting:
UPDATE MAXVARS SET VARVALUE = 'OFF' WHERE VARNAME = 'ADMINRESTART' ; COMMIT;


3) It disables all event listeners.
When the Maximo application server starts (when services are loaded), all event listeners will be loaded . For example: PMListener, MatUseTransListener , AssetListener etc.
If "Admin Mode" is "ON", all event listeners are disabled even if they are initialized when the Maximo application server starts.
At that time, if you try to do some business processes such as Asset creation, PM creation or issue/return Inventory items, data integrity would be broken.
For example: inventory balances/cost are not updated or asset data is not inserted in ASSETANCESTOR, etc.
Also, due to broken data integrity , some unexpected errors or results will happen, for example: PM Wogen error.

* Check "Admin Mode" first when you get any unexpected result or errors.


Ref : https://www-304.ibm.com/support/docview.wss?uid=swg21377175