Forum Discussion
Anonymous
5 years agoIt could still be an issue. Your prompt can use string substitution just like a double quoted string:
prompt = /${host}\/${user}\#\s/
host and user were defined earlier in the script, so if they don't contain the right contents, you can pull other properties that do.
hostProps.get("system.hostname") pulls the system.hostname property, which is the DNS/IP used to communicate with the device, not necessarily the actual device's hostname. For that, you might want to use system.displayname. Just depends on what the values are of the properties on the device in question.
I happened to be looking right at it when you posted it. ?
Related Content
- 2 years ago
- 3 months ago
- 2 years ago