ONTAP Discussions

ONTAP CLI output without displaying headers

StratasysIT

Hello,

 

Is it possible to setup ONTAP CLI output without displaying headers ?
For example, instead  of output for command vserver vscan connection-status show-connected -fields server:

node vserver server
--------- --------- ----------
Node01 svm_nas01 X.X.X.X

to get:

Node01 svm_nas01 X.X.X.X

 

Thanks,

Alex.

1 ACCEPTED SOLUTION

parisi

No way to do this, but you can make the output look nicer with the "-sort-by" option in diag priv.

 

For example, this is vol show with size/used filtered:

 

ontap9-tme-8040::*> vol show -vserver DEMO -volume dd_test* -fields size,used
vserver volume size used
------- ------- ---- -------
DEMO dd_test 10TB 134.0GB
DEMO dd_test__0001
1.25TB
17.77GB
DEMO dd_test__0002
1.25TB
14.72GB
DEMO dd_test__0003
1.25TB
16.76GB
DEMO dd_test__0004
1.25TB
13.71GB
DEMO dd_test__0005
1.25TB
17.78GB
DEMO dd_test__0006
1.25TB
20.80GB
DEMO dd_test__0007
1.25TB
14.73GB
DEMO dd_test__0008
1.25TB
17.76GB
9 entries were displayed.

 

This is how it looks when I use "-sort-by name":

 

ontap9-tme-8040::*> vol show -vserver DEMO -volume dd_test* -fields size,used -sort-by name
vserver volume size name-ordinal used
------- ------------- ------ ------------ -------
DEMO dd_test 10TB - 134.0GB
DEMO dd_test__0001 1.25TB base 17.77GB
DEMO dd_test__0002 1.25TB base 14.72GB
DEMO dd_test__0003 1.25TB base 16.76GB
DEMO dd_test__0004 1.25TB base 13.71GB
DEMO dd_test__0005 1.25TB base 17.78GB
DEMO dd_test__0006 1.25TB base 20.80GB
DEMO dd_test__0007 1.25TB base 14.73GB
DEMO dd_test__0008 1.25TB base 17.76GB
9 entries were displayed.

 

Much cleaner.

View solution in original post

3 REPLIES 3

parisi

No way to do this, but you can make the output look nicer with the "-sort-by" option in diag priv.

 

For example, this is vol show with size/used filtered:

 

ontap9-tme-8040::*> vol show -vserver DEMO -volume dd_test* -fields size,used
vserver volume size used
------- ------- ---- -------
DEMO dd_test 10TB 134.0GB
DEMO dd_test__0001
1.25TB
17.77GB
DEMO dd_test__0002
1.25TB
14.72GB
DEMO dd_test__0003
1.25TB
16.76GB
DEMO dd_test__0004
1.25TB
13.71GB
DEMO dd_test__0005
1.25TB
17.78GB
DEMO dd_test__0006
1.25TB
20.80GB
DEMO dd_test__0007
1.25TB
14.73GB
DEMO dd_test__0008
1.25TB
17.76GB
9 entries were displayed.

 

This is how it looks when I use "-sort-by name":

 

ontap9-tme-8040::*> vol show -vserver DEMO -volume dd_test* -fields size,used -sort-by name
vserver volume size name-ordinal used
------- ------------- ------ ------------ -------
DEMO dd_test 10TB - 134.0GB
DEMO dd_test__0001 1.25TB base 17.77GB
DEMO dd_test__0002 1.25TB base 14.72GB
DEMO dd_test__0003 1.25TB base 16.76GB
DEMO dd_test__0004 1.25TB base 13.71GB
DEMO dd_test__0005 1.25TB base 17.78GB
DEMO dd_test__0006 1.25TB base 20.80GB
DEMO dd_test__0007 1.25TB base 14.73GB
DEMO dd_test__0008 1.25TB base 17.76GB
9 entries were displayed.

 

Much cleaner.

View solution in original post

StratasysIT

Thanks

 

--

Alex

nboggs

As near as I can tell there is no option to remove the headers after running a show command.

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public