| Pattern | Matches | Suggested color | |---------|---------|----------------| | \b([0-9]1,3\.)3[0-9]1,3\b | IPv4 address | Green | | \b([A-Fa-f0-9]4\.)2[A-Fa-f0-9]4\b | MAC address | Purple | | (Gi|Fa|Te|Et)[0-9]/[0-9]+ | Interface names (Gi1/0) | Yellow | | (Down|down|disabled) | Port down state | Red | | (Up\|up\|up/up) | Port up state | Green | | (error\|failed\|denied\|invalid) | Error keywords | Red background | | \b[0-9]+\.[0-9]+\.[0-9]+\b | Cisco IOS version | Cyan | | %[A-Z]+-[0-9] | Syslog message ID | Orange |
While Highlight Sets target specific keywords , Xshell also allows you to change the of your terminal. This includes the default text color, the background color, and the standard ANSI color palette.
Xshell allows you to log terminal output to a text file. The highlight colors only exist inside the Xshell UI; they will not corrupt your raw text logs with ANSI color codes, keeping your archival documentation clean. xshell highlight sets cisco
If you have a or pattern you want to catch? Which version of Xshell you are currently running?
Pattern: \b(GigabitEthernet\|TenGigabitEthernet\|FastEthernet\|Ethernet\|Vlan\|Loopback)[0-9\/.]+\b | Pattern | Matches | Suggested color |
Using Xshell highlight sets for Cisco devices offers several benefits:
Creating the template is only half the battle; you must tell Xshell to use it during your active terminal sessions. Open your ( Alt + O ). The highlight colors only exist inside the Xshell
Instantly catch interface references (e.g., Gi0/1, Te1/0/2, FastEthernet0). \b(Gi|Te|Fa|Po|Tw|Eth|Vl)[a-zA-Z0-9\/_\.\-]+\b Use code with caution.
For more complex scenarios, you can use regular expressions to match specific patterns.
Style: Magenta / Bold (Separates the interface identifier from the rest of the text block). Pattern: \b[0-9a-fA-F]4\.[0-9a-fA-F]4\.[0-9a-fA-F]4\b
| | Regex Pattern | What It Matches | | :--- | :--- | :--- | | Red, Bold, Underline | %.*-[0-4]-.*DOWN | Critical errors (Severity 0–4) with "DOWN" | | Yellow, Bold | %.*-5-.* | Notifications (Severity 5) | | Green, Italic | %.*-6-.* | Informational messages (Severity 6) |
Loading form...
Your email is kept private. We don't do the spam thing.