手册页部分 1M: 系统管理命令

退出打印视图

更新时间: 2014 年 7 月
 
 

locator(1M)

名称

locator - location indicator control

用法概要

 /usr/sbin/locator [-f | -n]

描述

The locator command sets or queries the state of the system locator if such a device exists.

Without options, the locator command reports the current state of the system.

The privileges required to use this command are hardware dependent. Typically, only the super user can get or set a locator.

选项

The following options are supported:

–f

Turns the locator off.

–n

Turns the locator on.

示例

示例 1 Using the locator Command on a Platform Which Has a System Locator LED

When issued on a platform which has a system locator LED, the following command turns the locator on:


# locator –n
# locator
The 'system' locator is on

示例 2 Using the locator Command on a Platform Which Does Not Have a System Locator LED

When issued on a platform which does not have a system locator LED, the following command attempts to turn the locator on. The command returns an error message.


# locator –n
'system' locator not found

退出状态

The following exit values are returned:

0

Successful completion.

1

Invalid command line input.

2

The requested operation failed.

属性

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/picl

另请参见

attributes(5)