No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Advanced O&M Command Reference

OceanStor 2000, 5000, and 6000 V3 Series V300R006

This document is applicable to OceanStor 2200 V3, 2600 V3 Video Surveillance Edition, 2600 V3, 5300 V3, 5500 V3, 5600 V3, 5800 V3, and 6800 V3. Based on the CLI, this document describes how to use various commands classified by functions and how to set the CLI and manage the storage system through these commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
kill

kill

Function

The kill command is used to delete processes or threads being executed.

Format

kill [-s sigspec|-n signum|-sigspec] [pid|jobspec]

kill -l sigspec

Parameters

Parameter

Description

Value

sigspec

Indicates the signal name or number.

To obtain details on parameter values, run the "kill -l" command.

signum

Indicates the signal number.

The value ranges from 1 to 64.

pid

Indicates the process ID.

The value ranges from 0 to 65535.

jobspec

Indicates job description.

-

-s

Specifies the name or number of the signal to be sent.

-

-n

Specifies the number of the signal to be sent.

-

-l

Lists signal names, or converts signal names to/from numbers.

-

Modes

Minisystem mode

Usage Guidelines

The "kill" command can be used with the "top" command or the "ps -aux" command to view processes being executed. Run the "kill" command to end a process. "-9" indicates that the process is ended forcedly.

