I'm not sure you can. If you look at the previous replies use the full command sudo /EMC/Platform/bin/svc_command...
In my scripts, perl usually, I create my own variable in the form of $_svc="sudo /EMC/Platform/bin/"
Then depending on sub routine / command I was to call i concatenate $_svc."svc_cifssupport ".$ns." -acl -path \/".$fs as an example using variables for nas server and fs in this example. I use this method primarily to execute commands over SSH and you need the full sudo path to do this.
As an fyi this still seems to work in 4.5.1 with rBash but I found I need to run a routine to disable rBash for my auto ssh_key setup to work if for some reason the auth keys no longer work.
Couple of quick questions. I'm programming in Python, and I'm collecting the data - or trying to - using ssh and the service account.
ssh $mgmt -l service "sudo /EMC/Platform/bin/svc_nas ALL -param -facility -all -info -all"
1. How do you disable rbash?
2. How do you setup the ssh keys so i'm not prompted for a password? I know regular UNIX style environments, but Unity seems to be a special case.
I'm collecting against multiple arrays on daily basis, so this runs through a loop and collects for each one, parses the info and then puts it all together for the customer to see in a nice email and spreadsheet.
Rainer_EMC
6 Operator
•
8645 Posts
4931
0
Posted March 15th, 2018 06:00
just do an alias "svc_nas"
then you'll see that its actually just an alias for "sudo svc_nas"
and the real svc_nas is located in /EMC/Platform/bin/