This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Specify the settings and make sure you have a "results" folder | |
#"rpm_server" --> rpm will be downloaded here | |
#"server" ---> rpm will be installed here | |
#"up2date_ver" -> current version of rpm pack | |
rpm_server=server_name | |
server=server_name | |
up2date_ver=$(echo "server_name") | |
#Check version on the given server | |
version_check=$(ssh $server -l root -o StrictHostKeyChecking=no -o BatchMode=yes -C "rpm -qa | grep lsy_root_authorized" > /dev/null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# | |
# Passlib is required to run Cisco md5 hasher. | |
# You can install simply with "easy_install passlib" | |
# | |
# Cisco didn't want to use normal md5 for their passwords. | |
# So they changed the salt size. | |
# That kind of hashing is used in routers / switches. | |
# You can test simply by a "show run" output. |
NewerOlder