Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

restoring the CLI prompt

I was experimenting on a CLI command (shown below) for saving the config of an F5 load balancer.

It had the unexpected effect of somehow changing the CLI prompt:

 

 

[root@SI-RTER-BAS02-DCLB-P002:Standby:In Sync] config #

[root@SI-RTER-BAS02-DCLB-P002:Standby:In Sync] config #

[root@SI-RTER-BAS02-DCLB-P002:Standby:In Sync] config # tmsh save /sys ucs /var/local/ucs/$(date +%Y%m%d).$HOSTNAME

Saving active configuration...

/var/local/ucs/20201107.SI-RTER-BAS02-DCLB-P002.abudhabi.nyu.edu.ucs is saved.

[root@%Y%m%d:Standby:In Sync] config #

[root@%Y%m%d:Standby:In Sync] config #

[root@%Y%m%d:Standby:In Sync] config #

 

 

Is there any way to restore the original CLI prompt?

Any suggestions will be most welcome.

2 REPLIES 2

Lidev
MVP
MVP

Hi Michael,

 

Bash shell is controlled by $PS1 variable, so first checks the content of this variable and change the value .

 

Regards

 

thanks for your feedback, Lidev 🙂

I haven't inspected yet the $PS1 variable in our F5 load balancer, but anyway...

 

Its original CLI prompt somehow got restored, after I recently upgraded its OS version.

 

I'll keep in mind your tip about the $PS1 variable, in case I encounter again this CLI prompt problem. 🙂