System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable evweb for ever?

SOLVED
Go to solution
Marilia
Occasional Advisor

How to enable evweb for ever?

Hello Experts,

I am using the following command to get power supply alarm information:

# evweb eventviewer -L

But this command stopped working and I wonder if I can enable it forever.

Thanks,
Marilia
6 REPLIES
Shibin_2
Honored Contributor
Solution

Re: How to enable evweb for ever?

What is your subscription details?

#evweb subscribe -L


Is your sfmdb running? You my restart it and try.

# /sbin/init.d/sfmdb stop

# /sbin/init.d/sfmdb start
Regards
Shibin
Marilia
Occasional Advisor

Re: How to enable evweb for ever?

Hello!

I am sorry for taking so long to answer.
But I still have the problem. This is a production machine so I have to be very carefull, what does these commands do:

# /sbin/init.d/sfmdb stop

# /sbin/init.d/sfmdb start

I am not sure if I can run them anytime or should I ask for a maintenance window.
The thing is that # evweb eventviewer -L
is not working for all the power supply events (on/off)

The first time I unplugged the power supply (23:21) I checked the "evweb eventviewer -L " command and got the corresponding power information below.

EvArchNo Severity Event # Event Category Archive Time Summary
========= =========== ============== ============== =================== ==============
87 Information 152 System Power 2011-01-21 23:30:32 Power suppl...
86 Information 143 System Power 2011-01-21 23:30:31 Power suppl...
85 Warning 137 System Power 2011-01-21 23:21:04 Power suppl...
84 Warning 153 System Power 2011-01-21 23:21:03 Power suppl...

After I plugged and unplugged 4 times (until 01:18) same information was displayed (no update regarding the new power supply events was displayed), as you can see also on log_cmd.txt.

EvArchNo Severity Event # Event Category Archive Time Summary
========= =========== ============== ============== =================== ==============
87 Information 152 System Power 2011-01-21 23:30:32 Power suppl...
86 Information 143 System Power 2011-01-21 23:30:31 Power suppl...
85 Warning 137 System Power 2011-01-21 23:21:04 Power suppl...
84 Warning 153 System Power 2011-01-21 23:21:03 Power suppl...


The questions are:

1) Why the "evweb eventviewer -L" command is not showing all the power suplly events?

2) why log keeps the same information?
And if this is the normal behaviour, then: log shouldn't be clear every 5 minutes in order to avoid to have same alarm even when is cleared?


Thanks and Regards,






Jose Mosquera
Honored Contributor

Re: How to enable evweb for ever?

Hi,

If the file /sbin/init.d/sfmdb exists you can start or stop the service.
By other way, they are customized by sourcing in configuration files found in the /etc/rc.config.d directory. These configuration files contain variables that you can set.
Usually a main variable setting is available in configuration files found in the /etc/rc.config.d directory. In any case, if you can enable or disable the service executing /sbin/init.d/sfmdb start|stop thats means that this main variable setting is on. Also could be that you needs create into /sbin/init.d a file with the following content:
#!/sbin/sh

RVAL=0
case $1 in
start_msg)
echo "Starting evweb Server"
;;
'start')
/sbin/init.d/sfmdb start
;;
'stop')
/sbin/init.d/sfmdb stop
;;
*)
echo "usage: $0 {start|stop}"
RVAL=1
;;
esac
exit $RVAL

Finally, from /sbin/rc3.d you must create a symbolic link name with "S" prefix (Start) that aims to /sbin/init.d/ to start procedure, then in /sbin/rc0.d you must create a similar symbolic link with "K" prefix (Kill) to stop procedure, this is optional because when the server go down this route definitions will be off.

You can check this brief document:
http://www.unixhub.com/docs/hpux/hpux_boot.html
or read hp-ux online manuals:
#man rc

Rgds.
Marilia
Occasional Advisor

Re: How to enable evweb for ever?

Hello Jose,

I will check if /sbin/init.d/sfmdb exists.

But I still don't know if you understood my problem, maybe is my fault. The "evweb eventviewer -L" command works intermittent.

Sometimes "evweb eventviewer -L" command prints out all the events when I removed/reconnect the power supply and sometimes it doesn't print out.

Kind Regards,
Marilia
Marilia
Occasional Advisor

Re: How to enable evweb for ever?

Hello,

sfmdb is running but evweb command is not working. What else could I do?

bash-4.1$ ps -eaf | grep sfmdb
sfmdb 1435 1432 0 Nov 4 ? 0:01 postgres: stats buffer process
sfmdb 1436 1435 0 Nov 4 ? 0:14 postgres: stats collector process
sfmdb 1432 1 0 Nov 4 ? 1:04 /opt/psb/db/pgsql/bin/postmaster -i -D /var/opt/psb/db/pgsql
sfmdb 1660 1432 0 Nov 4 ? 0:01 postgres: sfmdb LOGARCHDB [local] idle
sfmdb 1630 1432 0 Nov 4 ? 0:01 postgres: sfmdb LOGDB [local] idle
sfmdb 20230 1432 0 Nov 17 ? 1:06 postgres: sfmdb evweb [local] idle
sfmdb 20294 1432 0 Nov 17 ? 0:01 postgres: sfmdb evweb [local] idle
sfmdb 1649 1432 0 Nov 4 ? 0:01 postgres: sfmdb LOGDB [local] idle
sfmdb 21935 1432 0 Nov 17 ? 0:05 postgres: sysadmin cer [local] idle
sfmdb 23727 1432 0 Nov 17 ? 0:01 postgres: sfmdb SASPROVDB [local] idle
sfmdb 20232 1432 0 Nov 17 ? 1:11 postgres: sfmdb evweb_history [local] idle
sfmdb 2018 1432 0 Nov 4 ? 0:08 postgres: sysadmin cer [local] idle
sfmdb 23726 1432 0 Nov 17 ? 0:01 postgres: sfmdb FCPROVDB [local] idle
sfmdb 23725 1432 0 Nov 17 ? 0:01 postgres: sfmdb DISKPROVDB [local] idle
sfmdb 23728 1432 0 Nov 17 ? 0:01 postgres: sfmdb RAIDSAPROVDB [local] idle

Please check attachment.
Marilia
Occasional Advisor

Re: How to enable evweb for ever?

Hello,

Any feedback? Do you need more information?

Please let me know,

Regards,
Marilia