Sharing Knowledge | System Admin Articles

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,

[email protected]# /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,

 [email protected]# vios lsmap -all


My Profile PhotoAbout the Author

I'm Parthiban, An UNIX System Admin by Profession. I'm Experienced in Linux/Unix System Administration and Scripting. I have done lot of work on the infrastructure Mgmt side in Linux, UNIX and Windows system administration, Hardware, Storage and Data center. I'm blogging since 2008.
Follow Me On Twitter or On Facebook

2 Comments for "Run VIO Server commands as root"

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.

Good stuff....

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

Back To Top