The sdmadm utility provides the functionality to install and administrate the SDM system. For each task a dedicate command is defined. The commands are describes according to the category. The following categories are defined: ADMINISTRATION, MONITORING, RESOURCES, SECURITY, SERVICES.
add_bootstrap_config|abc [-d dist_dir] [-l local_spool_dir] -cs hostname:port
Add a new system bootstrap configuration
This command adds the entries for a hedeby system bootstrap configuration into the user or system preferences. This command requires the global -s and -p options.
Option | Shortcut | Description |
|---|---|---|
-d | n/a |
path to the distribution directory |
-l | n/a |
path to the local spool directory |
-cs | n/a |
hostname and port of configuration service |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, WRITE_BOOTSTRAP_CONFIG |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
add_ge_complex_mapping|agcm -m mapping_name [-f file_name] [-t mapping_name]
Add a new complex mapping for Grid Engine services
Grid Engine services needs a mapping for building the resource properties of autodiscovered exec daemons. With this command a new mapping for complex values can be added.
Option | Shortcut | Description |
|---|---|---|
-m | n/a |
Name of the new mapping |
-f | n/a |
File name of the mapping file |
-t | n/a |
Name of the mapping which should be used as template |
Security:
Required Privileges: | ADMINISTRATOR, READ_BOOTSTRAP_CONFIG |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
mod_component|mc -c component_name
Modify the Component configuration
This command opens the Component configurationin an editor.
Option | Shortcut | Description |
|---|---|---|
-c | n/a |
Name of the component. |
Security:
Required Privileges: | ADMINISTRATOR, READ_BOOTSTRAP_CONFIG |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
mod_ge_complex_mapping|mgcm -m mapping_name
Modify a complex mapping for Grid Engine services
Grid Engine services needs a mapping for building the resource properties of autodiscovered exec daemons. With this command a existing mapping for complex values can be modified.
Option | Shortcut | Description |
|---|---|---|
-m | n/a |
Name of the new mapping |
Security:
Required Privileges: | ADMINISTRATOR, READ_BOOTSTRAP_CONFIG |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
mod_global_config|mgc
Modify the global configuration
This command opens the global configurationin an editor.
Security:
Required Privileges: | ADMINISTRATOR, READ_BOOTSTRAP_CONFIG |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
modify_log_level|mll [-l loggers_data] [-h hostname] [-j jvm_name] [-all] [-ca log_level] [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Modify the logging Level of Jvm loggers
This command can change log level for loggers on the Jvms. With -l option you can specify loggers to change. For example format for this field it can look like this ALL:com.sun.grid=INFO. With -ca option you can set up logging level for all loggers in the system both global and subloggers. REPORTER logger is the the only exception. For setting up loggig level for Reporter component use -l switch. Example for this switch: -ca ALL. To set logging level for all the jvms on specific host you have to use sll -h hostname -all, to set all logging levels for all jvms with the same name on all hosts use sll -j jvm_name -all, to set logging level for a specific jvm use sll -j jvm_name -h foo, to set logging level for all jvms on all hosts use sll -all.
Option | Shortcut | Description |
|---|---|---|
-l | n/a |
Loggers data. |
-h | n/a |
Name of the host. |
-j | n/a |
Name of the Jvm. |
-all | n/a |
Mark command as for all. |
-ca | n/a |
Change level for all loggers. |
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | ADMINISTRATOR, READ_BOOTSTRAP_CONFIG |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
remove_bootstrap_config|rbc
Remove installed system bootstrap configuration
This command removes a system bootstrap configuration from the java preferences of a system or a user. This command requiresthe global option -system.
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, WRITE_BOOTSTRAP_CONFIG |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
remove_ge_complex_mapping|rgcm -m mapping_name
Remove a complex mapping for Grid Engine services
Grid Engine services needs a mapping for building the resource properties of autodiscovered exec daemons. With this command a existing mapping for complex values can be removed.
Option | Shortcut | Description |
|---|---|---|
-m | n/a |
Name of the mapping to remove |
Security:
Required Privileges: | ADMINISTRATOR, READ_BOOTSTRAP_CONFIG |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
set_bootstrap_config_property|sebcp -p property -v value
Set property of bootstrap configuration
Supported properties are "auto_start" and "no_ssl".
If "auto_start" is set to "true", the system will be start at boot time.
If "no_ssl" is set to "true" ssl encryption and authentication of incoming request is disabled. Disabling security should only be done for test systems, hence every user with execute permissions on sdmadm can modify the system.
Option | Shortcut | Description |
|---|---|---|
-p | n/a |
Name of the system property. Supported are auto_start and no_ssl |
-v | n/a |
Value of the system property. Right now the only possible values are TRUE or FALSE. |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, WRITE_BOOTSTRAP_CONFIG |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
set_default_bootstrap_config|sedbc
Set default bootstrap configuration
If a default bootstrap system configuration is set, the sdmadm command can be used without the -system options. All actions will be executed on the default system.
Security:
Required Privileges: | No privileges defined |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
show_log_level|sll [-n loggers_name] [-l log_level] [-h hostname] [-j jvm_name] [-all] [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Show the logging Level of Jvm loggers
This command can display active loggers and log levels of JVMs.
The -n option filters the name of the logger. If it is used all loggers where the name starts with the specified loggers_name will be printed out.
With the -all option the sll command can read the log level of the loggers of all JVMS. In combination with the -h option displays only the loggers of all JVMs of the specified host. The output can also be filtered with the -j option.
Examples:
Display all loggers of the host foo:
% sdmadm sll -all -h foo
Display all loggers of all running jvms of the system:
n% sdmadm ssl -all
Display all loggers of the JVM rp_vm running on host foo.bar where the name of the logger starts with com.sun.grid.grm:% sdmadm ssl -n "com.sun.grid.grm" -h foo.bar -j rp_vm
Show the loggers on all JVMs on hosts of the system that meet the following criteria:
- The log level is set to INFO
- The name of the logger starts with com.sun.grid
% sdmadm sll -l INFO -n com.sun.grid -all
Option | Shortcut | Description |
|---|---|---|
-n | n/a |
Filter for name of the logger |
-l | n/a |
Logging level. |
-h | n/a |
Name of the host. |
-j | n/a |
Name of the Jvm. |
-all | n/a |
Mark command as for all. |
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, ADMINISTRATOR |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
unset_default_bootstrap_config|usdbc
Unset the default bootstrap configuration
After unsetting the default system bootstrap configuration sdmadm needs the -system option to find a system. This command does not delete the system which is marked as default system. Use remove_system command to delete a system bootstrap configuration
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, WRITE_BOOTSTRAP_CONFIG |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
shutdown_component|sdc [-force] [-all] [-c component_name] [-h host_name] [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Shutdown component on a host
Stop components of the system
The -c option specifies the target component. With the -h option the target hostcan be specified. The -all option is required unless both -c and -h option are specified.
Examples:
Stop all components of the system:
% sdmadm sdc -all
Stop all components on host foo:
% sdmadm sdc -h foo -all
Stop all components with name executor:
% sdmadm sdc -c executor -all
Stop the executor component on host foo:
% sdmadm sdc -c executor -h foo
Option | Shortcut | Description |
|---|---|---|
-force | n/a |
stop the component in force mode |
-all | n/a |
stop all the components |
-c | n/a |
name of the component |
-h | n/a |
name of the target host |
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, ADMINISTRATOR |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
shutdown_jvm|sdj [-j jvm_name] [-h host_name] [-all] [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Shutdown JVMs
The command stops JVMs of the system.
The -j option allows filtering of the jvms. With the -h option the targeted hostcan be specified. The -all option is required unless both -j and -h option are specified.
Examples:
Stop all JVMs of the system:
% sdmadm sdj -all
Stop all JVMs on host foo:
% sdmadm sdj -h foo -all
Stop all JVMs with name executor_vm:
% sdmadm sdj -j executor_vm -all
Stop the executor JVM on host foo:
% sdmadm sdj -j executor_vm -h foo
Option | Shortcut | Description |
|---|---|---|
-j | n/a |
name of the JVM to be stopped |
-h | n/a |
name of the target host |
-all | n/a |
will shutdown all the JVMs |
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, ADMINISTRATOR |
If the executing user has not the ADMINISTRATOR privilege but the SUPER_USER privilege and all target jvms are on the local host this commands reads the pid files from the local spool directory and kills corresponding processes.
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
startup_component|suc [-c component_name] [-h host_name] [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Start hedeby component on a host
The command will start the specified component on a specified host.
If only the "component" is not specified, the command will start all components that are configured for the specified host.
If only the "host" is not specified, the command will start the specified component on all hosts where it should be running.
If both the "component" and the "host" are not specified, the command will start all components on all hosts where they should be running.
Option | Shortcut | Description |
|---|---|---|
-c | n/a |
name of the component |
-h | n/a |
name of the target host |
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, ADMINISTRATOR |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
startup_jvm|suj [-j jvm_name] [-dp debug_port] [-force] [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Start a JVM on a localhost
The command will start the specified JVM on a local host.
If -j option is not specified, the command will start all JVMs that are configured for the localhost.
By specifying the -d parameter the targeted JVM starts in debug mode. A Java Platform Debugger Architecture (JPDA) compatible debugger can connect to the jvm on the specified port. The jvm will be suspened until the debugger has been connected. For more information about JPDA please have a look at http://java.sun.com/j2se/1.5.0/docs/guide/jpda.
Please note that the -d opton can only be used for a single jvm (-j parameters is in this case mandatory).
Examples:
- start all JVMs on the localhost:
% sdmadm -s <system_name> suj
- force the startup all JVMs on the local host (even if the pid files exists):
% sdmadm -s <system_name> suj -f
- start the jvm with name JVM1 on the local host:
% sdmadm -s <system_name> suj -j JVM1
- starts JVM1 on the localhost in debug mode. The JDPA debugger can
contact this jvm at port 33445:
% sdmadm -s <system_name> suj -j JVM1 -dp 33445
Option | Shortcut | Description |
|---|---|---|
-j | n/a |
Name of the JVM to be started. |
-dp | n/a |
Start JVM in debug mode. The valid port number has to be bigger than 1024 and lower than 65535. |
-force | n/a |
With this option you can force the startup of the JVM(s) even if the pid files exist. This option is useful if some JVMs crashed and the corresponding pid files have not been removed from the run directory. Attention!! The pid files are overwritten. If the java process for the JVMs are still running the system has no possiblity to find them. |
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG |
Optional Privileges: | SUPER_USER |
If the executing user has the SUPER_USER privilege this command will start the jvm under the user account specified in the definition of the jvm in the global configuration. Otherwise the target jvms will be started under the user account of the executing user.
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
update_component|uc [-force] [-c component_name] [-h host_name] [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Update component configuration by reloading
The command will reload the specified component configuration on a specified host.
If only the "component" is not specified, the command will reload configuration of all components that are configured for the specified host.
If only the "host" is not specified, the command will reload configuration of the specified component on all hosts where it should be running.
If both the "component" and the "host" are not specified, the command will reload configuration of all components on all hosts where they should be running.
Option | Shortcut | Description |
|---|---|---|
-force | n/a |
force the reload |
-c | n/a |
name of the component |
-h | n/a |
name of the target host |
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, ADMINISTRATOR |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
install_managed_host|imgdh [-l local_spool_dir] [-d dist_dir] -au admin_user -cs_url cs_url [-nossl] [-autostart]
Performs the necessary step to install a managed host.
This command is used to install the managed host components on the local host. The manage host installation includes the following steps:
- create the local spool directory
- create the bootstrap configuration
- create the default configuration for a managed host
- initialize the security infrastructure (keystores and ca certificate)
Option | Shortcut | Description |
|---|---|---|
-l | n/a |
Path of the local spool directory |
-d | n/a |
Path of the distribution directory |
-au | n/a |
Name of the admin user |
-cs_url | n/a |
URL of the configuration service that should look like: <cs_host>:<cs_port> |
-nossl | n/a |
Turns off SSL encryption |
-autostart | n/a |
Sets the host for autostarting the system. Takes affect only for systems with system preferences. If SMF is supported on host, autostart will be done with SMF services, otherwise startup script will be used. |
Security:
Required Privileges: | WRITE_BOOTSTRAP_CONFIG, WRITE_LOCAL_SPOOL_DIR, ADMINISTRATOR |
Optional Privileges: | SUPER_USER |
For the security bootstraping the installing user must have the necessary credentials for the authentication as administrative user (ADMINISTRATOR privilege).
If the -p parameter is set to SYSTEM the executing user must have the SUPER_USER privilege. The ownership of the keystores will be set to the corresponding users. If the -p parameter is set to USER the SUPER_USER privileges is not necessary. Owner of all keystores will be the executing user.
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
install_master_host|imsth [-l local_spool_dir] [-d dist_dir] -cs_port port -au admin_user -ca_country country -ca_state state -ca_location location -ca_org organization -ca_org_unit unit -ca_admin_mail mail_adress -sge_root sge_root [-nossl] [-autostart] [-al] [-nost]
Install hedeby master host
This command is used to install the master host components on the local host. This include the following steps:
- create the boostrap configuration
- create the local spool directory
- create the default configuration
- initialize the Certificate Authority
- create the certificate, private keys and keystore for
all jvms and for the admin user
Option | Shortcut | Description |
|---|---|---|
-l | n/a |
Path of the local spool directory |
-d | n/a |
Path of the distribution directory |
-cs_port | n/a |
Port where the config service should run |
-au | n/a |
Name of the admin user |
-ca_country | n/a |
Country name used for the certificate authority information |
-ca_state | n/a |
State name used for the certificate authority information |
-ca_location | n/a |
Location token used for the certificate authority information |
-ca_org | n/a |
Organization name used for the certificate authority information |
-ca_org_unit | n/a |
Organization unit name used for the certificate authority information |
-ca_admin_mail | n/a |
Administrator mail address used for the certificate authority information |
-sge_root | n/a |
Hedeby uses the Grid Engine Certificate Authority utils. For the installation we need SGE_ROOT. |
-nossl | n/a |
Turns off SSL encryption for the master host |
-autostart | n/a |
Sets the host for autostarting the system. Takes affect only for systems with system preferences. If SMF is supported on host, autostart will be done with SMF services, otherwise startup script will be used. |
-al | n/a |
Accept LICENSE for software during installation. If this option is not set, the user will be asked to accept it during installation. |
-nost | n/a |
Prevents the Service Tags product registration in local ST registry, when set. Not recommended to use. |
Security:
Required Privileges: | WRITE_LOCAL_SPOOL_DIR, WRITE_BOOTSTRAP_CONFIG |
Optional Privileges: | SUPER_USER |
If the -p parameter is set to SYSTEM the executing user must have the SUPER_USER privilege. In this case the boostrap configuration is stored in /etc/sdm/bootstrap. The owner of the jvm keystore will be the user running the jvm (according to the global config) and the owner of admin keystore will be the admin user.
If the -p parameter is set to USER the SUPER_USER privilege is not necessary.The bootstap configuration is stored in $HOME/.sdm/bootstrap and the owner of all keystores is the executing user.
The SUPER_USER privilege includes the WRITE_KEYSTORE privilege, hence the WRITE_KEYSTORE privilege is not necessary for this command.
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
uninstall_host|uh [-force] [-master]
Uninstall the system from the local host
If the local host is the master host, the uninstallation will cause that system will not be available anymore. If current host is managed host and it does not have running jvms, the uninstallation will remove from configuration all componentsthat are running on this host. Preferences and localspool directory will be cleaned up.To remove host even when CS can not be contacted use option -force.
Option | Shortcut | Description |
|---|---|---|
-force | n/a |
The force option specifies that the host will be removed from the system even if it can not contact running CS component. |
-master | n/a |
The master option is for uninstallation of Hedeby master host |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, WRITE_BOOTSTRAP_CONFIG, WRITE_LOCAL_SPOOL_DIR |
Optional Privileges: | SUPER_USER |
If the system has been installed with SUPER_USER privilege the uninstall_host command requires also the SUPER_USER privilege. Otherwise the executing user will not have the permissions to delete all files from the local spool directory.
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
show_blacklist|sb [-s service] [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Show resource ids of resources that are ignored by a service
This command allows to monitor resource ids that are ignored by a service(s). It can be specified whether the list of such resource ids is shown for a specified service or for each service service. If blacklist for specified service only should be shown, use -s option and specify service name.
Option | Shortcut | Description |
|---|---|---|
-s | n/a |
Name of the service |
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, ADMINISTRATOR |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
show_bootstrap_config|sbc [-names] [-auto] [-nossl] [-all] [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Show all installed bootstrap configurations
The command will show the bootstrap configurations of the systems that are defined. The command is looking for bootstrap configurations defined in system and/or user preferences depending on the -prefs switch.
Option | Shortcut | Description |
|---|---|---|
-names | n/a |
Print out the names of configurations |
-auto | n/a |
Print out configurations that have set auto_start to "true" |
-nossl | n/a |
Print out configurations with disabled security |
-all | n/a |
Print the full information about a system |
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
show_component|sc [-c component_name] [-j jvm_name] [-h host_name] [-t type] [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Show status of all system components
The command will show status of all system components.
The output is grouped by system, host and jvm.
Option | Shortcut | Description |
|---|---|---|
-c | n/a |
Show only components with a name matching against component_name (can be a regular expression) |
-j | n/a |
Show only components running in a jvm with a name matching against jvm_name (can be a regular expression) |
-h | n/a |
Show only components running on a host with a name matching against host_name (can be a regular expression) |
-t | n/a |
Show only components of a specific type (valid types are ResourceProvider, Service, Executor or Other) |
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, ADMINISTRATOR |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
show_ge_complex_mapping|sgcm [-match match_name] [-output names|xml|table] [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Show complex mapping for Grid Engine services
This command prints out the available complex mapping for Grid Engine services
Option | Shortcut | Description |
|---|---|---|
-match | n/a |
If this option is set only the matching mappings are printed |
-output | (-o) |
Defines the output format |
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, ADMINISTRATOR |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
show_history|shist [-sd start_date] [-ed end_date] [-r resource] [-s service] [-f history_filter] [-t type] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Show the data stored by reporter component.
Use the {{sdmadm show_history}} command to see the information that the reporter stores. If you do not specify any parameters, this command displays all messages that the reporter has. You can limit the information that is displayed in several ways:
- Specify the exact resource or service name for which you want information
- Specify an event type for which you want information
- Combine a resource name, service name, and event type
- Define a filter using the {{-f}} switch
Option | Shortcut | Description |
|---|---|---|
-sd | n/a |
Start date |
-ed | n/a |
End date |
-r | n/a |
Resource name. |
-s | n/a |
Service name. |
-f | n/a |
valid history filter expression |
-t | n/a |
Event type. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, ADMINISTRATOR |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
show_jvm|sj [-j jvm_name] [-h host_name] [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Show running Jvms in Hedeby System.
Show runninng Jvms in system, even those which do not have running components
Option | Shortcut | Description |
|---|---|---|
-j | n/a |
Show only jvms matching the jvm_name (can be a regular expression) |
-h | n/a |
Show only jvms running on a host with matches the host_name (can be a regular expression) |
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, ADMINISTRATOR |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
show_module|sm [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Show all available modules in the system
SDM can be extended by adding additional modules. This command prints out the installed modules, with vendor and version.
Option | Shortcut | Description |
|---|---|---|
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
show_resource|sr [-s service_name] [-r resource_id] [-cached] [-all] [-rf resource_filter] [-se] [-o res_ids|table] [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Show resource(s) state(s) in the system.
This command allows to monitor resource(s) state(s) in the system. You can specify the exact resource name that you want to check the status. By specifying service name you will see all resource states for the given service. Additionally you can define a resource filter expression with the -rf switch. If you don't specify anything all resources in the system will be printed. If you want to see full description of resource like type, annotation and its properties use -f option. If you want to see information about the cached resources, use -c option. If you want only a list of resource ids use -o res_ids.
Option | Shortcut | Description |
|---|---|---|
-s | n/a |
Name of the service that we want to print the state of resources from. |
-r | n/a |
Id of the resource that we want to see the state of. |
-cached | n/a |
It will print cached resource information. |
-all | n/a |
It will print full description of resource, type, annotation and its properties. |
-rf | n/a |
Define an advanced resource filter |
-se | n/a |
Show service without resources |
-o | n/a |
Defines the output format. |
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, ADMINISTRATOR |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
show_resource_request|srr [-pq] [-pp] [-all] [-s service_name] [-slo slo_name] [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Show registered resource requests at resource provider
This command displays the resource requests produced by the SLOs of the services by sending a resource request to the resource provider.
Queued requests are waiting to be processed. Pending requests have already been processed, however the resource provider could not find enough appropriate resources to fully satisfy the need. If the -all option is specified the table will print also the quantity and the request filter of the resource request.
Option | Shortcut | Description |
|---|---|---|
-pq | n/a |
Print queued requests. |
-pp | n/a |
Print pending requests. |
-all | n/a |
Print all columns |
-s | n/a |
Print only requests for matching services (Can be a regular expression) |
-slo | n/a |
Print only requests for matching SLOs (Can be a regular expression) |
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, ADMINISTRATOR |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
show_resource_types|srt [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Show all known resource types
Shows all known resource types and its predefined resource property type in a table.
Option | Shortcut | Description |
|---|---|---|
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
show_service|ss [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Show services managed by system
The command will show services managed by system.
Option | Shortcut | Description |
|---|---|---|
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, ADMINISTRATOR |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
show_slo|sslo [-s service_name] [-u] [-r resource_name] [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Show SLOs
The command print information about SLOs of services.
Option | Shortcut | Description |
|---|---|---|
-s | n/a |
Name of the service |
-u | n/a |
Print the resource usage of the SLOs |
-r | n/a |
Print only the usage of those resources matching the resource_name(This parameter has only effects of -u is specified) |
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, ADMINISTRATOR |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
show_smf_support|ssmf [-sort columns] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Show all installed smf services for this system. If no services installed, command will print message if SMF is not supported on host.
Command will print message if SMF is not supported on host.
Option | Shortcut | Description |
|---|---|---|
-sort | n/a |
comma separated list with the names of colums to sort. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
add_resource|ar [-r resource_id] [-t resource_type ] [-f file_name] [-s service_name ] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Add a new resource of a specified type to Hedeby system
This command allows user to add a new resource to an existing Hedeby system.
If the -f parameter is specified the complete definintion of the resource is read from the rpFile. It is a regular property file (<name=value>) that describes the characteristics of a resource.
Without -f parameter the resource is constructed out of the resource type definition. If a resource id if specified (-r parameter) all resource properties which can be derivedfrom the resource id are automatically set (e.g for a host resource type the resourceHostnameproperty is set). If there are missing mandatory paramater the resource definition is openedin an editor.
It is not allowed to use -f parameter together with the -r parameter.
The other optional parameter is a type of a resource which is by default set to ''host'' (means host resource). Service name parameter specifies the service that we want to assign resource to. This paramater is optional - if it is not set a resource provider will try to find target service for resource. If there is no service willing to consume the resource, resource is refused. ID of a resource is an optional parameter as well because resource ID can be generated from resource properties file.
Option | Shortcut | Description |
|---|---|---|
-r | n/a |
Id of the resource. |
-t | n/a |
Type of the resource properties to use for creation of a resource. |
-f | n/a |
Name of the resource properties file. |
-s | n/a |
Name of the service that we want to assign resource to. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | ADMINISTRATOR, READ_BOOTSTRAP_CONFIG |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
add_resource_to_blacklist|artb -r resource_id1,resource_id2,... -s service [-coldel char] [-headerdel char] [-dupval] [-noheader]
Add resource(s) to service's blacklist.
This command allows to add resource or resources (their ids) to a service's resource blacklist. It is possible to specify just one or more resources at once. Specifying at least one is necessary. The service name is mandatory.
Option | Shortcut | Description |
|---|---|---|
-r | n/a |
List of IDs of resources to add to blacklist |
-s | n/a |
Name of the target service |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, ADMINISTRATOR |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
mod_resource|mr -r resource_id [-f file_name] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Modify an existing resource
This command allows user to modify an existing resource. The two required parameters are a file name of resource.properties file and a resource id. The resource.properties file is a regular property file (<name=value>) that specifies the properties of a resource that has to be changed.
Option | Shortcut | Description |
|---|---|---|
-r | n/a |
Id of the resource. |
-f | n/a |
Name of the resource properties file. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per default the sdmadm command beautifies table output by not printing repeating cell values in subsequent rows. With this option the values of all cells are printed. |
-noheader | n/a |
Switches off the printing of the header |
Security:
Required Privileges: | READ_BOOTSTRAP_CONFIG, ADMINISTRATOR |
A detailed description of the privileges can be found in the section called “SECURITY PRIVILEGES”.
move_resource|mvr -r resource_id -s service_name [-static] [-force] [-coldel char] [-headerdel char] [-dupval] [-noheader]
Move resource(s) to a service.
This command allows to move resources to a specific service. A list of resource id is needed as well as target service name is required. There is no guarantee that the resources will be moved from one service to another.
Option | Shortcut | Description |
|---|---|---|
-r | n/a |
List of resource ids |
-s | n/a |
The name of the target service of the resources |
-static | n/a |
Boolean flag signaling whether the resources should be made static. |
-force | n/a |
Boolean flag signaling whether the resources should be removed from its current service by force. |
-coldel | n/a |
Delimiter character between two columns |
-headerdel | n/a |
This character is used to print the delimiter line between the table header and the table body |
-dupval | n/a |
Per d |