Posted on October 19, 2017 11:36 am
 |  Asked by Fredrik Tarnell
 |  1479 views
Tags:
RESOLVED
1
0
Print Friendly, PDF & Email

Hi!

Using the vEOS to setup a docker container handling ZTP.
No about ztpserver but I need to manage multiple vendors so I’m placing something in front handling all of them.

Noticed that the serial number is empty in the image. Wondering about the possibilty of tweeking on in?
Will try to get the image into single user mode and look myself but I guess this will be a timeconsuming task.

 

Any ideas??

 

Thanks!

Fredrik

2
Answered on October 19, 2017 12:28 pm

Fredrik,

The following link will allow you to put in a mac address or serial number to a vEOS device so you can provision it properly within your ztp process.

http://ztpserver.readthedocs.io/en/master/tips.html#id11

1
Posted by Alexandru
Answered on October 19, 2017 1:15 pm

Hi Fredrik,

vEOS is a virtual environment and as such it does not have a serial number. Only physical switches have a serial number as it is baked into the board itself upon manufacturing.

For ZTP purposes you could identify the vEOS instances by their MAC address and use that to create the relevant scripts and files that need to be pushed to the switch.

Thanks @Alexandru!

Well I understand it’s all virtual but thinking that it originated from the fact people needed a virtual env. to get going testing out ZTP would certainly be one thing to start off with.

I actually solved this by injecting a mockup serial (using the mac to contruct FAKE-). I do this on the DHCP server side when I parse the output from ”show version”. So it apears I have full output to parse not leaving that key/value pair hanging.

I think I’m happy at this point but still think adding it to vEOS could be a good thing. When building the vEOS image just use the mac to create a vSerial number so to speak.

(Fredrik Tarnell at October 20, 2017 5:40 am)

Frederik has the correct response above. You can configure the serial number on vEOS in /mnt/flash/veos-config. After modifying SERIALNUMBER or SYSTEMMACADDR, a reboot is required for the changes to take effect.

#sample /mnt/flash/veos-config file
SERIALNUMBER=ABC12345678
SYSTEMMACADDR=1122.3344.5566

(nick at October 20, 2017 2:42 pm)

Post your Answer

You must be logged in to post an answer.