Re: [zones-discuss] zone state change agent

2010-02-27 Thread Frank Batschulat (Home)
On Sat, 27 Feb 2010 17:01:54 +0100, Robert Bailey wrote: > Using Dtrace to monitor non-global zones > Current defined zone states from zone.h > /* zone_status */ > typedef > enum { > ZONE_IS_UNINITIALIZED = 0, > ZONE_IS_READY, > ZONE_IS_BOOTING, > ZONE_IS_RUNNING, > ZONE_IS_SHUTTING_DOWN, > ZONE_

Re: [zones-discuss] zone state change agent

2010-02-27 Thread Robert Bailey
You could also monitor local and use an agent to check status of a log. I've done this for a VCS Agent Script to monitor states. Got the code from somewhere on the net, a while ago. With the boot cycle of NGZ's being so fast, it was too easy for a simple zoneadm monitor script to miss a change

Re: [zones-discuss] zone state change agent

2010-02-24 Thread Menno Lageman
On 02/25/10 00:27, Jim Mauro wrote: IKOAC (I know of a customer) that would like to write an agent that runs in the global zone and detects state changes in the non-global zones on the system. Anyone listening been down this road??? Some years ago I used a bit of DTrace to monitor zone state

Re: [zones-discuss] zone state change agent

2010-02-24 Thread Jason King
I will note that the sysevent info is defined in /usr/include/sys/zone.h, so they could (with all the usual caveats that it could change in the future, etc.) use that (though on a tangent -- are there _any_ documented sysevents? all i've ever found is the subsystem itself is documented, but none o

Re: [zones-discuss] zone state change agent

2010-02-24 Thread Dennis Clarke
> IKOAC (I know of a customer) that would like to write an > agent that runs in the global zone and detects state changes > in the non-global zones on the system. > > Anyone listening been down this road??? Can you define "state" change ? I am guessing you mean a change in some foo of type zone_

Re: [zones-discuss] zone state change agent

2010-02-24 Thread Joseph Balenzano
Yes, I believe the SunMC container manager (and I assume OpsCenter) did this by using a sysevent which is private :-) Would have to use polling otherwise. I'm not a big expert with SNMP, but if SNMP is running in a zone, will they get a trap if the zone changes state (i.e. shutdowns) ? BTW, th

[zones-discuss] zone state change agent

2010-02-24 Thread Jim Mauro
IKOAC (I know of a customer) that would like to write an agent that runs in the global zone and detects state changes in the non-global zones on the system. Anyone listening been down this road??? Thanks, /jim ___ zones-discuss mailing list zones-disc