SRX

last person joined: yesterday 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  srx100: hostname stil there even after delete

    Posted 07-07-2015 23:44

    Hi All,

     

    Why hostname is still showing up? I've removed it from the configuration.

     

    root@blaze4# show | compare
    [edit system]
    - host-name blaze4;
    - domain-name hyd.ftd.com;

    root@blaze4%
    root@blaze4% commit

     

    root@blaze4> show configuration system | display set
    set system root-authentication encrypted-password
    set system name-server X.X.X.X
    set system name-server X.X.X.X
    set system services ssh
    set system services telnet
    set system services xnm-clear-text
    set system services web-management http interface vlan.0
    set system services web-management https system-generated-certificate
    set system services web-management https interface vlan.0
    set system services dhcp router 192.168.1.1
    set system services dhcp pool 192.168.1.0/24 address-range low 192.168.1.2
    set system services dhcp pool 192.168.1.0/24 address-range high 192.168.1.254
    set system services dhcp propagate-settings fe-0/0/0.0
    set system syslog archive size 100k
    set system syslog archive files 3
    set system syslog user * any emergency
    set system syslog file messages any critical
    set system syslog file messages authorization info
    set system syslog file interactive-commands interactive-commands error
    set system max-configurations-on-flash 5
    set system max-configuration-rollbacks 5
    set system license autoupdate url https://ae1.juniper.net/junos/key_retrieval

    root@blaze4>

     

    I tried logging out of the device and logged in again. Still seeing the hostname that i configured previously.

    Any idea?

     

    Thanks for any inputs.

     

    Regards,

    Chandu



  • 2.  RE: srx100: hostname stil there even after delete

     
    Posted 07-07-2015 23:53

    Try applying new hostname and see if its changing



  • 3.  RE: srx100: hostname stil there even after delete

    Posted 07-08-2015 00:01

    Hi Suraj,

     

    Name is changing but when i rollback to the previous configuration the name should change according to that configuration right? The previous configuration that i loaded was factory default., where i should see anamesic but rather i'm seeing the hostname that i configured.

     

    root@blaze4# show | compare
    [edit system]
    + host-name blaze5;

     

    root@blaze4# commit
    commit complete

    [edit]
    root@blaze5#

     

    Regards,

    Chandu



  • 4.  RE: srx100: hostname stil there even after delete

     
    Posted 07-08-2015 00:04
    HI Chandu, You will see the name 'anamesic' if you had no name or when you reset the device. You can try changing the hostname to a new one and you will see it as the new hostname. -Shailesh


  • 5.  RE: srx100: hostname stil there even after delete

    Posted 07-08-2015 00:09

    You will see the name 'anamesic' if you had no name

    >> Yes, that is exactly what i'm expecting.

     

    I don't have hostname configured in my configuration:

     See below:

     

    root@blaze5# delete system host-name blaze5

    [edit]
    root@blaze5# show | compare
    [edit system]
    - host-name blaze5;

    [edit]
    root@blaze5# commit
    commit complete

    [edit]
    root@blaze5# show system | display set
    set system root-authentication encrypted-password 
    set system name-server 
    set system name-server 
    set system services ssh
    set system services telnet
    set system services xnm-clear-text
    set system services web-management http interface vlan.0
    set system services web-management https system-generated-certificate
    set system services web-management https interface vlan.0
    set system services dhcp router 192.168.1.1
    set system services dhcp pool 192.168.1.0/24 address-range low 192.168.1.2
    set system services dhcp pool 192.168.1.0/24 address-range high 192.168.1.254
    set system services dhcp propagate-settings fe-0/0/0.0
    set system syslog archive size 100k
    set system syslog archive files 3
    set system syslog user * any emergency
    set system syslog file messages any critical
    set system syslog file messages authorization info
    set system syslog file interactive-commands interactive-commands error
    set system max-configurations-on-flash 5
    set system max-configuration-rollbacks 5
    set system license autoupdate url https://ae1.juniper.net/junos/key_retrieval

    [edit]
    root@blaze5#

     

     

    Tried logging out and logging in:

     

    root@blaze5# exit
    Exiting configuration mode

    root@blaze5> exit

    root@blaze5% exit
    exit

    root@blaze5> exit

    root@blaze4% exit
    logout

    blaze5 (ttyu0)

    login: root
    Password:

    --- JUNOS 12.1X44-D15.5 built 2013-06-06 18:07:29 UTC
    root@blaze5%

     

    Any idea ?

     

    Regards,

    Chandu



  • 6.  RE: srx100: hostname stil there even after delete
    Best Answer

     
    Posted 07-08-2015 00:10

    hello Chandu ,

     

    I tested in my lab device and saw the same in my lab setup. If you configure a hostname and try to remove it , it wil still show the same hostname .

     

    But if you change it , it will show the changed hostname :

     

    root# set system host-name sam

    [edit]
    root# commit
    commit complete

    [edit]
    root@sam#

    [edit]
    root@sam# delete system host-name

    [edit]
    root@sam# show |compare
    [edit system]
    -  host-name sam;

    [edit]
    root@sam# commit
    commit complete

    [edit]
    root@sam#

    [edit]
    root@sam# set system host-name sam1

    [edit]
    root@sam# commit
    commit complete

    [edit]
    root@sam1#



  • 7.  RE: srx100: hostname stil there even after delete

     
    Posted 07-08-2015 00:13

    Hello ,

     

    I also deleted the entire system hierarchy config and just put in root password . Still it takes the hostname from the cache . So this is expected .



  • 8.  RE: srx100: hostname stil there even after delete

     
    Posted 07-07-2015 23:53

    Hello ,

     

    Is it the console access or SSH access .  Please log into the device with different terminal and test if you still sees the hostname .



  • 9.  RE: srx100: hostname stil there even after delete

    Posted 07-07-2015 23:57

    Hi Sam,

     

    It is console. I tried exiting and again logging in. 

    Still i see the name.

     

    REgards,

    Chandu