\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{Bell.Labs (Steve Fowlkes)} \pdfinfo{ /Title (7510-command-line-reference-v0-5.pdf) /Creator (Cheatography) /Author (Bell.Labs (Steve Fowlkes)) /Subject (7510 Command Line Reference v0.5 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}{201CA3} \definecolor{LightBackground}{HTML}{F1F0F9} \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{7510 Command Line Reference v0.5 Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Bell.Labs (Steve Fowlkes)} via \textcolor{DarkBackground}{\uline{cheatography.com/20709/cs/7483/}}} \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}Bell.Labs (Steve Fowlkes) \\ \uline{cheatography.com/steve-fowlkes} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 14th March, 2016.\\ Updated 7th July, 2016.\\ 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}{7510 Basic Commands}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{`create ...` Is used to add or create something new (ex: create ospf area). You can also use add instead of create. \newline % Row Count 3 (+ 3) `view ...` Is used to display or view something (ex: view nodes). You can also use show instead of view. \newline % Row Count 6 (+ 3) `define ...` Is used to set or define something that already exists (ex: define ospf enable). You can also use set instead of define. \newline % Row Count 9 (+ 3) `clear...` Used to clear a field or reset a parameter \newline % Row Count 11 (+ 2) `remove ...` Removes the configuration for something (ex: remove port label)% Row Count 13 (+ 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}{Remote Accessing the 7510}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{`ssh \textless{}ip-address\textgreater{}` First step in accessing the 7510 MGW is to SSH to the IP address of it. If you do no know the MGW's IP, you can SSH to Host01 on the ISC side, and use the virsh commands to access the 7510 tenant. \newline % Row Count 5 (+ 5) `virsh console \textless{}vm\_name\textgreater{}` If you came in by SSH to the ISC Host, you can use the virsh command to open a 'virtual shell' to the vm instance of the 7510 you wish to manage. (ex: `virsh console 02-s00c17h0`) \newline % Row Count 10 (+ 5) `node-console -s \textless{}slot-num\textgreater{}` \newline % Row Count 11 (+ 1) `rconsole \textless{}gateway\textgreater{} \textless{}appl-id\textgreater{}` This allows you to switch from active SCM to active PIM, or stnby PIM to Act SCM etc... The \textless{}gateway\textgreater{} is usually 1. \textless{}appl-id\textgreater{} is the card number of the SCM or PIM. \newline % Row Count 15 (+ 4) `define scope vmg \textless{}vmg-num\textgreater{} | none ` This allows you to move between either of the vmg's on the SCM. Your prompt will change to reflect which one you are using.% Row Count 19 (+ 4) } \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}{File Management \& Scripts}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{`ls` Lists out the contents of the current directory. \newline % Row Count 2 (+ 2) `copy \textless{}source-file\textgreater{} \textless{}dest-file\textgreater{}` Copies the source file you specify to the path of the new location. \newline % Row Count 5 (+ 3) `compare \textless{}file1\textgreater{} \textless{}file2\textgreater{}` Compares two files. \newline % Row Count 6 (+ 1) `cat \textless{}filename\textgreater{}` Lets you view the file. \newline % Row Count 7 (+ 1) `remove file \textless{}filename\textgreater{}` Removes specified file. \newline % Row Count 9 (+ 2) `save` Saves the current configuration of the 7510. \newline % Row Count 11 (+ 2) `run script \textless{}filename.scr\textgreater{}` Runs the script that you specify. \newline % Row Count 13 (+ 2) `wait time \textless{}delay\textgreater{}` A command you can add to a script that causes a pause for the specified \textless{}delay\textgreater{} amount in miliseconds. \newline % Row Count 16 (+ 3) `define file privilege \textless{}filename\textgreater{} \textless{}privilege\_letter\textgreater{}` This lets you set the file's permissions. The privilege options are p(assword), v(iew), s(ystem), u(pdate), c(ode). These allow users to modify if they have the above permissions.% Row Count 21 (+ 5) } \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}{Administrative / Verification Commands}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{These commands are more administrative in nature, dealing with users/logins, verification of system settings. \newline % Row Count 3 (+ 3) `define ui switch-user diag` This allows you to switch to the diag (root) account if you are logged in via another user. \newline % Row Count 6 (+ 3) `define vmg scope \textless{}vmg-id\textgreater{}` Once you log into the SCM have to use this command to access the individual vMedia Gateway applications. You can find the vmg-id of each by running `view vmg status` \newline % Row Count 10 (+ 4) `view ui` Great command to see who else is logged into the console. Because the 7510 can only have a limited number of logged in users remotely. \newline % Row Count 13 (+ 3) `view access remote` Shows you what users can access the system remotely (ssh) \newline % Row Count 15 (+ 2) `clear ui \textless{}session-num\textgreater{}` This command will disconnect any user that is logged you. You must use the `view ui` command to get the session number you wish to kill. \newline % Row Count 19 (+ 4) `ping \textless{}host\textgreater{}` Works just as any ping works. You can also add the source and \# of pings. Stop with `ctrl+c` \newline % Row Count 22 (+ 3) `view nodes` Shows the available nodes that are configured on the 7510. Examples are the active and standby PIM's and SCM's. \newline % Row Count 25 (+ 3) `view vmg status` Shows the status and state of the gateway to the controller. \newline % Row Count 27 (+ 2) `view mgw config` Shows the mgw configuration. \newline % Row Count 28 (+ 1) `view module configuration all` Shows some stats about each module. Included is the Gateway, and App ID of the modules. \newline % Row Count 31 (+ 3) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Administrative / Verification Commands (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{`view version` Displays the version of the 7510 current software load. \newline % Row Count 2 (+ 2) `view alarm active` View the active alarms. User the word `remove` instead of view to erase the active alarms. \newline % Row Count 5 (+ 3) `reboot module` This will reboot the vm application that you're logged into. \newline % Row Count 7 (+ 2) `reset module \textless{}gateway\textgreater{} \textless{}appl\textgreater{}` Can only be run from the active SCM. Need to specify the targeted gateway and application numbers. \newline % Row Count 10 (+ 3) `define ui switch-user \textless{}target\_user\textgreater{}` Allows you to switch your current nonsuperuser account to either a super-user or another user. \newline % Row Count 13 (+ 3) `define admin enable \textless{}username\textgreater{}` Enables the specified user account% Row Count 15 (+ 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}{IP Addresses and Ports Syntax}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Port Label Syntax}} \newline % Row Count 1 (+ 1) {\bf{en}} Used to identify an Ethernet port application. \newline % Row Count 3 (+ 2) Ex: `en.scm.1` This example indicates an Ethernet port, on gateway number 1, in application number 10 (scm), and physical port 1. \newline % Row Count 6 (+ 3) {\bf{gw}} Used to identify a Gateway port service or component. \newline % Row Count 8 (+ 2) Ex: `gw.1.10.appl` \newline % Row Count 9 (+ 1) The example indicates the gateway 1, application id 10. \newline % Row Count 11 (+ 2) {\bf{Ports}} \newline % Row Count 12 (+ 1) `view port state \textless{}port-label\textgreater{} ` Displays the Operational/Admin state of the port you specify. The port label is in the form of the above example. (ex: en.scm.1 ) \newline % Row Count 16 (+ 4) `create port label \textless{}port\textgreater{} \textless{}text-label\textgreater{}` \newline % Row Count 17 (+ 1) port label feature eliminates the need to remember long port address \newline % Row Count 19 (+ 2) conventions like en.10.1. \newline % Row Count 20 (+ 1) `view port label all` Shows you all of the ports and their labels. ( Ex: \newline % Row Count 22 (+ 2) scm\_10\_1 eth0 0 ) \newline % Row Count 23 (+ 1) `view ip configuration` Shows the IP config of the 7510 \newline % Row Count 25 (+ 2) `view ip if` Shows the interfaces of the 7510. Both v4 and v6. \newline % Row Count 27 (+ 2) `view route table` Shows the ipv4 routing table. \newline % Row Count 28 (+ 1) `view ipv6 route` Shows specifically the ipv6 routing table% Row Count 30 (+ 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}{Misc. Details}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{*Remember you can and will see commands abbreviated, such as `vi` instead of `view`. Don't be confused. \newline % Row Count 3 (+ 3) *To view all available choices relating to a command you can issue the \newline % Row Count 5 (+ 2) command, and all of the valid next choices for that command are listed. \newline % Row Count 7 (+ 2) *All filenames that you create can at max be 8 characters, with a min/max of a 3 character extension.% Row Count 10 (+ 3) } \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}{Misc Commands}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{The commands here most likely will not be common place to run, but may aid in verification of system config and security. \newline % Row Count 3 (+ 3) `view telnet state` Tells you rather the telnet service is enabled or disabled. \newline % Row Count 5 (+ 2) `define telnet state \{enable|disable\}` Allows you to enable or disable the telnet service% Row Count 7 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}