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 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5. Based on the CLI, this document describes how to use various commands classified by functionsand how to set the CLI and manage the storage system through these commands.

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).
eam.sh

eam.sh

Function

The eam.sh command is used to run commands related to the EAM module.

Format

eam.sh { -h | -a | deleteEnclosureInfo [SN] | showenclosure| showevent | showloopmap [mac] | showcableglobal | showcableinfo [topoType] | showfastwriteportinfo [controll_id] | closeportfastwrite [port_number] | setframecascademode [depth] | deleteFrameInfo [frameId] | showcablecheck [port_type] }

Parameters

Parameter

Description

Value

-h Displays help information.

-

-a Displays functions of each subcommand of the EAM module.

-

deleteEnclosureInfo [SN] Deletes all records of an enclosure based on the enclosure SN.

-

showenclosure Displays enclosure records.

-

showevent Displays enclosure events.

-

showloopmap [mac] Displays the network map of an enclosure based on the enclosure MAC address.

-

showcableglobal Displays the global cable detection information.

-

showcableinfo [topoType] Displays information about all cables.

-

closeportfastwrite [port_number] Disables the fast write function of a port.

To obtain the value, run the "eam.sh showfastwriteportinfo controller_id" command.

showfastwriteportinfo [controller_id] Displays the information about ports that have enabled the fast write function.

The value is in the format of "XA", "XB", "XC", or "XD", where the "X" is an integer ranging from 0 to 3.

setframecascademode [depth] Sets the cascading depth of disk enclosures.

The value can be "1", "2", or "4".

deleteFrameInfo [frameId] Deletes information about offline disk enclosures. The deletion is supported only in the storage devices of the Kunpeng series.

To obtain the internal enclosure ID, run "eam.sh showenclosure".

showcablecheck [port_type] Checks cables. If this parameter is not specified, all cables of the scale-up and scale-out types are checked by default.

The value can be "scale-up" or "scale-out".

Modes

Minisystem mode

Usage Guidelines

Run the "eam.sh" command to view and delete the records of an enclosure and view global cable detection information and information about all cables. The functions are as follows:

  • View enclosure access events.
  • View enclosure records.
  • View the enclosure network map.
  • Delete all records of an enclosure.
  • View global cable detection information.
  • View information about all cables.
  • View the information about ports that have enabled the fast write function.
  • Disable the fast write function of a port.
  • Set the cascading depth of disk enclosures.
  • Delete information about offline disk enclosures.
  • Check cables.

