Junos OS

 View Only
last person joined: 5 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  Escape character to enter string in dhcp boot file

    Posted 07-26-2018 05:02

    I need to enter the boot file name as boot\x64\wdsmgfw.efi

    However, when I type: 

    SRX# set system services dhcp boot-file 'boot\x64\wdsmgfw.efi'

    I get:
    SRX# show | display set | match dhcp
    set system services dhcp boot-file "bootd\wdsmgfw.efi"

     

    It substitutes the x64 for the character "d".  I've tried to escape the x64  with a / and \.  I've tried to quote it with " and ', but I cannot get the string I need.  Is there any way to escape the x64 so it does not end up a "d"?



  • 2.  RE: Escape character to enter string in dhcp boot file

    Posted 07-26-2018 05:43

    Try:

     

    set system services dhcp boot-file "boot\x5cx64\wdsmgfw.efi"



  • 3.  RE: Escape character to enter string in dhcp boot file

    Posted 07-26-2018 07:55

    Interesting ... it kept both the x5c and the x64!

    SRX# set system services dhcp boot-file "boot\x5cx64\wdsmgfw.efi"


    SRX# show | display set | match boot-file
    set system services dhcp boot-file "boot\x5cx64\wdsmgfw.efi"



  • 4.  RE: Escape character to enter string in dhcp boot file
    Best Answer

    Posted 07-26-2018 11:34

    That's works for MX junos version 18 that where I've tested.

     

    Try this one too:

     

    working for qfx:

    boot\\x7864\wdsmgfw.efi 



  • 5.  RE: Escape character to enter string in dhcp boot file

    Posted 07-27-2018 03:36

    Woohoo!!  That did it!

     

    SRX# set system services dhcp boot-file boot\\x7864\wdsmgfw.efi


    SRX# show | display set | match boot-file
    set system services dhcp boot-file "boot\x64\wdsmgfw.efi"



  • 6.  RE: Escape character to enter string in dhcp boot file

    Posted 07-26-2018 10:57

    Here are some of my "guesses" ... none will result in the file reading "boot/x64/wdsmgfw.efi".  The x5c that hugleo suggested (thank you) and the "\" are the only ones that actually surpressed the x64 from becoming a "d", but I could not then get rid of the "x5c" or the "\"!

     

    I typed in: set system services dhcp boot-file 'boot\x64\wdsmgfw.efi'
    It shows:   set system services dhcp boot-file "bootd\wdsmgfw.efi"

    I typed in: set system services dhcp boot-file "boot\x5cx64\wdsmgfw.efi"
    It shows: set system services dhcp boot-file "boot\x5cx64\wdsmgfw.efi"

    I typed in: set system services dhcp boot-file "boot\x64\wdsmgfw.efi"
    It shows: set system services dhcp boot-file "bootd\wdsmgfw.efi"

    I typed in: set system services dhcp boot-file "boot\/x64\wdsmgfw.efi"
    It shows:   set system services dhcp boot-file "boot\/x64\wdsmgfw.efi"

    I typed in: set system services dhcp boot-file boot\/x64\wdsmgfw.efi
    It shows: set system services dhcp boot-file "boot\/x64\wdsmgfw.efi"

    I typed in: set system services dhcp boot-file boot\\x64\wdsmgfw.efi
    It shows: set system services dhcp boot-file "boot\d\wdsmgfw.efi"