Quantcast
Channel: Ethernet Switching topics
Viewing all articles
Browse latest Browse all 2326

EX4600 Hex Encoding

$
0
0

(Edit: Oops this is on an EX4600)

 

Does anyone know the proper syntax to encode a string as hex on an EX4600? I am trying to configure:

 

set access address-assignment pool v202-pool family inet dhcp-attributes boot-file "smsboot\x64\wdsnbp.com" 

 

However the CLI translates \x64 as a hex-encoded character and replaces it with 'd':

access {
    address-assignment {
        pool v202-pool {
            family inet {
                dhcp-attributes {
                    boot-file "smsbootd\wdsnbp.com";
                }
            }
        }
    }
}

 

On an SRX I can just encode the whole string in hex:

set access address-assignment pool v202-pool family inet dhcp-attributes boot-file "\x73\x6d\x73\x62\x6f\x6f\x74\x5c\x78\x36\x34\x5c\x77\x64\x73\x6d\x67\x66\x77\x2e\x65\x66\x69" 
access {
    address-assignment {
        pool v202-pool {
            family inet {
                dhcp-attributes {
                boot-file "smsboot\x64\wdsnbp.com";
                }
            }
        }
    }
}

 

But on the EX it becomes somehow only partially translated:

access {
    address-assignment {
        pool v202-pool {
            family inet {
                dhcp-attributes {
                    boot-file "s\x6dsb\x6f\x6ft\x5cx64\x5cwds\x6dgfw\x2eefi";
                }
            }
        }
    }
}

 


Viewing all articles
Browse latest Browse all 2326

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>