Advertisements

Tag Archives: kill

Solaris 9 Branded Zone was not starting ftp when running kill -HUP

I have a Solaris 9 Branded Zone

root@solaris9:/ # uname -a
SunOS solaris9 5.9 Generic_Virtual sun4v sparc sun4v

Configured to run FTP

root@solaris9:/ # grep ftp /etc/inetd.conf
# ftp telnet shell login exec tftp finger printer
# TFTPD – tftp server (primarily used for booting)
#tftp dgram udp6 wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot
ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd -l

But it was not working

root@solaris9:/ # ps -ef | grep ftp
root 10137 13230 0 13:31:28 pts/4 0:00 grep ftp

root@solaris9:/ # ps -ef | grep inet
root 12579 13230 0 13:31:34 pts/4 0:00 grep inet
root 1325 12833 0 Mar 12 ? 0:00 /usr/sbin/inetd -s start

Tried to kill -HUP but still not working

root@solaris9:/ # kill -HUP 1325

root@solaris9:/ # netstat -an | grep 21 | grep LISTEN
142.40.236.158.1521 *.* 0 0 1048576 0 LISTEN
142.40.236.10.1521 *.* 0 0 1048576 0 LISTEN

Stopped and started inetsvc

root@solaris9:/ # /etc/init.d/inetsvc stop
root@solaris9:/ # /etc/init.d/inetsvc start

root@solaris9:/ # ps -ef | grep inet
root 12098 12833 0 13:49:02 ? 0:00 /usr/sbin/inetd -s
root 15358 3734 0 13:49:05 pts/4 0:00 grep inet

FTP working again

root@solaris9:/ # netstat -an | grep 21 | grep LISTEN
142.40.236.158.1521 *.* 0 0 1048576 0 LISTEN
142.40.236.10.1521 *.* 0 0 1048576 0 LISTEN
*.21 *.* 0 0 1048576 0 LISTEN
*.21 *.* 0 0 1048576 0 LISTEN

Advertisements

HP DDMI exit: rc = 6

root@linux:~ # /opt/hps/inventory/bin/HPS_SCANNER_linux-x86 -log:debug

HP Discovery and Dependency Mapping Inventory v9.32.003 Build 1130 linux-x86
(C) Copyright 1993-2015 Hewlett-Packard Development Company, L.P.
Includes GNU ISO C++ Library, GNU GCC Shared Support Library and GNU C Library, Copyright (C) 1987-2008 Free Software Foundation, Inc. released under LGPL, see the file COPYING.LIB for license details.

+ reading scanner parameters
Debug: Scanner PID: 16496
Debug: Scanner Stage: Initialization
Debug: wxString OSCreateTempFileName(const wxString&): Creating temp file in /tmp.
Debug: CSingleInstanceChecker::CSingleInstanceChecker(const wxString&): successfully created temp file: sclEnLody
end of scan
Debug: Scanner Status: end of scan
exit: rc = 6
Debug: Scanner Status: exit: rc = 6
Debug: Scanner Exitcode: 6
Debug: Scanner Stage: Exit
Debug: void CScannerApp::RemoveFileNameFromDeleteList(const wxString&, bool): path: /tmp/edscan.lck, delete? no
Debug: void CScannerApp::RemoveFileNameFromDeleteList(const wxString&, bool): path: , delete? yes
Debug: Stop to update scanner status!

Stopping DDMI

root@linux:~ # /etc/init.d/lw_agt stop
Checking status of Light Weight Agent:
LW Agent Is Running 11245
Stopping LW AGT…pid 11245
LW AGT Stopped

Check any processes called HPS_Execute_DDMI and HPS_SCANNER. Terminate them

root@linux:~ # ps -ef | grep HPS_Execute_DDMI
root 29866 28462 0 10:32 pts/0 00:00:00 grep HPS_Execute_DDMI

root@linux:~ # ps -ef | grep HPS_SCANNER
root 15424 1 0 Jan10 ? 00:00:09 /opt/hps/inventory/bin/HPS_SCANNER_linux-x86 -p:/var/log/hps/inventory -cfg:/opt/hps/inventory/bin/ddmi-unix-sw.cxz -l:/opt/hps/inventory/temp/local.xsf
root 16608 1 0 2015 ? 00:00:09 /opt/hps/inventory/bin/HPS_SCANNER_linux-x86 -p:/var/log/hps/inventory -cfg:/opt/hps/inventory/bin/ddmi-unix-sw.cxz -l:/opt/hps/inventory/temp/local.xsf
root 29872 28462 0 10:32 pts/0 00:00:00 grep HPS_SCANNER
root@linux:~ # kill -9 16608
root@linux:~ # kill -9 15424

Remove the lock file and start the agent

root@linux:~ # rm /tmp/edscan.lck

root@linux:~ # /etc/init.d/lw_agt start
Starting LW AGT….
Checking status of Light Weight Agent:
LW Agent Is Running 29884

HPOM UXMON: kernel table THRESH_NP is over threshold 80%. Use sar or other available tool tocheck out.

Node : hpux.setaoffice.com
Node Type : Sun SPARC (HTTPS)
Severity : warning
OM Server Time: 2015-10-06 14:24:46
Message : UXMON: kernel table THRESH_NP is over threshold 80%. Use sar or other available tool tocheck out.
Msg Group : OS
Application : ktsmon
Object : THRESH_NP
Event Type :
not_found

Instance Name :
not_found

Instruction : A kernel table is close to be exhausted, this might impact
in the system. Please, check this and take actions if needed.

If the threshold set is too low then increase it in the kts_mon.cfg file

There were several scripts that were being executed by the user application

root@hpux:/ # ps -ef | grep respawn | wc -l
8142

I killed several of them and the load decreased.

root@hpux:/ # uptime
9:33am up 101 day(s), 10:58, 2 users, load average: 2062.32, 3526.27, 3627.53

root@hpux:/ # uptime
9:36am up 101 day(s), 11:01, 2 users, load average: 71.39, 1788.84, 2893.45

root@hpux:/ # uptime
9:38am up 101 day(s), 11:03, 3 users, load average: 13.54, 1261.00, 2575.33

root@hpux:/ # uptime
9:46am up 101 day(s), 11:11, 4 users, load average: 0.63, 254.14, 1509.83

Asked to restart the application because I didn’t know if it killed some important script or not

%d bloggers like this: