Проект

Общее

Профиль

RACADM » История » Версия 8

Константин Пильник, 2020-05-22 17:15

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 8 Константин Пильник
h3. iDRAC9
21
22
<pre>
23
racadm set iDRAC.SNMP.SNMPProtocol SNMPv3
24
racadm set iDRAC.SNMP.AgentEnable 1
25
26
racadm set idrac.users.16.UserName yyyy
27
racadm set idrac.users.16.Password xxxxxxxxxxxxx
28
racadm set idrac.users.16.AuthenticationProtocol SHA
29
racadm set idrac.users.16.PrivacyProtocol AES
30
racadm set idrac.users.16.ProtocolEnable 1
31
32
racadm set idrac.users.16.Enable 1
33
</pre>
34
35 2 Константин Пильник
h2. управление питанием сервера
36
37
h3. iDRAC6
38
39
<pre>
40
hardreset — Performs a force reset (reboot) operation on the managed system.
41
powercycle — Performs a power-cycle operation on the managed system.
42
powerdown — Powers down the managed system.
43
powerup — Powers up the managed system.
44
powerstatus — Displays the current power status of the server (ON or OFF).
45
graceshutdown — Performs a graceful shutdown of the server.
46 3 Константин Пильник
</pre>
47 2 Константин Пильник
48
пример:
49
50
racadm serveraction powerstatus
51
52 4 Константин Пильник
h2. логирование syslog
53
54
h3. iDRAC6
55
56
<pre>
57
racadm config -g cfgRemoteHosts -o cfgRhostsSyslogEnable 1
58
racadm config -g cfgRemoteHosts -o cfgRhostsSyslogServer1 93.171.206.67
59
racadm config -g cfgRemoteHosts -o cfgRhostsSyslogPort 514
60
</pre>
61
62 5 Константин Пильник
h3. iDRAC7
63
64
<pre>
65
racadm set idrac.syslog.Server1 93.171.206.67
66
racadm set idrac.syslog.Port 514
67
racadm set idrac.syslog.SysLogEnable 1
68
</pre>
69
70 6 Константин Пильник
h2. отключение всего, торчащего в интернет
71 1 Константин Пильник
72
h3. iDRAC6
73
74
<pre>
75
racadm config -g cfgRemoteHosts -o cfgRhostsFwUpdateTftpEnable 0
76
racadm config -g cfgRacTuning -o cfgRacTuneRemoteRacadmEnable 0
77
racadm config -g cfgRacTuning -o cfgRacTuneHttpPort 80
78
racadm config -g cfgRacTuning -o cfgRacTuneSshPort=22022
79
racadm config -g cfgRacTuning -o cfgRacTuneWebserverEnable 0
80
racadm config -g cfgRacTuning -o cfgRacTuneLocalServerVideo 0
81
racadm config -g cfgRacTuning -o cfgRacTuneConRedirEnable 0
82
racadm config -g cfgRacVirtual -o cfgLCDriveEnable 0
83
racadm config -g cfgIpmiSol -o cfgIpmiSolEnable 0
84
racadm config -g cfgIpmiLan -o cfgIpmiLanEnable 0
85 5 Константин Пильник
</pre>
86
87
h3. iDRAC7
88
89
<pre>
90
racadm set idrac.IPMILan.enable 0
91
racadm set idrac.IPMISOL.enable 0
92
racadm set idrac.redfish.enable 0
93
racadm set idrac.telnet.enable 0
94
racadm set idrac.virtualconsole.enable 0
95
racadm set idrac.virtualmedia.enable 0
96
racadm set idrac.vncserver.enable 0
97
racadm set idrac.webserver.enable 0
98 1 Константин Пильник
</pre>