DELL_iDRAC命令简述

命令方式配置

SSH连接进去之后,输入如下命令配置IP地址:

/admin1-> racadm config -g cfgLanNetworking -o cfgNicIpAddress 1.1.1.111
/admin1-> racadm config -g cfgLanNetworking -o cfgNicNetmask 255.255.255.0
/admin1-> racadm config -g cfgLanNetworking -o cfgNicGateway 1.1.1.110
/admin1-> racadm config -g cfgLanNetworking -o cfgDNSServer1 1.1.1.110

或者

/admin1-> racadm setniccfg -s 1.1.1.111 255.255.255.0 1.1.1.110
Static IP configuration enabled and modified successfully
/admin1->

输入如下命令查看一个用户名是否被占用:
格式:racadm getconfig -u <username>,举例,查看是否有“111”用户:
/admin1-> racadm getconfig -u 111   
# cfgUserAdminIndex=2
cfgUserAdminUserName=111
# cfgUserAdminPassword=******** (Write-Only)
cfgUserAdminEnable=1
cfgUserAdminPrivilege=0x000001ff
cfgUserAdminIpmiLanPrivilege=4
cfgUserAdminIpmiSerialPrivilege=4
cfgUserAdminSolEnable=1

或者,iDRAC能够储存16个用户信息,使用如下命令逐一查询:
格式:racadm getconfig -g cfgUserAdmin -i <index>,举例查看第二条用户记录是什么:

/admin1-> racadm getconfig -g cfgUserAdmin -i 2
# cfgUserAdminIndex=2
cfgUserAdminUserName=111
# cfgUserAdminPassword=******** (Write-Only)
cfgUserAdminEnable=1
cfgUserAdminPrivilege=0x000001ff
cfgUserAdminIpmiLanPrivilege=4
cfgUserAdminIpmiSerialPrivilege=4
cfgUserAdminSolEnable=1

下面举例创建一个叫john,密码为123456的管理员帐户到第三个(index号)iDRAC用户记录:
/admin1-> racadm config -g cfgUserAdmin -o cfgUserAdminUserName -i 3 john
Object value modified successfully
/admin1-> racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 3 123456
Object value modified successfully
/admin1-> racadm config -g cfgUserAdmin -i 3 -o cfgUserAdminPrivilege 0x000001ff
Object value modified successfully
/admin1-> racadm config -g cfgUserAdmin -i 3 -o cfgUserAdminIpmiLanPrivi

lege 4
Object value modified successfully
/admin1-> racadm config -g cfgUserAdmin -i 3 -o cfgUserAdminIpmiSerialPrivilege 4
Object value modified successfully
/admin1-> racadm config -g cfgUserAdmin -i 3 -o cfgUserAdminSolEnable 1
Object value modified successfully
/admin1-> racadm config -g cfgUserAdmin -i 3 -o cfgUserAdminEnable 1
Object value modified successfully

删用户的命令格式:

racadm config -g cfgUserAdmin -o cfgUserAdminUserName -i <index> ""
举例删除上面创建的john用户:

/admin1-> racadm config -g cfgUserAdmin -o cfgUserAdminUserName -i 3 ""
Object value modified successfully
/admin1->

WEB管理

IE访问不成 https://x.x.x.x/start.html卡在这儿了,不防试试火狐,添加信任站点之后,就哦了!

简单命令管理

a) 再SecureCRT里面新建SSH2连接,到1.1.1.101。输入用户名和密码之后,出现如下提示符:

/admin1->
b)  输入“help”将列出下面的可用命令:

/admin1-> help
[Usage]
    show   [<options>] [<target>] [<properties>]
           [<propertyname>== <propertyvalue>]
    set    [<options>] [<target>] <propertyname>=<value>
    cd     [<options>] [<target>]
    create [<options>] <target> [<property of new target>=<value>]
           [<property of new target>=<value>]
    delete [<options>] <target>
    exit   [<options>]
    reset  [<options>] [<target>]
    start  [<options>] [<target>]
    stop   [<options>] [<target>]
    version [<options>]
    help   [<options>] [<help topics>]
    load -source <URI> [<options>] [<target>]
    dump -destination <URI> [<options>] [<target>]

/admin1->
c)  iDRAC Express的功能中,我们更多关注的是它的服务器重启功能,从手册上查询得知:目标为“admin1/system1”就代表被管理的服务器。

d)  于是运行命令:“/admin1/system1-> reset /admin1/system1”重启一下吧,可以看到这台服务器上运行的windows 2003立马就PING不通了。。。
 
e)  等一会儿,它就起来了:
 
f)  关机:
 /admin1-> stop -f /admin1/system1
g)  开机:
/admin1-> start /admin1/system1
/admin1/system1 started at Wed Mar 30 16:34:57 2011
h)  稍等片刻OK了:

  • 3. RACADM命令使用初步:


a) 在SSH里面输入“racadm”,显示如下:

/admin1-> racadm

===============================================================================
RACADM version 1.54 (Build 15)
Copyright (c) 2003-2010 Dell, Inc.
All Rights Reserved
===============================================================================

RACADM usage syntax:

 racadm <subcommand> <options>

Examples:

 racadm getsysinfo
 racadm getsysinfo -d
 racadm getniccfg
 racadm setniccfg -d
 racadm setniccfg -s 192.168.0.120 255.255.255.0 192.168.0.1
 racadm getconfig -g cfgLanNetworking

