AIX "smit" used to (and probably still does) do this. For anything you did in the admin interface it gave you a shortcut to go right to that page in the admin interface with a command line option and when you executed a command you could hit an fkey to see the actual command it ran, no jumping out to log files.
--- On Fri, 4/25/08, Langdon, Laughlin T. (Lock) Langdon.Lock@Mayo.EDU wrote:
From: Langdon, Laughlin T. (Lock) Langdon.Lock@Mayo.EDU Subject: RE: Submitting Suggestions to Netapp/CLI command builder To: "Klinkner, Steve" Steve.Klinkner@netapp.com, toasters@mathworks.com Date: Friday, April 25, 2008, 5:19 PM Agreed, but it would be nice to have it all formatted pretty like, and right in front of my face J
*presses the easy button*
From: Klinkner, Steve [mailto:Steve.Klinkner@netapp.com] Sent: Friday, April 25, 2008 2:18 PM To: Langdon, Laughlin T. (Lock); toasters@mathworks.com Subject: RE: Submitting Suggestions to Netapp/CLI command builder
I realize this doesn't exactly match your request, but it turns out that virtually everything that FilerView does will end up in the auditlog (found in /etc/log/auditlog on the root volume).
The entries will be a mix of API calls and command invocations (although the APIs have close CLI equivalents, many FilerView actions happen via ManageONTAP APIs rather than commands these days).
So while this won't come out quite in the nice form you've illustrated, you might learn quite a bit by examining the auditlog to see what FilerView did to accomplish the tasks you've requested.
Steve
From: Langdon, Laughlin T. (Lock) [mailto:Langdon.Lock@Mayo.EDU]
Sent: Friday, April 25, 2008 1:42 PM To: toasters@mathworks.com Subject: Submitting Suggestions to Netapp/CLI command builder
How would one go about submitting a suggestion to NetApp?
I was thinking it would be nice, if while working in the Filer View GUI, your operations selected would build a command line "example"
Say for instance you wanted to make a new volume from the GUI.
You go to the volume section and you click Add.
The wizard pops up.
click next
Select your volume type (flexible)
click next
Name the volume (vol1)
Select language (en_US)
Decide if you want to use UTF-8 or not (no)
click next
select the aggregate (aggr0)
set your space guarantee (volume)
click next
choose volume size type (useable)
choose volume size (100GB)
set snapshot reserve (10%)
click next
now it shows all the options you picked in the text box.
Create New Volume
Volume Name: vol1
Aggregate Container: aggr0 (14TB, raid_dp,mirrored)
Volume Size: 100 GB
Snapshot Reserve: 10%
Language: English (US) (en_US)
Space Guarantee: volume
I want it to add the command line example of all the choices you picked. So it would look something like this
Create New Volume
Volume Name: vol1
Aggregate Container: aggr0 (14TB, raid_dp,mirrored)
Volume Size: 100 GB
Snapshot Reserve: 10%
Language: English (US) (en_US)
Space Guarantee: volume
CLI Commands used : vol create vol1 -l en_US aggr0 -s volume 100g
snap
reserve vol1 10
I couldn't find a CLI command to specify if that 100GIG was useable or total space, but I hope you get what I'm going for.
This might help people become more proficient in the CLI interface, and also help build commands for scripting.
Thoughts, Ideas, comments?
____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