SNMP
Posted in 2003
Topics: Performance & Tuning, Server Administration, Security, Permissions & Auditing, Networking & sqlhosts Configuration, Platform-Specific Issues, Third-Party Tools & Monitoring
Hi, all,
I am trying to use the Informix-supplied performance monitoring tools, which
require SNMP support. However, I can't get the Informix SNMP to run on my
box.
I am running XPS 8.32.FC1 on Solaris 8. I have opened a ticket with Informix
tech support, but they are no help with this problem. Any help any of you
could give me on this would be greatly appreciated. Pertinent data is posted
below (onconfig, sqlhosts, services, etc.)
TIA
Milton J. Vidrine, Jr.
runsnmp.ksh FYI - Using INFORMIXDIR: /export/home/informix
runsnmp.ksh Error - Some other process is using the snmp udp port 161.
runsnmp.ksh Error - Please make sure that port 161 is free.
ps -ef|grep snmp yields:
root 352 1 0 09:50:36 ? 0:00 /usr/lib/dmi/snmpXdmid -s
irish1
root 340 1 0 09:50:34 ? 0:00 /usr/lib/snmp/snmpdx -y -c
/etc/snmp/conf
these were killed, and the snmp/runsnmp.ksh was run again with the following
results:
runsnmp.ksh FYI - Using INFORMIXDIR: /export/home/informix
can't communicate with ypbind
runsnmp.ksh FYI - Setting SR_AGT_CONF_DIR to
/export/home/informix/snmp/snmpr
SNMP Research SNMP Agent Resident Module Version 15.1.1.10
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998 SNMP
Research, Inc.
runsnmp.ksh FYI - The SNMP Research Inc. master agent (snmpdm) started
(pid 608).
runsnmp.ksh FYI - The server discovery daemon (onsrvapd) started (pid
628).
contents of /tmp/onsnmp.tli_irish1.1.log:
Thu Apr 10 12:50:45 2003
INFO : OnSnmp Version 8.32.FC1
INFO : OnSnmpInit-Started pid 631
[-n'tli_irish1.1' -k5 -p5 -l'/tmp' -g32 -r4].
Message 16655 not found.
contents of /tmp/onsrvapd.log:
Thu Apr 10 12:50:45 2003
INFO : Online Server Discovery daemon 'onsrvapd' Version 8.32.UC1
INFO : onsrvapd pid 628, poll 5 secs, linger 5 mts, logfile
/tmp/onsrvapd.log.
MAJOR: signalCatcher - Caught SIGCHLD.
MAJOR: childKilled - Subagent pid 631 Status 10.
MAJOR: Found duplicate server name 'shm_irish1.1' for #0.
MAJOR: Did not start the subagent
MAJOR: Cleanup servers that are not running and restart.
contents of /tmp/snmpd.log:
SNMP Research SNMP Agent Resident Module Version 15.1.1.10
at line 361 in file mastmain.c
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998 SNMP
Research, Inc.
at line 362 in file mastmain.c
Configuration file /export/home/informix/snmp/snmpr/snmpd.cnf is readable by
group or others.
at line 954 in file
./../../snmpd/shared/agtinit.c
contents of etc/sqlhosts:
#**************************************************************************
#
# IBM
#
# PROPRIETARY DATA
#
# THIS DOCUMENT CONTAINS TRADE SECRET DATA WHICH IS THE PROPERTY OF
# IBM. THIS DOCUMENT IS SUBMITTED TO RECIPIENT IN CONFIDENCE.
# INFORMATION CONTAINED HEREIN MAY NOT BE USED, COPIED OR DISCLOSED IN
# WHOLE OR IN PART EXCEPT AS PERMITTED BY WRITTEN AGREEMENT SIGNED BY
AN
# OFFICER OF IBM.
#
# THIS MATERIAL IS ALSO COPYRIGHTED AS AN UNPUBLISHED WORK UNDER
# SECTIONS 104 AND 408 OF TITLE 17 OF THE UNITED STATES CODE.
# UNAUTHORIZED USE, COPYING OR OTHER REPRODUCTION IS PROHIBITED BY LAW.
#
#
# Title: sqlhosts.demo
# Sccsid: @(#)sqlhosts.demo 9.2 7/15/93 15:20:45
# Description:
# Default sqlhosts file for running demos.
#
#**************************************************************************
#demo_on onipcshm on_hostname on_servername#demo_se seipcpip se_hostname sqlexec
shm_irish1 group - - c=1,e=shm_irish1.1
shm_irish1.1 onipcshm irish1 shm_irish1.1 g=shm_irish1
tli_irish1 group - - c=1,e=tli_irish1.1
tli_irish1.1 ontlitcp irish1 tli_irish1.1
contents of /etc/inet/services:
#ident "@(#)services 1.27 00/11/06 SMI" /* SVr4.0 1.8 */
#
#
# Copyright (c) 1999-2000 by Sun Microsystems, Inc.
# All rights reserved.
#
# Network services, Internet style
#
tcpmux 1/tcp
echo 7/tcp
echo 7/udp
discard 9/tcp sink null
discard 9/udp sink null
systat 11/tcp users
daytime 13/tcp
daytime 13/udp
netstat 15/tcp
chargen 19/tcp ttytst source
chargen 19/udp ttytst source
ftp-data 20/tcp
ftp 21/tcp
telnet 23/tcp
smtp 25/tcp mail
time 37/tcp timserver
time 37/udp timserver
name 42/udp nameserver
whois 43/tcp nicname # usually to sri-nic
domain 53/udp
domain 53/tcp
bootps 67/udp # BOOTP/DHCP server
bootpc 68/udp # BOOTP/DHCP client
hostnames 101/tcp hostname # usually to sri-nic
pop2 109/tcp pop-2 # Post Office Protocol - V2
pop3 110/tcp # Post Office Protocol - Version 3
sunrpc 111/udp rpcbind
sunrpc 111/tcp rpcbind
imap 143/tcp imap2 # Internet Mail Access Protocol v2
snmp 161/udp
snmp-trap 162/udp
ldap 389/tcp # Lightweight Directory Access Protocol
ldap 389/udp # Lightweight Directory Access Protocol
submission 587/tcp # Mail Message Submission
submission 587/udp # see RFC 2476
ldaps 636/tcp # LDAP protocol over TLS/SSL (was sldap)
ldaps 636/udp # LDAP protocol over TLS/SSL (was sldap)
#
# Host specific functions
#
tftp 69/udp
rje 77/tcp
finger 79/tcp
link 87/tcp ttylink
supdup 95/tcp
iso-tsap 102/tcp
x400 103/tcp # ISO Mail
x400-snd 104/tcp
csnet-ns 105/tcp
pop-2 109/tcp # Post Office
uucp-path 117/tcp
nntp 119/tcp usenet # Network News Transfer
ntp 123/tcp # Network Time Protocol
ntp 123/udp # Network Time Protocol
netbios-ns 137/tcp # NETBIOS Name Service
netbios-ns 137/udp # NETBIOS Name Service
netbios-dgm 138/tcp # NETBIOS Datagram Service
netbios-dgm 138/udp # NETBIOS Datagram Service
netbios-ssn 139/tcp # NETBIOS Session Service
netbios-ssn 139/udp # NETBIOS Session Service
NeWS 144/tcp news # Window System
slp 427/tcp slp # Service Location Protocol, V2
slp 427/udp slp # Service Location Protocol,
V2
mobile-ip 434/udp mobile-ip # Mobile-IP
cvc_hostd 442/tcp # Network Console
#
# UNIX specific services
#
# these are NOT officially assigned
#
exec 512/tcp
login 513/tcp
shell 514/tcp cmd # no passwords used
printer 515/tcp spooler # line printer spooler
courier 530/tcp rpc # experimental
uucp 540/tcp uucpd # uucp daemon
biff 512/udp comsat
who 513/udp whod
syslog 514/udp
talk 517/udp
route 520/udp router routed
ripng 521/udp
klogin 543/tcp # Kerberos authenticated rlogin
kshell 544/tcp cmd # Kerberos authenticated remote shell
new-rwho 550/udp new-who # experimental
rmonitor 560/udp rmonitord # experimental
monitor 561/udp # experimental
pcserver 600/tcp # ECD Integrated PC board srvr
sun-dr 665/tcp # Remote Dynamic Reconfiguration
kerberos-adm 749/tcp # Kerberos V5 Administra
Havn't used SNMP for quite a while, are you sure all the correct
MIBs are there?
"Milton J. Vidrine, Jr." wrote:
>
> Hi, all,
>
> I am trying to use the Informix-supplied performance monitoring tools, which
> require SNMP support. However, I can't get the Informix SNMP to run on my
> box.
>
> I am running XPS 8.32.FC1 on Solaris 8. I have opened a ticket with Informix
> tech support, but they are no help with this problem. Any help any of you
> could give me on this would be greatly appreciated. Pertinent data is posted
> below (onconfig, sqlhosts, services, etc.)
>
> TIA
> Milton J. Vidrine, Jr.
>
> runsnmp.ksh FYI - Using INFORMIXDIR: /export/home/informix
> runsnmp.ksh Error - Some other process is using the snmp udp port 161.
> runsnmp.ksh Error - Please make sure that port 161 is free.
>
> ps -ef|grep snmp yields:
> root 352 1 0 09:50:36 ? 0:00 /usr/lib/dmi/snmpXdmid -s
> irish1
> root 340 1 0 09:50:34 ? 0:00 /usr/lib/snmp/snmpdx -y -c
> /etc/snmp/conf
>
> these were killed, and the snmp/runsnmp.ksh was run again with the following
> results:
>
> runsnmp.ksh FYI - Using INFORMIXDIR: /export/home/informix
> can't communicate with ypbind
> runsnmp.ksh FYI - Setting SR_AGT_CONF_DIR to
> /export/home/informix/snmp/snmpr
> SNMP Research SNMP Agent Resident Module Version 15.1.1.10
> Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998 SNMP
> Research, Inc.
> runsnmp.ksh FYI - The SNMP Research Inc. master agent (snmpdm) started
> (pid 608).
> runsnmp.ksh FYI - The server discovery daemon (onsrvapd) started (pid
> 628).
>
> contents of /tmp/onsnmp.tli_irish1.1.log:
>
> Thu Apr 10 12:50:45 2003
> INFO : OnSnmp Version 8.32.FC1
>
> INFO : OnSnmpInit-Started pid 631
> [-n'tli_irish1.1' -k5 -p5 -l'/tmp' -g32 -r4].
>
> Message 16655 not found.
>
> contents of /tmp/onsrvapd.log:
>
> Thu Apr 10 12:50:45 2003
> INFO : Online Server Discovery daemon 'onsrvapd' Version 8.32.UC1
>
> INFO : onsrvapd pid 628, poll 5 secs, linger 5 mts, logfile
> /tmp/onsrvapd.log.
>
> MAJOR: signalCatcher - Caught SIGCHLD.
>
> MAJOR: childKilled - Subagent pid 631 Status 10.
>
> MAJOR: Found duplicate server name 'shm_irish1.1' for #0.
>
> MAJOR: Did not start the subagent
>
> MAJOR: Cleanup servers that are not running and restart.
>
> contents of /tmp/snmpd.log:
>
> SNMP Research SNMP Agent Resident Module Version 15.1.1.10
> at line 361 in file mastmain.c
> Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998 SNMP
> Research, Inc.
> at line 362 in file mastmain.c
> Configuration file /export/home/informix/snmp/snmpr/snmpd.cnf is readable by
> group or others.
> at line 954 in file
> ./../../snmpd/shared/agtinit.c
>
> contents of etc/sqlhosts:
>
> #**************************************************************************
> #
> # IBM
> #
> # PROPRIETARY DATA
> #
> # THIS DOCUMENT CONTAINS TRADE SECRET DATA WHICH IS THE PROPERTY OF
> # IBM. THIS DOCUMENT IS SUBMITTED TO RECIPIENT IN CONFIDENCE.
> # INFORMATION CONTAINED HEREIN MAY NOT BE USED, COPIED OR DISCLOSED IN
> # WHOLE OR IN PART EXCEPT AS PERMITTED BY WRITTEN AGREEMENT SIGNED BY
> AN
> # OFFICER OF IBM.
> #
> # THIS MATERIAL IS ALSO COPYRIGHTED AS AN UNPUBLISHED WORK UNDER
> # SECTIONS 104 AND 408 OF TITLE 17 OF THE UNITED STATES CODE.
> # UNAUTHORIZED USE, COPYING OR OTHER REPRODUCTION IS PROHIBITED BY LAW.
> #
> #
> # Title: sqlhosts.demo
> # Sccsid: @(#)sqlhosts.demo 9.2 7/15/93 15:20:45
> # Description:
> # Default sqlhosts file for running demos.
> #
> #**************************************************************************
>
> #demo_on onipcshm on_hostname on_servername> #demo_se seipcpip se_hostname sqlexec
>
> shm_irish1 group - - c=1,e=shm_irish1.1
> shm_irish1.1 onipcshm irish1 shm_irish1.1 g=shm_irish1
>
> tli_irish1 group - - c=1,e=tli_irish1.1
> tli_irish1.1 ontlitcp irish1 tli_irish1.1>
> contents of /etc/inet/services:
>
> #ident "@(#)services 1.27 00/11/06 SMI" /* SVr4.0 1.8 */
> #
> #
> # Copyright (c) 1999-2000 by Sun Microsystems, Inc.
> # All rights reserved.
> #
> # Network services, Internet style
> #
> tcpmux 1/tcp
> echo 7/tcp
> echo 7/udp
> discard 9/tcp sink null
> discard 9/udp sink null
> systat 11/tcp users
> daytime 13/tcp
> daytime 13/udp
> netstat 15/tcp
> chargen 19/tcp ttytst source
> chargen 19/udp ttytst source
> ftp-data 20/tcp
> ftp 21/tcp
> telnet 23/tcp
> smtp 25/tcp mail
> time 37/tcp timserver
> time 37/udp timserver
> name 42/udp nameserver
> whois 43/tcp nicname # usually to sri-nic
> domain 53/udp
> domain 53/tcp
> bootps 67/udp # BOOTP/DHCP server
> bootpc 68/udp # BOOTP/DHCP client
> hostnames 101/tcp hostname # usually to sri-nic
> pop2 109/tcp pop-2 # Post Office Protocol - V2
> pop3 110/tcp # Post Office Protocol - Version 3
> sunrpc 111/udp rpcbind
> sunrpc 111/tcp rpcbind
> imap 143/tcp imap2 # Internet Mail Access Protocol v2
> snmp 161/udp
> snmp-trap 162/udp
> ldap 389/tcp # Lightweight Directory Access Protocol
> ldap 389/udp # Lightweight Directory Access Protocol
> submission 587/tcp # Mail Message Submission
> submission 587/udp # see RFC 2476
> ldaps 636/tcp # LDAP protocol over TLS/SSL (was sldap)
> ldaps 636/udp # LDAP protocol over TLS/SSL (was sldap)
> #
> # Host specific functions
> #
> tftp 69/udp
> rje 77/tcp
> finger 79/tcp
> link 87/tcp ttylink
> supdup 95/tcp
> iso-tsap 102/tcp
> x400 103/tcp # ISO Mail
> x400-snd 104/tcp
> csnet-ns 105/tcp
> pop-2 109/tcp # Post Office
> uucp-path 117/tcp
> nntp 119/tcp usenet # Network News Transfer
> ntp 123/tcp # Network Time Protocol
> ntp 123/udp # Network Time Protocol
> netbios-ns 137/tcp # NETBIOS Name Service
> netbios-ns 137/udp # NETBIOS Name Service
> netbios-dgm 138/tcp # NETBIOS Datagram Service
> netbios-dgm 138/udp # NETBIOS Datagram Service
> netbios-ssn 139/tcp # NETBIOS Session Service
> netbios-ssn 139/udp # NETBIOS Session Service
> NeWS 144/tcp news # Window System
> slp 427/tcp slp # Service Location Protocol, V2
> slp 427/udp slp # Service Location Protocol,
> V2
> mobile-ip 434/udp mobile-ip # Mobile-IP
> cvc_hostd 442/tcp # Network Console
> #
> # UNIX specific services
> #
> # these are NOT officially assigned
> #
> exec 512/tcp
> login 513/tcp
> shell 514/tcp cmd # no passwords used
> printer 515/tcp spooler # line printer spooler
> courier 530/tcp rpc # experimental
> uucp 540/tcp uucpd # uucp daemon
> biff 512/udp comsat
> who