From: Tennis S. <ten...@ya...> - 2013-03-12 23:54:58
|
Thanks! On Tue, Mar 12, 2013 at 2:58 PM, Sharon Lucas <lu...@us...> wrote: > If a STAF service is not installed, submitting a request to that service > will return RC 2 (Unknown service). So, if you submit any request to the > HTTP service and it returns RC 2, then you know that no service with the > name HTTP is registered on that machine. For example: > > C:\>STAF local HTTP HELP > Error submitting request, RC: 2 > Additional info > --------------- > HTTP > > Another way is to submit a QUERY SERVICE request to the SERVICE service. > It will return RC 48 (Does not exist) if the service is not registered on > that machine. For example: > > C:\>STAF local SERVICE QUERY SERVICE HTTP > Error submitting request, RC: 48 > Additional info > --------------- > HTTP > > -------------------------------------------------------------- > Sharon Lucas > IBM Austin, lu...@us... > (512) 286-7313 or Tieline 363-7313 > > > > > From: Tennis Smith <ten...@ya...> > To: sta...@li..., > Date: 03/12/2013 04:45 PM > Subject: [staf-users] Best Way To Detect Service Is Not Installed? > ------------------------------ > > > > Hi, > > I have a couple instances where the http service is needed, but may not be > installed. What's the best way to detect a service is not present? > > I assume "staf local help list service HTTP" would work. But is that the > best method? > > -- > Tks, > -Tennis > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > staf-users mailing list > sta...@li... > https://lists.sourceforge.net/lists/listinfo/staf-users > > -- Tks, -Tennis |