Example: bachelor of science

Using the Command Line Interface (CLI) - Cisco

Usingthe CommandLineInterface (CLI) The followingtopics explainhow to use the commandline Interface (CLI) for FirepowerThreat Defense(FTD) devicesand how to interpretthe commandreferencetopics. Use the CLI for basic systemsetup you deploya configurationchangeusing the FirepowerManagementCenteror FirepowerDeviceManager,donotusetheFTDCLI forlong-runningcommands(suchaspingwithah ugerepeatcountorsize);these commandscould cause a LoggingInto the CommandLine Interface (CLI), on page 2 CommandModes, on page 3 SyntaxFormatting, on page 5 EnteringCommands, on page 6 FilteringShow CommandOutput, on page 7 CommandHelp, on page 9 Usingthe CommandLineInterface (CLI) 1 LoggingIntothe CommandLineInterface (CLI) To log into the CLI, use an SSH client to make a connectionto the managementIP in Using theadminusername(defaultpasswordis Admin123)or anotherCLI user can also connectto the addresson a data interfaceif you open the interfacefor SSH to data interfacesis disabledby enable SSH access,use the device manager(FirepowerManagementCenterorFirep owerDeviceManager) to the can create user accountsthat can log into the CLI Using theconfigure , supportslocal authenticationonly.

This CLI includes additional show and other commands, including the session wlan console command needed to enter the CLI for the wireless access point on an ASA 5506W-X. This CLI has two sub-modes; more commands are available in Privileged EXEC Mode. To enter this mode, use the system support diagnostic-cli command in the Firepower Threat ...

Tags:

  Cisco, Dome, Command, Exec, Exec mode

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of Using the Command Line Interface (CLI) - Cisco

1 Usingthe CommandLineInterface (CLI) The followingtopics explainhow to use the commandline Interface (CLI) for FirepowerThreat Defense(FTD) devicesand how to interpretthe commandreferencetopics. Use the CLI for basic systemsetup you deploya configurationchangeusing the FirepowerManagementCenteror FirepowerDeviceManager,donotusetheFTDCLI forlong-runningcommands(suchaspingwithah ugerepeatcountorsize);these commandscould cause a LoggingInto the CommandLine Interface (CLI), on page 2 CommandModes, on page 3 SyntaxFormatting, on page 5 EnteringCommands, on page 6 FilteringShow CommandOutput, on page 7 CommandHelp, on page 9 Usingthe CommandLineInterface (CLI) 1 LoggingIntothe CommandLineInterface (CLI) To log into the CLI, use an SSH client to make a connectionto the managementIP in Using theadminusername(defaultpasswordis Admin123)or anotherCLI user can also connectto the addresson a data interfaceif you open the interfacefor SSH to data interfacesis disabledby enable SSH access,use the device manager(FirepowerManagementCenterorFirep owerDeviceManager) to the can create user accountsthat can log into the CLI Using theconfigure , supportslocal authenticationonly.

2 You cannotaccess the CLI Using , the device to connectyour PC to the consoleusing a terminalemulatorset for 9600 baud, 8 data bits, noparity, 1 stop bit, no flow the hardwareguide for your device for more informationabout initial CLI you access on the Consoleport differs by device type. ASA Series devices TheCLI on the Consoleport is the regularFTD CLI. FirepowerSeries devices TheCLI on the Consoleport is can get to the FTD CLI the FXOS CLI for chassis-levelconfigurationand the Firepower2100, you cannotperformany configurationat the FXOS CLI. Use the FTD CLI forbasic configuration,monitoring,and the FXOS the Firepower2100 Seriesfor informationon FXOS commandsfor the CommandLineInterface (CLI) 2 Usingthe CommandLineInterface (CLI) LoggingIntothe CommandLineInterface (CLI) CommandModesThe CLI on a FirepowerThreat Defensedevice has different modes,which are really separateCLIs ratherthan sub-modesto a single CLI.

3 You can tell which mode you are in by lookingat the this CLI for FirepowerThreat Defensemanagementconfigurationand troubleshooting.>DiagnosticCLIUse this CLI for CLI includesadditionalshow and other commands,includingthesessionwlanconsolec ommandneededto enter the CLI for the wirelessaccess point onan ASA CLI has two sub-modes;more commandsare availablein enter this mode, use thesystemsupportdiagnostic-clicommandin the FirepowerThreat DefenseCLI. > (pressenterwithoutenteringa passwordwhen promptedfor a password).Note that you cannotset a passwordfor this protectedby the accountlogin to the FTD CLI only. However, users cannotenterconfigurationmodewithinPrivil egedEXEC mode, #ExpertModeUse ExpertMode only if a documentedproceduretells you it is required,or if the Cisco TechnicalAssistanceCenterasks you to use it. To enter this mode, use theexpertcommandin the FirepowerThreat promptis username@hostnameif you log in Using the admin user.

4 If you use a different user, the model,you use FXOS for configurationand FXOS,you can enter the FirepowerThreat DefenseCLI Using Firepower2100 series devices,you can go from the FirepowerThreat DefenseCLI to the FXOSCLI Using CommandLineInterface (CLI) 3 Usingthe CommandLineInterface (CLI) CommandModesThe FXOS commandpromptlooks like the following,but the promptchangesbased on mode. See theCiscoFXOSCLI ConfigurationGuidefor your FXOS versionand hardwaremodel for details aboutFXOS CLI >Firepower-module2#Usingthe CommandLineInterface (CLI) 4 Usingthe CommandLineInterface (CLI) CommandModesSyn taxFormattingCommandsyntax descriptionsuse the followingconventions:DescriptionConventi onCommandtext indicatescommandsand keywordsthat you enter indicatesargumentsfor which you optionalelement(keywordor argument).[x]Squarebracketsenclosingkeyw ordsor argumentsseparatedby a verticalbarindicatean optionalchoice.

