Run VIO Server commands as root

To Gain root access on VIO server:

Login as user padmin into VIO server and type the command,

$ oem_setup_env    

Now you will get the root credentials (without even been asked for a password).

Note: According to IBM its not recommended to work as root on VIO servers.

But, By default the ioscli commands are not available for the root user. All ioscli commands are in fact calls of /usr/ios/cli/ioscli with the command as argument. You can check this if you list the aliases of the padmin user in the VIO server
So you can use all ioscli commands as user root by appending /usr/ios/cli/ioscli in front of the command you type. 

For Example,

Instead of lsmap -all you would type,

root@viosrv1# /usr/ios/cli/ioscli lsmap -all

you can set an alias to make your job easier,

alias vios=/usr/ios/cli/ioscli

Now, you can even type,

 root@viosrv1# vios lsmap -all

Share this

Related Posts

Next Post »


Write comments
April 25, 2013 at 8:24 PM delete

I'm using this quite often... a dirty side effect is that ioscli puts an ioscli.log in the current word directory. Depending on how much you do and where you do it, you spread ioscli.log files over the filesystem making it hard to maintain a single logfile for all actions.


What do you think about this Article? Add your Opinion..! EmoticonEmoticon