VIO oem_setup_env user | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

VIO oem_setup_env user

AIX


Tags
aix, unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-13-2009
daveisme daveisme is offline
Registered User
 
Join Date: Jul 2007
Last Activity: 15 May 2014, 2:42 PM EDT
Posts: 71
Thanks: 2
Thanked 0 Times in 0 Posts
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  
Old 05-13-2009
homeyjoe's Avatar
homeyjoe homeyjoe is offline
Registered User
 
Join Date: Jan 2009
Last Activity: 23 July 2014, 9:46 AM EDT
Location: Minnesota
Posts: 92
Thanks: 0
Thanked 2 Times in 2 Posts
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  
Old 05-13-2009
funksen funksen is offline Forum Advisor  
Registered User
 
Join Date: Nov 2006
Last Activity: 30 April 2014, 10:11 AM EDT
Location: Austria/Vienna
Posts: 675
Thanks: 21
Thanked 31 Times in 30 Posts
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  
Old 05-13-2009
homeyjoe's Avatar
homeyjoe homeyjoe is offline
Registered User
 
Join Date: Jan 2009
Last Activity: 23 July 2014, 9:46 AM EDT
Location: Minnesota
Posts: 92
Thanks: 0
Thanked 2 Times in 2 Posts
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  
Old 05-13-2009
funksen funksen is offline Forum Advisor  
Registered User
 
Join Date: Nov 2006
Last Activity: 30 April 2014, 10:11 AM EDT
Location: Austria/Vienna
Posts: 675
Thanks: 21
Thanked 31 Times in 30 Posts
yep it's only for the padmin, but PS1 variable will not be overwritten when running oem_setup_env
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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



All times are GMT -4. The time now is 06:15 AM.