Hot answers tagged

17

We can use the alias command in global conf mode: alias <mode> <command-alias> <original-command> <mode> is one of the many IOS command modes. If you need it in different modes, you have to call it for each one - type alias ? to get a long list of modes. An example for checking for a dhcp snooped IP, type in global conf mode ...


14

Specifically, you're looking for this: line con 0 logging synchronous line vty 0 15 logging synchronous


10

I am familiar with CLI on managed Ethernet switches. However, recently I came across a term 'transaction based CLI' on switches. I am not exactly sure what is that and purpose of having it in switches. Is it similar to database transactions where you can unroll the entire commands before committing them? The RX5000 is speaking of the ability to revert ...


7

I think you're looking for "logging synchronous".


7

AFAIK, the answer is NO. I never understood how this valuable feature has escaped IOS for so many years or I manged to never discover it. ;-) I use the following technique in some cases when I want to be absolutely sure I'm configuring the interface that I think I am. Comments (!) shown. I know this technique is long-winded for the net vets, but it fits ...


7

Unfortunately, Cisco has not given us a precise, one-line way to remove a single object or object-group. This is something that may come in time as the ASA code continues to mature and the ASA's themselves get more CPU resources. The original ASA line was pathetically underpowered in the CPU department. Your 5505, for example, was first released in 2006 ...


6

It's just slightly different syntax, if you're trying to match lines containing specific strings, you'd use: show configuration | match "abc|xyz" Also, here's the documentation in case you want to get fancier: JUNOS Command Regex


6

In general, if you learned IOS 11, you can jump into an IOS 15 device and still feel somewhat at home. That said, absolutely there are changes between different versions of IOS and even the same version of IOS on different platforms. There would be no progress if there were no changes and I personally wouldn't want to be running IOS 11 today. New features/...


6

For complicated tasks, I suggest looking at TCL. You can use TCL to create scripts that can be stored and run on your IOS/Nexus devices providing an amazing amount of flexibility in collecting and displaying data. While it isn't necessarily faster for simple tasks, you can collect and correlate information from multiple commands and reformat it as you like....


6

The easiest way on Cisco switches is: show int status This will show you the link status for all ports The 45xx line has also some additional useful commands: show int link which will show you the last time the link was active. Also you can use (it is disruptive for the port): test cable-diagnostics tdr interface xx/yy and then show cable-...


6

You state that a Wireless Controller is not an option, so I'm assuming these are Autonomous Access Points. On Cisco Autonomous APs, you are looking for the show dot11 associations command and it's associated sub commands. It gives an output like so: SPARKY#show dot11 associations 802.11 Client Stations on Dot11Radio0: ...


6

