Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 

Maestro MHO Ports Dump - Sorted & Colored

SmartEvent Type: Maestro, MHO,

Danny
Champion Champion
Champion

To add colors to Maestro MHOs ports dump and sort by label_port just run:

sx_api_ports_dump.py | head -n -1|(sed -u 3q;sort -t'|' -k4)|sed '1h;$G'|sed ''/label_port/s//$(printf "\033[1mlabel_port\033[0m")/g''|sed ''/UP/s//$(printf "\033[32mUP\033[0m")/g''|sed ''/DOWN/s//$(printf "\033[31mDOWN\033[0m")/g''|sed 's/UNPLUGGED/TMP/g'|sed 's/PLUGGED-ERR/TPM/g'|sed ''/PLUGGED/s//$(printf "\033[32mPLUGGED\033[0m")/g''|sed ''/TMP/s//$(printf "\033[31mUNPLUGGED\033[0m")/g''|sed ''/TPM/s//$(print

...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Disclaimer: Check Point does not provide maintenance services or technical or customer support for third party content provided on this Site, including in CheckMates Toolbox. See also our Third Party Software Disclaimer.




(1)
1 Reply

milunb
Participant

Perfect. Thanks

 

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos