Tuesday, May 16, 2017

using scp to push images into NXOS switches

In this post, I'm going to show you how simple  you can make the process  for  copy images into  NXOS.

Remember NXOS is wrapper  around the  unixOS so things like a SCP server are available as a feature.

1st step feature enable  scp-server  for the NXOS

    feature sap-server 

2nd step,  use your favorite scope client and copy the images to the  targets

    scp ./*images*  kfelix@

3rd you can even script this process with ease.

      ssh kfelix:mypassword@  "config ; feature scp-server "
scp "images*" kfelix:mypassword@

Image result for tip you can use passwords  ssh logins on nxos and with another AAA setup configured. The shekel will  be used for the authentication process


  config  ; username kfelix ; username kfelix sshkey ssh-rsa    AAAAB3NzaC1yc2EAAAADAQABAAABAQC1f9FUinkkkjhftdjrdktg;lthjsyybu;s djky  drsd

Do any of the above will eliminate the need for stroking  a local ftp/tftp/ssh-server and allows any  scp-client to upgrade nxos switches with ease.

Ken Felix

Ken Felix
NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
        /  \

No comments:

Post a Comment