- Products
- Learn
- Local User Groups
- Partners
- More
MVP 2026: Submissions
Are Now Open!
What's New in R82.10?
Watch NowOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Can the command prompt on an MDS be set to automatically change based on the MDS environment, mdsenv, and show the DMS name (or part of) or the IP?
Set the promt message with:
export PS1=
That's not really helpful, but thank you.
Don't have MDM right now. May be that this must be a[3] or a[5].
export PS1="\h / $(echo $FWDIR | awk '{split($0,a,"/"); print a[5]}') #"
If you copy this to the following file ".bashrc" in your home directory, it is permanent.
.bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
PS1="\h / $(echo $FWDIR | awk '{split($0,a,"/"); print a[5]}') #"
Thanks. I will try that too, but so far the space between = and " is a problem and the result is just the hostname # and no change when moving between DMS environments (mdsenv).
The ideal would be for Check Point R&D to make the prompt change in a similar way to the way vsenv changes the number in the prompt to show the context/VSID number.
Appreciate the feedback. Will look into it more tomorrow.
Hi @Don_Paterson,
Have tested it in the LAB with a MDS!
export PS1="\h / $(echo $FWDIR | awk '{split($0,a,"/"); print a[5]}') #"
Now the prompt looks like this:
For the rest you can still adjust.
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 19 | |
| 16 | |
| 7 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |
Tue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY