Operating System - HP-UX
1834538 Members
2798 Online
110069 Solutions
New Discussion

how to fix "SelClass currently disabled" problem when using "cstm"

 
moonzh
Occasional Advisor

how to fix "SelClass currently disabled" problem when using "cstm"

I program shell script to get system infomation. I use
echo "scl type processor;info;wati;infolog" | /usr/sbin/cstm >/tmp/cpuinfo

to get cpu information. When this shell script is run by normal user, /tmp/cpuinfo shows "--SelClass currently disabled--". When run by root, it is OK. How to fix it?
3 REPLIES 3
KCS_1
Respected Contributor

Re: how to fix "SelClass currently disabled" problem when using "cstm"

you can restart diagnostic daemon.

under follow instuction:

#(root)ps -ef|grep diag*

#kill -9 process no.(diagnostic)

#/sbin/init.d/diagnostic start

after, start you wanna job..


have a nice day~



Easy going at all.
Michael Tully
Honored Contributor

Re: how to fix "SelClass currently disabled" problem when using "cstm"

It looks as though the daemon called 'diagmond' is either not running or has failed. To check run this

# ps -ef | grep diagmond
root 1279 1 0 Jul 26 ? 0:23 /usr/sbin/stm/uut/bin/sys/diagmond

Do not under any circumstances do a 'kill -9' on any daemon unless it will not terminate normally by using the shutdown script (/sbin/init.d/...)

To start use '/sbin/init.d/diagnostic start'
Anyone for a Mutiny ?
S.K. Chan
Honored Contributor

Re: how to fix "SelClass currently disabled" problem when using "cstm"

Have you try running cstm with the -f option by providing the file that has the cstm commands. For example .. (say file /tmp/proc.stm) has this in it ..
SelClass type "Processor" qualifier "All"
info
wait
infolog
done
quit
ok
Now just run it like this ..
$ /usr/sbin/cstm -f /tmp/proc.stm