IBM AS/400 Monitoring Principles
The following protocols are used to monitor an AS/400 host:
- SNMP: SNMP must be configured on the AS/400 host, and the ServiceNav Box must also be configured
- Via telnet: direct command execution on AS400 and syntax analysis of the results on the ServiceNav Box side. One user is required on the AS/400 side.
- Via API and invocation of the functions of a supervision library (RPG) to be installed on the AS/400 host: an AS/400 user is required
- Via Java API JTOpen/TCP: a user is required on the AS/400 side
The AS/400 must be able to communicate with the ServiceNav Box. Therefore, Option 12 Host Servers must be installed and active on the AS/400.
The UDP/161 port must be open from the ServiceNav Box to the AS/400. All UDP ports must be open from the AS/400 to the ServiceNav Box.
Set up SNMP community : public => CFGTCP / option 20 / option 1 / option 2 = Work with communities for SNMP
Make sure that the SNMP service starts in auto : => CFGTCP / option 20 / option 1 / option 1 =Change SNMP attributes param AUTOSTART *YES
AS/400 communicates via SNMP on UDP ports other than UDP/161. You must therefore allow incoming communication on all UDP ports from the AS/400.
- Connect in SSH on the ServiceNav Box
- Locate the local network interface name of the ServiceNav Box
- Edit /etc/init.d/iptables.sh
- Add the following lines:
## Accept incoming UDP connections to receive AS400 SNMP responses
iptables -A INPUT -p udp -i <The ServiceNav Box's local interface -s -j ACCEPT
- Reload the ServiceNav Box firewall configuration by running the following line:
To verify the configuration, perform a census of the AS/400 host from the ServiceNav Box, as shown here.
AS/400 configuration for PLC use
The following TCP communication ports must be open from the ServiceNav Box to the AS/400 host: 8470, 8473, 8475, 8476 and 449.
An AS/400 user must be defined. The minimum rights of this user must be the same as those of a local AS/400 user accessing the data collected by the service model, and therefore depend on the configured service model. A user with the following configuration is functional:
User class: *SYSOPR
NAGIOS user profile Display sign-on information *NO ==> - CHGUSRPRF USRPRF(NAGIOS) DSPSGNINF(*NO)
The following service templates use telnet and perform parsing of the collection on the ServiceNav Box side:
On the ServiceNav Box side, the language to be configured in the services, in the OS languageis that of the AS400 user:
Collection via JAVA API
The following service models require access to the JAVA API on the AS/400 host:
Collection via JAVA API and invocation of RPG functions
The following service models require a library to be installed on the AS/400 server:
This library is available upon request to the publisher through the usual product support channel.
To install the library on the AS/400:
- Download the two SAVF files to the AS/400
- Run the RSTLIB command for each file