最近遇到一个问题,现在分享给大家,可能大部分人早就知道这个设置了。就是生产中,突然发现ASA设备有一组设备名显示没有携带HA状态,吓我三跳,还以为是备机失联了或者down机了,设备名显示如下:
asa5500-X(config)#
asa5500-X(config)#
asa5500-X(config)#
经过谷歌查询,才了解到这条命令:
asa5500-X(config)# prompt ?
configure mode commands/options:
context Display the context in the session prompt (multimode only)
domain Display the domain in the session prompt
hostname Display the hostname in the session prompt
priority Display the priority in the session prompt
state Display the traffic passing state in the session prompt
asa5500-X(config)# prompt state
act(config)#
使用下列命令,就可以显示
asa5500-X(config)# prompt hostname state
asa5500-X/act(config)#
切换优先显示是主的 还是备的。
asa5500-X/act(config)# prompt hostname state priority
asa5500-X/act/pri(config)#
