: The problem with rc_toggle_basic is that you have to remember : to execute it in pairs, to leave the filer in the same mode. : : Is there a better command?
The most reliable way to run advanced commands via rsh is with
rsh -l root:{password} "priv -level secret; {command}"
The "priv -level secret" works for ONTAP 5.3 and later, including ONTAP 6.x. It sets the privilege for the current rsh connection, regardless of whether the console is currently in privileged mode or not.
In ONTAP 6.x, "priv -level secret" is equivalent to "priv set advanced".
Hope this helps.
- Brian