This post is more than 5 years old
2 Posts
0
581
April 1st, 2016 09:00
VNXe service prompt modification
Is there a way to modify the service prompt from "service@(none) spa:~>" to "service@(myname) spa:~>" ?
I managed to change the login banner to reflect our name for the unit, but not the prompt.
I've had support sessions opened with separate 'ssh' sessions to three different arrays, all having the same prompt.
This would help greatly. Thanks.
No Events found!
ent-unixosteam
2 Posts
0
April 4th, 2016 09:00
The original question was for VNXe3150. After I realized that there were some standard Unix commands on these controllers, I found the solution.
It appears that the svc_initial_config does not update the file /etc/FRIENDLYHOSTNAME with the "friendly_name" OPTION. The contents of /etc/FRIENDLYHOSTNAME default to "(none)", which is called by /home/service/.bashrc to create the PS1 prompt. But the file is read-only, and cannot be modified. Work around is below:
'ssh' to spa and login with the service account.
service@(none) spa:~>
Edit the .bashrc file using 'vi' and comment out this line:
hn=`cat /etc/FRIENDLYHOSTNAME`
then create a new line underneath that one for the desired array name:
hn="(mynamehere)"
It will work at the next login. Remember to 'ssh' to the other SP and perform the same change there.
service@(mynamehere) spa:~> ssh spb