Information to Monitor | Command | Example |
Versions of software running on the router. | show version | user@host> show version brief Model: m160 JUNOS Base OS boot [5.4R1] JUNOS Base OS Software Suite [5.4R1] JUNOS Kernel Software Suite [5.4R1] JUNOS Routing Software Suite [5.4R1] JUNOS Packet Forwarding Engine Support [5.4R1] JUNOS Crypto Software Suite [5.4R1] Juniper Networks Online Documentation Files [5.4R1] |
JUNOS software extensions. | show system software | user@host> show system software Information for jbase: Comment: JUNOS Base OS Software Suite [5.4R1] ... |
Current time and how long the router has been operational. | show system uptime | user@host> show system uptime Current time: 1998-10-13 19:45:47 UTC System booted: 1998-10-12 20:51:41 UTC (22:54:06 ago) Protocols started: 1998-10-13 19:33:45 UTC (00:12:02 ago) Last configured: 1998-10-13 19:33:45 UTC (00:12:02 ago) by abc 12:45PM up 22:54, 2 users, load averages: 0.07, 0.02, 0.01 |
Current running system configuration. | show configuration | user@host> show configuration system { host-name my-host; domain-name juniper.net; backup-router 192.1.1.254; time-zone America/Los_Angeles; ... |
Verify the syntax of a configuration file. | test configuration | user@host> test configuration terminal [Type ^D to end input] system { host-name my-name; ok computer; login; } terminal:3:(8) syntax error: ok [edit system] 'ok computer;' syntax error terminal:4:(11) statement must contain additional statements: ; [edit system login] 'login ;' statement must contain additional statements configuration syntax failed |
Users currently logged in to the router. | show system users | user@host> show system users 7:30PM up 4 days, 2:26, 2 users, load averages: 0.07, 0.02, 0.01 USER TTY FROM LOGIN@ IDLE WHAT root d0 - Fri05PM 4days -csh (csh) boojum p0 berry.juniper.net 7:30PM - cli |
Login permissions for the current user. | show cli authorization | root@host> show cli authorization Current user: 'root' login: 'boojum' class '(root)' Permissions: admin -- Can view user accounts admin-control-- Can modify user accounts clear -- Can clear learned network information configure -- Can enter configuration mode ... |
Log files and their contents and recent user logins. | show log | user@host> show log total 57518 -rw-r--r-- 1 root bin 211663 Oct 1 19:44 dcd -rw-r--r-- 1 root bin 999947 Oct 1 19:41 dcd.0 -rw-r--r-- 1 root bin 999994 Oct 1 17:48 dcd.1 -rw-r--r-- 1 root bin 238815 Oct 1 19:44 rpd -rw-r--r-- 1 root bin 1049098 Oct 1 18:00 rpd.0 -rw-r--r-- 1 root bin 1061095 Oct 1 12:13 rpd.1 -rw-r--r-- 1 root bin 1052026 Oct 1 06:08 rpd.2 |
Monitor the contents of log files. | monitor | user@host> monitor start system-log *** system-log*** Jul 20 15:07:34 hang sshd[5845]: log: Generating 768 bit RSA key. Jul 20 15:07:35 hang sshd[5845]: log: RSA key generation complete. Jul 20 15:07:35 hang sshd[5845]: log: Connection from 204.69.248.180 port 912 Jul 20 15:07:37 hang sshd[5845]: log: RSA authentication for root accepted. Jul 20 15:07:37 hang sshd[5845]: log: ROOT LOGIN as 'root' from trip.jcmax.com Jul 20 15:07:37 hang sshd[5847]: log: executing remote command as root: scp -t / tmp Jul 20 15:07:37 hang sshd[5845]: log: Closing connection to 204.69.248.180 |
Recent CLI history. | show cli history | user@host> show cli history 11:14:14 -- show arp 11:22:10 -- show cli authorization 11:27:12 -- show cli history |
Check host reachability and network connectivity. | ping | user@host> ping boojum PING boojum.juniper.net (192.156.169.254): 56 data bytes 64 bytes from 192.156.169.254: icmp_seq=0 ttl=253 time=1.028 ms 64 bytes from 192.156.169.254: icmp_seq=5 ttl=253 time=1.044 ms ^C [abort] |
Check the reachability of a remote ATM node. | ping atm | user@host> ping atm vci 0.128 interface at-5 /3/0 53 byte oam cell received on (vpi=0 vci=128): seq=1 53 byte oam cell received on (vpi=0 vci=128): seq=2 ^C[abort] --- atmping statistics --- 2 cells transmitted, 2cells received, 0% cell loss |
Check the reachability of a remote VPN node. | ping vpn-interface | user@vpnhost> ping vpn-interface fe-1/1/0.1 192.168.197.94 local 192.168.197.93 count 3 PING 192.168.197.94 (192.168.197.94): 56 data bytes 64 bytes from 192.168.197.94: icmp_seq=0 ttl=255 time=0.866 ms 64 bytes from 192.168.197.94: icmp_seq=1 ttl=255 time=0.728 ms 64 bytes from 192.168.197.94: icmp_seq=2 ttl=255 time=0.753 ms --- 192.168.197.94 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.728/0.782/0.866/0.060 ms |
Determine the route to a network system. | traceroute | user@host> traceroute venus traceroute to venus.juniper.net (192.156.169.254), 30 hops max, 40 byte packets 1 alice (192.168.1.254) 2.370 ms 2.853 ms 0.367 ms 2 snark (192.168.255.250) 0.778 ms 2.937 ms 0.446 ms 3 boojum (192.156.169.254) 7.737 ms 89.905 ms 0.834 ms |
Network connection information. | show system connections | user@host> show system connections Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp 0 2 192.168.4.16.513 208.197.169.254.894 ESTABLISHED tcp 0 0 192.168.4.16.513 208.197.169.195.945 ESTABLISHED tcp 0 0 *.23 *.* LISTEN tcp 0 0 *.22 *.* LISTEN tcp 0 0 *.513 *.* LISTEN tcp 0 0 *.514 *.* LISTEN tcp 0 0 *.21 *.* LISTEN udp 0 0 192.168.4.16.1634208.197.169.249.2049 udp 0 0 192.168.4.16.1627208.197.169.254.2049 udp 0 0 192.168.4.16.1371208.197.169.195.2049 |
Open secure shell connections between the local router and a remote system. | ssh | user@host> ssh berry Host key not found from the list of known hosts. Are you sure you want to continue connecting (yes/no)? yes Host 'berry' added to the list of known hosts. boojun@berry's password: Last login: Sun Jun 21 10:43:42 1998 from junos-router % ... % exit user@host> |
Open a telnet session to a remote system. | telnet | user@host> telnet 192.154.1.254 Trying 192.154.169.254... Connected to berry.juniper.net. Escape character is '^]'. ttypa login: <Control>] telnet> quit Connection closed. user@host> |
NTP peers and their state. | show ntp associations | user@host> show ntp associations remote refid st t when poll reach delay offset disp ============================================================================== *wolfe-gw.junipe tick.ucla.edu 2 u 43 64 377 1.86 0.319 0.08 |
NTP peer variables . | show ntp status | user@host> show ntp status status=06f4 leap_none, sync_ntp, 15 events, event_peer/strat_chg system="FreeBSD", leap=00, stratum=4, rootdelay=7.90, rootdispersion=22.99, peer=23732, refid=olive-oyl.juniper.net, reftime=b97c36cf.bed61000 Wed, Aug 12 1998 15:44:15.745, poll=7, clock=b97c3715.ba307000 Wed, Aug 12 1998 15:45:25.727, phase=-0.283, freq=-23633.96, error=0.695 |
FPC information | show pfe fpc | user@host> show pfe fpc 1 FPC 1 status: Slot: Present State: Online Last State Change: 2000-01-10 18:12:27 UTC Uptime: 1d 03:31 Failures: 0 Pending: 0 PFE listener statistics: ... PFE IPC statistics: ... PFE socket-buffer mbuf depth: ... PFE socket-buffer bytes pending transmit: ... |
Packet Forwarding Engine information. | show pfe terse | user@host> show pfe terse Slot Type Slot State Flags Uptime 0 SFM Present Online 0x0bf 01:25:42 2 SFM Present Online 0x0bf 01:25:40 0 FPC Present Online 0x102 01:25:57 1 FPC Present Online 0x102 01:25:55 2 FPC Present Online 0x102 01:25:53 |
Packet Forwarding Engine next -hop information. | show pfe next-hop | user@host> show pfe next-hop SFM 0 Nexthop Info: ID Type Interface Protocol Encap Next Hop Addr MTU ... |
SCB information | show pfe scb | user@host> show pfe scb SCB status: Slot: Present State: Online Last State Change: 1999-02-05 11:02:36 UTC Uptime: 1d 02:31 Failures: 0 Pending: 0 PFE listener statistics: ... PFE IPC statistics: ... |
SFM information | show pfe sfm | user@host> show pfe sfm 1 SFM 1 status: Slot: Offline State: Init Last State Change: 2000-03-01 07:45:55 UTC Downtime: 17:47:29 Failures: 167 Pending: 0 PFE listener statistics: ... PFE IPC statistics: ... |
System memory and buffer usage information. | show system buffers | user@host> show system buffers 853 mbufs in use: 2 mbufs allocated to packet headers 37 mbufs allocated to protocol control blocks 28 mbufs allocated to socket names and addresses 2 mbufs allocated to socket send data 400 mbufs allocated to pfe refill data 384 mbufs allocated to fxp data 784/944 mbuf clusters in use 1994 Kbytes allocated to network (83% in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines |
Software processes running on the router. | show system processes | user@host> show system processes brief last pid: 543; load averages: 0.00, 0.00, 0.00 18:29:47 37 processes: 1 running, 36 sleeping Mem: 25M Active, 3976K Inact, 19M Wired, 8346K Buf, 202M Free Swap: 528M Total, 64K Used, 528M Free |
Systemwide protocol- related statistics. | show system statistics | user@host> show system statistics ip: ... icmp: ... tcp: ... udp: ... igmp: ... arp: ... clnl: ... esis: ... |
Statistics about amount of free disk space in the router's file systems. | show system storage | user@host> show system storage Filesystem 1K-blocks Used Avail Capacity Mon /dev/wd1s1a 65687 28888 31545 48% / devfs 16 16 0 100% dut devfs 16 16 0 100% /d/ |
Routing, routing protocol, and interface tasks that are currently running. | show task | user@host> show task summary Pri Task Name Pro Port So Flags 10 IF 15 LABEL 15 ISO 15 INET 7 20 Aggregate 20 RT 30 ICMP 1 9 39 ISIS I/O 12 40 IS-IS 10 40 BGP RT Background <LowPrio> 40 BGP.0.0.0.0+179 179 15 <Accept LowPrio> 50 BGP_69.192.168.201.234+179 179 17 <LowPrio> 50 BGP_70.192.168.201.233+179 179 16 <LowPrio> 50 BGP_Group_69_153 <LowPrio> 50 BGP_Group_70_153 <LowPrio> 50 ASPaths 60 KRT 255 1 60 Redirect 70 MGMT.local 14 <LowPrio> 70 MGMT_Listen./var/run/rpd_mgmt 13 <Accept LowPrio> 70 SNMP Subagent./var/run/sub_rpd.sock 8 <LowPrio> |
State and checksum value for files in a file system. | show system audit | user@host> show system audit root-only # user: root # machine: my-host # tree: / date: Fri Feb 11 21:21:46 2000 # . /set type=file uid=0 gid=0 mode=0755 nlink=1 . type=dir nlink=23 size=1024 time=950252640.0 .cshrc uid=3 gid=7 mode=0644 size=177 time=939182975.0 \ md5digest=f414e06fea6bd646244b98e13d6e6226 .kernel.jkernel.backup \ mode=0744 size=1934552 time=944688902.0 \ md5digest=2c343cf0bd9fea8f04f78604feed7aa4 ... |
Hostname lookup using DNS. | show host | user@host> show host snark snark.boojum.net has address 192.168.1.254 user@host> show host 192.168.1.254 Name: snark.boojum.net Address: 192.168.1.254 Aliases: |
Contents of the ARP table. | show arp | user@host> show arp MAC Address Address Name Flags 00:00:0c:06:2c:0d 192.168.1.2 firewall.my.net |
Zero the contents of the ARP table. | clear arp | user@host> clear arp user@host> |
Restart a JUNOS software process. | restart | user@host> restart interfaces interfaces process terminated interfaces process restarted user@host> |
Install software bundles or packages onto the router. | request system software add | user@host> request system software add 5.4R1-signed.tgz Initializing... Using /packages/jbase-5.4R1 ... |
Remove software bundles or packages from the router. | request system software delete | user@host> request system software delete 5.4R1-signed.tgz |
Roll back to previously installed version. | request system software rollback | user@host> request system software rollback |
Check candidate software compatibility against the current configuration. | request system software validate | user@host> request system software validate 5.3R1.tgz Checking compatibility with configuration Initializing... Using /packages/jbase-5.4R1 ... |
Stop the routing software. | request system halt | user@host> request system halt Halt the system ? [yes,no] (no) yes *** FINAL System shutdown message from root@lab8 *** System going down IMMEDIATELY Terminated ... syncing disks... 11 8 done The operating system has halted. Please press any key to reboot. |
Reboot the routing software. | request system reboot | user@host> request system reboot Reboot the system ? [yes,no] (no) user@host> user@host> request system reboot at 2300 message "Maintenance time!" Reboot the system ? [yes,no] (no) yes shutdown: [pid 186] *** System shutdown message from root@berry.network.net *** System going down at 23:00 |
Display pending system halts or reboots. | show system reboot | user@host> show system reboot reboot requested by root at Wed Feb 10 17:40:46 1999 [process id 17885] |
Clear a pending system halt or reboot. | clear system reboot | user@host> clear system reboot reboot requested by root at Sat Dec 12 19:37:34 1998 [process id 17855] Terminating... |
Back up the file systems on the router. | request system snapshot | user@host> request system snapsho t umount: /altroot: not currently mounted Copying / to /altroot.. (this may take a few minutes) umount: /altconfig: not currently mounted Copying /config to /altconfig.. (this may take a few minutes) The following filesystems were archived: / /config |
Copy a file to another location on the router or to another system on the network. | file copy | user@host> copy /var/tmp/rpd.core.4 berry:/c/junipero/tmp ...transferring.file...... 0 KB 0.3 kB/s ETA: 00:00:00 100% |
List files and directories on the router. | file list | user@host> file list /var/tmp dcd.core rpd.core snmpd.core |
Rename a file on the router. | file rename | user@host> file rename /var/tmp/dcd.core /var/tmp/dcd.core.99 0413 user@host> file list /var/tmp dcd.core.990413 rpd.core snmpd.core |
Display the contents of a file. | file show | user@host> file show /var/log/messages Apr 13 21:00:08 romney /kernel: so-1/1/2: loopback suspected; going to standby. Apr 13 21:00:40 romney /kernel: so-1/1/2: loopback suspected; going to standby. Apr 13 21:02:48 romney last message repeated 4 times Apr 13 21:07:04 romney last message repeated 8 times Apr 13 21:07:13 romney /kernel: so-1/1/0: Clearing SONET alarm(s) RDI-P Apr 13 21:07:29 romney /kernel: so-1/1/0: Asserting SONET alarm(s) RDI-P Apr 13 21:07:36 romney /kernel: so-1/1/2: loopback suspected; going to standby. Apr 13 21:08:08 romney /kernel: so-1/1/2: loopback suspected; going to standby. ... |
Delete a file on the router. | file delete | user@host> file delete /var/tmp/snmpd.core user@host> file list /var/tmp dcd.core rpd.core |
Send messages to users currently logged in to the router. | request message | user@host> request message message " Maintenance window in 10 minutes " user boojum Message from user@host on ttyp0 at 20:27 ... Maintenance window in 10 minutes EOF |
Display boot messages. | show system boot-messages | user@host> show system boot-messages Copyright (c) 1992-1998 FreeBSD Inc. Copyright (c) 1996-2000 Juniper Networks, Inc. All rights reserved. ... |
Collect system information before contacting customer support. | request support information | user@host> request support information save filename Wrote 1143 lines of output to 'filename' user@host> |