Friday, August 22, 2014

Juniper Commands

admin@STORAGE_ROOM> show chassis hardware detail
Hardware inventory:
Item             Version  Part number  Serial number     Description
Chassis                                GP0214176896      EX2200-C-12T-2G
Routing Engine 0 REV 09   650-036546   GP0214176896      EX2200-C-12T-2G
Routing Engine 0                       GP0214176896      EX2200-C-12T-2G
FPC 0            REV 09   650-036546   GP0214176896      EX2200-C-12T-2G
  CPU                     BUILTIN      BUILTIN           FPC CPU
  PIC 0                   BUILTIN      BUILTIN           12x 10/100/1000 Base-T
  PIC 1          REV 09   650-036546   GP0214176896      2x (10/100/1000 Base-T or GE SFP)
    Xcvr 0       REV 01   740-011614   PQT2Q9M           SFP-LX10
Power Supply 0                                           PS 30W AC

admin@STORAGE_ROOM>

admin@STORAGE_ROOM> show chassis hardware models
Hardware inventory:
Item             Version  Part number  Serial number     FRU model number
Routing Engine 0 REV 09   650-036546   GP0214176896      EX2200-C-12T-2G
FPC 0            REV 09   650-036546   GP0214176896      EX2200-C-12T-2G
  PIC 0                   BUILTIN      BUILTIN           EX2200-C-12T-2G
  PIC 1          REV 09   650-036546   GP0214176896      EX2200-C-12T-2G

admin@STORAGE_ROOM>



admin@STORAGE_ROOM> show chassis hardware clei-models
Hardware inventory:
Item             Version  Part number  CLEI code         FRU model number
Routing Engine 0 REV 09   650-036546   CMMA710BRA        EX2200-C-12T-2G
FPC 0            REV 09   650-036546   CMMA710BRA        EX2200-C-12T-2G
  PIC 0                   BUILTIN      CMMA710BRA        EX2200-C-12T-2G
  PIC 1          REV 09   650-036546   CMMA710BRA        EX2200-C-12T-2G

admin@STORAGE_ROOM>




admin@STORAGE_ROOM> show system uptime
Current time: 2013-03-08 13:32:31 UTC
System booted: 2013-03-01 13:39:37 UTC (6d 23:52 ago)
Protocols started: 2013-03-01 13:42:41 UTC (6d 23:49 ago)
Last configured: 2013-03-08 12:55:05 UTC (00:37:26 ago) by admin
 1:32PM  up 6 days, 23:53, 3 users, load averages: 0.60, 0.19, 0.11

admin@STORAGE_ROOM>



admin@STORAGE_ROOM> show system storage detail
Filesystem       1024-blocks       Used      Avail   Capacity   Mounted on
/dev/da0s1a           187300      96966      75350        56%  /
devfs                      1          1          0       100%  /dev
/dev/md0               32378      32378          0       100%  /packages/mnt/jbase
/dev/md1                1356       1356          0       100%  /packages/mnt/fips-mode-arm-11.4R7.5
/dev/md2               10810      10810          0       100%  /packages/mnt/jcrypto-ex-11.4R7.5
/dev/md3                5142       5142          0       100%  /packages/mnt/jdocs-ex-11.4R7.5
/dev/md4               84184      84184          0       100%  /packages/mnt/jkernel-ex-2200-11.4R7.5
/dev/md5               16930      16930          0       100%  /packages/mnt/jpfe-ex22x-11.4R7.5
/dev/md6               28864      28864          0       100%  /packages/mnt/jroute-ex-11.4R7.5
/dev/md7               13256      13256          0       100%  /packages/mnt/jswitch-ex-11.4R7.5
/dev/md8               19342      19342          0       100%  /packages/mnt/jweb-ex-11.4R7.5
/dev/md9              128876         12     118554         0%  /tmp
/dev/da0s3e           125804       1198     114542         1%  /var
/dev/da0s3d           377828         28     347574         0%  /var/tmp
/dev/da0s4d            63332         74      58192         0%  /config
/dev/md10              60332      14536      40970        26%  /var/rundb
procfs                     4          4          0       100%  /proc
/var/jail/etc         125804       1198     114542         1%  /packages/mnt/jweb-ex-11.4R7.5/jail/var/etc
/var/jail/run         125804       1198     114542         1%  /packages/mnt/jweb-ex-11.4R7.5/jail/var/run
/var/jail/tmp         125804       1198     114542         1%  /packages/mnt/jweb-ex-11.4R7.5/jail/var/tmp
/var/tmp              377828         28     347574         0%  /packages/mnt/jweb-ex-11.4R7.5/jail/var/tmp/uploads
devfs                      1          1          0       100%  /packages/mnt/jweb-ex-11.4R7.5/jail/dev

admin@STORAGE_ROOM>

