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
How can I collect OnTap configuration information more easily?
2021-12-19
08:50 PM
3,025 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
I need to collect the information of about 30 nodes with the following command every day,Now my practice is to input commands one by one. I don't know what batch processing method is, or there are scripts that can execute the following commands in batch. The tool I use is SecureCRT. I hope I can get help!
system node run -node * -command sysconfig -ca
system node run -node * -command sysconfig -v
system node run -node * -command sysconfig -a
system node run -node * -command sysconfig -r
system node run -node * -command storage show disk -p
system node run -node * -command storage show fault
system node run -node * -command environment chassis list-sensors
system node run -node * -command environment all
system node run -node * -command aggr status -v
system node run -node * -command vol status -v
system node run -node * -command ifstat -a
lun show -node * -v
system node run -node * -command vol status -s
system node run -node * -command vol status -f
system node run -node * -command disk show -n
system node run -node * -command disk show -v
Solved! See The Solution
1 ACCEPTED SOLUTION
SpindleNinja has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The probably easiest way is to run keyfile SSH auth instead of password and get the output that way...
ssh cluster 'command'
For example on my vSIM:
pstejska@PSTEJSKA03-PC:/mnt/c/Users/pstejska$ vsim version
Access restricted to authorized users
Last login time: 12/17/2021 20:17:10
NetApp Release 9.10.1RC1: Wed Oct 27 02:46:19 UTC 2021
pstejska@PSTEJSKA03-PC:/mnt/c/Users/pstejska$
As you can see, no password needed. If you get fancier with bash you can do more.
Note: I just use WSL for this and it works perfect.
3 REPLIES 3
SpindleNinja has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The probably easiest way is to run keyfile SSH auth instead of password and get the output that way...
ssh cluster 'command'
For example on my vSIM:
pstejska@PSTEJSKA03-PC:/mnt/c/Users/pstejska$ vsim version
Access restricted to authorized users
Last login time: 12/17/2021 20:17:10
NetApp Release 9.10.1RC1: Wed Oct 27 02:46:19 UTC 2021
pstejska@PSTEJSKA03-PC:/mnt/c/Users/pstejska$
As you can see, no password needed. If you get fancier with bash you can do more.
Note: I just use WSL for this and it works perfect.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Question - why all this manual output from a node level needed daily?
There's also a tool out there call Config Advisor, that you can automatically schedule to run and will collect a lot of info.
https://docs.netapp.com/us-en/ontap/software_setup/task_check_cluster_with_config_advisor.html
Otherwise, what Paul said.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Semicolon separate
system node run -node * -command “sysconfig -ca; sysconfig -v; sysconfig -a ; sysconfig -r”
etc…