cancel
Showing results for 
Search instead for 
Did you mean: 

How to tell if nbpem is suspended?

Anonymous
Not applicable
I have fallen into the trap of sometimes using 'nbpemreq -suspend_scheduling' and yup forgot to resume scheduling.
I use this to perform some maintenance or create a quiet period of no interaction.

But from the bpps -a output you still see nbpem processes while in suspension.
The -terminate option does kill nbpem process.
So is they a status/flag you can check. As I might incorporate this into a script to run to remind me if I forget to resume.

nbpemreq -Q gives these extra options for controlling Policy Execution Manager

Nice to see they still use the -Q option which used to hide undocumented and unsupported options

Thanks

NB 6.5.3.1 (Master: HP-UX 11.23 IA-64)


1 ACCEPTED SOLUTION

Accepted Solutions

scorpy_582
Level 6
Hey Stuart,

Sorry about that, i just copy pasted from the bookmarks (my bad)..

This is how you can check if the scheduling is suspended or active:

nbpemreq -subsystems screen all

This will give you if the scheduling is enabled or disabled.

====================
bash-3.00# ./nbpemreq -subsystems screen all | grep -i Scheduling
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 2009/05/06 08:01:37 (1241577097)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
23 Scheduling Gatekeeper
Scheduling enabled
bash-3.00#
bash-3.00# ./nbpemreq -suspend_scheduling
bash-3.00# ./nbpemreq -subsystems screen all | grep -i Scheduling
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 2009/05/06 08:01:37 (1241577097)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
23 Scheduling Gatekeeper
Scheduling disabled via external command
bash-3.00#

=================



It works for me in 6.5.3. you might want to check for your version.

View solution in original post

5 REPLIES 5

scorpy_582
Level 6
Hi Stuart,

I guess this is what you looking for:

http://support.veritas.com/docs/315446

So if you want to script it, you can grep for the following line:

"Scheduling disabled via external command"

Anonymous
Not applicable
Nothing behind that link for me scorpy

scorpy_582
Level 6
Hey Stuart,

Sorry about that, i just copy pasted from the bookmarks (my bad)..

This is how you can check if the scheduling is suspended or active:

nbpemreq -subsystems screen all

This will give you if the scheduling is enabled or disabled.

====================
bash-3.00# ./nbpemreq -subsystems screen all | grep -i Scheduling
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 2009/05/06 08:01:37 (1241577097)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
23 Scheduling Gatekeeper
Scheduling enabled
bash-3.00#
bash-3.00# ./nbpemreq -suspend_scheduling
bash-3.00# ./nbpemreq -subsystems screen all | grep -i Scheduling
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
Scheduling calculation made at: 2009/05/06 08:01:37 (1241577097)
Scheduling calculation made at: 0:00:00 (0) (inherited from parent calculation time)
23 Scheduling Gatekeeper
Scheduling disabled via external command
bash-3.00#

=================



It works for me in 6.5.3. you might want to check for your version.

Anonymous
Not applicable
Have got the output.
That will do for me.
Big thanks.

bcblake
Level 4
Partner
Tried it on one master I have and got this:

# nbpemreq -subsystems screen all
Maximum output size exceeded, see log


So I played around with -subsystems screen list, and found subsystem 23 looks like the one you would want to see.

Then you can just view that subsystem:

