Ingvar,

Individual processes don't have any state attached to them through AMF by 
definition. 

However you could monitor the presence state of the SU which should become 
un-instantiated when all its components are terminated successfully which means 
all processes belonging to the components must have been terminated 
successfully also.

The alternative approach would be to use the saAmfPmStart() API for individual 
processes which I wouldn't recommend.

Thanks
Sayan

> -----Original Message-----
> From: Ingvar Bergström [mailto:[EMAIL PROTECTED] 
> Sent: Monday, January 21, 2008 4:09 AM
> To: Saha Sayandeb-G19428
> Subject: RE: [Users] Howto terminate component processes
> 
> Hi,
> setting the ncsSUTermState to true/false seems to work fine. 
> But how to see that the processes actually has been 
> terminated? Is it possible to monitor some presence state 
> attribute or similar in OpenSAF?
> I must be sure that the processes are terminated before 
> proceeding (in my script), and I want to use OpenSAF services 
> not Unix ps command.
> 
> Regards
> /Ingvar
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Saha 
> Sayandeb-G19428
> Sent: den 16 januari 2008 17:55
> To: Ingvar Bergström
> Cc: [email protected]
> Subject: Re: [Users] Howto terminate component processes
> 
> Ingvar,
>  
> Indeed OpenSAF doesn't support LOCK_INSTANTIATE. The 
> equivalent operation in OpenSAF is achieved by setting the 
> MIB object ncsSUTermState in the NCS-AVSV-MIB. The 
> description of this object reads as:
> When this object is set to true, the SU will be terminated 
> and not instantiated till set to false. Default value is 
> false. This objects can be set to true only if  
> saAmfSUAdminState is locked.
> 
> Sayan
> 
> 
> ________________________________
> 
>       From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Ingvar Bergström
>       Sent: Wednesday, January 16, 2008 2:19 AM
>       To: [email protected]
>       Subject: [Users] Howto terminate component processes
>       
>       
> 
>       Hi, 
>       I want to terminate the application components 
> processes on a LOCK'ed node. 
>       In newer AMF models there is two administrative 
> operations on e.g. a node, LOCK and LOCK_INSTANTIATE 
>       where the later operation will terminate the processes 
> on the locked node. 
> 
>       In OpenSAF only the LOCK operation exist. Howto perform 
> a LOCK_INSTANTIATE? 
> 
>       Regards 
>       Ingvar 
> 
> 
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit 
> http://www.messagelabs.com/email 
> ______________________________________________________________________
> _______________________________________________
> Users mailing list
> [email protected]
> http://list.opensaf.org/maillist/listinfo/users
> 

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
_______________________________________________
Users mailing list
[email protected]
http://list.opensaf.org/maillist/listinfo/users

Reply via email to