Example

  • Display functions of each subcommand of the EAM module.

    Storage: minisystem> eam.sh -a
    eam.sh deleteEnclosureInfo [SN]  :delete enclosure information by the serial number of the enclosure information, [SN] is the serial number of enclosure.
    eam.sh showenclosure             :show record of enclosure.
    eam.sh showevent                 :show record of enclosure event.
    eam.sh showloopmap [mac]         :show record of loopmap by the mac address of enclosure, [MAC] is the mac address of enclosure. The value of mac is a 64-bit unsigned number.
  • Display the information about ports that have enabled the fast write function on controller "0A".

    Storage: minisystem>eam.sh showfastwriteportinfo 0A
    admin:/diagnose>eam showfastwriteportinfo 0A
    Max fast write 1822 fc ports number per controller: 4
    Port Number      Port ID               Fast Write Enable
    139265           --                    Yes
  • Disable the fast write function of port "139265" by user "admin" (192.168.1.9).

    Storage: minisystem>eam.sh closeportfastwrite 139265
    admin:/diagnose>eam closeportfastwrite admin 192.168.1.9 139265
    Close fast write function of port 139265 success.
  • Delete all records of an enclosure based on the enclosure SN.

    Storage: minisystem> eam.sh deleteEnclosureInfo 2102350FHT10F5000009
    You are about to delete all information about the disk enclosure.
    This operation will cause the disk enclosure to be unavailable in the system.
    Suggestion: Before performing this operation, confirm that the operation is necessary.
    Have you read danger alert message carefully?(y/n)
    y
    Are you sure you really want to perform the operation?(y/n)
    y
    admin:/diagnose>eam deleteEnclosureInfo 2102350FHT10F5000009
    all information of enclosure( mac [262081760519164], sn [2102350FHT10F5000009]) was successfully deleted.
    admin:/diagnose>exit
  • Display enclosure records.

    Storage: minisystem> eam.sh showenclosure  
    admin:/diagnose>eam showframe
    enclosure info:
    ------------------------------------------
    frameId      = 1
    userFrameId  = 0x100
    frameType    = 0
    wwn          = 0x5fce33caa5ceb03f 6903512224263745599
    mac          = 0xfce33caa5cee 278052905573614
    fatherWwn    = 0x807060504030201 578437695752307201
    loopNum      = 0
    fatherWwn    = 0x807060504030201 578437695752307201
    loopNum      = 0
    frameName    = DAE000
    ------------------------------------------
    frameId      = 0
    userFrameId  = 0x200
    frameType    = 1
    wwn          = 0x807060504030201 578437695752307201
    mac          = 0x9c37f47fe2dc 171764139156188
    fatherWwn    = 0x102030405060708 72623859790382856
    loopNum      = 0
    fatherWwn    = 0xffffffffffffffff 18446744073709551615
    loopNum      = 0
    frameName    = CTE0
    ------------------------------------------
    admin:/diagnose>exit
  • Display enclosure events.

    Storage: minisystem> eam.sh showevent
    admin:/diagnose>eam showevent
    ALL enclosure event info:
    frame flag   = 1
    frame depth  = 1
    node  Id     = 0
    frameType    = 0
    wwn          = 0x5fce33caa5ceb03f 6903512224263745599
    mac          = 0xee5caa3ce3fc 262081760519164
    fatherWwn    = 0x807060504030201 578437695752307201
    loopNum      = 0
    Is first     = 1
    time stamp   = 53607
    engid        = 0
    expBoard Id  = 0
    ------------------------------------------
    frame flag   = 1
    frame depth  = 0
    node  Id     = 1
    frameType    = 1
    wwn          = 0x807060504030201 578437695752307201
    mac          = 0xdce27ff4379c 242865367431068
    fatherWwn    = 0x102030405060708 72623859790382856
    loopNum      = 0
    Is first     = 0
    time stamp   = 55623
    engid        = 0
    expBoard Id  = 0
    ------------------------------------------
    frame flag   = 1
    frame depth  = 1
    node  Id     = 1
    frameType    = 0
    wwn          = 0x5fce33caa5ceb03f 6903512224263745599
    mac          = 0xee5caa3ce3fc 262081760519164
    fatherWwn    = 0x807060504030201 578437695752307201
    loopNum      = 0
    Is first     = 1
    time stamp   = 55639
    engid        = 0
    expBoard Id  = 1
    ------------------------------------------
    current time stamp:181084
    admin:/diagnose>exit
  • Display the network map of an enclosure based on the enclosure MAC address.

    Storage: minisystem> eam.sh showloopmap 0xdce27ff4379c
    admin:/diagnose>eam showloopmap 0xdce27ff4379c
    loopmap is exist, uiFrameId is 0.
    admin:/diagnose>exit
  • Display the global cable detection information.

    Storage: minisystem> eam.sh showcableglobal
    admin:/diagnose>eam showcableglobal
    ----Cable Topo (SAS)----
     Switch    : 1
     Time(10s) : 13
     Status    : 0
  • Display information about all cables.

    Storage: minisystem> eam.sh showcableinfo 2
    admin:/diagnose>eam showcableinfo 2
    ======================================================Show Cable Topo Type(2) Check Result======================================================
     Current Cable                                                     State Alarm Suggest Cable                                                    
     ----------------------------------------------------------------- ----- ----- -----------------------------------------------------------------
     0x1f0000(CTE0.R0.IOM0.P0)<->0x110926000(DAE000.A.PRI)             OK    No    --                                                               
     0x1f0002(CTE0.R0.IOM0.P2)<->0x310926000(DAE020.A.PRI)             OK    No    --                                                               
     0x80011f0000(CTE0.L0.IOM0.P0)<->0x8111926100(DAE000.B.PRI)        OK    No    --                                                               
     0x80011f0003(CTE0.L0.IOM0.P3)<->0x8311926100(DAE020.B.PRI)        NOK   Yes   0x80011f0002(CTE0.L0.IOM0.P2)<->0x8311926100(DAE020.B.PRI)       
     0x100021f0000(CTE0.R0.IOM1.P0)<->0x10212926000(DAE080.A.PRI)      OK    No    --                                                               
     0x180031f0000(CTE0.L0.IOM1.P0)<->0x18213926100(DAE080.B.PRI)      OK    No    --  
  • Set the cascading depth of disk enclosures.

    Storage: minisystem> eam.sh setframecascademode 4
    admin:/diagnose>eam setframecascademode 4
    Set frame cascade mode succeed.
    admin:/diagnose>exit
  • Delete information about offline disk enclosures.

    Storage: minisystem>  eam.sh deleteFrameInfo  65
    admin:/diagnose>eam deleteFrameInfo 65
    Delete frame 65 success.
  • Check cables.

    Storage: minisystem> eam.sh showcablecheck
    admin:/diagnose>attach 21
    Attach AppId<21> success
    admin:/diagnose>eam showcablecheck 
    Cable check time interval: Not Running
    Force cable check time interval: 2160
    Show scale-up topo error list
    ErrCode  localPort        peerPort         suggestLocalPort         suggestPeerPort         
    Show scale-out topo error list
    ErrCode  localPort        peerPort         suggestLocalPort         suggestPeerPort         
    No Link  CTE0.IOM.H10.P0  CTE1.IOM.H10.P0  --                       --                      
    Err Link CTE0.IOM.H10.P1  CTE1.IOM.H10.P0  CTE0.IOM.H10.P0          CTE1.IOM.H10.P0         
    No Link  CTE0.IOM.L10.P0  CTE1.IOM.L10.P0  --                       --                      
    Err Link CTE0.IOM.L10.P1  CTE1.IOM.L10.P0  CTE0.IOM.L10.P0          CTE1.IOM.L10.P0         
    admin:/diagnose>exit

System Response

None

Translation
Download
Updated: 2020-01-17

Document ID: EDOC1000181602

Views: 757060

Downloads: 66

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next