Dell Server-related operations

Source: Internet
Author: User

1. RAID Related:


# Delete existing RAID configurations

Megacli64-cfglddel-lall-aall


# Get Device ID and slot number

Megacli64-pdlist-aall|egrep ' Enclosure Device id| Slot number ' |awk ' Nr%2==0{print $; Nr%2!=0{print $4;} '


# Create RAID5, $sdaslots the disk ID and slot number used to create the raid to be constructed to match the parameter requirements, size 500G

Megacli64-cfgldadd-r5 "$sdaslots" WB RA Direct cachedbadbbu-sz500gb-a0


2. Remote management card operation, using sshpass do not need to enter the password manually, $user and $ip are the Idrac device user name and password, respectively:


# Turn on system power

Sshpass-p $password ssh-o connecttimeout=90-o stricthostkeychecking=no-o Userknownhostsfile=/dev/null-o LogLevel=qui ET [email protected] $ip Racadm serveraction powerup


# Turn on system power from PXE boot, primarily to install the system over the network

Sshpass-p $password ssh-o connecttimeout=90-o stricthostkeychecking=no-o Userknownhostsfile=/dev/null-o LogLevel=qui ET [email protected] $ip racadm config-g cfgserverinfo-o cfgserverbootonce

Sshpass-p $password ssh-o connecttimeout=90-o stricthostkeychecking=no-o Userknownhostsfile=/dev/null-o LogLevel=qui ET [email protected] $ip racadm config-g cfgserverinfo-o cfgserverfirstbootdevice PXE

Sshpass-p $password ssh-o connecttimeout=90-o stricthostkeychecking=no-o Userknownhostsfile=/dev/null-o LogLevel=qui ET [email protected] $ip Racadm serveraction powercycle


# Get System power Status

Sshpass-p $password ssh-o connecttimeout=90-o stricthostkeychecking=no-o Userknownhostsfile=/dev/null-o LogLevel=qui ET [email protected] $ip racadm serveraction powerstatus 2>/dev/null|awk ' {print $4} '


# Power off the system

Sshpass-p $password ssh-o connecttimeout=90-o stricthostkeychecking=no-o Userknownhostsfile=/dev/null-o LogLevel=qui ET [email protected] $ip Racadm serveraction powerdown


Dell Server-related operations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.