Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Any way to add thousands separators to the CLI output in clustered ontap?
2016-10-26
09:14 PM
3,626 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
ONTAP 9.1 RC1
I often use the CLI to perform admin work because alot of things can't be done via web interface. One thing I find annoying is outputs often have large numbers. For example, in the output below, it'd be very helpful to be able to quickly know which the values of "files" and "files-used" are. Having thousand separators will make it very easy to tell.
ntap01::> volume show -vserver nas01 -volume projects -fields total,used,files,files-used
vserver volume total used files files-used
-------- ------------------- ----- ------- -------- ----------
nas01 projects 380GB 58.58GB 99614713 6225917
Is it possible to tell the CLI to add commas for thousands, millions, etc.?
Thanks,
Solved! See The Solution
1 ACCEPTED SOLUTION
ACHOU_SIMG has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you use CLI often, I would consider using PowerShell, assuming you are on Windows. It is much more convinient than automating CLI directly.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can use set -showseperator
Refer http://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.dot-cm-cmpr%2Fset.html
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"-showseparator" changes fields separator. I do not see any documented way to modify number formats (thousand or decimal separators).
ACHOU_SIMG has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you use CLI often, I would consider using PowerShell, assuming you are on Windows. It is much more convinient than automating CLI directly.
