Working With CLI Command Results. Dell OpenManage Server Administrator Version 7.4
Add to My manuals204 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 125. 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
199
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
200
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
201
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 .
202
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
203
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
204
advertisement
Related manuals
advertisement
Table of contents
- 3 Dell OpenManage Server Administrator Version 7.4 Command Line Interface Guide
- 10 Introduction
- 10 What's New In This Release
- 12 Accessing The Windows Command Prompt To Run CLI Commands
- 12 Primary CLI Commands
- 13 CLI Error Checking And Error Messages
- 13 Success Messages
- 13 Failure Messages
- 14 Scripting And Comparing Using CLI
- 15 Command Syntax Overview
- 16 Using The omhelp Command
- 16 Example Help Commands
- 18 omreport: Viewing System Status Using The Instrumentation Service
- 18 Conventions For Parameter Tables
- 19 Command Summary Of The omreport Command
- 22 Help With The omreport Command
- 22 omreport modularenclosure
- 23 omreport about
- 24 Omreport Chassis Or Omreport Mainsystem Commands
- 25 Omreport Chassis Acswitch Or Omreport Mainsystem Acswitch
- 25 Omreport Chassis Batteries Or Omreport Mainsystem Batteries
- 26 Omreport Chassis Bios Or Omreport Mainsystem Bios
- 26 Omreport Chassis Biossetup Or Omreport Mainsystem Biossetup
- 26 BIOS Setup Parameters On Systems Prior To PowerEdge 12G Systems
- 29 BIOS Setup Groups On PowerEdge yx2x Systems
- 29 Omreport Chassis Currents Or Omreport Mainsystem Currents
- 30 Omreport Chassis Fans Or Omreport Mainsystem Fans
- 30 Omreport Chassis Firmware Or Omreport Mainsystem Firmware
- 30 Omreport Chassis Frontpanel Or Omreport Mainsystem Frontpanel
- 31 Omreport Chassis Fru Or Omreport Mainsystem Fru
- 31 Omreport Chassis Hwperformance Or Omreport Mainsystem Hwperformance
- 31 Omreport Chassis Info Or Omreport Mainsystem Info
- 32 Omreport Chassis Intrusion
- 32 Omreport Chassis Leds Or Omreport Mainsystem Leds
- 33 Omreport Chassis Memory Or Omreport Mainsystem Memory
- 35 Omreport Chassis Nics Or Omreport Mainsystem Nics
- 36 Omreport Chassis Ports Or omreport Mainsystem Ports
- 36 Omreport Chassis Processors Or Omreport Mainsystem Processors
- 39 Omreport Chassis Pwrmanagement Or Omreport Mainsystem Pwrmanagement
- 40 Omreport Chassis Pwrmonitoring Or Omreport Mainsystem Pwrmonitoring
- 42 Omreport Chassis Pwrsupplies Or Omreport Mainsystem Pwrsupplies
- 42 Omreport Chassis Remoteaccess Or Omreport Mainsystem Remoteaccess
- 43 Omreport Chassis Removableflashmedia Or Omreport Mainsystem Removableflashmedia
- 44 Omreport Chassis Slots Or Omreport Mainsystem Slots
- 44 Omreport Chassis Temps Or Omreport Mainsystem Temps
- 45 Omreport Chassis Volts Or Omreport Mainsystem Volts
- 45 Omreport Licenses
- 46 Omreport System Commands Or Omreport Servermodule Commands
- 46 Omreport System Or Omreport Servermodule
- 46 Commands For Viewing Logs
- 47 Omreport System Alertaction Or Omreport Servermodule Alertaction
- 48 Omreport System Assetinfo Or Omreport Servermodule Assetinfo
- 49 Omreport System Events Or Omreport Servermodule Events
- 49 Omreport System Events Type Or Omreport Servermodule Events Type
- 50 Omreport System Operatingsystem Or Omreport Servermodule Operatingsystem
- 51 Omreport System Pedestinations Or Omreport Servermodule Pedestinations
- 52 Omreport System Platformevents Or Omreport Servermodule Platformevents
- 52 Omreport System Recovery Or Omreport Servermodule Recovery
- 53 Omreport System Shutdown Or Omreport Servermodule Shutdown
- 53 Omreport System Summary Or Omreport Servermodule Summary
- 58 Omreport System Thrmshutdown Or Omreport Servermodule Thrmshutdown
- 58 Omreport System Version Or Omreport Servermodule Version
- 59 Omreport Preferences Commands
- 59 Omreport Preferences Messages
- 59 Omreport Preferences Webserver
- 61 Omconfig: Managing Components Using The Instrumentation Service
- 61 Conventions For Parameter Tables
- 62 omconfig Command Summary
- 64 Help With The Omconfig Command
- 65 Omconfig About
- 66 Omconfig Chassis Or Omconfig Mainsystem
- 66 Omconfig Chassis Biossetup Or Omconfig Mainsystem Biossetup
- 83 Omconfig Chassis Currents Or Omconfig Mainsystem Currents
- 83 Omconfig Chassis Fans Or Omconfig Mainsystem Fans
- 84 Omconfig Chassis Frontpanel Or Omconfig Mainsystem Frontpanel
- 85 Omconfig Chassis Info Or Omconfig Mainsystem Info
- 86 Omconfig Chassis Leds Or Omconfig Mainsystem Leds
- 87 Omconfig Chassis Memorymode Or Omconfig Mainsystem Memorymode
- 88 Omconfig Chassis Pwrmanagement Or Omconfig Mainsystem Pwrmanagement
- 90 Omconfig Chassis Pwrmonitoring Or Omconfig Mainsystem Pwrmonitoring
- 91 Omconfig Chassis Remoteaccess Or Omconfig Mainsystem Remoteaccess
- 102 Omconfig Chassis Temps Or Omconfig Mainsystem Temps
- 103 Omconfig Chassis Volts Or Omconfig Mainsystem Volts
- 103 Omconfig Preferences
- 103 Omconfig Preferences Cdvformat
- 104 Omconfig Preferences Dirservice
- 104 Omconfig Preferences Messages
- 105 Omconfig Preferences Useraccess
- 105 Omconfig Preferences Webserver
- 106 Omconfig System Or Omconfig Servermodule
- 106 Omconfig System Alertaction Or Omconfig Servermodule Alertaction
- 110 Commands For Clearing Logs
- 111 Omconfig System Pedestinations Or Omconfig Servermodule Pedestinations
- 111 Omconfig System Platformevents Or Omconfig Servermodule Platformevents
- 114 Omconfig System Events Or Omconfig Servermodule Events
- 116 Omconfig System Webserver Or Omconfig Servermodule Webserver
- 116 Omconfig System Recovery Or Omconfig Servermodule Recovery
- 117 Omconfig System Shutdown Or Omconfig Servermodule Shutdown
- 118 Omconfig System Thrmshutdown Or Omconfig Servermodule Thrmshutdown
- 119 Omconfig System Or Servermodule Assetinfo: Editing Cost Of Ownership Values
- 119 Adding Acquisition Information
- 121 Example Command For Adding Acquisition Information
- 121 Adding Depreciation Information
- 122 Example Command For Adding Depreciation Information
- 122 Adding Extended Warranty Information
- 123 Example Command For Adding Extended Warranty Information
- 123 Adding Lease Information
- 124 Example Command For Adding Lease Information
- 124 Adding Maintenance Information
- 125 Example Command For Adding Maintenance Information
- 125 Adding Outsource Information
- 126 Example Command For Adding Outsource Information
- 126 Adding Owner Information
- 127 Example Command For Adding Owner Information
- 127 Adding Service Contract Information
- 127 Example Command For Adding Service Information
- 128 Adding Support Information
- 128 Example Command For Adding Support Information
- 129 Adding System Information
- 129 Example Command For Adding System Information
- 129 Adding Warranty Information
- 130 Example Command For Adding Warranty Information
- 131 Using The Storage Management Service
- 131 CLI Command Syntax
- 132 Syntax Of Command Elements
- 133 User Privileges For Omreport Storage And Omconfig Storage
- 134 Omreport Storage Commands
- 135 Omreport Physical Disk Status
- 136 omreport Virtual Disk Status
- 136 Omreport Controller Status
- 137 Omreport Enclosure Status
- 137 Omreport Temperature Probe Status
- 138 Omreport Fan Status
- 138 Omreport Power Supply Status
- 139 Omreport EMM Status
- 140 Omreport Enclosure Slot Occupancy Report
- 140 Omreport Battery Status
- 140 Omreport Global Information
- 141 Omreport Connector Status
- 141 Omreport Cachecade Status
- 142 Omreport PCIe SSD Status
- 142 Omreport Fluid Cache Status
- 142 Omreport Fluid Cache Pool Status
- 143 omreport Partition Status
- 143 Omreport Fluid Cache Disk Status
- 143 Omreport Storage Tape
- 144 Omconfig Storage Commands
- 145 Omconfig Physical Disk Commands
- 146 Omconfig Blink Physical Disk
- 146 Omconfig Unblink Physical Disk
- 147 Omconfig Prepare To Remove Physical Disk
- 147 Omconfig Instant Erase Secured Physical Disk
- 148 Omconfig Cryptographic Erase Secured Physical Disk
- 148 Omconfig Initialize Physical Disk
- 149 Omconfig Offline Physical Disk
- 149 Omconfig Online Physical Disk
- 150 Omconfig Assign Global Hot Spare
- 150 Omconfig Rebuild Physical Disk
- 151 Omconfig Cancel Rebuild Physical Disk
- 151 Omconfig Cancel Replace Member
- 152 Omconfig Clear Physical Disk
- 152 Omconfig Cancel Clear Physical Disk
- 153 Omconfig Enable Device Write Cache
- 153 Omconfig Disable Device Write Cache
- 154 Omconfig Export Reliability Log
- 154 Omconfig Convert RAID To Non-RAID
- 155 Omconfig Convert Non-RAID To RAID
- 155 Omconfig Virtual Disk Commands
- 156 Omconfig Check Consistency
- 157 Omconfig Cancel Check Consistency
- 157 Omconfig Pause Check Consistency
- 158 Omconfig Resume Check Consistency
- 158 Omconfig Blink Virtual Disk
- 158 Omconfig Unblink Virtual Disk
- 159 Omconfig Initialize Virtual Disk
- 159 Omconfig Fast Initialize Virtual Disk
- 159 Omconfig Slow Initialize Virtualize Disk
- 160 Omconfig Cancel Initialize Virtual Disk
- 160 Omconfig Cancel Background Initialize
- 161 Omconfig Assign Dedicated Hot Spare
- 161 Omconfig Delete Virtual Disk
- 162 Omconfig Format Virtual Disk
- 162 Omconfig Reconfiguring Virtual Disks
- 163 Omconfig Secure Virtual Disk
- 163 Omconfig Clear Virtual Disk Bad Blocks
- 164 Omconfig Change Virtual Disk Policy
- 164 Omconfig Replace Member Virtual Disk
- 165 Omconfig Rename Virtual Disk
- 165 Omconfig Enable Fluid Cache on Virtual Disk
- 165 Omconfig Disable Fluid Cache on Virtual Disk
- 166 Omconfig Reactivate Fluid Cache on Virtual Disk
- 166 Omconfig Controller Commands
- 168 Omconfig Rescan Controller
- 168 Omconfig Enable Controller Alarm
- 169 Omconfig Disable Controller Alarm
- 169 Omconfig Quiet Controller Alarm
- 169 omconfig Test Controller Alarm
- 170 Omconfig Reset Controller Configuration
- 170 omconfig Create Virtual Disk
- 177 Omconfig Set Controller Rebuild Rate
- 178 omconfig Change Controller Properties
- 178 Omconfig Discard Preserved Cache
- 179 Omconfig Create Encryption Key
- 179 Omconfig Change Encryption Key
- 179 Omconfig Delete Encryption Key
- 180 Omconfig Set Background Initialization Rate
- 180 Omconfig Set Reconstruct Rate
- 180 Omconfig Set Check Consistency Rate
- 181 Omconfig Export The Controller Log
- 181 Omconfig Import Secure Foreign Configuration
- 181 Omconfig Import Foreign Configuration
- 182 Omconfig Import Or Recover Foreign Configuration
- 182 Omconfig Clear Foreign Configuration
- 182 Omconfig Physical Disk Power Management
- 183 Omconfig Set Patrol Read Mode
- 183 Omconfig Start Patrol Read
- 183 Omconfig Stop Patrol Read
- 184 Omconfig Create Cachecade
- 184 Omconfig Enable LKM Controller
- 184 Omconfig Rekey LKM Controller
- 185 Omconfig Convert Multiple RAID To Non-RAID
- 185 Omconfig Convert Multiple Non-RAID To RAID
- 185 Omconfig Enclosure Commands
- 186 Omconfig Enable Enclosure Alarm
- 186 Omconfig Disable Enclosure Alarm
- 187 Omconfig Set Enclosure Asset Tag
- 187 Omconfig Set Enclosure Asset Name
- 187 Omconfig Set Temperature Probe Thresholds
- 188 Omconfig Reset Temperature Probe Thresholds
- 188 Omconfig Set All Temperature Probe Thresholds
- 189 Omconfig Reset All Temperature Probe Thresholds
- 189 Omconfig Blink
- 190 Omconfig Battery Commands
- 190 omconfig Start Battery Learn Cycle
- 190 Omconfig Delay Battery Learn Cycle
- 191 Omconfig Global Commands
- 191 Omconfig Global Enable Smart Thermal Shutdown
- 191 Omconfig Global Disable Smart Thermal Shutdown
- 192 Omconfig Global Rescan Controller
- 192 Omconfig Set Hot Spare Protection Policy
- 193 Omconfig Connector Commands
- 193 Omconfig Rescan Connector
- 193 Omconfig Cachecade Commands
- 194 Omconfig Blink Cachecade
- 194 Omconfig Unblink Cachecade
- 194 Omconfig Delete Cachecade
- 195 Omconfig Resize Cachecade
- 195 Omconfig Rename Cachecade
- 195 Omconfig PCIe SSD Commands
- 196 omconfig Add PCIe SSD Device To Cachepool
- 196 Omconfig Add PCIe SSD Device To Cachepool
- 196 Omconfig Reactivate PCIe SSD Device
- 197 Omconfig Fluid Cache Commands
- 197 Omconfig Applying Or Updating License To The Fluid Cache
- 197 Omconfig Conecting To The Fluid Cache
- 197 Omconfig Partition Command
- 198 Omconfig Refreshing Partition List
- 198 Omconfig Fluid Cache Disk Command
- 198 Omconfig Discarding Data And Disabling Caching
- 199 Working With CLI Command Results
- 199 Output Options For Command Results
- 199 Controlling Command Output Display
- 200 Writing Command Output To A File
- 200 Saving Command Results To A File That Is Overwritten
- 201 Append Command Results To An Existing File
- 202 Selecting A Format For The CLI Command Output
- 203 List (lst)
- 203 Table (tbl)
- 203 Semicolon-Separated Values (ssv)
- 204 Custom Delimited Format (cdv)