cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
372
Views
0
Helpful
1
Replies

Leaf switch - `setup-admin-ssh.sh` script

michelvankessel
Level 5
Level 5

Hi,

On an ACI switch there are several scripts available like `setup-clean-config.ssh" to reset the switch.

But, there is also script called `setup-admin-ssh.sh`, for which I cannot find any info. 

Does someone know what this script does? what it is suppose to do?

Michel

1 Reply 1

RedNectar
VIP
VIP

Hi @michelvankessel ,

Did you take a look at the script?

Leaf1201# cat $(which setup-admin-ssh.sh)
#!/bin/bash

. /etc/isim_include

usr=`id -un `

if [ $usr == "root" ]; then
    echo "\$5\$VavFBmOIPhCa90ck\$/Z99NUB126ofwGlDGXK.bzzxN9TlJgX7JxfSb4nmUg8" > /ifc/cfg/local-admin.pwd
else
    bg_action /tmp/setup-admin-ssh
fi

digging deeper - take a look at /etc/isim_include 

Leaf1201# cat /etc/isim_include
#! /bin/sh
. /etc/ins_card_index

...<snip 1050 lines>...

...this could go on for a LONG time

But at the end of the day, I suspect that if you are logged in as user root (which you can only do with TAC support) it creates a file /ifc/cfg/local-admin.pwd  with a temporary password.

So I think you can be sure that this script is only useful to TAC

 

RedNectar aka Chris Welsh.
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License