| | 159 | |
| | 160 | == 查詢 Sensor Data Repository 狀態 == |
| | 161 | |
| | 162 | {{{ |
| | 163 | ~$ sudo ipmitool sdr help |
| | 164 | usage: sdr <command> [options] |
| | 165 | list | elist [option] |
| | 166 | all All SDR Records |
| | 167 | full Full Sensor Record |
| | 168 | compact Compact Sensor Record |
| | 169 | event Event-Only Sensor Record |
| | 170 | mcloc Management Controller Locator Record |
| | 171 | fru FRU Locator Record |
| | 172 | generic Generic Device Locator Record |
| | 173 | |
| | 174 | type [option] |
| | 175 | <Sensor_Type> Retrieve the state of specified sensor. |
| | 176 | Sensor_Type can be specified either as |
| | 177 | a string or a hex value. |
| | 178 | list Get a list of available sensor types |
| | 179 | |
| | 180 | get <Sensor_ID> |
| | 181 | Retrieve state of the first sensor matched by Sensor_ID |
| | 182 | |
| | 183 | info |
| | 184 | Display information about the repository itself |
| | 185 | |
| | 186 | entity <Entity_ID>[.<Instance_ID>] |
| | 187 | Display all sensors associated with an entity |
| | 188 | |
| | 189 | dump <file> |
| | 190 | Dump raw SDR data to a file |
| | 191 | |
| | 192 | fill <option> |
| | 193 | sensors Creates the SDR repository for the current |
| | 194 | configuration |
| | 195 | nosat Creates the SDR repository for the current |
| | 196 | configuration, without satellite scan |
| | 197 | file <file> Load SDR repository from a file |
| | 198 | range <range> Load SDR repository from a provided list |
| | 199 | or range. Use ',' for list or '-' for |
| | 200 | range, eg. 0x28,0x32,0x40-0x44 |
| | 201 | }}} |
| | 202 | |
| | 203 | {{{ |
| | 204 | ~$ sudo ipmitool sdr info |
| | 205 | SDR Version : 0x51 |
| | 206 | Record Count : 121 |
| | 207 | Free Space : 1478 bytes |
| | 208 | Most recent Addition : 02/07/2106 06:28:15 |
| | 209 | Most recent Erase : 02/07/2106 06:28:15 |
| | 210 | SDR overflow : no |
| | 211 | SDR Repository Update Support : modal |
| | 212 | Delete SDR supported : no |
| | 213 | Partial Add SDR supported : no |
| | 214 | Reserve SDR repository supported : yes |
| | 215 | SDR Repository Alloc info supported : no |
| | 216 | }}} |
| | 217 | |
| | 218 | {{{ |
| | 219 | ~$ sudo ipmitool sdr elist mcloc |
| | 220 | iDRAC6 | 00h | ok | 7.1 | Dynamic MC @ 20h |
| | 221 | }}} |
| | 222 | |
| | 223 | == sensor == |
| | 224 | |
| | 225 | {{{ |
| | 226 | ~$ sudo ipmitool sensor help |
| | 227 | Sensor Commands: list thresh get reading |
| | 228 | }}} |
| | 229 | |
| | 230 | == FRU == |
| | 231 | |
| | 232 | * 可以查詢到主機板序號!!! |
| | 233 | |
| | 234 | {{{ |
| | 235 | ~$ sudo ipmitool fru help |
| | 236 | FRU Commands: print read write upgEkey edit internaluse get |
| | 237 | ~$ sudo ipmitool fru |
| | 238 | FRU Device Description : Builtin FRU Device (ID 0) |
| | 239 | Board Mfg Date : Sat Dec 8 22:53:00 2012 |
| | 240 | Board Mfg : DELL |
| | 241 | Board Product : PowerEdge R410 |
| | 242 | Board Serial : |
| | 243 | Board Part Number : |
| | 244 | Product Manufacturer : DELL |
| | 245 | Product Version : 02 |
| | 246 | Product Serial : |
| | 247 | |
| | 248 | FRU Device Description : PS 1 (ID 2) |
| | 249 | Unknown FRU header version 0x00 |
| | 250 | |
| | 251 | FRU Device Description : PS 2 (ID 3) |
| | 252 | Unknown FRU header version 0x00 |
| | 253 | |
| | 254 | FRU Device Description : Storage (ID 5) |
| | 255 | Board Mfg Date : Mon Jan 1 08:00:00 1996 |
| | 256 | Board Mfg : DELL |
| | 257 | Board Product : FRU256,DELL P/N |
| | 258 | Board Serial : |
| | 259 | Board Part Number : |
| | 260 | |
| | 261 | FRU Device Description : Storage (ID 4) |
| | 262 | Device not present (Timeout) |
| | 263 | }}} |
| | 264 | |
| | 265 | == gendev == |
| | 266 | |
| | 267 | {{{ |
| | 268 | ~$ sudo ipmitool gendev help |
| | 269 | Rx gendev command: help |
| | 270 | SDR Commands: list read write |
| | 271 | list List All Generic Device Locators |
| | 272 | read <sdr name> <file> Read to file eeprom specify by Generic Device Locators |
| | 273 | write <sdr name> <file> Write from file eeprom specify by Generic Device Locators |
| | 274 | }}} |
| | 275 | |
| | 276 | == user == |
| | 277 | |
| | 278 | {{{ |
| | 279 | ~$ sudo ipmitool user help |
| | 280 | User Commands: |
| | 281 | summary [<channel number>] |
| | 282 | list [<channel number>] |
| | 283 | set name <user id> <username> |
| | 284 | set password <user id> [<password> <16|20>] |
| | 285 | disable <user id> |
| | 286 | enable <user id> |
| | 287 | priv <user id> <privilege level> [<channel number>] |
| | 288 | Privilege levels: |
| | 289 | * 0x1 - Callback |
| | 290 | * 0x2 - User |
| | 291 | * 0x3 - Operator |
| | 292 | * 0x4 - Administrator |
| | 293 | * 0x5 - OEM Proprietary |
| | 294 | * 0xF - No Access |
| | 295 | |
| | 296 | test <user id> <16|20> [<password]> |
| | 297 | }}} |
| | 298 | |
| | 299 | == channel == |
| | 300 | |
| | 301 | {{{ |
| | 302 | ~$ sudo ipmitool channel help |
| | 303 | Channel Commands: authcap <channel number> <max privilege> |
| | 304 | getaccess <channel number> [user id] |
| | 305 | setaccess <channel number> <user id> [callin=on|off] [ipmi=on|off] [link=on|off] [privilege=level] |
| | 306 | info [channel number] |
| | 307 | getciphers <ipmi | sol> [channel] |
| | 308 | |
| | 309 | setkg hex|plain <key> [channel] |
| | 310 | |
| | 311 | Possible privilege levels are: |
| | 312 | 1 Callback level |
| | 313 | 2 User level |
| | 314 | 3 Operator level |
| | 315 | 4 Administrator level |
| | 316 | 5 OEM Proprietary level |
| | 317 | 15 No access |
| | 318 | }}} |