Display a list of available subcommands for the RAC:

 racadm help

Display more detailed help for a specific subcommand:

 racadm help <subcommand>

-------------------------------------------------------------------------------

/admin1->

b) RACADM的子命令,举例:

/admin1-> racadm ifconfig---------查看网络配置
bond0     Link encap:Ethernet  HWaddr 84:2B:2B:FC:FA:EB 
          inet addr:1.1.1.101  Bcast:1.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::862b:2bff:fefc:faeb/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:1937778 errors:0 dropped:0 overruns:0 frame:0
          TX packets:58924 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:130030983 (124.0 MiB)  TX bytes:47662032 (45.4 MiB)

eth1      Link encap:Ethernet  HWaddr 84:2B:2B:FC:FA:EB 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1937843 errors:200 dropped:0 overruns:0 frame:0
          TX packets:1345538 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:16
          RX bytes:130034909 (124.0 MiB)  TX bytes:106846428 (101.8 MiB)
          Interrupt:16

eth2      Link encap:Ethernet  HWaddr 84:2B:2B:FC:FA:EB 
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:1937778 errors:0 dropped:0 overruns:0 frame:0
          TX packets:58924 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:16
          RX bytes:130030983 (124.0 MiB)  TX bytes:47662032 (45.4 MiB)
          Interrupt:16

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:22683 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22683 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3026370 (2.8 MiB)  TX bytes:3026370 (2.8 MiB)


/admin1-> racadm getractime----显示时间
Fri Apr  1 11:01:27 2011


/admin1-> racadm ping 1.1.1.101----PING命令
PING 1.1.1.101 (1.1.1.101): 56 data bytes
64 bytes from 1.1.1.101: seq=0 ttl=64 time=1.169 ms

--- 1.1.1.101 ping statistics ---
1 packets transmitted, 1 packets received, 0 percent packet loss
round-trip min/avg/max = 1.169/1.169/1.169 ms
c)  开关机命令:
racadm serveraction <action>
这里的<action>可以是powerup, powerdown, powercycle, hardreset, or powerstatus.
/admin1-> racadm serveraction powerstatus
Server power status: ON
/admin1-> racadm serveraction powercycle----强行关机再开机
Server power operation successful

d) getsysinfo

/admin1-> racadm getsysinfo

RAC Information:
RAC Date/Time           = 04/01/2011 13:31:58
Firmware Version        = 1.54
Firmware Build          = 15
Last Firmware Update    = 08/26/2010 07:25:47
Hardware Version        = 0.01
MAC Address             = 84:2b:2b:fc:fa:eb

Common settings:
Register DNS RAC Name   = 0
DNS RAC Name            = idrac-5R2G23X
Current DNS Domain      =
Domain Name from DHCP   = 0

IPv4 settings:
Enabled                 = 1
Current IP Address      = 1.1.1.101
Current IP Gateway      = 1.1.1.1
Current IP Netmask      = 255.0.0.0
DHCP Enabled            = 0
Current DNS Server 1    = 0.0.0.0
Current DNS Server 2    = 0.0.0.0
DNS Servers from DHCP   = 0

IPv6 settings:
Enabled                 = 0
Current IP Address 1    = ::
Current IP Gateway      = ::
Autoconfig              = 1
Link Local IP Address   = ::
Current IP Address 2    = ::
Current IP Address 3    = ::
Current IP Address 4    = ::
Current IP Address 5    = ::
Current IP Address 6    = ::
Current IP Address 7    = ::
Current IP Address 8    = ::
Current IP Address 9    = ::
Current IP Address 10   = ::
Current IP Address 11   = ::
Current IP Address 12   = ::
Current IP Address 13   = ::
Current IP Address 14   = ::
Current IP Address 15   = ::
DNS Servers from DHCPv6 = 0
Current DNS Server 1    = ::
Current DNS Server 2    = ::

System Information:
System Model            = PowerEdge R610
System Revision         = II
System BIOS Version     = 2.2.10
Service Tag             = 5R2G23X
Host Name               = xiaopang
OS Name                 = Microsoft Windows Server 2003, Enterprise Edition
Power Status            = ON

Embedded NIC MAC Addresses:
NIC1 Ethernet           = 84:2b:2b:fc:fa:e3
     iSCSI              = 84:2b:2b:fc:fa:e4
NIC2 Ethernet           = 84:2b:2b:fc:fa:e5
     iSCSI              = 84:2b:2b:fc:fa:e6
NIC3 Ethernet           = 84:2b:2b:fc:fa:e7
     iSCSI              = 84:2b:2b:fc:fa:e8
NIC4 Ethernet           = 84:2b:2b:fc:fa:e9
     iSCSI              = 84:2b:2b:fc:fa:ea

Watchdog Information:
Recovery Action         = None
Present countdown value = 15 seconds
Initial countdown value = 15 seconds
e)  获取服务器服务代码:getsvctag
/admin1-> racadm getsvctag
5R2G23X
f)  清日志:

/admin1-> racadm clrraclog
The RAC log was cleared successfully

/admin1-> racadm clrsel
The SEL was cleared successfully

g) 还有其他命令,详见DELL官方文档……

URL


你可能感兴趣的:(DELL_iDRAC命令简述)