Skip to content

H3rsh3/odm-template-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# push config, use dy_session.py(file)
	-s use ssh
	-t use telnet
	-c <filename> name if the file from which commands will be sent
	-d <dir> name of the dir from where the commands will be send.note the name of the file must match the hostname. one file for each host
	-l <dir> by default is "log/" this is were the ouput of the seession will be stored, this dir need to be created manually
	-i <file> name of the file for the hosts, which will be used if -d id not used



#####use telnet and use a static command file
# 			python dy_session.py -t -c command.txt -i targethost.txt
#####use telnet and use a static command file, and output log co custom dir
# 			python dy_session.py -t -c command.txt -l logoutput -i targethost.txt
#####use telnet and use a dynamic config file
# 			python dy_session.py -t -d cmd_dir
#####use telnet and use a dynamic config file and use custom log dir, the dir must be crated 
# 			python dy_session.py -t -d cmd_dir -l logoutput
#####use ssh and use a dynamic config file
#			python dy_session.py -s -d cmd_dir
#####use telnet and a static command file and specify the log outputdir and the hostfile
#./dy_session.py -t -c command.txt -l testoutputs -i targethost.txt

flow 
	use static commands file?
		use -c to specify the file that contains the commands, and use -i to specify who to push the commands out to(host)
			want to use telnet use -t and -s for ssh
				want to log the session to specific dir? by default it dir "log"
					#example "python dy_session.py -t -c command.txt -i targethost.txt -l logouputs"
	use different commands for each host?
		use -d to speficy the dir where the commands are contained, the hosts will be the file name, so if the file name is (Router1) the host it will try to telnet to is Router1. dont use any extentions
			want to use telnet use -t and -s for ssh
				by default it dir "log"
					#example "python dy_session.py -t -d config_data"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages