Article original Publié le : 21 juin 2022 Mise à jour le : – |
Plus a l’aise avec la cli et trouve plus rapidement l’information
Il y a beaucoup d’option, j’en liste une infime exemple
Depuis une connexion ssh utilisateur@adresse_ip, cela affichera le prompt: /admin1->
Une fois connecté, on peut utiliser le shell en appelant racadm ou en si connectant directement, dans l’exemple ci dessous
1 |
/admin1-> racadm help |
ou
1 2 |
/admin1-> racadm racadm>> help |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
help -- Display list of RACADM sub commands with help string help [subcommand] -- display usage summary for a subcommand arp -- display the networking ARP table autoupdatescheduler -- Automatic Platform Update of the devices on the server. clearasrscreen -- clear the last ASR (crash) screen clearpending -- clear pending attribute(s) value of a Device Class closessn -- close a session clrsel -- clear the System Event Log (SEL) config -- Deprecated: modify RAC configuration properties coredump -- display the last RAC coredump coredumpdelete -- delete the last RAC coredump debug -- Field Service Debug Authorization facility commands eventfilters -- Alerts configuration commands fwupdate -- update the RAC firmware get -- display RAC configuration properties getconfig -- Deprecated: display RAC configuration properties gethostnetworkinterfaces -- Display host network interface details getled -- Get the state of the LED on a module. getniccfg -- display current network settings getraclog -- display the RAC log getractime -- display the current RAC time getsel -- display records from the System Event Log (SEL) getsensorinfo -- display system sensors getssninfo -- display session information getsvctag -- display service tag information getsysinfo -- display general RAC and system information gettracelog -- display the RAC diagnostic trace log getuscversion -- Deprecated: display the current USC version details getversion -- display the current version details ifconfig -- display network interface information inlettemphistory -- inlet temperature history operations license -- License Manager commands lclog -- LCLog operations frontpanelerror -- hide LCD errors - color amber to blue netstat -- display routing table and network statistics ping -- send ICMP echo packets on the network ping6 -- send ICMP echo packets on the network racdump -- display RAC diagnostic information racreset -- perform a RAC reset operation racresetcfg -- restore the RAC configuration to factory defaults remoteimage -- make a remote ISO image available to the server rollback -- Rollback firmware to its previous version. serveraction -- perform system power management operations set -- modify RAC configuration properties setled -- Set the state of the LED on a module. setniccfg -- modify network configuration properties sshpkauth -- manage SSH PK authentication keys on the RAC sslcertdelete -- delete an SSL certificate on the iDRAC sslcertview -- view SSL certificate information sslcsrgen -- generate a certificate CSR from the RAC sslencryptionstrength -- Deprecated: Display or modify the SSL Encryption strength. sslresetcfg -- Reset iDRAC to apply new certificate. Until iDRAC is reset old certificate will be active. swinventory -- Display the list of S/W Installed on the server. systemconfig -- Backup &/or Restore of iDRAC Config and Firmware systemerase -- Performs system erase on a selected component. testemail -- test RAC e-mail notifications testtrap -- test RAC SNMP trap notifications testalert -- test RAC SNMP - FQDN trap notifications traceroute -- print the route packets trace to network host traceroute6 -- print the route packets trace to network host techsupreport -- Tech Support Report operations. usercertview -- view user certificate information vflashpartition -- manage partitions on the vFlash SD card vflashsd -- perform vFlash SD Card initialization vmdisconnect -- disconnect Virtual Media connections raid -- Monitoring and Inventory of H/W RAID connected to the server. storage -- Monitoring and Inventory of H/W RAID connected to the server. hwinventory -- Monitoring and Inventory of H/W NICs connected to the server. nicstatistics -- Statistics for NICs connected to the server. fcstatistics -- Statistics for FCs connected to the server. update -- Platform Update of the devices on the server jobqueue -- Jobqueue of of the jobs currently scheduled sensorsettings -- Set the sensor threshold levels. diagnostics -- Remote Diagnostic commands systemperfstatistics -- Display or Modify System Performance Statistics Groups BIOS -- Configuration of BIOS attributes iDRAC -- Configuration of iDRAC attributes LifecycleController -- Configuration of LifecycleController attributes Nic -- Configuration of NIC attributes Storage -- Configuration of Storage attributes System -- Configuration of System attributes FC -- Configuration of Fiber Channel attributes For Help on configuring the properties of a group - racadm help set ----------------------------------------------------------------------- |
Disque et raid
Utiliser
racadm help raid
racadm raid help vdisks
racadm raid help pdisks
On peut monitorer l’état, créer un volume raid, ajouter des disques …
- Pour lister le(s) raid(s)
1 |
/admin1-> racadm storage get vdisks |
1 |
Disk.Virtual.0:RAID.Integrated.1-1 |
- Pour afficher en détail le(s) raid(s)
1 |
/admin1-> racadm storage get vdisks -o |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
Disk.Virtual.0:RAID.Integrated.1-1 Status = Ok DeviceDescription = Virtual Disk 0 on Integrated RAID Controller 1 Name = raid RollupStatus = Ok State = Online OperationalState = Not applicable Layout = Raid-5 Size = 7820.751 GB SpanDepth = 1 AvailableProtocols = SAS MediaType = HDD ReadPolicy = Read Ahead WritePolicy = Write Back StripeSize = 64K DiskCachePolicy = Default BadBlocksFound = NO Secured = NO RemainingRedundancy = 1 EnhancedCache = Not Applicable T10PIStatus = Disabled BlockSizeInBytes = 512 |
- Si on souhaite avoir une vue plus simpliste, ne récupérer par exemple que les champs type et status
1 |
/admin1-> racadm storage get vdisks -o -p Layout,Status |
1 2 3 |
Disk.Virtual.0:RAID.Integrated.1-1 Layout = Raid-5 Status = Ok |
- Pour lister les disques
1 |
/admin1-> racadm raid get pdisks |
1 2 3 4 5 6 7 8 |
Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.3:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.4:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.5:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.6:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.7:Enclosure.Internal.0-1:RAID.Integrated.1-1 |
- Pour afficher en détail tous les disques
1 |
/admin1-> racadm raid get pdisks -o |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1 Status = Ok DeviceDescription = Disk 0 in Backplane 1 of Integrated RAID Controller 1 RollupStatus = Ok Name = Physical Disk 0:1:0 State = Online OperationState = Not Applicable PowerStatus = Spun-Up Size = 1117.250 GB FailurePredicted = NO RemainingRatedWriteEndurance = Not Applicable SecurityStatus = Not Capable BusProtocol = SAS MediaType = HDD UsedRaidDiskSpace = 1117.250 GB AvailableRaidDiskSpace = 0.001 GB Hotspare = NO Manufacturer = SEAGATE ProductId = ST1200MM0099 Revision = ST31 SerialNumber = WFK0VX18 PartNumber = CN0G2G54SGW00856025SA00 NegotiatedSpeed = 12.0 Gb/s ManufacturedDay = 3 ManufacturedWeek = 18 ManufacturedYear = 2018 ForeignKeyIdentifier = null SasAddress = 0x5000C500B84DC781 FormFactor = 2.5 Inch RaidNominalMediumRotationRate = 10000 T10PICapability = Not Capable BlockSizeInBytes = 512 MaxCapableSpeed = 12 Gb/s RaidType = None SystemEraseCapability = SecureErasePD SelfEncryptingDriveCapability = Not Capable EncryptionCapability = Not Capable CryptographicEraseCapability = Capable Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1 Status = Ok DeviceDescription = Disk 1 in Backplane 1 of Integrated RAID Controller 1 RollupStatus = Ok Name = Physical Disk 0:1:1 State = Online OperationState = Not Applicable PowerStatus = Spun-Up Size = 1117.250 GB FailurePredicted = NO RemainingRatedWriteEndurance = Not Applicable SecurityStatus = Not Capable BusProtocol = SAS MediaType = HDD UsedRaidDiskSpace = 1117.250 GB AvailableRaidDiskSpace = 0.001 GB Hotspare = NO Manufacturer = SEAGATE ProductId = ST1200MM0099 Revision = ST31 SerialNumber = WFK0VX6P PartNumber = CN0G2G54SGW0085602UJA00 NegotiatedSpeed = 12.0 Gb/s ManufacturedDay = 3 ManufacturedWeek = 18 ManufacturedYear = 2018 ForeignKeyIdentifier = null SasAddress = 0x5000C500B84DB501 FormFactor = 2.5 Inch RaidNominalMediumRotationRate = 10000 T10PICapability = Not Capable BlockSizeInBytes = 512 MaxCapableSpeed = 12 Gb/s RaidType = None SystemEraseCapability = SecureErasePD SelfEncryptingDriveCapability = Not Capable EncryptionCapability = Not Capable CryptographicEraseCapability = Capable ... |
- Plus simplement, ne récupérer que les champs status, l’état et la date de fabrication
1 |
/admin1-> racadm raid get pdisks -o -p State,Size,ManufacturedYear |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1 State = Online Size = 1117.250 GB ManufacturedYear = 2018 Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1 State = Online Size = 1117.250 GB ManufacturedYear = 2018 Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1 State = Online Size = 1117.250 GB ManufacturedYear = 2018 ... |
Système
Utiliser
racadm help getsysinfo
racadm help iDRAC.Users
Juste un éxemple des infos et actions que l’on peut faire …
Trouver le service TAG
1 |
/admin1-> racadm getsvctag |
Afficher l’information global du système
1 |
/admin1-> racadm getsysinfo |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
RAC Information: RAC Date/Time = Tue Jun 21 14:56:11 2022 Firmware Version = 3.30.30.30 Firmware Build = 76 Last Firmware Update = 03/14/2019 20:21:52 Hardware Version = 0.01 MAC Address = xx:xx:xx:xx:xx:b2 SVC Tag = XXXXXQ2 Common settings: Register DNS RAC Name = 0 DNS RAC Name = iDRAC-XXXXXQ2 Current DNS Domain = Domain Name from DHCP = Disabled IPv4 settings: Enabled = 1 Current IP Address = 10.xx.xx.xx Current IP Gateway = 10.xx.xx.xx Current IP Netmask = 255.xx.xx.xx DHCP Enabled = 0 Current DNS Server 1 = 0.0.0.0 Current DNS Server 2 = 0.0.0.0 DNS Servers from DHCP = Disabled IPv6 settings: Enabled = 0 Current IP Address 1 = :: Current IP Gateway = :: Autoconfig = 1 System Information: System Model = PowerEdge R640 System Revision = I System BIOS Version = 1.4.5 Service Tag = XXXXXQ2 Express Svc Code = xxxxxxxxx82 Host Name = OS Name = OS Version = Power Status = ON Fresh Air Capable = Yes Watchdog Information: Recovery Action = None Present countdown value = 15 seconds Initial countdown value = 15 seconds System Thermal Information: EstimatedSystemAirflow = 24 CFM EstimatedExhaustTemperature = 41 Degrees Centigrade Embedded NIC MAC Addresses: NIC.Integrated.1-4-1 Ethernet = 24:6E:96:xx:xx:xx NIC.Integrated.1-3-1 Ethernet = 24:6E:96:xx:xx:xx NIC.Integrated.1-2-1 Ethernet = 24:6E:96:xx:xx:xx NIC.Integrated.1-1-1 Ethernet = 24:6E:96:xx:xx:xx |
Controller les différentes sondes
1 |
/admin1-> racadm getsensorinfo |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
Sensor Type : POWER <Sensor Name> <Status> <Type> PS1 Status Present AC PS2 Status Present AC Sensor Type : FAN <Sensor Name> <Status> <Reading> <lc> <uc> <PWM %> <Type> System Board Fan1A Ok 5520RPM 600RPM NA 17% Standard Performance System Board Fan1B Ok 4200RPM 600RPM NA 17% Standard Performance System Board Fan2A Ok 5640RPM 600RPM NA 17% Standard Performance System Board Fan2B Ok 4080RPM 600RPM NA 17% Standard Performance System Board Fan3A Ok 5520RPM 600RPM NA 17% Standard Performance System Board Fan3B Ok 4320RPM 600RPM NA 17% Standard Performance System Board Fan4A Ok 5760RPM 600RPM NA 17% Standard Performance System Board Fan4B Ok 4320RPM 600RPM NA 17% Standard Performance System Board Fan5A Ok 5400RPM 600RPM NA 17% Standard Performance System Board Fan5B Ok 4080RPM 600RPM NA 17% Standard Performance System Board Fan6A Ok 5640RPM 600RPM NA 17% Standard Performance System Board Fan6B Ok 4080RPM 600RPM NA 17% Standard Performance System Board Fan7A Ok 5760RPM 600RPM NA 17% Standard Performance System Board Fan7B Ok 4200RPM 600RPM NA 17% Standard Performance System Board Fan8A Ok 5640RPM 600RPM NA 17% Standard Performance System Board Fan8B Ok 4080RPM 600RPM NA 17% Standard Performance Sensor Type : VOLTAGE <Sensor Name> <Status> <Reading> <lc> <uc> System Board DIMM PG Ok Good NA NA System Board NDC PG Ok Good NA NA System Board PS1 PG FAIL Ok Good NA NA System Board PS2 PG FAIL Ok Good NA NA System Board BP0 PG Ok Good NA NA System Board BP1 PG Ok Good NA NA System Board 1.8V SW PG Ok Good NA NA System Board 2.5V SW PG Ok Good NA NA System Board 5V SW PG Ok Good NA NA System Board PVNN SW PG Ok Good NA NA System Board VSB11 SW PG Ok Good NA NA System Board VSBM SW PG Ok Good NA NA System Board 3.3V B PG Ok Good NA NA CPU1 MEM012 VDDQ PG Ok Good NA NA CPU1 MEM012 VPP PG Ok Good NA NA CPU1 MEM012 VTT PG Ok Good NA NA CPU1 MEM345 VDDQ PG Ok Good NA NA CPU1 MEM345 VPP PG Ok Good NA NA CPU1 MEM345 VTT PG Ok Good NA NA CPU1 VCCIO PG Ok Good NA NA CPU1 VCORE PG Ok Good NA NA CPU1 FIVR PG Ok Good NA NA CPU2 MEM012 VDDQ PG Ok Good NA NA CPU2 MEM012 VPP PG Ok Good NA NA CPU2 MEM012 VTT PG Ok Good NA NA CPU2 MEM345 VDDQ PG Ok Good NA NA CPU2 MEM345 VPP PG Ok Good NA NA CPU2 MEM345 VTT PG Ok Good NA NA CPU2 VCCIO PG Ok Good NA NA CPU2 VCORE PG Ok Good NA NA CPU2 FIVR PG Ok Good NA NA PS1 Voltage 1 Ok 236.00V NA NA PS2 Voltage 2 Ok 236.00V NA NA System Board 3.3V A PG Ok Good NA NA CPU1 VSA PG Ok Good NA NA CPU2 VSA PG Ok Good NA NA System Board BP2 PG Ok Good NA NA Sensor Type : PROCESSOR <Sensor Name> <Status> <State> <lc> <uc> CPU1 Status Ok Presence_Detected NA NA CPU2 Status Ok Presence_Detected NA NA Sensor Type : MEMORY <Sensor Name> <Status> <State> <lc> <uc> DIMM A1 Ok Presence_Detected NA NA DIMM A2 Ok Presence_Detected NA NA DIMM A3 N/A Absent NA NA DIMM A4 Ok Presence_Detected NA NA DIMM A5 Ok Presence_Detected NA NA DIMM A6 N/A Absent NA NA DIMM A7 Ok Presence_Detected NA NA DIMM A8 Ok Presence_Detected NA NA DIMM A9 N/A Absent NA NA DIMM A10 Ok Presence_Detected NA NA DIMM A11 Ok Presence_Detected NA NA DIMM A12 N/A Absent NA NA DIMM B1 Ok Presence_Detected NA NA DIMM B2 Ok Presence_Detected NA NA DIMM B3 N/A Absent NA NA DIMM B4 Ok Presence_Detected NA NA DIMM B5 Ok Presence_Detected NA NA DIMM B6 N/A Absent NA NA DIMM B7 Ok Presence_Detected NA NA DIMM B8 Ok Presence_Detected NA NA DIMM B9 N/A Absent NA NA DIMM B10 Ok Presence_Detected NA NA DIMM B11 Ok Presence_Detected NA NA DIMM B12 N/A Absent NA NA Sensor Type : BATTERY <Sensor Name> <Status> <Reading> <lc> <uc> System Board CMOS Battery Ok Present NA NA PERC1 ROMB Battery Ok Present NA NA Sensor Type : PERFORMANCE <Sensor Name> <Status> <State> <lc> <uc> System Board Power Optimized Ok Not Degraded NA NA Sensor Type : INTRUSION <Sensor Name> <Intrusion> <Status> System Board Intrusion Closed Power ON Sensor Type : REDUNDANCY <Sensor Name> <Status> <Type> System Board PS Redundancy Full Redundant PSU System Board Fan Redundancy Full Redundant Fan |
Utiliser l’option get et auto-compléter séparé par un point pour les sous options, en exemple
1 |
/admin1-> racadm get System.SystemInfo |
1 |
/admin1-> racadm get BIOS.BiosBootSettings |
1 |
/admin1-> racadm get STORAGE.VirtualDisk |
Voir quelle communauté snmp est utilisé
1 |
/admin1-> racadm get iDRAC.SNMP |
1 2 3 4 5 6 7 8 |
[Key=iDRAC.Embedded.1#SNMP.1] AgentCommunity=public AgentEnable=Enabled AlertPort=162 DiscoveryPort=161 #EngineID=0x80001f88805d7cdc4f9fdd385a SNMPProtocol=All TrapFormat=SNMPv1 |
Lister les utilisateurs
1 |
/admin1-> racadm get iDRAC.Users |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
iDRAC.Users.1 [Key=iDRAC.Embedded.1#Users.1] iDRAC.Users.2 [Key=iDRAC.Embedded.1#Users.2] iDRAC.Users.3 [Key=iDRAC.Embedded.1#Users.3] iDRAC.Users.4 [Key=iDRAC.Embedded.1#Users.4] iDRAC.Users.5 [Key=iDRAC.Embedded.1#Users.5] iDRAC.Users.6 [Key=iDRAC.Embedded.1#Users.6] iDRAC.Users.7 [Key=iDRAC.Embedded.1#Users.7] iDRAC.Users.8 [Key=iDRAC.Embedded.1#Users.8] iDRAC.Users.9 [Key=iDRAC.Embedded.1#Users.9] iDRAC.Users.10 [Key=iDRAC.Embedded.1#Users.10] iDRAC.Users.11 [Key=iDRAC.Embedded.1#Users.11] iDRAC.Users.12 [Key=iDRAC.Embedded.1#Users.12] iDRAC.Users.13 [Key=iDRAC.Embedded.1#Users.13] iDRAC.Users.14 [Key=iDRAC.Embedded.1#Users.14] iDRAC.Users.15 [Key=iDRAC.Embedded.1#Users.15] iDRAC.Users.16 [Key=iDRAC.Embedded.1#Users.16] |
Verifier la conf d’un utilisateur
1 |
/admin1-> racadm get iDRAC.Users.2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
[Key=iDRAC.Embedded.1#Users.2] AuthenticationProtocol=SHA Enable=Disabled IPMIKey=E70AE63FF65760D51A2CDD0BD7FFF11DBC26893ED063343B945AEA825EF360D4 IpmiLanPrivilege=4 IpmiSerialPrivilege=4 MD5v3Key=B6C1C412EFF71E7EC85F89C1F55E5ECF !!Password=******** (Write-Only) PrivacyProtocol=AES Privilege=0x1ff ProtocolEnable=Disabled SHA1v3Key=59AB325F5F3A118540BEC4CAF3553C938FEA2D0B SHA256Password=350D144CCB01C728A3E0C50648F937A8C45494BB4050E476DD6A949F358B707A SHA256PasswordSalt=7E882715A9AA8E50D847D611A0717849 SolEnable=Disabled UserName=root |
Changer le mot de l’utilisateur ID.2
1 |
/admin1-> racadm set iDRAC.Users.2.Password nouveau_mot_de_passe |
1 2 |
[Key=iDRAC.Embedded.1#Users.2] Object value modified successfully |
Redemarrer l’iDrac
1 |
/admin1-> racadm racreset soft |
1 2 |
RAC reset operation initiated successfully. It may take a few minutes for the RAC to come online again. |
Restart d’un serveur
Exemple: racadm -u login -p mot_de_passe -r adresse_serveur serveraction hardreset
1 |
/admin1-> racadm serveraction hardreset |
Autre option
powerup: serveur sous tension
powerdown: serveur hors tension
powercycle: cycle d’alimentation du serveur
hardreset: réinitialisation matérielle du serveur
Source
-https://www.dell.com/support/manuals/fr-fr/poweredge-t340/idrac9_5.xx_racadm_pub/racadm-subcommand-details?guid=guid-3e09aba8-6e2c-4fd9-9a17-d05f2596dbac&lang=en-us
-https://www.gooksu.com/2015/04/racadm-quick-dirty-cheatsheet/
-https://jonamiki.com/2018/01/26/idrac-password-less-login-idrac-certificate-login/