5 [ x | y]Bracesenclosingkeywordsor argumentsseparatedby a verticalbar indicatearequiredchoice.{x | y}Nestedsets of square bracketsor braces indicateoptionalor requiredchoiceswithin optionalor a verticalbar within squarebracketsindicatea requiredchoice within an optionalelement.[x {y | z}]Usingthe CommandLineInterface (CLI) 5 Usingthe CommandLineInterface (CLI) SyntaxFormattin gEnteringCommandsWhen you log into the CLI throughthe consoleport or an SSH session,you are presentedwith the followingcommandprompt:>You type the commandat the promptand press Enter to executethe : Scrollingthroughcommandhistory You can use the up and down arrow keys to scroll Completingcommands To completea commandor keywordafter enteringa partial string, press Abbreviatingcommands IntheregularCLI, ,inthediagnosticCLI,youcanabbreviatemost commandsdowntothefewestuniquecharactersf or a Command ;for example,you can entershow verinsteadofshow version.

6 Stoppingcommandoutput Ifa commandproducesa lot of output,you can get out of it by pressingtheq key. Stoppinglong-runningcommands Ifa commandis not returningoutput fast enough,and you want totry a different Command ,press Ctrl+ CommandLineInterface (CLI) 6 Usingthe CommandLineInterface(CLI) allshowcommandsbut is most useful when dealingwith commandsthat producea lot of use the filteringcapabilities,use the this case, the verticalbar|after the showcommandis the pipe characterand is part of the Command ,not part of the syntax filteringoptionscome after the| |{grep|include|exclude|begin}regularexpr essionFilteringCommandsYou can use these filteringcommands: grep Displayonly those lines that match the pattern. include Displayonly those lines that match the pattern. exclude Excludeall lines that match the pattern,show all other lines. begin Findthe first line that includesthe pattern,and displaythat line and all regularexpression,typicallya simpletext string.

7 Do not enclosethe expressionin single ordouble-quotes,these will be seen as part of the , trailingspaces will be includedin access-listcommandtoshowonlythoserules that apply to the inside1_2interface.>show access-list| includeinside1_2access-listNGFW_ONBOX_AC Lline3 advancedtrustip ifc inside1_2any ifc inside1_3anyrule-id268435458event-logbot h(hitcnt=0)0x2c7f5801access-listNGFW_ONB OX_ACLline4 advancedtrustip ifc inside1_2any ifc inside1_4anyrule-id268435458event-logbot h(hitcnt=0)0xf170c15baccess-listNGFW_ONB OX_ACLline5 advancedtrustip ifc inside1_2any ifc inside1_5anyrule-id268435458event-logbot h(hitcnt=0)0xce627c77access-listNGFW_ONB OX_ACLline6 advancedtrustip ifc inside1_2any ifc inside1_6anyrule-id268435458event-logbot h(hitcnt=0)0xe37dcdd2access-listNGFW_ONB OX_ACLline7 advancedtrustip ifc inside1_2any ifc inside1_7anyrule-id268435458event-logbot h(hitcnt=0)0x65347856access-listNGFW_ONB OX_ACLline8 advancedtrustip ifc inside1_2any ifc inside1_8anyrule-id268435458event-logbot h(hitcnt=0)

8 0x6d622775access-listNGFW_ONBOX_ACLline9 advancedtrustip ifc inside1_3any ifc inside1_2anyrule-id268435458event-logbot h(hitcnt=0)0xc1579ed7access-listNGFW_ONB OX_ACLline15 advancedtrustip ifc inside1_4any ifc inside1_2anyrule-id268435458event-logbot h(hitcnt=0)0x1d1a8032access-listNGFW_ONB OX_ACLline21 advancedtrustip ifc inside1_5any ifc inside1_2anyrule-id268435458 Usingthe CommandLineInterface (CLI) 7 Usingthe CommandLineInterface (CLI) FilteringShowCo mmandOutputevent-logboth(hitcnt=0)0xf508 bbd8access-listNGFW_ONBOX_ACLline27 advancedtrustip ifc inside1_6any ifc inside1_2anyrule-id268435458event-logbot h(hitcnt=0)0xa6be4e58access-listNGFW_ONB OX_ACLline33 advancedtrustip ifc inside1_7any ifc inside1_2anyrule-id268435458event-logbot h(hitcnt=0)0x699725eaaccess-listNGFW_ONB OX_ACLline39 advancedtrustip ifc inside1_8any ifc inside1_2anyrule-id268435458event-logbot h(hitcnt=0)0xd2014e58access-listNGFW_ONB OX_ACLline47 advancedtrustip ifc inside1_2any ifc outsideanyrule-id268435457event-logboth( hitcnt=0)0xea5bdd6eUsingthe CommandLineInterface (CLI) 8 Usingthe CommandLineInterface (CLI) FilteringShowCo mmandOutputCommandHelpHelp informationis availablefrom the commandline by enteringthe followingcommands: ?

9 To see a list of all commands. command_name?to see the optionsfor a example,show ?. string?to show the commandsor keywordsthat match the string. For example,n?shows all commandsthat start with the letter n. helpcommand_nameto see the syntax and limitedusage informationfor a which commandshave help CommandLineInterface (CLI) 9 Usingthe CommandLineInterface (CLI) CommandHelpUsin gthe CommandLineInterface (CLI) 10 Usingthe CommandLineInterface (CLI) CommandHel


Related search queries