Log in under the profile who can run DLTOBJ, DLTLIB, DLTUSRPR
(Can be QSECOFR *ALL object Authority )
Delete *savf LPAR2RRD from QGPL
DLTOBJ OBJ(QGPL/LPAR2RRD) OBJTYPE(*FILE)
Delete *lib LPAR2RRD
DLTLIB LIB(LPAR2RRD)
Delete User profile LPAR2RRD
DLTUSRPRF USRPRF(LPAR2RRD) OWNOBJOPT(*DLT)
XorMon IBM i agent
Download the latest OS agent for IBM i (V6R1+).
Note that there are 2 versions of the agent, use the agent version 1.7a for older that V7R3 IBMi.
After unzipping you get LPAR2RRD.savf in save file format.
Open TCP communication on your network between each IBM i LPAR with the OS agent installed and XorMon server on port 8162. Connections are initiated from the agent side (IBM i).
Create User Profile LPAR2RRD
This user profile will be owner of all restored objects in library LPAR2RRD and this user profile is the name of the user profile for the agent being submitted.
Parameters of CRTUSRPRF command depend on AS400 security policy you have in place.
Create save file destination:
CRTSAVF FILE(QGPL/LPAR2RRD)
Execute that only if you installing Enterprise Edition of XorMon IBM i OS agent.
It contains ASP latency monitoring.
Use Grant Object Authority (GRTOBJAUT) command to grant *USE authority for APIs QPMWKCOL and QPMLPFRD:
Transfer LPAR2RRD.savf to IBM i system from your PC via ftp.
All below under LPAR2RRD user account.
ftp <ph.server.com>
Connected to as400.
220-QTCP at 192.168.177.50.
220 Connection will close if idle more than 5 minutes.
Name (as400.server.com:lpar2rrd): lpar2rrd
431 Requested security mechanism not available at this time.
331 Enter password.
Password:
230 LPAR2RRD logged on.
Remote system type is .
ftp> bin
ftp> cd qgpl
ftp> put LPAR2RRD.savf LPAR2RRD
local: LPAR2RRD.savf remote: LPAR2RRD
200 PORT subcommand request successful.
150 Sending file to member LPAR2RRD in file LPAR2RRD in library QGPL.
226 File transfer completed successfully.
3590400 bytes sent in 0.41 secs (9007.2 kB/s)
ftp> by
Do not forget to logoff from ftp session to do not lock it out.
After this command see LPAR2RRD *JOBD object in restored LPAR2RRD library.
In the "initial user part of the library list" specify LPAR2RRD library. Parameter INLLIBL in *JOBD object.
See LPAR2RRD *JOBD object into restored LPAR2RRD library.
Test network connectivity
For example if hostname of XorMon server is XorMon.SERVER.COM.
ping:
PING RMTSYS('XorMon.SERVER.COM')
Verifying connection to host system XorMon.SERVER.COM at address 192.168.1.2.
Connection verification statistics: 5 of 5 successful (100 %).
telnet:
TELNET RMTSYS('XorMon.SERVER.COM') PORT(8162) RMTUSER(TESTSTRING) INZWAIT(15)
Connecting to remote host 192.168.1.2 using port 8162
If you get after 15 seconds "No response from remote host system within open time-out." then it is wrong!.
Either XorMon server daemon is not running or TCP connection is filtered on the network by a firewall.
If connection hanging (it times out in 10 mins) then it is ok, you can interrupt it by:
SysRq ➡ Enter ➡ 2. End previous request
Configure XorMon server host
Change Monitor Server Name or IP addr (IPADR) to your running XorMon server
This step must be done, because default server IP address for sending data is LOOPBACK.
Recommendation: Change User profile LPAR2RRD PASSWORD to *NONE to forbid remote LPAR2RRD user access.
CHGUSRPRF USRPRF(LPAR2RRD) PASSWORD(*NONE)
Accept license agreement
Only for users using free version without support. Licensing details.
ADDLIBLE LPAR2RRD
GO MENU
Select: 14 Accept Software Licensing Agreement ➞ page down ➞ F14 Accept
OK:CL_ACCEPT Expiration date of this client is 2017-06-25
In the case that the start XorMon agent is executed without acceptance, then an error message appears.
ER: RTV_SYSSTS: frp.HASH512not not correct.
ER: RTV_SYSSTS: Please revalidate i5/OS client from MENU option F14.
ER: RTV_SYSSTS: i5/OS client ended.
Agent is licensed to free use for 1 year. You will have to re-accept license in the same way next year.
You can see expiration dates of all agents in the LPAR2RRD UI ➞ menu ➞ LPAR2RRD ➞ Data check ➞ IBM i
You get this error during agent start if you do not accept the license:
Start of the agent
You can start XorMon agent in two ways.
As a command RTV_SYSSTS.
CHGJOBD JOBD(LPAR2RRD/LPAR2RRD) TEXT('RTV_SYSSTS') RQSDTA(*NONE)
RMVAJE SBSD(LPAT2RRD/LPAR2RRD) JOB(LPAR2RRD)
ADDLIBLE LPAR2RRD
GO MENU
Option 1. Set up parameters to start client as RTV_SYSSTS (opt.10)
Accept all default parameters for command CHGJOBD and RMVAJE.
Option 10. RTV_SYSSTS
As an autostart job entry in LPAR2RRD subsystem.
CHGJOBD JOBD(LPAR2RRD) TEXT('STRSBS SBSD(LPAR2RRD/LPAR2RRD)') RQSDTA('RTV_SYSSTS')
ADDAJE SBSD(LPAR2RRD/LPAR2RRD) JOB(LPAR2RRD) JOBD(LPAR2RRD/LPAR2RRD)
ADDLIBLE LPAR2RRD
GO MENU
Option 2. Set up parameters to start client as STRSBS LPAR2RRD (option 11)
Accept all default parameters for command CHGJOBD and ADDAJE.
Option 11. STRSBS LPAR2RRD
You can start XorMon agent from command line or from your CL program as a command RTV_SYSSTS or STRSBS LPAR2RRD.
Option 1 and Option 2 is used only once or when you decide to change the way the program starts.
Use F1 as a help for RTV_SYSSTS command.
Status of the agent.
GO MENU
Select: Option 50
On the SND_SYSSTS line ➞ type 5 ➞ type 10 ➞ F10 and you have to see:
You have to see this message after 10 - 20 minutes from the agent start:
It says that connection to XorMon server has been established and some data has been already sent out.
IF: C_SNDSTS - connection Established()
LPAR2RRD UI
You will see IBM i data in the UI after first load.sh run on the server (it usually runs once an hour).
Go to the UI, follow the server and lpar. (Ctrl-F5 is necessary to refresh the UI)
Stop of the agent
ADDLIBLE LPAR2RRD
GO MENU
Select: 13. END_SYSSTS ➞ Enter ➞ Enter
On the job log you will see:
WRKJOB
➞ option 10 ➞ Display job log, if active, on job queue, or pending
F10, F18 ...
IN: END_SYSSTS No active jobs in subsystem LPAR2RRD
Ending of subsystem LPAR2RRD in progress.
IN: END_SYSSTS EndSbs LPAR2RRD *Immed
EN: END_SYSSTS - *ALL.
GO MENU
Select: option 50 ➞ WRKSBSJOB LPAR2RRD
See above that subsystem LPAR2RRD is not active.
if you create your user profile LPAR2RRD set JOBD parameter as a Job description which includes in INLLIBL LPAR2RRD library too (QTEMP,LPAR2RRD).
XorMon agent uses dlpar_get_info API - service program QPMLPMGT in QSYS.
When user profile LPAR2RRD under which XorMon agent being submitted is not authorized to this service program, obtain authority to this service program e.g. by command:
Execute that only if you upgrading Enterprise Edition of XorMon IBM i OS agent.
It contains ASP latency monitoring.
Use Grant Object Authority (GRTOBJAUT) command to grant *USE authority for APIs QPMWKCOL and QPMLPFRD:
Transfer LPAR2RRD.savf to IBM i system from your PC via ftp in binary mode.
ftp <as400.server.com>
Connected to as400.
220-QTCP at 192.168.177.50.
220 Connection will close if idle more than 5 minutes.
Name (as400.server.com:lpar2rrd): lpar2rrd
431 Requested security mechanism not available at this time.
331 Enter password.
Password:
230 LPAR2RRD logged on.
Remote system type is .
ftp> bin
ftp> cd qgpl
ftp> put LPAR2RRD.savf LPAR2RRD
local: LPAR2RRD.savf remote: LPAR2RRD
200 PORT subcommand request successful.
150 Sending file to member LPAR2RRD in file LPAR2RRD in library QGPL.
226 File transfer completed successfully.
3590400 bytes sent in 0.41 secs (9007.2 kB/s)
Do not forget to logoff from ftp session to do not lock it out.
After this command see LPAR2RRD *JOBD object in restored LPAR2RRD library.
In the "initial user part of the library list" specify LPAR2RRD library. Parameter INLLIBL in *JOBD object.
See LPAR2RRD *JOBD object into restored LPAR2RRD library.
Configure XorMon server host
Change Monitor Server Name or IP addr (IPADR) to your running XorMon server
This step must be done, because default server IP address for sending data is LOOPBACK.
Recommendation: Change User profile LPAR2RRD PASSWORD to *NONE to forbid remote LPAR2RRD user access.
CHGUSRPRF USRPRF(LPAR2RRD) PASSWORD(*NONE)
Accept license agreement
Only for users using free version without support. Licensing details.
ADDLIBLE LPAR2RRD
GO MENU
Select: 14 Accept Software Licensing Agreement ➞ page down ➞ F14 Accept
OK:CL_ACCEPT Expiration date of this client is 2017-06-25
In the case that the start XorMon agent is executed without acceptance, then an error message appears.
ER: RTV_SYSSTS: frp.HASH512not not correct.
ER: RTV_SYSSTS: Please revalidate i5/OS client from MENU option F14.
ER: RTV_SYSSTS: i5/OS client ended.
Agent is licensed to free use for 1 year. You will have to re-accept license in the same way next year.
You can see expiration dates of all agents in the LPAR2RRD UI ➞ menu ➞ LPAR2RRD ➞ Data check ➞ IBM i
You get this error during agent start if you do not accept the license:
Start of the agent
You can start XorMon agent in two ways.
As a command RTV_SYSSTS.
CHGJOBD JOBD(LPAR2RRD/LPAR2RRD) TEXT('RTV_SYSSTS') RQSDTA(*NONE)
RMVAJE SBSD(LPAT2RRD/LPAR2RRD) JOB(LPAR2RRD)
ADDLIBLE LPAR2RRD
GO MENU
Option 1. Set up parameters to start client as RTV_SYSSTS (opt.10)
Accept all default parameters for command CHGJOBD and RMVAJE.
Option 10. RTV_SYSSTS
As an autostart job entry in LPAR2RRD subsystem.
CHGJOBD JOBD(LPAR2RRD) TEXT('STRSBS SBSD(LPAR2RRD/LPAR2RRD)') RQSDTA('RTV_SYSSTS')
ADDAJE SBSD(LPAR2RRD/LPAR2RRD) JOB(LPAR2RRD) JOBD(LPAR2RRD/LPAR2RRD)
ADDLIBLE LPAR2RRD
GO MENU
Option 2. Set up parameters to start client as STRSBS LPAR2RRD (option 11)
Accept all default parameters for command CHGJOBD and ADDAJE.
Option 11. STRSBS LPAR2RRD
You can start XorMon agent from command line or from your CL program as a command RTV_SYSSTS or STRSBS LPAR2RRD.
Option 1 and Option 2 is used only once or when you decide to change the way the program starts.
Use F1 as a help for RTV_SYSSTS command.
Status of the agent.
GO MENU
Select: Option 50
On the SND_SYSSTS line ➞ type 5 ➞ type 10 ➞ F10
You have to see this message after 20 - 30 minutes from the agent start:
It says that connection to XorMon server has been established and some data has been already sent out.
IF: C_SNDSTS - connection Established()
Communication problem
If you see this message into joblog SND_SYSSTS then there is a communication problem.
Address or port is wrong.
IP connection between LPAR2RRD monitor server and AS400 not correct.
Test network connectivity for example if hostname of XorMon server is XorMon.SERVER.COM.
ping:
PING RMTSYS('XorMon.SERVER.COM')
Verifying connection to host system XorMon.SERVER.COM at address 192.168.1.2.
Connection verification statistics: 5 of 5 successful (100 %).
telnet:
TELNET RMTSYS('XorMon.SERVER.COM') PORT(8162) RMTUSER(TESTSTRING) INZWAIT(15)
Connecting to remote host 192.168.1.2 using port 8162
If you get after 15 seconds "No response from remote host system within open time-out." then it is wrong!.
Either XorMon server daemon is not running or TCP connection is filtered on the network by a firewall.
If connection hanging (it times out in 10 mins) then it is ok, you can interrupt it by:
SysRq ➡ Enter ➡ 2. End previous request
XorMon server UI
You should see new data in graphs 20 - 30 minutes after the agent starts.
Go to the UI, follow the server and LPAR. (Ctrl-F5 is necessary to refresh the UI)
Start/Stop XorMon agent
ADDLIBLE LPAR2RRD
GO MENU
start: 10. RTV_SYSSTS ➞ Enter ➞ Enter
stop: 13. END_SYSSTS ➞ Enter ➞ Enter
Upgrade IBM i OS agent - enterprise edition
Download the latest OS agent for IBM i (V6R1.0+) from the link provided by LPAR2RRD support
After unzipping you get LPAR2RRD_F.savf in save file format.
All below under LPAR2RRD user.
Stop IBM i OS agent:
ADDLIBLE LPAR2RRD
LPAR2RRD/END_SYSSTS
GO MENU --> 50
Subsystem LPAR2RRD is not active
Set LPAR2RRD password from *NONE to <password> and change user profile to JOBD job description.
Transfer LPAR2RRD_F.savf to IBM i system from your PC via ftp in binary mode.
ftp <as400.server.com>
Connected to as400.
220-QTCP at 192.168.177.50.
220 Connection will close if idle more than 5 minutes.
Name (as400.server.com:lpar2rrd): lpar2rrd
431 Requested security mechanism not available at this time.
331 Enter password.
Password:
230 LPAR2RRD logged on.
Remote system type is .
ftp> bin
ftp> cd qgpl
ftp> put LPAR2RRD_F.savf LPAR2RRD
local: LPAR2RRD_F.savf remote: LPAR2RRD
200 PORT subcommand request successful.
150 Sending file to member LPAR2RRD in file LPAR2RRD in library QGPL.
226 File transfer completed successfully.
3590400 bytes sent in 0.41 secs (9007.2 kB/s)
Do not forget to logoff from ftp session to do not lock it out.
After this command see LPAR2RRD *JOBD object in restored LPAR2RRD library.
In the "initial user part of the library list" specify LPAR2RRD library. Parameter INLLIBL in *JOBD object.
See LPAR2RRD *JOBD object into restored LPAR2RRD library.
Configuration
Change Monitor Server Name or IP addr (IPADR) to your running XorMon server
This step must be done again as it has been cleared out. Use same name(IP) as before.
For example if hostname is XorMon.SERVER.COM.
Network connectivity verification via ping at first:
PING RMTSYS('XorMon.SERVER.COM')
Verifying connection to host system XorMon.SERVER.COM at address 192.168.1.2.
Connection verification statistics: 5 of 5 successful (100 %).
CHGCMDDFT CMD(LPAR2RRD/RTV_SYSSTS) NEWDFT('IPADR(XorMon.SERVER.COM)')
Recommendation: Change User profile LPAR2RRD PASSWORD to *NONE to forbid remote LPAR2RRD user access.
CHGUSRPRF USRPRF(LPAR2RRD) PASSWORD(*NONE)
Accept license agreement Licensing details. You need to do it once, expiration will be set to 2099.
ADDLIBLE LPAR2RRD
GO MENU
Select: 14 Accept Software Licensing Agreement ➞ page down ➞ F14 Accept
OK:CL_ACCEPT Expiration date of this client is 2099-01-01
In the case that the start XorMon agent is executed without acceptance, then an error message appears.
ER: RTV_SYSSTS: frp.HASH512not not correct.
ER: RTV_SYSSTS: Please revalidate i5/OS client from MENU option F14.
ER: RTV_SYSSTS: i5/OS client ended.
You can see expiration dates of all agents in the LPAR2RRD UI ➞ menu ➞ LPAR2RRD ➞ Data check ➞ IBM i
You get this error during agent start if you do not accept the license:
Start of the agent
You can start XorMon agent in two ways.
As a command RTV_SYSSTS.
CHGJOBD JOBD(LPAR2RRD/LPAR2RRD) TEXT('RTV_SYSSTS') RQSDTA(*NONE)
RMVAJE SBSD(LPAT2RRD/LPAR2RRD) JOB(LPAR2RRD)
ADDLIBLE LPAR2RRD
GO MENU
Option 1. Set up parameters to start client as RTV_SYSSTS (opt.10)
Accept all default parameters for command CHGJOBD and RMVAJE.
Option 10. RTV_SYSSTS
As an autostart job entry in LPAR2RRD subsystem.
CHGJOBD JOBD(LPAR2RRD) TEXT('STRSBS SBSD(LPAR2RRD/LPAR2RRD)') RQSDTA('RTV_SYSSTS')
ADDAJE SBSD(LPAR2RRD/LPAR2RRD) JOB(LPAR2RRD) JOBD(LPAR2RRD/LPAR2RRD)
ADDLIBLE LPAR2RRD
GO MENU
Option 2. Set up parameters to start client as STRSBS LPAR2RRD (option 11)
Accept all default parameters for command CHGJOBD and ADDAJE.
Option 11. STRSBS LPAR2RRD
You can start XorMon agent from command line or from your CL program as a command RTV_SYSSTS or STRSBS LPAR2RRD.
Option 1 and Option 2 is used only once or when you decide to change the way the program starts.
Use F1 as a help for RTV_SYSSTS command.
Status of the agent.
GO MENU
Select: Option 50
On the SND_SYSSTS line ➞ type 5 ➞ type 10 ➞ F10
You have to see this message after 20 - 30 minutes from the agent start:
It says that connection to XorMon server has been established and some data has been already sent out.
IF: C_SNDSTS - connection Established()
Communication problem
If you see this message into joblog SND_SYSSTS then there is a communication problem.
Address or port is wrong.
IP connection between LPAR2RRD monitor server and AS400 not correct.
XorMon server UI
You should see new data in graphs 20 - 30 minutes after the agent starts.
Go to the UI, follow the server and LPAR. (Ctrl-F5 is necessary to refresh the UI)
Start/Stop XorMon agent
ADDLIBLE LPAR2RRD
GO MENU
start: 10. RTV_SYSSTS ➞ Enter ➞ Enter
stop: 13. END_SYSSTS ➞ Enter ➞ Enter
XorMon IBM i OS agent is free software. You can freely use it without any functional restrictions.
You have to accept license agreement every year to make it work for next year.
Accepting license agreement
Log to your IBM i server and:
ADDLIBLE LPAR2RRD
GO MENU
Select: 14 Accept Software Licensing Agreement ➞ scroll down ➞ F14 Accept
OK:CL_ACCEPT Expiration date of this client is 2017-06-25
You can see expiration dates of all agents in the LPAR2RRD UI ➞ menu ➞ LPAR2RRD ➞ Data check ➞ IBM i license
You get this error during agent start if you do not accept the license: