|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
VIO oem_setup_env user
Is there a way to have the VIO name displayed as the command prompt on a VIO server when you switch to the oem_set_env user? We have several VIO servers on several frames and want to be sure we are entering/changing info on the correct VIO.
|
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
The only way I found to do this was to create a settings file and load that manually after typing 'oem_setup_env'. Like this:
$ cat profile.oem export PATH=$PATH:/usr/ios/cli PS1="VIO1 # " set -o vi $ oem_setup_env # . ./profile.oem VIO1 # |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
I added
export PS1=$(hostname):'$PWD-->' to the bottom of /home/padmin/.profile PS1 remains after oem_setup_env , Version 1.5.2.1 |
|
#4
|
||||
|
||||
|
That .profile is only for padmin. I was never able to find what .profile (if any) was used when you type 'oem_setup_env'. That's why I do it the way I described earlier. I know it's not perfect but it's all I was able to come up with on my VIOs.
|
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
yep it's only for the padmin, but PS1 variable will not be overwritten when running oem_setup_env
|
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| integer user names and user quotas! | mrhosseini | UNIX for Advanced & Expert Users | 5 | 04-28-2009 05:42 AM |
| Difference between : Locked User Account & Disabled User Accounts in Linux ? | avklinux | UNIX for Dummies Questions & Answers | 3 | 02-06-2009 08:01 PM |
| single user mode - user accounts passwords | orestis | UNIX for Dummies Questions & Answers | 3 | 02-02-2009 04:18 PM |
| How do i change to super user then revert back to ordinary user ,using shell script? | wrapster | Shell Programming and Scripting | 3 | 06-04-2008 07:11 AM |
| Other than root user .Normal user is unable to create files | mallesh | UNIX for Advanced & Expert Users | 1 | 06-22-2005 12:18 PM |
|
|