scadm - administer System Controller (SC)
/usr/platform/platform-name/sbin/scadm subcommand [option] [argument]...
The scadm utility administers the System Controller (SC). This utility allows the host server to interact with the SC.
The scadm utility must be run as root.
The interface, output, and location in the directory hierarchy for scadm are uncommitted and might change.
platform-name is the name of the platform implementation. Use the uname -i command to identify the platform implementation. See uname(1).
The scadm utility has a number of subcommands. Some subcommands have specific options and arguments associated with them. See SUBCOMMANDS, OPTIONS, OPERANDS, and USAGE.
Subcommands immediately follow the scadm command on the command line, and are separated from the command by a SPACE.
The following subcommands are supported
consolehistory
The optional -a argument specifies that the entire console log file be displayed.
It is possible for the SC to fill this log more quickly than the consolehistory subcommand can read it. This means that it is possible for some log data to be lost before it can be displayed. If this happens, the consolehistory subcommand displays "scadm: lost <number> bytes of console log data" in the log output, to indicate that some data was lost.
The format for the consolehistory subcommand is:
scadm consolehistory [-a]
The consolehistory subcommand is not available on all platforms. If this command is used on a platform that does not support it, scadm prints this message:
scadm: command/option not supported
and exit with non-zero status.
date
The format for the date subcommand is:
scadm date
download
There are two parts to the firmware, the boot monitor and the main image.
By default, The scadm command's download programs the main firmware image. The boot argument selects programming of the boot monitor.
The format for the download subcommand is:
scadm download [boot] file
fruhistory
The optional -a argument specifies that the entire fru log file be displayed.
It is possible for the SC to fill this log more quickly than the fruhistory subcommand can read it. This means that it is possible for some log data to be lost before it can be displayed. If this happens, the fruhistory subcommand displays "scadm: lost <number> bytes of fru log data" in the log output, to indicate that some data was lost.
The format for the fruhistory subcommand is:
scadm fruhistory [-a]
The fruhistory subcommand is not available on all platforms. If this command is used on a platform which does not support it, scadm prints this message:
scadm: command/option not supported
and exit with non-zero status.
help
The format for the help subcommand is:
scadm help
loghistory
It is possible for the SC to fill this log more quickly than the loghistory subcommand can read it. This means that it is possible for some log data to be lost before it can be displayed. If this happens, the loghistory subcommand displays "scadm: lost <number> events" in the log output, to indicate that some data was lost.
The format for the loghistory subcommand is:
scadm loghistory [-a]
resetrsc
The format for the resetrsc subcommand is:
scadm resetrsc [-s]
send_event
The format for the send_event subcommand is:
scadm send_event [-c] "message"
set
Examples of SC configuration variables include: SC IP address netsc_ipaddr and SC Customer Information sc_customerinfo. See the output from the scadm help command for a complete list of SC configuration variables.
The format for the set subcommand is:
scadm set variable value
show
The format for the show subcommand is:
scadm show [variable]
shownetwork
The format for the shownetwork subcommand is:
scadm shownetwork
useradd
The format for the useradd subcommand is:
scadm useradd username
userdel
The format for the userdel subcommand is:
scadm userdel username
userpassword
The format for the userpassword subcommand is:
scadm userpassword username
userperm
The format for the userperm subcommand is:
scadm userperm username [aucr]
usershow
The format for the usershow subcommand is:
scadm usershow username
version
The format for the version subcommand is:
scadm version [-v]
The resetrsc, send_event, and version subcommands have associated options. Options follow subcommands on the command line and are separated from the subcommand by a SPACE.
The resetrsc subcommand supports the following options:
-s
The send_event subcommand supports the following options:
-c
The version subcommand supports the following options:
-v
The consolehistory, fruhistory, and loghistory subcommands support the following option:
-a
The download, send_event, set, show, useradd, userdel, userperm, usershow, userpassword, and userperm subcommands have associated arguments (operands).
If the subcommand has an option, the arguments follow the option on the command line and is separated from the option by a SPACE. If the subcommand does not have an option, the arguments follow the subcommand on the command line and are separated from the subcommand by a SPACE. If there are more than one arguments, they are separated from each other by a SPACE.
The download subcommand supports the following arguments:
boot
file
Examples of file are:
/usr/platform/platform_type/lib/image/alommainfw
or
/usr/platform/platform_type/lib/image/alombootfw
The send_event subcommand supports the following arguments:
"message"
The set subcommand supports the following arguments:
variable
value
The show subcommand supports the following arguments:
variable
The useradd subcommand supports the following arguments:
username
The userdel subcommand supports the following arguments:
username
The userperm subcommand supports the following arguments:
-aucr
The following are the definitions for permissions:
a
u
c
r
username
The -usershow subcommand supports the following arguments:
username
The userpassword subcommand supports the following arguments:
username
The userperm subcommand supports the following arguments:
username
Example 1 Displaying the SC's Date and Time
The following command displays the SC's date and time.
scadm date
Example 2 Setting the SC's Configuration Variables
The following command sets the SC's configuration variable netsc_ipaddr to 192.168.1.2:
scadm set netsc_ipaddr 192.168.1.2
Example 3 Displaying the Current SC's Configuration Settings:
The following command displays the current SC configuration settings:
scadm show
Example 4 Displaying the Current Settings for a Variable
The following command displays the current settings for the sys_hostname variable:
scadm show sys_hostname
Example 5 Sending a Text-Based Critical Event
The following command sends a critical event to the SC logs, alerts the current SC users, and sends an event to syslog(3C):
scadm send_event -c "The UPS signaled a loss in power"
Example 6 Sending an Informational Text-Based Event
The following command sends an non-critical informational text based event to the SC event log:
scadm send_event "The disk is close to full capacity"
Example 7 Adding a User To the SC
The following command adds user rscroot to the SC:
scadm useradd rscroot
Example 8 Deleting a User From the SC
The following command deletes user olduser from the SC:
scadm userdel olduser
Example 9 Displaying User Details
The following command displays details of all user accounts:
scadm usershow
Example 10 Displaying Details for a Specific User
The following command displays details of user account rscroot:
scadm usershow rscroot
Example 11 Setting the User Permission Level
The following command sets the full permission level for user rscroot to aucr:
scadm userperm rscroot aucr
Example 12 Setting the User Permission Level
The following command sets only console access for user newuser to c:
scadm userperm newuser c
Example 13 Setting the User Permission Level
The following command sets the permission level for user newuser to read only access:
scadm userperm newuser
Example 14 Displaying the Current Network Parameters
The following command displays the current network configuation parameters for the SC:
scadm shownetwork
Example 15 Viewing the Consolehistory
The following command displays the content console in the SC event log:
scadm consolehistory [-a]
Example 16 Viewing the Fruhistory
The following command displays the content of the "field replacable unit" in the SC event log:
scadm fruhistory [-a]
Example 17 Viewing the Loghistory
The following command displays the most recent entries in the SC event log:
scadm loghistory [-a]
Example 18 Displaying Verbose Information
The following command displays verbose version information on the SC and its components:
scadm version -v
The following exit values are returned:
0
non-zero
See attributes(5) for descriptions of the following attributes:
|
uname(1), syslog(3C), attributes(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |