\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{anson.washington} \pdfinfo{ /Title (extreme-xos-commands-cheat-sheet.pdf) /Creator (Cheatography) /Author (anson.washington) /Subject (Extreme XOS Commands Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{9641A3} \definecolor{LightBackground}{HTML}{F8F3F9} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Extreme XOS Commands Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{anson.washington} via \textcolor{DarkBackground}{\uline{cheatography.com/144401/cs/30994/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}anson.washington \\ \uline{cheatography.com/anson-washington} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 3rd March, 2022.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Assign default VLAN IP address}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{configure vlan Default ipaddress 10.222.222.1 255.255.255.0% Row Count 2 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Update Firmware:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{download image 10.222.222.2 \seqsplit{summitX-15.5.2.9-patch1-5.xos} VR-Default secondary \newline % Row Count 2 (+ 2) use image secondary \newline % Row Count 3 (+ 1) reboot \newline % Row Count 4 (+ 1) {\emph{* (repeat process for primary)*}}% Row Count 5 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Install SSH:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{download image 10.222.222.2 \seqsplit{summitX-15.5.2.9-patch1-5-ssh.xmod} VR-Default secondary \newline % Row Count 2 (+ 2) run update% Row Count 3 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Stop using default VLAN (vlan 1):}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{configure vlan "Default" delete ports all \newline % Row Count 1 (+ 1) configure vlan vlan10 add ports 1:1-48,2:2-48% Row Count 2 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Show Active Ports:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{show ports no-refresh | inc "A"% Row Count 1 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{DHCP:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{configure vlan vlan5 dhcp-address-range 172.21.5.51 - 172.21.5.51 \newline % Row Count 2 (+ 2) configure vlan vlan5 dhcp-options default-gateway 172.21.5.1 \newline % Row Count 4 (+ 2) configure vlan vlan5 dhcp-options dns-server 8.8.8.8 \newline % Row Count 6 (+ 2) configure vlan vlan5 dhcp-options dns-server secondary 8.8.4.4 \newline % Row Count 8 (+ 2) enable dhcp ports 1:1-46, 2:1-46, 3:1-46, 4:1-16 vlan vlan5% Row Count 10 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Configure Default Route:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{config iproute add default 10.10.10.1% Row Count 1 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Enable SSH:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{disable telnet \newline % Row Count 1 (+ 1) enable ssh2% Row Count 2 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Configure SNMP information:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{configure snmp sysContact "System Contact" \newline % Row Count 1 (+ 1) configure snmp sysLocation "System Location" \newline % Row Count 2 (+ 1) configure snmp sysName "System Name" \newline % Row Count 3 (+ 1) disable snmp access% Row Count 4 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Configure display string:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{conf port 1:48 display-string UplinkToASA% Row Count 1 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Remove VLAN:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{unconfigure vlan vlan10 ipaddress \newline % Row Count 1 (+ 1) delete vlan vlan10% Row Count 2 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Configure SNTP:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{configure sntp-client primary 173.255.230.140 vr VR-Default \newline % Row Count 2 (+ 2) configure sntp-client secondary 129.6.15.30 vr VR-Default \newline % Row Count 4 (+ 2) enable sntp-client% Row Count 5 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Link Aggregation Group:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{configure sharing 1:47 add ports 1:48, 2:48% Row Count 1 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Show commands:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{show config \newline % Row Count 1 (+ 1) show iproute \newline % Row Count 2 (+ 1) show iparp \newline % Row Count 3 (+ 1) show fdb \newline % Row Count 4 (+ 1) show version {[}images{]} \newline % Row Count 5 (+ 1) show switch {[}detail{]} \newline % Row Count 6 (+ 1) show stack {[}detail{]} \newline % Row Count 7 (+ 1) show slot \newline % Row Count 8 (+ 1) show cdp neighbor \newline % Row Count 9 (+ 1) show edp port all% Row Count 10 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Enable IP routing:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{enable ipforwarding vlan vlan2 \newline % Row Count 1 (+ 1) enable ipforwarding vlan Default% Row Count 2 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Check Cable for Wiring issues(Gen 2 Switches):}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{run diagnostics cable port% Row Count 1 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Show Open(Ready) Ports:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{show ports no-refresh | inc "R"% Row Count 1 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Show Port History:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{show port info detail | include Port:|Link\textbackslash{}sState:|Link\textbackslash{}sUps:|Link\textbackslash{}sDowns:% Row Count 2 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Display Logs:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{show log% Row Count 1 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Configure admin user:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{configure account admin% Row Count 1 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Configure timezone:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{configure timezone name EST -300 autodst% Row Count 1 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Create and configure VLAN:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{create vlan vlan10 description "User Access" tag 10 \newline % Row Count 2 (+ 2) configure vlan vlan10 ipaddress 10.10.10.10 255.255.255.0% Row Count 4 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Connect stacking cables:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{sw01-port2 -\textgreater{} sw02-port1 \newline % Row Count 1 (+ 1) sw02-port2 -\textgreater{} sw03-port1 \newline % Row Count 2 (+ 1) sw03-port2 -\textgreater{} sw04-port1 \newline % Row Count 3 (+ 1) sw04-port2 -\textgreater{} sw01-port1 \newline % Row Count 4 (+ 1) (can have up to eight nodes per stack)% Row Count 5 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Enable Stacking:}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{configure stacking easy-setup% Row Count 1 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}