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
import datetime | |
import os | |
from netmiko import ConnectHandler, redispatch | |
# Extraer fecha y hora actual | |
tiempo_actual = datetime.datetime.now() | |
formateo_date_time = tiempo_actual.strftime("%B-%d-%Y - %I.%M.%Ss %p") | |
# Ruta | |
ruta_backup = "C:\\Users\\Users\\Desktop\\Prueba\\" |
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
#Example create user in linux | |
print("Escribe el comando addgroup + (nombre del grupo)", end="") | |
name_group = input() | |
print(f"Haz creado un nuevo grupo:, {name_group}") | |
print("Ingrese el comando adduser ", end="") | |
name_user = input() | |
print(f"Haz creado un nuevo usuario:, {name_user}") | |
print("Escribe el comando adduser (usuario) (grupo)") | |
command_user = input() | |
print(f"Asi se añade usuarios a un grupo, {command_user}") |