Скрытые команды Juniper

Grep

Фактически, это просто алиас к команде «match».

root@srx> show configuration | match interfaces   
interfaces {
    interfaces {
            interfaces {
            interfaces {
            interfaces {
            interfaces {
            interfaces {

root@srx> show configuration | grep interfaces    
interfaces {
    interfaces {
            interfaces {
            interfaces {
            interfaces {
            interfaces {
            interfaces {

FTP

With this command, you can FTP a file from an FTP server onto the SRX. Standard FTP commands should work

root@srx> ftp ?
Possible completions:
  <host>               Hostname or address of remote host
  bypass-routing       Bypass routing table, use specified interface
  inet                 Force FTP to IPv4 destination
  inet6                Force FTP to IPv6 destination
  interface            Name of interface for outgoing traffic
  routing-instance     Name of routing instance for FTP session
  source               Source address for FTP session

Информация о кластере

{primary:node0}
root@srx> show chassis cluster information
node0:
--------------------------------------------------------------------------
Control link statistics:
    Control link 0:
        Heartbeat packets sent: 1217
        Heartbeat packets received: 0
        Heartbeat packet errors: 0
        Duplicate heartbeat packets received: 0
    Control link 1:
        Heartbeat packets sent: 0
        Heartbeat packets received: 0
        Heartbeat packet errors: 0
        Duplicate heartbeat packets received: 0
    Control recovery packet count: 0
    Sequence number of last heartbeat packet sent: 1214
    Sequence number of last heartbeat packet received: 0
Fabric link statistics:
    Probes sent: 1214
    Probes received: 0
    Probe errors: 0
    Probes not processed: 0
    Probes dropped due to control link down: 0
    Sequence number of last probe sent: 1214
    Sequence number of last probe received: 0
Chassis cluster LED information:
    Current LED color: Red
    Last LED change reason: Peer node: node1 is not present

Cold Synchronization:
    Status:
        Cold synchronization completed for: N/A
        Cold synchronization failed for: N/A
        Cold synchronization not known for: N/A
        Current Monitoring Weight: 255

    Statistics:
        Number of cold synchronization completed: 0
        Number of cold synchronization failed: 0

SPU monitoring:
    Status: Active
        Current monitoring weight: 0

    Statistics:
        SPU up count: 4
        NPC up count: 0
        SPU down count: 0
        NPC down count: 0
        Chassis info processing error count: 0

    Events:
        Nov 22 16:56:32.181 : ioc PIC Up in slot FPC 9 PIC 0
        Nov 22 16:56:32.181 : ioc PIC Up in slot FPC 9 PIC 1
        Nov 22 16:56:32.181 : ioc PIC Up in slot FPC 9 PIC 2
        Nov 22 16:56:32.181 : ioc PIC Up in slot FPC 9 PIC 3
        Nov 22 16:56:32.181 : ioc PIC Up in slot FPC 10 PIC 0
        Nov 22 16:56:32.181 : ioc PIC Up in slot FPC 10 PIC 1
        Nov 22 16:56:32.181 : ioc PIC Up in slot FPC 10 PIC 2
        Nov 22 16:56:32.181 : ioc PIC Up in slot FPC 10 PIC 3
        Nov 22 16:56:32.181 : ioc PIC Up in slot FPC 11 PIC 0
        Nov 22 16:56:32.181 : ioc PIC Up in slot FPC 11 PIC 1

Redundancy group: 0, Threshold: 255, Monitoring failures: none
    Events:
        Nov 22 16:52:36.958 : hold->secondary, reason: hold timer expired
        Nov 22 16:52:39.926 : secondary->primary, reason: device timer expired

Redundancy group: 1, Threshold: 0, Monitoring failures: cold-sync-monitoring
    Events:
        Nov 22 16:52:36.959 : hold->secondary, reason: hold timer expired
        Nov 22 16:52:39.950 : secondary->primary, reason: device timer expired

Interface monitoring:
    Statistics:
        Monitored interface failure count: 0

Fabric monitoring:
    Status:
        State: Enabled
        Activation status: Active

Commit full

For a more extensive commit that rebuilds config files and restarts all of the processes, use commit full. This is handy if there is any inconsistency between the control plane and data plane and will help sort that out.

[edit]
root@srx# commit full 
commit complete

Хайку (пасхальное яйцо)

There are plenty different haiku’s to keep you busy for a while.

root@srx> show version and haiku    
Hostname: SRX
Model: srx210h
JUNOS Software Release [11.2R2.4]

        My session is dead:
        Forgot to commit confirm.
        Where are my car keys?

Дамп ядра

With this command you can force any process to core dump and restart. This is only helpful to JTAC when troubleshooting a specific issue with a process. DO NOT USE IN PRODUCTION UNLESS INSTRUCTED TO DO SO BY JTAC!!!!!

root@srx> request system core-dump ?       
Possible completions:
  adaptive-services    Adaptive services process
  audit-process        Audit process
  autoinstallation     Autoinstallation daemon
  cfm                  Ethernet OAM connectivity-fault-management process
  class-of-service     Class-of-service daemon
  database-replication  Database replication process
  dhcp                 Dynamic Host Configuration Protocol daemon
  dhcp-service         Dynamic Host Configuration Protocol process
  dialer-services      Dial-Out On Demand process
  dynamic-flow-capture  Dynamic flow capture service
  event-processing     Event processing process
  firewall             Firewall daemon
  firewall-authentication-service  Firewall authentication service process
  forwarding           Forwarding daemon
  helper               Port-forwarding daemon
  hostname-caching-process  Hostname caching process
  interface-control    Interface daemon
  isdn-signaling       ISDN signaling process
  jsrp-service         Juniper stateful redundancy service process
  l2-control           Layer 2 control protocols
  l2-learning          Layer 2 address flooding/learning process
  l2tp-service         Layer 2 Tunneling Protocol daemon
  lacp                 Link Aggregation Control Protocol
  lfm                  Ethernet OAM link-fault-management process
  management           Management daemon
  mib-process          SNMP MIB-II daemon
  mpls-traceroute      MPLS Periodic Traceroute process
  network-security     Network security process
  pic-services-logging  PIC services logging daemon
  pki-service          PKI service process
  ppp                  Point-to-point protocol daemon
  ppp-service          Universal edge Point-to-point protocol daemon
  pppoe                PPP over Ethernet daemon
  redundancy-services  Redundancy device process
  remote-operations    Remote operations daemon
  rmopd                RMOPD daemon
  routing              Routing protocol daemon
  sampling             Traffic sampling daemon
  send                 Secure Neighbor Discovery Protocol process
  service-deployment   Service deployment system daemon
  snmp                 SNMP daemon
  subscriber-management  Subscriber management process
  usb-control          USB control
  web-management       Web management gatekeeper daemon

Эта запись была опубликована в Juniper.
Занести в закладки: ссылка.

Оставить комментарий

Ваш адрес электронной почты не будет опубликован. Обязательные поля помечены *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>