nasolbkp009# nbpemreq -subsystems screen 23
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Policy Execution Manager Internal State Display
Version: 6.5.0000.0000 (6.5.3.1)
Time: 2009/08/18 13:24:21 (1250616261)
System: SunOS, master1, 5.10, Generic_137111-08, sun4v
ACE Timers (Required): 18
ACE Timers (Max configured): 44
Threads (non-reactor): 5
Threads (reactor min): 5
Threads (reactor optimal): 19
Threads (reactor actual): 10
Threads (Max PEM configured): 15
Shutdown: Not in progress
-------------------------------------------------------------------------------
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23 Scheduling Gatekeeper
Loaded: Yes
ID:a2b930 (refs: 15) (Lock ID:a683e0 (refs: 1))
Requested to shutdown: No
Scheduling enabled
Session active (14)
Open session (start script run but end script has not)
Using process manager ID:a29e50 (refs: 3) (Lock ID:a29fd8 (refs: 1))
Media cleanup manager ID:a29c00 (refs: 4) (Lock ID:a27588 (refs: 1))
Last session start script run 2009/06/26 10:00:00 (1246024800 usec=57743)
Last session end script run 2009/06/26 09:45:16 (1246023916 usec=332362)
Last exit script run 2009/08/18 13:04:53 (1250615093 usec=323950)
Successful user backup count: 0
Successful schedule backup count: 71567
Successful manual backup count: 4987
Active queue size: 0 (last change: 0:00:00 (0), no peak since 2009/08/18 13:23:35 (1250616215 usec=999033))
Suspended queue size: 0 (last change: 0:00:00 (0), no peak since 2009/08/18 13:23:35 (1250616215 usec=999169))
Catalog backup task history: 2
  CatBackup Task
  User backup cnt: 0
  Scheduled backup cnt: 0
  Manual backup cnt: 1
  Work cnt: 0
  Task completed with status EC_nothing_todo (200) at 2009/06/26 09:45:16 (1246023916 usec=304027)
  Active subtask count: 0
  ======================================
  CatBackup Task
  User backup cnt: 0
  Scheduled backup cnt: 2338
  Manual backup cnt: 154
  Work cnt: 0
  Task completed with status EC_nothing_todo (200) at 2009/06/26 09:23:15 (1246022595 usec=342230)
  Active subtask count: 0



And then on a master with scheduling suspended:

nasolbkp109# nbpemreq -subsystems screen 23
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Policy Execution Manager Internal State Display
Version: 6.5.0000.0000 (6.5.3.1)
Time: 2009/08/18 13:25:24 (1250616324)
System: SunOS, master2, 5.10, Generic_127127-11, sun4v
ACE Timers (Required): 18
ACE Timers (Max configured): 44
Threads (non-reactor): 5
Threads (reactor min): 5
Threads (reactor optimal): 19
Threads (reactor actual): 10
Threads (Max PEM configured): 15
Shutdown: Not in progress
-------------------------------------------------------------------------------
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23 Scheduling Gatekeeper
Loaded: Yes
ID:a3df28 (refs: 11) (Lock ID:a38310 (refs: 1))
Requested to shutdown: No
Scheduling disabled via external command
Session active (2)
Open session (start script run but end script has not)
Using process manager ID:a3c5f0 (refs: 3) (Lock ID:a3c778 (refs: 1))
Media cleanup manager ID:a3bb98 (refs: 4) (Lock ID:a39c10 (refs: 1))
Last session start script run 2009/08/14 11:51:26 (1250265086 usec=840897)
Last session end script run 0:00:00 (0)
Last exit script run 2009/08/18 11:12:21 (1250608341 usec=41193)
Successful user backup count: 2932
Successful schedule backup count: 3368
Successful manual backup count: 319
Active queue size: 0 (last change: 0:00:00 (0), no peak since 2009/08/18 13:22:51 (1250616171 usec=931220))
Suspended queue size: 8 (last change: 0:00:00 (0), no peak since 2009/08/18 13:22:51 (1250616171 usec=931353))
Suspended Operation: ID:1f4d760 (refs: 3) (Lock ID:16cdc40 (refs: 2))
Suspended Operation: ID:1f21fa8 (refs: 3) (Lock ID:10b5990 (refs: 2))
Suspended Operation: ID:112a308 (refs: 3) (Lock ID:109ddf8 (refs: 2))
Suspended Operation: ID:d2cbd0 (refs: 3) (Lock ID:197f870 (refs: 3))
Suspended Operation: ID:1a295c0 (refs: 3) (Lock ID:197f870 (refs: 3))
Suspended Operation: ID:f71370 (refs: 3) (Lock ID:17ef250 (refs: 2))
Suspended Operation: ID:1654e10 (refs: 3) (Lock ID:16f4e48 (refs: 2))
Suspended Operation: ID:d4c160 (refs: 3) (Lock ID:d98d70 (refs: 2))
Catalog backup task history: 0


And this is with 6.5.3.1.

B-