Working With CLI Command Results. Dell OpenManage Server Administrator Version 8.3
Add to my manuals
215 Pages
advertisement
9
Working With CLI Command Results
Server Administrator Command Line Interface (CLI) users can use the command output in various ways.
This chapter explains how to save command output to a file and how to select a format for the command results that fits different objectives. The following table displays the systems on which omreport commands are applicable.
Table 122. System Availability For The omreport Command
Command Level 1 omreport
Command Level 2 modularenclosure servermodule mainsystem system chassis
Applicable To
Blade systems
Blade systems
Blade systems
Rack and Tower systems
Rack and Tower systems
Output Options For Command Results
CLI command output displays to standard output on the system in a command window, in an X-terminal, or on a screen, depending on the type of the operating system.
You can redirect command results to a file instead of displaying them to standard output. Saving command output to a file allows you to use the command output for later analysis or comparison.
Whether you display command results to standard output or have the command results written to a file, you can format the results. The format you select determines the way the command output is displayed and the way the command output is written to a file.
Controlling command output display
Each operating system provides a means of controlling the way that command results display to standard output. The following is a useful command for ensuring that command results do not scroll by before you can view them. The same command syntax works for the Microsoft Windows command prompt, the
Red Hat Enterprise Linux terminal, and the SUSE Linux Enterprise Server terminal. To display command output with control over scrolling, type the CLI command and append the pipe symbol followed by more.
For example, type: omreport system summary | more or omreport servermodule summary | more
210
The multiscreen system summary displays the first screen. When you want to see the next screen of command output, press the spacebar.
Writing Command Output To A File
When redirecting command results to a file, you can specify a filename (and a directory path if necessary) to which you want to write the command result. When specifying the path to which you want to write the file, use the appropriate syntax for the operating system.
You can save command results in two ways. You can overwrite any file that has the same name as the output file you specify, or you can keep adding results of commands to a file of the same name.
Saving Command Results To A File That Is Overwritten
Use the -outc option when you want to overwrite data stored in previously written files. For example, at
11:00 A.M. you capture fan probe RPM readings for fan probe 0 on the system and write the results to a file called fans.txt. You type: omreport chassis fans index=0 -outc fans.txt
or omreport mainsystem fans index=0 -outc fans.txt
Partial results written to the file are:
Index
Status
Probe Name
Reading
Minimum Warning Threshold
Maximum Warning Threshold
Minimum Failure Threshold
Maximum Failure Threshold
: 0
: OK
: System Board Fan 1 RPM
: 2380RPM
: 600RPM
: 5700RPM
: 500RPM
: 6000RPM
Four hours later, you repeat the command. You have no interest in the 11:00 A.M. snapshot as written to fans.txt. You type the same command: omreport chassis fans index=0 -outc fans.txt
or omreport mainsystem fans index=0 -outc fans.txt
The 3:00 P.M. data overwrites the 11:00 A.M. data in the fans.txt file.
Fans.txt now reads as follows:
Index
Status
: 0
: OK
211
Probe Name
Reading
Minimum Warning Threshold
Maximum Warning Threshold
Minimum Failure Threshold
Maximum Failure Threshold
: System Board Fan 1 RPM
: 3001RPM
: 700RPM
: 5500RPM
: 500RPM
: 6000RPM
You cannot refer to the previous command results to compare the earlier fan probe 0 output with the present output because in using the -outc option, you overwrote the fans.txt file.
Append command results to an existing file
Use the -outa option when you want to append new command results to data stored in a previously written file. For example, at 11:00 A.M. you capture fan probe RPM readings for fan probe 0 on the system and write the results to a file called fans.txt. To compare these results with output for the same probe obtained four hours later, you can use the -outa command to append the new output to fans.txt.
Type: omreport chassis fans index=0 -outa fans.txt
or omreport mainsystem fans index=0 -outa fans.txt
Fans.txt now reads as follows:
Index
Status
Probe Name
Reading
Minimum Warning
Threshold
Maximum Warning
Threshold
Minimum Failure
Threshold
Maximum Failure
Threshold
: 0
: OK
: System Board Fan 1 RPM
: 2380RPM
: 600RPM
: 5700RPM
: 500RPM
: 6000RPM
Index
Status
Probe Name
Reading
: 0
: OK
: System Board Fan 1 RPM
: 3622RPM
212
Minimum Warning
Threshold
Maximum Warning
Threshold
Minimum Failure
Threshold
Maximum Failure
Threshold
: 900RPM
: 3500RPM
: 500RPM
: 6000RPM
You can use a text editor to insert the time that each block of data was captured. In comparing the two snapshots for fan probe 0, you can see that the second report shows several changes. The reading of fan
RPM has increased by 621 RPM but is still within normal range. Someone has raised the minimum warning threshold by 200 RPM and has decreased the maximum warning threshold by 2000 RPM.
Selecting A Format For The CLI Command Output
You can specify a format for the CLI command results. The format determines how the command output is displayed. If the command results are directed to a file, the format is captured by the file to which you write the command results.
The available formats include:
• List (lst)
• Semicolon-separated values (ssv)
• Table (tbl)
• Custom delimited format (cdv)
The syntax for the formatting option is:
<command> -fmt <format option>
For example, type: omreport system summary -fmt tbl or omreport servermodule summary -fmt tbl where -fmt tbl specifies table format.
You can combine the formatting option with the option to direct output to a file. For example, type: omreport system summary -fmt tbl -outa summary.txt
or omreport servermodule summary -fmt tbl -outa summary.txt
where -fmt tbl specifies table format and -outa specifies that you append the command results to a file named summary.txt .
213
List (lst)
The default format is lst or list format. Use this format when you want to optimize output for simple readability. You need to specify a format for the command output only if you want a format other than the lst format.
To see the following example command output in lst format, type: omreport system summary or omreport servermodule summary
No special formatting option is required because list format is the default display format. The network data part of the example system summary is displayed as follows:
--------------
Network Data
--------------
Network Interface 0
IP Address : 143.166.152.108
Subnet Mask : 255.255.255.0
Default Gateway : 143.166.152.1
MAC Address : 00-02-b3-23-d2-ca
Table (tbl)
Use the tbl or table formatting option to have the data formatted in table rows and columns. To see the following example command output in table format, type: omreport system summary -fmt tbl or omreport servermodule summary -fmt tbl
The example output displays as follows:
------------------------------
Network Interface 0
------------------------------
| ATTRIBUTE | VALUE
| IP Address | 143.166.152.108
| Subnet Mask | 255.255.255.0
| Default Gateway | 143.166.152.1
| MAC Address | 00-02-b3-23-d2-ca
Semicolon-Separated Values (ssv)
Use the ssv formatting option to deliver output formatted in semicolon-separated value format. This format also allows you to import the command output results into a spreadsheet program such as
Microsoft Excel, or into a database program. To see the following example command output in semicolon-separated value format, type: omreport system summary -fmt ssv or omreport servermodule summary -fmt ssv
214
The example output displays as follows:
------------------------------
Network Data
------------------------------
Network Interface 0
IP Address;143.166.152.108
Subnet Mask;255.255.255.0
Default Gateway;143.166.152.1
MAC Address;00-02-b3-23-d2-ca
Custom delimited format (cdv)
Use the cdv formatting option to report exported data in custom delimited format. You can specify this option with any omreport command. For example, to generate a system summary in custom delimited format, type: omreport system summary -fmt cdv or omreport servermodule summary -fmt cdv
You can also set preferences for the custom delimited format with the omconfig command. The valid values for delimiters are: exclamation, semicolon, at, hash, dollar, percent, caret, asterisk, tilde, question, colon, comma, and pipe.
The following example shows how to set the delimiter for separating data fields to asterisk: omconfig preferences cdvformat delimiter=asterisk
215
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 3 Dell OpenManage Server Administrator Version 8.3 Command Line Interface Guide
- 10 Introduction
- 10 What is new in this release
- 11 Accessing the windows command prompt to run CLI commands
- 11 Primary CLI Commands
- 12 CLI error checking and error messages
- 12 Success Messages
- 12 Failure Messages
- 13 Scripting And Comparing Using CLI
- 14 Command syntax overview
- 15 Using The omhelp Command
- 15 Example Help Commands
- 17 omreport: Viewing System Status Using The Instrumentation Service
- 17 Conventions for parameter tables
- 18 Command summary of the omreport command
- 21 Help With The omreport Command
- 21 omreport modularenclosure
- 22 omreport about
- 23 Omreport Chassis Or Omreport Mainsystem Commands
- 24 Chassis management
- 24 Omreport chassis acswitch or omreport mainsystem acswitch
- 25 Omreport Chassis Batteries Or Omreport Mainsystem Batteries
- 25 Omreport Chassis Bios Or Omreport Mainsystem Bios
- 25 Omreport chassis biossetup or omreport mainsystem biossetup
- 26 BIOS setup groups
- 26 Omreport Chassis Currents Or Omreport Mainsystem Currents
- 26 Omreport chassis fans or omreport mainsystem fans
- 27 Omreport Chassis Firmware Or Omreport Mainsystem Firmware
- 27 Omreport Chassis Frontpanel Or Omreport Mainsystem Frontpanel
- 27 Omreport Chassis Fru Or Omreport Mainsystem Fru
- 28 Omreport chassis hwperformance or omreport mainsystem hwperformance
- 28 Omreport Chassis Info Or Omreport Mainsystem Info
- 29 Omreport Chassis Intrusion
- 29 Omreport Chassis Leds Or Omreport Mainsystem Leds
- 30 Omreport Chassis Memory Or Omreport Mainsystem Memory
- 32 Omreport chassis nics or omreport mainsystem nics
- 33 Omreport Chassis Ports Or omreport Mainsystem Ports
- 33 Omreport Chassis Processors Or Omreport Mainsystem Processors
- 36 Omreport chassis pwrmanagement or omreport mainsystem pwrmanagement
- 37 Omreport chassis pwrmonitoring or omreport mainsystem pwrmonitoring
- 39 Omreport chassis pwrsupplies or omreport mainsystem pwrsupplies
- 39 Omreport Chassis Remoteaccess Or Omreport Mainsystem Remoteaccess
- 40 Omreport Chassis Removableflashmedia Or Omreport Mainsystem Removableflashmedia
- 41 Omreport Chassis Slots Or Omreport Mainsystem Slots
- 41 Omreport chassis temps or Omreport mainsystem temps
- 42 Omreport Chassis Volts Or Omreport Mainsystem Volts
- 42 Omreport Licenses
- 43 Omreport System Commands Or Omreport Servermodule Commands
- 43 Omreport System Or Omreport Servermodule
- 43 Commands for viewing logs
- 44 Omreport System Alertaction Or Omreport Servermodule Alertaction
- 45 Omreport System Assetinfo Or Omreport Servermodule Assetinfo
- 46 Omreport system events or omreport servermodule events
- 46 Omreport System Events Type Or Omreport Servermodule Events Type
- 47 Omreport System snmptrapdest Or Omreport Servermodule snmptrapdest
- 48 Omreport System Operatingsystem Or Omreport Servermodule Operatingsystem
- 48 Omreport System Pedestinations Or Omreport Servermodule Pedestinations
- 49 Omreport System Platformevents Or Omreport Servermodule Platformevents
- 50 Omreport System Recovery Or Omreport Servermodule Recovery
- 50 Omreport System Shutdown Or Omreport Servermodule Shutdown
- 50 Omreport System Summary Or Omreport Servermodule Summary
- 55 Omreport System Thrmshutdown Or Omreport Servermodule Thrmshutdown
- 55 Omreport System Version Or Omreport Servermodule Version
- 56 Omreport Preferences Commands
- 56 Omreport Preferences Messages
- 56 Omreport preferences logging
- 57 Omreport preferences webserver
- 58 Omconfig: Managing Components Using The Instrumentation Service
- 58 Conventions for parameter tables
- 59 omconfig Command Summary
- 61 Help With The Omconfig Command
- 62 Omconfig About
- 63 Omconfig Chassis Or Omconfig Mainsystem
- 63 Omconfig Chassis Biossetup Or Omconfig Mainsystem Biossetup
- 82 Omconfig Chassis Currents Or Omconfig Mainsystem Currents
- 82 Omconfig Chassis Fans Or Omconfig Mainsystem Fans
- 83 Omconfig chassis frontpanel or omconfig mainsystem frontpanel
- 84 Omconfig Chassis Info Or Omconfig Mainsystem Info
- 85 Omconfig Chassis Leds Or Omconfig Mainsystem Leds
- 86 Omconfig Chassis Memorymode Or Omconfig Mainsystem Memorymode
- 87 Omconfig chassis pwrmanagement or omconfig mainsystem pwrmanagement
- 89 Omconfig Chassis Pwrmonitoring Or Omconfig Mainsystem Pwrmonitoring
- 91 Omconfig chassis remoteaccess or omconfig mainsystem remoteaccess
- 100 Omconfig Chassis Temps Or Omconfig Mainsystem Temps
- 101 Omconfig Chassis Volts Or Omconfig Mainsystem Volts
- 102 Omconfig Preferences
- 102 Omconfig Preferences Cdvformat
- 102 Omconfig Preferences Dirservice
- 103 Omconfig Preferences Messages
- 103 Omconfig Preferences Useraccess
- 104 Omconfig Preferences Logging
- 105 Omconfig preferences webserver
- 118 Omconfig System Or Omconfig Servermodule
- 119 Omconfig System Alertaction Or Omconfig Servermodule Alertaction
- 122 Commands for clearing logs
- 123 Omconfig system pedestinations or omconfig servermodule pedestinations
- 123 Omconfig system platformevents or omconfig servermodule platformevents
- 126 Omconfig system snmptraptest or omconfig servermodule snmptraptest
- 126 Omconfig System Events Or Omconfig Servermodule Events
- 128 Omconfig System Webserver Or Omconfig Servermodule Webserver
- 128 Omconfig System Recovery Or Omconfig Servermodule Recovery
- 129 Omconfig System Shutdown Or Omconfig Servermodule Shutdown
- 130 Omconfig System Thrmshutdown Or Omconfig Servermodule Thrmshutdown
- 132 Omconfig System Or Servermodule Assetinfo: Editing Cost Of Ownership Values
- 132 Adding acquisition information
- 134 Example command for adding acquisition information
- 134 Adding depreciation information
- 135 Example command for adding depreciation information
- 135 Adding extended warranty information
- 136 Example command for adding extended warranty information
- 136 Adding lease information
- 137 Example command for adding lease information
- 137 Adding maintenance information
- 138 Example command for adding maintenance information
- 138 Adding outsource information
- 139 Example command for adding outsource information
- 139 Adding owner information
- 140 Example command for adding owner information
- 140 Adding service contract information
- 140 Example command for adding service information
- 141 Adding support information
- 141 Example command for adding support information
- 142 Adding system information
- 142 Example command for adding system information
- 142 Adding warranty information
- 143 Example command for adding warranty information
- 144 Using The Storage Management Service
- 144 CLI command syntax
- 145 Syntax Of Command Elements
- 146 User Privileges For Omreport Storage And Omconfig Storage
- 147 Omreport storage commands
- 148 Omreport Physical Disk Status
- 149 omreport Virtual Disk Status
- 149 Omreport controller status
- 149 Omreport Enclosure Status
- 150 Omreport Temperature Probe Status
- 151 Omreport Fan Status
- 151 Omreport Power Supply Status
- 152 Omreport EMM Status
- 152 Omreport Enclosure Slot Occupancy Report
- 153 Omreport Battery Status
- 153 Omreport Global Information
- 154 Omreport Connector Status
- 154 Omreport Cachecade Status
- 155 Omreport PCIe SSD Status
- 155 Omreport Storage Tape
- 155 Omreport NVMe adapter
- 157 Omconfig storage commands
- 158 Omconfig Physical Disk Commands
- 158 Omconfig Blink Physical Disk
- 159 Omconfig Unblink Physical Disk
- 160 Omconfig Prepare To Remove Physical Disk
- 160 Omconfig Instant Erase Secured Physical Disk
- 161 Omconfig Cryptographic Erase Secured Physical Disk
- 161 Omconfig Initialize Physical Disk
- 162 Omconfig Offline Physical Disk
- 162 Omconfig Online Physical Disk
- 163 Omconfig Assign Global Hot Spare
- 163 Omconfig Rebuild Physical Disk
- 164 Omconfig Cancel Rebuild Physical Disk
- 164 Omconfig Cancel Replace Member
- 165 Omconfig Clear Physical Disk
- 165 Omconfig cancel clear physical disk
- 166 Omconfig Enable Device Write Cache
- 166 Omconfig Disable Device Write Cache
- 167 Omconfig Export Reliability Log
- 167 Omconfig Convert RAID To Non-RAID
- 168 Omconfig Convert Non-RAID To RAID
- 168 Omconfig Set array disk cache
- 169 Omconfig virtual disk commands
- 170 Omconfig Check Consistency
- 170 Omconfig cancel check consistency
- 171 Omconfig Pause Check Consistency
- 171 Omconfig Resume Check Consistency
- 171 Omconfig blink virtual disk
- 172 Omconfig Unblink Virtual Disk
- 172 Omconfig Initialize Virtual Disk
- 172 Omconfig Fast Initialize Virtual Disk
- 173 Omconfig Slow Initialize Virtualize Disk
- 173 Omconfig cancel initialize virtual disk
- 174 Omconfig cancel background initialize
- 174 Omconfig Assign Dedicated Hot Spare
- 174 Omconfig Delete Virtual Disk
- 175 Omconfig reconfiguring virtual disks
- 176 Omconfig Secure Virtual Disk
- 176 Omconfig Clear Virtual Disk Bad Blocks
- 177 Omconfig Change Virtual Disk Policy
- 177 Omconfig Replace Member Virtual Disk
- 178 Omconfig Rename Virtual Disk
- 178 Omconfig controller commands
- 180 Omconfig Rescan Controller
- 181 Omconfig Enable Controller Alarm
- 181 Omconfig Disable Controller Alarm
- 181 Omconfig Quiet Controller Alarm
- 182 omconfig Test Controller Alarm
- 182 Omconfig Reset Controller Configuration
- 182 omconfig Create Virtual Disk
- 189 Omconfig Set Controller Rebuild Rate
- 189 omconfig Change Controller Properties
- 190 Omconfig Discard Preserved Cache
- 191 Omconfig Create Encryption Key
- 191 Omconfig Change Encryption Key
- 191 Omconfig Delete Encryption Key
- 192 Omconfig Set Background Initialization Rate
- 192 Omconfig Set Reconstruct Rate
- 192 Omconfig Set Check Consistency Rate
- 193 Omconfig Export The Controller Log
- 193 Omconfig Import Secure Foreign Configuration
- 193 Omconfig Import Foreign Configuration
- 194 Omconfig Import Or Recover Foreign Configuration
- 194 Omconfig Clear Foreign Configuration
- 194 Omconfig physical disk power management
- 195 Omconfig set controller mode
- 195 Omconfig autoconfigure RAID-0
- 195 Omconfig Set Patrol Read Mode
- 196 Omconfig Start Patrol Read
- 196 Omconfig Stop Patrol Read
- 196 Omconfig Create Cachecade
- 197 Omconfig Enable LKM Controller
- 197 Omconfig Rekey LKM Controller
- 197 Omconfig Convert Multiple RAID To Non-RAID
- 198 Omconfig Convert Multiple Non-RAID To RAID
- 198 Omconfig Enclosure Commands
- 198 Omconfig Enable Enclosure Alarm
- 199 Omconfig Disable Enclosure Alarm
- 199 Omconfig Set Enclosure Asset Tag
- 200 Omconfig Set Enclosure Asset Name
- 200 Omconfig Set Temperature Probe Thresholds
- 200 Omconfig Reset Temperature Probe Thresholds
- 201 Omconfig Set All Temperature Probe Thresholds
- 201 Omconfig Reset All Temperature Probe Thresholds
- 202 Omconfig Blink
- 202 Omconfig Battery Commands
- 202 omconfig Start Battery Learn Cycle
- 203 Omconfig Delay Battery Learn Cycle
- 203 Omconfig Global Commands
- 203 Omconfig Global Enable Smart Thermal Shutdown
- 204 Omconfig Global Disable Smart Thermal Shutdown
- 204 Omconfig Global Rescan Controller
- 205 Omconfig Set Hot Spare Protection Policy
- 205 Omconfig Global threshold for remaining rated write endurance
- 206 Omconfig Connector Commands
- 206 Omconfig Rescan Connector
- 206 Omconfig cachecade commands
- 207 Omconfig Blink Cachecade
- 207 Omconfig Unblink Cachecade
- 207 Omconfig Delete Cachecade
- 208 Omconfig Resize Cachecade
- 208 Omconfig Rename Cachecade
- 208 Omconfig NVMe adapter configuration commands
- 209 Omconfig exporting controller log
- 209 Omconfig cryptographic erase
- 210 Working With CLI Command Results
- 210 Output Options For Command Results
- 210 Controlling command output display
- 211 Writing Command Output To A File
- 211 Saving Command Results To A File That Is Overwritten
- 212 Append command results to an existing file
- 213 Selecting A Format For The CLI Command Output
- 214 List (lst)
- 214 Table (tbl)
- 214 Semicolon-Separated Values (ssv)
- 215 Custom delimited format (cdv)