如何通过Windows命令行确定ALBD服务是否正在运行? [英] How do I determine via Windows command line whether ALBD service is running?

查看:168
本文介绍了如何通过Windows命令行确定ALBD服务是否正在运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,我知道如何启动和停止ALBD,但是如何确定它当前是否正在运行?
这是我想放在Perl或DOS脚本中的东西,因此它必须是非GUI解决方案。

OK, I know how to start and stop ALBD, but how do I determine whether it is currently running? This is something I want to put in a Perl or DOS script, so it would have to be a non-GUI solution.

推荐答案

请参阅此技术说明 从以下位置启动和停止ClearCase: Windows命令行,请注意, albd 不是您应该检查的唯一服务

如果您在Windows上无法启动albd,请参见 解决Windows上的ALBD启动失败

See this technote "Start and stop ClearCase from the Windows command line", and note that albd isn't the only service you should be checking.
And if you have trouble starting albd on Windows, see "Troubleshooting ALBD startup failures on Windows".

CLEARCASE

CLEARCASE


ClearCase服务器进程(位置代理,Lock Manager和Credentials Manager服务)可以从命令行启动和停止;

The ClearCase server processes (Location Broker, Lock Manager, and Credentials Manager services) can be started and stopped from the command line; however, the MVFS is loaded directly into the kernel and cannot be shut down from the command line.

要重新加载MVFS,请重新启动主机;否则,将MVFS直接加载到内核中,并且无法从命令行关闭。有关多版本文件系统(MVFS)的更多详细信息,请参见技术说明1230196。

To reload the MVFS, restart the host; see technote 1230196 for more details About the MultiVersion File System (MVFS).

运行以下命令以查看主机上正在运行的ClearCase ALBD,Lock Manager和Credentials Manager服务:

Run the following command to see ClearCase ALBD, Lock Manager, and Credentials Manager services are running on the host:


>NET START



程序列表将在屏幕上滚动,并且您要查找以下条目的派生形式:

A list of programs will scroll on the screen, and you want to look for a derivative of the following entries:


Atria Location Broker
IBM Rational Lock Manager
Rational Cred Manager



要启动/停止 ALBD LOCKMGR CCCREDMGR 服务,发出以下命令:

To start/stop the ALBD, LOCKMGR, and CCCREDMGR services, issue the following commands:


NET START(or STOP) ALBD
NET START(or STOP) LOCKMGR
NET START(or STOP) CCCREDMGR


< hr />

请注意,那些净启动命令可能需要管理权限

请参见此线程


我们有非管理员CC用户。因此,他们可以启动和停止CC,当以管理员身份安装CC时,我们还运行一些命令来更改CC服务,以允许非管理员启动和停止CC。这是蝙蝠文件中进行服务更改的命令。曾几何时,我了解service_opts字符串的作用。

We have non-administrator CC users. So they can start and stop CC, when they have CC installed as admin we also run some commands the change the CC services to allow non-admins to start and stop them. Here are the commands out of the bat file that makes the service changes. Once upon a time I understood what the service_opts string did.


@ECHO.
@ECHO Purpose: Configure ClearCase Services for non-Admin rights management

set service_opts="D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)"

@ECHO.
@ECHO ++ Processing ALBD service
SC SDSET Albd %service_opts%
SC config Albd start= demand
@ECHO.
@ECHO ++ Processing Credentials Manager service
SC SDSET cccredmgr %service_opts%
SC config cccredmgr start= demand
@ECHO.
@ECHO ++ Processing Lock Manager service
SC SDSET LockMgr %service_opts%
SC config LockMgr start= demand

@ECHO.
@ECHO ++ Processing MVFS service
SC SDSET mvfs %service_opts%
SC config mvfs start= auto

@ECHO.
@ECHO The following ClearCase services:
@ECHO ALBD
@ECHO Cred Manager (CCCREDMGR)
@ECHO Lock Manager (LockMGR)
@ECHO MVFS
@ECHO have been configured to allow non-Administrator privilege users
@ECHO to start and stop these services
@ECHO.
@ECHO You must reboot this PC before attempting to start or
@ECHO stop the ClearCase services without being an Administrator
@ECHO.
@PAUSE




OP uhclem 注释, SDSET Albd%service_opts%部分在Microsoft技术说明 ee ":


As the OP uhclem comments, the SDSET Albd %service_opts% part is explained in Microsoft tech note "ee":


安全描述符定义语言( SDDL DACL ACE 字符串安全描述符组件

安全描述符字符串格式示例,每个安全描述符字符串中的 ACE ed放在括号中。 ACE 的字段按以下顺序排列,并用分号(; )分隔。

As shown in the Security Descriptor String Format examples, each ACE in a security descriptor string is enclosed in parentheses. The fields of the ACE are in the following order and are separated by semicolons (;).

注意:访问控制条目有其他格式( ACE 和条件 ACE

对于条件 ACEs ,请参见安全描述符定义语言有条件的 ACEs

Note: There are alternate formats for access control entries (ACEs) and conditional ACEs.
For conditional ACEs, see Security Descriptor Definition Language for Conditional ACEs.


ace_type;ace_flags;rights;object_guid;inherit_object_guid;account_sid; resource_attribute

这篇关于如何通过Windows命令行确定ALBD服务是否正在运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