Advertisements

Tag Archives: ps

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

Advertisements

Solaris ps: show processes and sort by CPU consumption

Here are the options that you can use with ps

root@solaris:/ # ps -eo
ps: option requires an argument — o
usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ]
[ -u userlist ] [ -U userlist ] [ -G grouplist ]
[ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]
‘format’ is one or more of:
user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid ctid
pri opri pcpu pmem vsz rss osz nice class time etime stime zone zoneid
f s c lwp nlwp psr tty addr wchan fname comm args projid project pset

If I use user,pid,ppid,stime,tty,pcpu,pmem,comm the header is shown below

root@solaris:/ # ps -eo user,pid,ppid,stime,tty,pcpu,pmem,comm | head -1
USER PID PPID STIME TT %CPU %MEM COMMAND

I have sorted the colum by %CPU column

root@solaris:/ # ps -eo user,pid,ppid,stime,tty,pcpu,pmem,comm | sort -n -k6 | tail
oracle 93 9842 nov_09 ? 0.1 1.1 /usr/software/oracle/product/j2ee_10131/jdk/bin/java
oracle 1973 9842 nov_10 ? 0.1 1.7 /usr/software/oracle/product/j2ee_10131/jdk/bin/java
oracle 6417 9842 nov_02 ? 0.1 0.6 /usr/software/oracle/product/j2ee_10131/jdk/bin/java
oracle 9842 4351 ago_13 ? 0.1 0.1 /usr/software/oracle/product/j2ee_10131/opmn/bin/opmn
oracle 21623 9842 ago_13 ? 0.1 1.4 /usr/software/oracle/product/j2ee_10131/jdk/bin/java
oracle 21640 9842 ago_13 ? 0.1 0.4 /usr/software/oracle/product/j2ee_10131/jdk/bin/java
oracle 24709 9842 nov_11 ? 0.1 1.5 /usr/software/oracle/product/j2ee_10131/jdk/bin/java
root 2379 1599 ago_13 ? 0.7 0.0 /usr/sbin/nscd
producao 5300 4425 ago_13 ? 2.0 0.0 xcomtp
oracle 8840 9842 ago_14 ? 77.3 3.3 /usr/software/oracle/product/j2ee_10131/jdk/bin/java

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

Node : solaris.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@solaris:/ # ps -ef | grep respawn | wc -l
8142

I killed several of them and the load decreased.

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

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

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

root@solaris:/ # 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: