RACADM » История » Версия 7
Константин Пильник, 2020-05-22 16:34
1 | 1 | Константин Пильник | h1. RACADM over SSH |
---|---|---|---|
2 | |||
3 | 7 | Константин Пильник | h2. Включение SNMPv3 |
4 | |||
5 | h3. iDRAC7 |
||
6 | |||
7 | _последовательность команд важна_ |
||
8 | <pre> |
||
9 | racadm set iDRAC.users.16.UserName zzzzzz |
||
10 | racadm set iDRAC.users.16.Password xxxxxxxxxx |
||
11 | racadm set iDRAC.users.16.SNMPv3AuthenticationType SHA |
||
12 | racadm set iDRAC.users.16.SNMPv3PrivacyType AES |
||
13 | racadm set iDRAC.users.16.SNMPv3Enable Enabled |
||
14 | racadm set iDRAC.users.16.Enable 1 |
||
15 | |||
16 | racadm set iDRAC.SNMP.SNMPProtocol SNMPv3 |
||
17 | racadm set iDRAC.SNMP.AgentEnable 1 |
||
18 | </pre> |
||
19 | |||
20 | 2 | Константин Пильник | h2. управление питанием сервера |
21 | |||
22 | h3. iDRAC6 |
||
23 | |||
24 | <pre> |
||
25 | hardreset — Performs a force reset (reboot) operation on the managed system. |
||
26 | powercycle — Performs a power-cycle operation on the managed system. |
||
27 | powerdown — Powers down the managed system. |
||
28 | powerup — Powers up the managed system. |
||
29 | powerstatus — Displays the current power status of the server (ON or OFF). |
||
30 | graceshutdown — Performs a graceful shutdown of the server. |
||
31 | 3 | Константин Пильник | </pre> |
32 | 2 | Константин Пильник | |
33 | пример: |
||
34 | |||
35 | racadm serveraction powerstatus |
||
36 | |||
37 | 4 | Константин Пильник | h2. логирование syslog |
38 | |||
39 | h3. iDRAC6 |
||
40 | |||
41 | <pre> |
||
42 | racadm config -g cfgRemoteHosts -o cfgRhostsSyslogEnable 1 |
||
43 | racadm config -g cfgRemoteHosts -o cfgRhostsSyslogServer1 93.171.206.67 |
||
44 | racadm config -g cfgRemoteHosts -o cfgRhostsSyslogPort 514 |
||
45 | </pre> |
||
46 | |||
47 | 5 | Константин Пильник | h3. iDRAC7 |
48 | |||
49 | <pre> |
||
50 | racadm set idrac.syslog.Server1 93.171.206.67 |
||
51 | racadm set idrac.syslog.Port 514 |
||
52 | racadm set idrac.syslog.SysLogEnable 1 |
||
53 | </pre> |
||
54 | |||
55 | 6 | Константин Пильник | h2. отключение всего, торчащего в интернет |
56 | 1 | Константин Пильник | |
57 | h3. iDRAC6 |
||
58 | |||
59 | <pre> |
||
60 | racadm config -g cfgRemoteHosts -o cfgRhostsFwUpdateTftpEnable 0 |
||
61 | racadm config -g cfgRacTuning -o cfgRacTuneRemoteRacadmEnable 0 |
||
62 | racadm config -g cfgRacTuning -o cfgRacTuneHttpPort 80 |
||
63 | racadm config -g cfgRacTuning -o cfgRacTuneSshPort=22022 |
||
64 | racadm config -g cfgRacTuning -o cfgRacTuneWebserverEnable 0 |
||
65 | racadm config -g cfgRacTuning -o cfgRacTuneLocalServerVideo 0 |
||
66 | racadm config -g cfgRacTuning -o cfgRacTuneConRedirEnable 0 |
||
67 | racadm config -g cfgRacVirtual -o cfgLCDriveEnable 0 |
||
68 | racadm config -g cfgIpmiSol -o cfgIpmiSolEnable 0 |
||
69 | racadm config -g cfgIpmiLan -o cfgIpmiLanEnable 0 |
||
70 | 5 | Константин Пильник | </pre> |
71 | |||
72 | h3. iDRAC7 |
||
73 | |||
74 | <pre> |
||
75 | racadm set idrac.IPMILan.enable 0 |
||
76 | racadm set idrac.IPMISOL.enable 0 |
||
77 | racadm set idrac.redfish.enable 0 |
||
78 | racadm set idrac.telnet.enable 0 |
||
79 | racadm set idrac.virtualconsole.enable 0 |
||
80 | racadm set idrac.virtualmedia.enable 0 |
||
81 | racadm set idrac.vncserver.enable 0 |
||
82 | racadm set idrac.webserver.enable 0 |
||
83 | 1 | Константин Пильник | </pre> |