«

iBMC命令行参数

orange3 发布于 阅读:817 服务器存储


iBMC命令行参数

ssh登录iBMC,输入账号密码(与WebUI相同)

BMC:/->help
Commands:
help      :       Used to get context sensitive help.
exit      :       Used to terminate the CLP session.
ipmcget   :       Used to get BMC runtime status.                             # 用于获取BMC运行时状态。
ipmcset   :       Used to set BMC runtime status or send control command.     # 用于设置BMC运行状态或发送控制命令。
notimeout :       Used to set no timeout limit to login shell.                # 用于为登录shell设置无超时限制。
maint_debug_cli : Used to maintance in debug mode.                            # 用于debug模式下进行维护。
ping      :       Used to test IPv4 network status.
ping6     :       Used to test IPv6 network status.
ifconfig  :       Used to check network device information.                   # 用于检查网络设备信息。
free      :       Used to check memory status.                                # 用于检查内存状态。
top       :       Used to check system resource used information. None parameter is allowed# 用于检查系统资源使用信息。不允许使用任何参数
df        :       Used to check disk used information.                        # 用于检查磁盘使用信息。
route     :       Used to check route information. None parameter is allowed  # 用于检查路由信息。不允许使用任何参数
netstat   :       Used to check network port status.                          # 用于检查网络端口状态。

ipmcget

BMC:/->ipmcget
Usage: ipmcget [-t target] -d dataitem [-v value]
    -t <target>
       fru0                          Get the information of the fru0     # 获取fru0的信息              
       sensor                        Print detailed sensor information   # 打印详细的传感器信息               
       smbios                        Get the information of smbios       # 获取SMBIOS的信息              
       trap                          Get SNMP trap status                # 获取SNMP陷阱状态              
       service                       Get service information                         
       maintenance                   Get maintenance information                     
       syslog                        Get syslog status                               
       user                          Get the information of user                     
       securitybanner                Get login security banner information           
       vnc                           Get VNC information                             
       storage                       Get storage device information                  
       config                        Get configuration information                   
       vmm                           Get Virtual Media information                   
       certificate                   Get SSL certificate information                 
       sol                           Get SOL information                             
       securityenhance               Get security enhance information                
       usbmgmt                       Get usb mgmt service information                

    -d <dataitem>
       faninfo                       Get fan mode and the percentage of the fan speed  
       port80                        Get the diagnose code of port 80                
       diaginfo                      Get diagnostic info of management subsystem     
       systemcom                     Get system com data                             
       blackbox                      Get black box data                              
       bootdevice                    Get boot device                                 
       shutdowntimeout               Get graceful shutdown timeout state and value   
       powerstate                    Get power state                                 
       health                        Get health status                               
       healthevents                  Get health events                               
       sel                           Print System Event Log (SEL)                    
       operatelog                    Print operation log                             
       version                       Get BMC version                                 
       serialnumber                  Get system serial number                        
       userlist                      List all user info                              
       fruinfo                       Get fru information                             
       time                          Get system time                                 
       macaddr                       Get mac address                                 
       serialdir                     Get currently connected serial direction        
       rollbackstatus                Get rollback status                             
       passwordcomplexity            Get password complexity check enable status     
       ledinfo                       Get led information                             
       ipinfo                        Get ip information                              
       ethport                       Get usable eth port                             
       psuinfo                       Get PSU component information                   
       autodiscovery                 Get autodiscovery configuration                 
       poweronpermit                 Get poweronpermit configuration                 
       minimumpasswordage            Get minimum password age configuration          
       ntpinfo                       Get NTP information                             
       notimeoutstate                Get CLI session notimeout state                 
       lldpinfo                      Get LLDP information            

ipmcset

BMC:/->ipmcset
Usage: ipmcset [-t 目标] -d 数据项 [-v value值]
For excmples: ipm -t sel -d 
    -t <target>
       fru0                          Operate with fru0                               
       trap                          Operate SNMP trap                           # 操作SNMP陷阱      
       service                       Operate with service                            
       user                          Operate with user                               
       maintenance                   Operate with maintenance                    # 维修状况下操作      
       sensor                        Operate with sensor                         # 传感器操作      
       securitybanner                Operate login security banner information   # 登录安全banner信息操作      
       syslog                        Operate syslog                              # 操作系统日志      
       ntp                           Operate ntp                                 # 操作网络时间协议(NTP)      
       vnc                           Operate vnc                                     
       storage                       Configure storage device                    # 配置存储设备      
       config                        Operate configuration                       # 操作配置      
       vmm                           Operate virtual media                       # 操作虚拟媒体      
       certificate                   Operate certificate                         # 操作证书      
       sol                           Operate SOL                                 # 操作SOL     
       securityenhance               Operate security enhance                    # 操作安全增强      
       precisealarm                  Operate with precise alarm                  # 精确报警操作      
       usbmgmt                       Operate USB mgmt service                        
       lldp                          Operate lldp                                    

    -d <dataitem>
       fanmode                       Set fan mode,you can choose manual or auto  # 设置风扇模式,你可以选择手动或自动。      
       fanlevel                      Set fanlevel                                # 设置风扇等级      
       reset                         Reboot BMC system                           # 重启BMC系统      
       identify                      Operate identify led                        # 操作识别LED      
       upgrade                       Upgrade component                           # 升级组件      
       clearcmos                     Clear CMOS                                  # 清除CMOS      
       bootdevice                    Set boot device                                 
       shutdowntimeout               Set graceful shutdown timeout state and value  # 设置最优的关闭超时的状态和数值   
       frucontrol                    Fru control                                 # Fru控制      
       powerstate                    Set power state                                 
       sel                           Clear SEL                                       
       adduser                       Add user                                        
       password                      Modify user password                            
       deluser                       Delete user                                     
       privilege                     Set user privilege                              
       serialdir                     Set serial direction                        # 设置串行方向     
       printscreen                   Print current screen to BMC                 # 将当前屏幕打印到BMC      
       rollback                      Perform a manual rollback                       
       timezone                      Set time zone                                   
       passwordcomplexity            Set password complexity check enable state      
       ipaddr                        Set ip address                                  
       backupipaddr                  Set backup ip address                           
       ipmode                        Set ip mode                                     
       gateway                       Set gateway                                     
       ipaddr6                       Set ipv6 address                                
       ipmode6                       Set ipv6 mode                                   
       gateway6                      Set ipv6 gateway                                
       netmode                       Set net mode                                    
       activeport                    Set EthGroup active port                        
       vlan                          Set sideband vlan                               
       restore                       Restore factory setting                         
       notimeout                     Set no timeout state                            
       emergencyuser                 Set emergency user                              
       autodiscovery                 Set autodiscovery configuration                 
       poweronpermit                 Set poweronpermit configuration                 
       minimumpasswordage            Set minimum password age configuration          
       crl                           Upload CRL file                                 
       psuworkmode                   Set PSU work mode                               
       fpgagoldenfwrestore           FPGA golden firmware restore   

ibmc dp2210