Quote:
Originally Posted by hvc123
im trying to scp to multiple cisco devices and pull their running-config i then need to output them to the host name rather than just running-config as the file name.
i thought there maybe a wildcard for host name is available but i cant see it..
|
You want to copy the running-config (whatever that is
)
from multiple cisco devices. What do you mean by host name? The names of the devices? If so:
Code:
for NAME in name1 name2 name3 ....
do
scp account@$NAME:running-config $NAME
done
Your mission, should you decide to accept it: Replace "name1 name2 name3 ..." with the actual names, fix the source of the scp command, because I have no idea where running-config might be located, and replace "account" with the correct user account.