Posted on December 10, 2015 1:41 pm
 |  805 views
0
0
Print Friendly, PDF & Email

Hi

We want to upgrade EOS in sw’s. We want to automate this process. We can use solarwinds to execute a script or a phython script to do it. If someone can provide with template for it so we can test it in a lab sw and use it in production.

 

Thanks

Raj

 

0
Posted by Alexis Dacquay
Answered on December 10, 2015 2:23 pm

Hi,

 

Would you like to run the script on every individual switch, or run the script centrally ?

If you meant to run some CLI command by the Solarwinds scripting capability, the syntax is relatively simple and can be automated, as long as you make sure the software image is transferred.

For example in Solarwinds Cattools, or by XMPP (a client is on EOS), you could use these command lines. Verify the Manual at the upgrade section and the release notes to make sure you account for all the possible details that are relevant to you.

 

1) transfer the new image onto flash (can be scripted). CLI example:

!
copy <method>:file flash:
!

The method can be secured (such as SFTP, requiring password or certificate/key ), or unsecure (FTP, etc). Both methods can be automated.

 

2) configure the switch to use the new EOS image (can be scripted). CLI example:

!
conf
  boot system flash:<filename>
!

(I would also add another line: copy run start to save the config before progressing to the reload)

3) reload the switch (can be scripted). You have variants of reload methods, including hitless ones on some platforms, with some recent codes.

Example:

reload now

 

 

Regards,

0
Answered on December 10, 2015 6:56 pm

Hi

I would like to run the script centrally. If you could provide me with a syntax of the script that would be great.

Thanks

 

0
Posted by Alexis Dacquay
Answered on December 10, 2015 8:08 pm

So, just to clarify you would like some assistance in building that central script ?

How many switches would approximately be involved, to know the kind of input for the switch list: argument in the script syntax, or text file, or hard-coded in the script ?

Secondly, what scripting language would be supported? Is Python fine, can you call some libraries like json-rpc ?

 

Regards,

Post your Answer

You must be logged in to post an answer.