<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Cambria;
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="SV" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">Hi All,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">I am facing problem when assigning the variable to the
<i>option bootfile-name</i>. Request your help in solving this.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">As we need to test multiple software packages, we need to change the bootfile-name frequently in the dhcp configuration file.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">So, thought of assigning the bootfile-name option to a variable and passing the filename to the variable in a different file.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">Generally the testers will always edit the dhcp configuration file to assign bootfile-name to their required software to test. In this process, so many
 times they are unknowingly changing the mac address of the target or some other which end up in problems.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">Because of this issue, I am planning to make the dhcp configuration file as only readable to all users and create a separate file with write permission
 which contains the variables respective to each target and which are assigned with the required software.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">Below is the example of my thought.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><u><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">fsname.conf:<o:p></o:p></span></u></b></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">group target_1{<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">      set tg1_fs = “soft_1.tar”;<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">}<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">group target_2 {<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">      set tg2_fs = “soft_2.tar”;<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">}<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">group target_3{<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">      set tg3_fs = “soft_3.tar”;<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">}<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">group target_4{<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">     set tg4_fs = “soft_4.tar”;<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">}<o:p></o:p></span></i></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><u><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">My-dhcpd.conf:</span></u></b><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white">host target1 {<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white">hardware ethernet 00:1a:ea:4e:5e:0a;</span></i><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><br>
<span style="background:white">fixed-address 10.10.10.1;<o:p></o:p></span></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white">group “target_1”;<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white">log (info, tg1_fs);</span></i><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><br>
<span style="background:white">option boot-filename = tg1_fs;<o:p></o:p></span></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white">log (info, boot-filename);<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white">unset tg1_fs;</span></i><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><br>
<span style="background:white">}<o:p></o:p></span></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white">host target2 {</span></i><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><br>
<span style="background:white">hardware ethernet 00:1a:ea:4e:5e:0b;</span><br>
<span style="background:white">fixed-address 10.10.10.2;<o:p></o:p></span></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white">group “target_2”;</span></i><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><br>
<span style="background:white">option boot-filename = tg2_fs;<o:p></o:p></span></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white">unset tg2_fs;</span></i><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><br>
<span style="background:white">}<o:p></o:p></span></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white">host target3 {</span></i><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><br>
<span style="background:white">hardware ethernet 00:1a:ea:4e:5e:0c;</span><br>
<span style="background:white">fixed-address 10.10.10.3;<o:p></o:p></span></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white">group “target_3”;</span></i><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><br>
<span style="background:white">option boot-filename = tg3_fs;<o:p></o:p></span></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white">unset tg3_fs;</span></i><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><br>
<span style="background:white">}<o:p></o:p></span></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white">host target4 {</span></i><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><br>
<span style="background:white">hardware ethernet 00:1a:ea:4e:5e:0d;</span><br>
<span style="background:white">fixed-address 10.10.10.4;<o:p></o:p></span></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white">group “target_4”;</span></i><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><br>
<span style="background:white">option boot-filename = tg4_fs;<o:p></o:p></span></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D;background:white">unset tg4_fs;</span></i><i><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><br>
<span style="background:white">}</span><o:p></o:p></span></i></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">I tried with one host “host target1” by placing log() in its declaration.<o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.2pt;margin-right:0cm;margin-bottom:14.4pt;margin-left:0cm;line-height:15.5pt;background:white">
<span lang="EN-US" style="font-family:"Cambria","serif";color:#1F497D">I got "soft_1.tar" in the /var/log/messages 2 times.<br>
This says that the variable fs and the option bootfile-name contains "soft_1.tar".<br>
But the strange thing is that, in this way of assigning the bootfile-name, the software is not getting loaded in the target.<br>
So, I have captured the tcpdump and observed in DHCP response packet that there is no option 67 Bootfile-name in Bootstrap Protocol.<o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.2pt;margin-right:0cm;margin-bottom:14.4pt;margin-left:0cm;line-height:15.5pt;background:white;orphans: auto;text-align:start;widows: 1;-webkit-text-stroke-width: 0px;word-spacing:0px">
<span lang="EN-US" style="font-family:"Cambria","serif";color:#1F497D">Whereas, if I specify "<i>option bootfile-name "soft_1.tar";</i>" directly in the host declaration, the software is loading in the target.<br>
In this case, in the tcpdump, in the DHCP response packet, option 67 Bootfile-name has "sample.tar"<o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.2pt;margin-right:0cm;margin-bottom:14.4pt;margin-left:0cm;line-height:15.5pt;background:white;orphans: auto;text-align:start;widows: 1;-webkit-text-stroke-width: 0px;word-spacing:0px">
<span lang="EN-US" style="font-family:"Cambria","serif";color:#1F497D">Not able to get where is the problem.<o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.2pt;margin-right:0cm;margin-bottom:14.4pt;margin-left:0cm;line-height:15.5pt;background:white">
<span lang="EN-US" style="font-family:"Cambria","serif";color:#1F497D">Please help me.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">BR,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Cambria","serif";color:#1F497D">Karteek<o:p></o:p></span></p>
</div>
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should
 not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments
 for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
</body>
</html>