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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to run the "sis check" command using the SDK. i can run it using the "System-cli" NAElement. But all my commands are running under "priv set admin". The "sis check" command is a "priv set diag" command.
How can i change my privilege level using the SDK? I tried running the "priv set diag" command first, but when i next run "sis check" i'm back to "priv set admin" levels...
Any help would be greatly appreciated!
Thanks
Sean
Solved! See The Solution
1 ACCEPTED SOLUTION
migration has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the reply. Unfortunately it parses the command and doesn't except multiple commands with a semicolon. By blind luck i tried the below and it works perfect:
$in = New-Object NetApp.Manage.NaElement("system-cli");
$in.AddNewChild("priv","diag")
Hopefully this helps someone else at some point.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are going to use System-cli, try "priv set -q diag;sis check;priv set"
migration has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the reply. Unfortunately it parses the command and doesn't except multiple commands with a semicolon. By blind luck i tried the below and it works perfect:
$in = New-Object NetApp.Manage.NaElement("system-cli");
$in.AddNewChild("priv","diag")
Hopefully this helps someone else at some point.
