SRX

 View Only
last person joined: 2 days ago 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  SRX shell is ls command at initial folder performs weird action

    Posted 10-31-2024 11:35

    On our SRX, when a run the "start shell " command, I get the % prompt, but when I try to run the simple ls command it does not show the directory list. It sends something to the Suyslog. Here is an example.

    % ls
    SendingSyslog
    a.john_williamson@NONL-SRX01# delete security utm
    et security ike gateway AVUSD_VPN external-interface ae1.0
    et security policies from-zone trust to-zone untrust policy AVUSD_Student_Web_Filter description "To filter devices on student wifi network when local filter is not in place."
    et security policies from-zone trust to-zone untrust policy AVUSD_Student_Web_Filter match application junos-defaults
    et security policies from-zone trust to-zone untrust policy AVUSD_Student_Web_Filter match destination-address any
    et security policies from-zone trust to-zone untrust policy AVUSD_Student_Web_Filter match dynamic-application any
    et security policies from-zone trust to-zone untrust policy AVUSD_Student_Web_Filter match source-address RV_Student_Wifi
    et security policies from-zone trust to-zone untrust policy AVUSD_Student_Web_Filter match source-address SR_Student_Wifi
    et security policies from-zone trust to-zone untrust policy AVUSD_Student_Web_Filter match source-identity any
    et security policies from-zone trust to-zone untrust policy AVUSD_Student_Web_Filter then permit application-services utm-policy wf-global-students
    how
    q

    If I do a couple cd .. commands and get to a different folder in the system,  then the UNIX ls commands work. What is going on ? 

     



    ------------------------------
    JOHN WILLIAMSON
    ------------------------------


  • 2.  RE: SRX shell is ls command at initial folder performs weird action

     
    Posted 11-01-2024 02:07

    Can you please show an 'ls -l'?




  • 3.  RE: SRX shell is ls command at initial folder performs weird action

    Posted 11-01-2024 10:14
    Edited by JOHN WILLIAMSON 11-01-2024 10:24

    The same results as the ls command but with file details. 

    % ls -l
    total 1840
    -rw-r--r--  1 name removed  20    7516 May 16  2023 SendingSyslog
    -rw-r--r--  1 name removed  20       0 Apr 10  2024 a.john_williamson@NONL-SRX01# delete security utm
    -rw-r--r--  1 name removed  20    1566 Jan 18  2023 et security ike gateway AVUSD_VPN external-interface ae1.0
    -rw-r--r--  1 name removed  20  110695 May  2  2023 et security policies from-zone trust to-zone untrust policy AVUSD_Student_Web_Filter description "To filter devices on student wifi network when local filter is not in place."
    -rw-r--r--  1 name removed  20  110695 May  2  2023 et security policies from-zone trust to-zone untrust policy AVUSD_Student_Web_Filter match application junos-defaults
    -rw-r--r--  1 name removed  20  110695 May  2  2023 et security policies from-zone trust to-zone untrust policy AVUSD_Student_Web_Filter match destination-address any
    -rw-r--r--  1 name removed  20  110695 May  2  2023 et security policies from-zone trust to-zone untrust policy AVUSD_Student_Web_Filter match dynamic-application any
    -rw-r--r--  1 name removed  20  110695 May  2  2023 et security policies from-zone trust to-zone untrust policy AVUSD_Student_Web_Filter match source-address RV_Student_Wifi
    -rw-r--r--  1 name removed  20  110695 May  2  2023 et security policies from-zone trust to-zone untrust policy AVUSD_Student_Web_Filter match source-address SR_Student_Wifi
    -rw-r--r--  1 name removed  20  110695 May  2  2023 et security policies from-zone trust to-zone untrust policy AVUSD_Student_Web_Filter match source-identity any
    -rw-r--r--  1 name removed  20  110695 May  2  2023 et security policies from-zone trust to-zone untrust policy AVUSD_Student_Web_Filter then permit application-services utm-policy wf-global-students
    -rw-r--r--  1 name removed  20    5564 Mar 17  2023 how
    -rw-r--r--  1 name removed  20    3996 Sep 20  2022 q



    ------------------------------
    JOHN WILLIAMSON
    ------------------------------



  • 4.  RE: SRX shell is ls command at initial folder performs weird action

    Posted 11-01-2024 10:25

    Looks like that is the contents of your home folder. I can't tell you how many times I run a command that shows a multi-page listing, and I don't realize it's at the --More-- prompt and I start typing the next command, then look up see I'm typing at a "Filename:" prompt. I think "s" is the key to start saving output to a file, which would explain the missing leading "s" from all those filenames there.



    ------------------------------
    Nikolay Semov
    ------------------------------



  • 5.  RE: SRX shell is ls command at initial folder performs weird action

    Posted 11-01-2024 10:26

    That is really odd.  I can just delete all of them then. 



    ------------------------------
    JOHN WILLIAMSON
    ------------------------------