Difference between revisions of "Juniper"
(add ifmon/iftop) |
(add vty, tcpdump, mtr) |
||
Line 17: | Line 17: | ||
* -d : same as running without arguments, but adds interface descriptions | * -d : same as running without arguments, but adds interface descriptions | ||
+ | === mtr === | ||
+ | Yes.. Juniper actually includes mtr: pass it a hostname, watch a time-lapse<br/> | ||
+ | traceroute occur. Lookup the details online; widely available tool.<br/> | ||
+ | |||
+ | === tcpdump === | ||
+ | Juniper includes a modified version of tcpdump; again, look it up elsewhere.<br/> | ||
== Semi-hidden debug interfaces == | == Semi-hidden debug interfaces == | ||
Line 33: | Line 39: | ||
==== vccpd: Virtual Chassis' ==== | ==== vccpd: Virtual Chassis' ==== | ||
+ | |||
+ | === vty: Shell out to other parts of the system === | ||
+ | ==== "vty fpc0": connect to PFE ==== | ||
+ | |||
+ | <nowiki> | ||
+ | PFEM0(vty)# show version | ||
+ | |||
+ | Juniper Embedded Microkernel Version 10.1R1.8 | ||
+ | Built by builder on 2010-02-12 17:42:57 UTC | ||
+ | Copyright (C) 1998-2010, Juniper Networks, Inc. | ||
+ | All rights reserved. | ||
+ | |||
+ | |||
+ | BSD platform (MPC 8544 processor, 48MB memory, 0KB flash) | ||
+ | Current time : Fri Nov 19 14:36:37 2010 | ||
+ | |||
+ | Elapsed time : 15+01:46:39 | ||
+ | </nowiki> |
Revision as of 14:41, 19 November 2010
EX Switches
Helpful CLI commands
ifmon
Time-elapsing interface counters: i/o bytes, i/o packets, errors, etc.
Pass the interface name when calling the command.
Usage: ifmon [-v] [-JL <lrname>] [interface]
What do the other flags do..?
iftop
Time-elapsing overview of interface counters: for all interfaces
Gives each port's rate in pps or bps, etc.
Usage: iftop [-v] [-d]
- -v : shows version
- -d : same as running without arguments, but adds interface descriptions
mtr
Yes.. Juniper actually includes mtr: pass it a hostname, watch a time-lapse
traceroute occur. Lookup the details online; widely available tool.
tcpdump
Juniper includes a modified version of tcpdump; again, look it up elsewhere.
lcdd: Line Card Daemon
"lcdd" from a shell (not the cli) connects you to various other parts of the switch,
including the software forwarding infrastructure (sfid), chassis manager (chassism),
and the virtual chassis system (vccpd). You don't need to be root to get into these.
The general idea is:
> lcdd 0 <area>
Where area is one of the above/below items. The digit (0) is the FPC slot number. EX switches only have FPC0.
sfid: Software Forwarding Infrastructure
chassism: Chassis Manager
vccpd: Virtual Chassis'
vty: Shell out to other parts of the system
"vty fpc0": connect to PFE
PFEM0(vty)# show version Juniper Embedded Microkernel Version 10.1R1.8 Built by builder on 2010-02-12 17:42:57 UTC Copyright (C) 1998-2010, Juniper Networks, Inc. All rights reserved. BSD platform (MPC 8544 processor, 48MB memory, 0KB flash) Current time : Fri Nov 19 14:36:37 2010 Elapsed time : 15+01:46:39