admin@STORAGE_ROOM> show chassis routing-engine
Routing Engine status:
  Slot 0:
    Current state                  Master
    Election priority              Master (default)
    DRAM                       512 MB
    Memory utilization          46 percent
    CPU utilization:
      User                       3 percent
      Background                 0 percent
      Kernel                     4 percent
      Interrupt                  0 percent
      Idle                      93 percent
    Model                          EX2200-C-12T-2G
    Serial ID                      GP0214176896
    Start time                     2013-03-01 13:39:37 UTC
    Uptime                         6 days, 23 hours, 55 minutes, 31 seconds
    Last reboot reason             Router rebooted after a normal shutdown.
    Load averages:                 1 minute   5 minute  15 minute
                                       0.13       0.15       0.09

admin@STORAGE_ROOM>
admin@STORAGE_ROOM> show chassis environment
Class Item                           Status     Measurement
Power FPC 0 Power Supply 0           OK
Temp  FPC 0 GEPHY1                   OK         15 degrees C / 59 degrees F
      FPC 0 GEPHY2                   OK         15 degrees C / 59 degrees F
      FPC 0 GEPHY3                   OK         15 degrees C / 59 degrees F
      FPC 0 GEPHY4                   OK         10 degrees C / 50 degrees F

admin@STORAGE_ROOM>

admin@DC_SWITCH1_UP> show arp inspection statistics
Interface     Packets received     ARP inspection pass  ARP inspection failed
  ge-0/0/0                    0                      0                      0
  ge-0/0/1                    0                      0                      0
  ge-0/0/2                    0                      0                      0
  ge-0/0/3                    0                      0                      0
  ge-0/0/4                    0                      0                      0
  ge-0/0/5                    0                      0                      0
  ge-0/0/6                    0                      0                      0
  ge-0/0/7                    0                      0                      0
  ge-0/0/8                    0                      0                      0
  ge-0/0/9                    0                      0                      0
 ge-0/0/10                    0                      0                      0
 ge-0/0/11                    0                      0                      0
 ge-0/0/12                    0                      0                      0
 ge-0/0/13                    0                      0                      0
 ge-0/0/14                    0                      0                      0
 ge-0/0/15                    0                      0                      0
 ge-0/0/16                    0                      0                      0
 ge-0/0/17                    0                      0                      0
 ge-0/0/18                    0                      0                      0
 ge-0/0/19                    0                      0                      0
 ge-0/0/20                    0                      0                      0
 ge-0/0/21                    0                      0                      0
 ge-0/0/22                    0                      0                      0
 ge-0/0/23                    0                      0                      0
  ge-0/1/0                    0                      0                      0
  ge-0/1/1                    0                      0                      0
  ge-0/1/2                    0                      0                      0
  ge-0/1/3                    0                      0                      0

{master:0}
admin@DC_SWITCH1_UP>

BGP load balancing with different AS Number



R3#sh version
Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 15.2(4)S2, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Tue 11-Dec-12 13:32 by prod_rel_team

ROM: ROMMON Emulation Microcode
BOOTLDR: 7200 Software (C7200-ADVENTERPRISEK9-M), Version 15.2(4)S2, RELEASE SOFTWARE (fc1)

R3 uptime is 33 minutes
System returned to ROM by unknown reload cause - suspect boot_data[BOOT_COUNT] 0x0, BOOT_COUNT 0, BOOTDATA 19
System image file is "tftp://255.255.255.255/unknown"
Last reload reason: Unknown reason



This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

Cisco 7206VXR (NPE400) processor (revision A) with 245760K/16384K bytes of memory.
Processor board ID 4279256517
R3#

!
! Last configuration change at 22:48:49 UTC Wed Aug 20 2014
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
!
!
!
!
no ip domain lookup
ip cef
ipv6 multicast rpf use-bgp
no ipv6 cef
!
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
!
!
!
interface Loopback1
 ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex full
!
interface Ethernet1/0
 ip address 2.1.1.1 255.255.255.0
 duplex full
!
interface Ethernet1/1
 ip address 3.1.1.1 255.255.255.0
 duplex full
!
interface Ethernet1/2
 no ip address
 shutdown
 duplex full
!
interface Ethernet1/3
 no ip address
 shutdown
 duplex full
!
interface Ethernet1/4
 no ip address
 shutdown
 duplex full
!
interface Ethernet1/5
 no ip address
 shutdown
 duplex full
!
interface Ethernet1/6
 no ip address
 shutdown
 duplex full
!
interface Ethernet1/7
 no ip address
 shutdown
 duplex full
!
interface Serial2/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
router bgp 10
 bgp log-neighbor-changes
 network 1.1.1.1
 network 1.1.1.1 mask 255.255.255.255
 neighbor 2.1.1.2 remote-as 110
 neighbor 3.1.1.2 remote-as 100
 maximum-paths 2
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
 stopbits 1
line aux 0









Optimization of fortigate IPS

IPS signature need select according to infrastructure environment  Eg:-  if  we are not have Linux servers this ips signature can disable (d...