Example

  • Delete processes being executed.
    Storage: minisystem> ps -ef 
    UID PID PPID C STIME TTY TIME CMD 
    root 1 0 0 Sep01 ? 00:00:07 init [3] 
    root 2 0 0 Sep01 ? 00:00:00 [kthreadd] 
    root 3 2 0 Sep01 ? 00:00:12 [ksoftirqd/0] 
    root 4 2 0 Sep01 ? 00:00:36 [kworker/0:0] 
    root 6 2 0 Sep01 ? 00:00:02 [migration/0] 
    root 7 2 0 Sep01 ? 00:00:01 [watchdog/0] 
    root 8 2 0 Sep01 ? 00:00:02 [migration/1] 
    root 9 2 0 Sep01 ? 00:00:00 [kworker/1:0] 
    root 10 2 0 Sep01 ? 00:00:10 [ksoftirqd/1] 
    root 11 2 0 Sep01 ? 00:00:02 [kworker/0:1] 
    root 12 2 0 Sep01 ? 00:00:01 [watchdog/1] 
    root 13 2 0 Sep01 ? 00:00:01 [migration/2] 
    root 14 2 0 Sep01 ? 00:00:00 [kworker/2:0] 
    root 15 2 0 Sep01 ? 00:00:12 [ksoftirqd/2] 
    root 16 2 0 Sep01 ? 00:00:01 [watchdog/2] 
    root 17 2 0 Sep01 ? 00:00:03 [migration/3] 
    root 18 2 0 Sep01 ? 00:00:00 [kworker/3:0] 
    root 19 2 0 Sep01 ? 00:00:10 [ksoftirqd/3] 
    root 20 2 0 Sep01 ? 00:00:01 [watchdog/3] 
    root 21 2 0 Sep01 ? 00:00:00 [cpuset] 
    root 22 2 0 Sep01 ? 00:00:00 [khelper] 
    root 23 2 0 Sep01 ? 00:00:00 [kdevtmpfs] 
    root 24 2 0 Sep01 ? 00:00:00 [netns] 
    root 25 2 0 Sep01 ? 00:00:00 [sync_supers] 
    root 26 2 0 Sep01 ? 00:00:00 [bdi-default] 
    root 27 2 0 Sep01 ? 00:00:00 [kintegrityd] 
    root 28 2 0 Sep01 ? 00:00:00 [kblockd] 
    root 29 2 0 Sep01 ? 00:00:00 [tifm] 
    root 30 2 0 Sep01 ? 00:00:00 [md] 
    root 32 2 0 Sep01 ? 00:00:00 [khungtaskd] 
    root 33 2 0 Sep01 ? 00:00:00 [kswapd0] 
    root 34 2 0 Sep01 ? 00:00:00 [limit_shrinkwor] 
    root 35 2 0 Sep01 ? 00:00:00 [ksmd] 
    root 36 2 0 Sep01 ? 00:00:00 [khugepaged] 
    root 37 2 0 Sep01 ? 00:00:00 [fsnotify_mark] 
    root 38 2 0 Sep01 ? 00:00:00 [crypto] 
    root 44 2 0 Sep01 ? 00:00:00 [kthrotld] 
    root 45 2 0 Sep01 ? 00:00:03 [kworker/2:1] 
    root 46 2 0 Sep01 ? 00:00:02 [kworker/1:1] 
    root 47 2 0 Sep01 ? 00:00:10 [kworker/3:2] 
    root 61 2 0 Sep01 ? 00:00:00 [deferwq] 
    root 204 2 0 Sep01 ? 00:00:00 [kauditd] 
    root 315 2 0 Sep01 ? 00:00:00 [diag_recv] 
    root 328 2 0 Sep01 ? 00:00:49 [vos] 
    root 329 2 0 Sep01 ? 00:00:00 [sched_work] 
    root 359 1 0 Sep01 ? 00:00:00 /OSM/bin/script/os_exeshell 
    root 636 2 0 Sep01 ? 00:00:00 [ata_sff] 
    root 21522 18721 0 11:56 pts/6 00:00:00 /bin/bash /OSM/bin/script/os_debug_mode_process.sh admin 
    root 21593 9199 0 11:56 ? 00:00:00 sleep 300 
    root 21961 61716 0 11:57 pts/1 00:00:00 sh test.sh 
    root 21964 21961 0 11:57 pts/1 00:00:00 sleep 1000 
    root 22021 61716 0 11:57 pts/1 00:00:00 /bin/bash /OSM/bin/script/os_debug_mode_process.sh admin 
    root 22088 8331 0 11:57 ? 00:00:00 sleep 5 
    root 22093 9200 0 11:57 ? 00:00:00 sleep 5 
    root 22172 22021 0 11:57 pts/1 00:00:00 ps -ef 
    root 61607 2057 0 11:27 ? 00:00:00 sshd: admin@pts/1 
    root 61716 61607 0 11:27 pts/1 00:00:00 -bash 
    Storage: minisystem> kill -9 21961 
    DANGER: You are going to perform a danger command. 
    Suggestion: Before you perform this operation, make sure the operation will not affect working of system. 
    Have you read danger alert message carefully?(y/n) 
    y 
    Are you sure you really want to perform the operation?(y/n) 
    y 
    Storage: minisystem>
  • Show all the signal list.
    Storage: minisystem> kill -l 
    DANGER: You are going to perform a danger command. 
    Suggestion: Before you perform this operation, make sure the operation will not affect working of system. 
    Have you read danger alert message carefully?(y/n) 
    y 
    Are you sure you really want to perform the operation?(y/n) 
    y 
    1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 
    5) SIGTRAP 6) SIGABRT 7) SIGBUS 8) SIGFPE 
    9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR2 
    13) SIGPIPE 14) SIGALRM 15) SIGTERM 16) SIGSTKFLT 
    17) SIGCHLD 18) SIGCONT 19) SIGSTOP 20) SIGTSTP 
    21) SIGTTIN 22) SIGTTOU 23) SIGURG 24) SIGXCPU 
    25) SIGXFSZ 26) SIGVTALRM 27) SIGPROF 28) SIGWINCH 
    29) SIGIO 30) SIGPWR 31) SIGSYS 34) SIGRTMIN 
    35) SIGRTMIN+1 36) SIGRTMIN+2 37) SIGRTMIN+3 38) SIGRTMIN+4 
    39) SIGRTMIN+5 40) SIGRTMIN+6 41) SIGRTMIN+7 42) SIGRTMIN+8 
    43) SIGRTMIN+9 44) SIGRTMIN+10 45) SIGRTMIN+11 46) SIGRTMIN+12 
    47) SIGRTMIN+13 48) SIGRTMIN+14 49) SIGRTMIN+15 50) SIGRTMAX-14 
    51) SIGRTMAX-13 52) SIGRTMAX-12 53) SIGRTMAX-11 54) SIGRTMAX-10 
    55) SIGRTMAX-9 56) SIGRTMAX-8 57) SIGRTMAX-7 58) SIGRTMAX-6 
    59) SIGRTMAX-5 60) SIGRTMAX-4 61) SIGRTMAX-3 62) SIGRTMAX-2 
    63) SIGRTMAX-1 64) SIGRTMAX

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138402

Views: 639215

Downloads: 707

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next