For some reason the Juniper documentation (http://www.juniper.net/techpubs/en_US/junos13.2/topics/reference/command-summary/ssh.html) doesn't mention it, but it is possible. The command is: ssh <username>@<hostname>


6

Global configuration mode is for configuring global parameters. This is the default mode when you enter configuration mode. Some commands will cause you to enter a more specific configuration mode. Line configuration mode (similar to interface configuration mode) is entered when you specify a line to configure. Line configuration mode is then where you ...


5

You can show all interfaces that are up by: show interfaces status | include connected Then your script can count them. The show interfaces status cli command shows you all interfaces. The interfaces that are "up" are in the connected state. The | include connected shows only the lines of the output that contain the word "connected". Newer Cisco IOS ...


5

Your problem is, indeed, with routing. Things in VLAN 1 are using 5.1 as the gateway, right? 5.1 doesn't know about any other internal networks. (i.e. VLAN 10) Likewise, the hosts in VLAN 1 don't know about VLAN 10. When clientA tries to ping serverA, the packets go to the ASA and die as it doesn't know where to send them. (it's default route would send ...


5

The syntax of the show log command is show log "filename". First try: show log This command will show you all files in the log directory. You will probably get the log entries you want simply by typing: show log messages.0.gz No need to think about decompressing the file. Junos will do this for you.


5

screen-length 0 temporary Accroding to cisco to huawei cheatsheet I stumbled upon. Worked for me on VRP (R) software, Version 5.170. There are probably many other Huawei boxes with different command sets, or this functionality may not be available at all.


5

The most common commands are show interfaces show ip interface brief Or for a specific interface show interfaces vlan 1


5

Cisco IOS Shell works on Cisco Routers and Switches. The Cisco IOS Shell (IOS.sh) feature provides shell scripting capability to the Cisco IOS command-line-interface (CLI) environment. Cisco IOS.sh enhances the process of controlling and configuring an IOS router using the CLI by including, variable substitution, paths, conditional statements, loops, pipes, ...


4

Judging by your comments, you're simply trying to simplify your initial set statements. The easiest solution is to use the wildcard range statements released after 12.1. Example usage: user@host# wildcard range set interfaces ge-0/0/[0-23] unit 0 family vpls Equivalent to: user@host# set interfaces ge-0/0/0 unit 0 family vpls user@host# set interfaces ...


4

sho ip int brief will give you a list of all the interfaces and their status as well as protocol. It will not show you if a cable is "unplugged" but will tell you if something is plugged into the interface and sending frames. sho int Will allow you to see if an interface is UP and whether or not protocol is also UP. If you are just looking to monitor ...


4

Although changes do occur between major releases of IOS, examples being: the addition of EIGPv6, and changes in the crypto key generate command. These commands can also vary based on the allowed feature set and the underlying hardware that is running the IOS image (ISL being one that comes to mind). Understanding that things will change is necessary in any ...


4

It was my understanding that Cisco's ACS+ was EOL, which is why we were moving to ISE in the first place. Somewhere there was a misunderstanding because Cisco ACS 5.6 is currently supported. Are you suggesting that we use ACS+ or are you saying ISE cannot perform accounting? ISE is basically just a fancy RADIUS server, which is heavily focused on EAP /...


4

I was able to get it working with this command sudo screen /dev/ttyS0 38400,cs8,-ixon,ixoff Before running the command, I had to use dmesg to find which of the ttyS or ttyU devices was to be used. Also the parameters after the ttyS device are the exact ones specified in the the HP 1910 manuals. There are other programs such as cu and minicom. I chose GNU ...


4

From configuration mode, type logging monitor info end then from enable mode type term[inal] mon[itor] this will send console messages to your vty session.


4

It doesn't matter if you are connected to the router via console, telnet, SSH, etc., you configure a specific feature in the mode for that specific feature. If you need to configure global commands, you do that in global configuration. If you are configuring interfaces, you do that in interface configuration. If you are configuring lines, you do that in ...


4

It actually depends on the NX-OS version running on the switch (and hence the switch model). Starting with version 6.0(2)N2(1), the default interface command has been added to the nexus world. Compare the release notes of this version. As far as I know, previous versions do not support this or any similar command. However you won't be able to run NX-OS 6 ...


4

I suspect that this log message is not caused by the absence of the PSU but by an IOS bug (e.g. CSCuv53498 but there are more), so upgrading it may get rid of the messages. Alternatively, configure the following to just hide the syslog messages: logging discriminator FOO msg-body drops FRU Power Supply is not responding logging buffered discriminator FOO (...


4

Issuing the command no spanning-tree vlan 5 priority 4096, which is the same as spanning-tree vlan 5 priority 32768, will not affect other VLANs' instances of Per VLAN Spanning Tree Plus (PVST+). Example: Eth0/1 +---+ +---+ |SW1+------------+SW2| +---+ +---+ Eth0/0 SW2 is hard coded as the root for VLANs 2-20. STP ...


4

What you're after isn't possible in the CLI, but below are some ways that might get you more info: First, give yourself the breadcrumbs permission (You'll need a Junos version >=12.2 for this) eg: set system login class admin configuration-breadcrumbs set system login class admin permissions all set system login user <your user> class admin show ...


Only top voted, non community-wiki answers of a minimum length are eligible