4 Replies Latest reply on Jul 12, 2011 11:32 AM by Mike Reider

    Solaris provisioning - set local mac address

    Mike Reider

      Hi all, I'm running a provisioning on Solaris 10 using a JumpStart server. Before the OS can be installed on the device, we need to set the local-mac-address to False (at the Ok prompt)

       

      the problem is if I try to run setenv local-mac-address? false during the Begin Script part of the System Package, it never runs since its already past the Ok prompt when the Begin Script portion runs.

       

      is there a way to automatically set local mac address to false before the JumpStart starts loading the OS onto the target? Or does this have to be set manually on the target before we kick off the provisioning job?

        • 1. Solaris provisioning - set local mac address

          Once the you have booted you can set the local-mac-address? using the following command from an OS command prompt...

           

          eeprom local-mac-address?=false

           

          If you are able to network boot and get to the Begin script, then why do you need to set the local-mac-address? to false?

           

          If you are provisioning to the "global" mac address and you are using the first on-board NIC, then I believe you should be OK.  If you are not using the first on-board NIC, then you will need manually set local-mac-address? to false prior to booting, or provision to the "local" mac address of the NIC you are using.

          • 2. Re: Solaris provisioning - set local mac address
            Mike Reider

            the only way we are able to network boot is because we are setting the local mac addr to False manually. Thats why we can run provisioning.

             

             

            With local-mac-address? Set to false (desired state) this is what we see:

             

            Rebooting with command: boot net - install

            Boot device: /pci@0,600000/pci@0/pci@8/pci@0/network@2  File and args: - install

            Jul 12 10:34:25 livtseng1-rsc fmd: SOURCE: sde, REV: 1.16, CSN: BEF0944859  EVEN                                                           T-ID: cf679953-1ba4-44cf-8db3-802c2c71b528 Refer to http://www.sun.com/msg/SCF-8                                                           002-2J for detailed information.

            1000 Mbps full duplex  Link up

            Requesting Internet Address for 0:21:28:45:5d:6c

            Jul 12 10:34:27 livtseng1-rsc fmd: SOURCE: sde, REV: 1.16, CSN: BEF0944859  EVEN                                                           T-ID: 62a515ec-4432-42d0-8090-933144fd300e Refer to http://www.sun.com/msg/SCF-8                                                           002-2J for detailed information.

            Requesting Internet Address for 0:21:28:45:5d:6c

            Requesting Internet Address for 0:21:28:45:5d:6c

            Requesting Internet Address for 0:21:28:45:5d:6c

            Requesting Internet Address for 0:21:28:45:5d:6c

            Requesting Internet Address for 0:21:28:45:5d:6c

            Requesting Internet Address for 0:21:28:45:5d:6c

            1000 Mbps full duplex  Link up

             

             

             

            With local-mac-address? Set to true, this is what we see:

             

            {0} ok boot net - install

            Boot device: /pci@0,600000/pci@0/pci@8/pci@0/network@2  File and args: - install

            1000 Mbps full duplex  Link up

            Requesting Internet Address for 0:21:28:3b:d6:60

             

             

            As you can see, the mac address changes depending on how it is set.  This is the mac address being used to request the IP address and without the correct mac (which depends on local-mac-address?) the IP will never be returned and the base OS will never be loaded.

             

            So it looks liek the only way we can set this local MAC address to False is by doing it manually at the Ok prompt, before running the Provisioning job.

            • 3. Solaris provisioning - set local mac address

              If you want to get the local mac address of the nic prior to provisoining you can cd into the hardware path of the NIC (get the hardware path from "devalias" or "show-nets") then enter ".properties" at the ok prompt and it will show you the local mac address of that particular NIC.  

               

              Either way you need to manually run commands from the OK prompt.  Probably setting local-mac-address? to false is the better route, however, this puts the same mac address on all NICs, so it should be set back to true after provisioning.  This can cause issues if you are doing any NIC trunking or IP Multipathing.

              • 4. Re: Solaris provisioning - set local mac address
                Mike Reider

                got it, thats what we were thinking as well, we can also set it using ILO but thats outside of BL Provisioning.

                 

                Thanks for the help Jeff.