MRAJ Posted June 8, 2018 Share Posted June 8, 2018 Hi, Is there any possibilty of automating the user emulation of Network Engineers’ activity to login thenetwork device and get the OTP using AutoIT script Below work flow to automate Router login: 1) Start 2) invoked for Router login 3) Router prompts for Login ID 4) Router gets the login ID and prompts for Password (OTP) 5) fetching the OTP 6) AutoIT Script emulates the Network Engineers’ action to fetch the OTP 7) AutoIT script copies and pastes the OTP in a text file 8) AutoIT script closes 9) gets the OTP from the text file 10) put the OTP in the Router’s Password prompt. 11) Login success 12) End Please let me know if we can do the steps mentioned above using Autoit script. Link to comment Share on other sites More sharing options...
Earthshine Posted June 8, 2018 Share Posted June 8, 2018 we probably can. question is, can you. are you looking for a handout as per usual? My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
MRAJ Posted June 8, 2018 Author Share Posted June 8, 2018 i raised this because I dont know how to start as i am new to autoit. If you can help me with some tips and examples. I will try my level best Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted June 8, 2018 Share Posted June 8, 2018 Hi @MRAJ The first thing I should do, is what you already did, that is the wok flow of your script. Then, start to think on how to do every task of your script. The Help file would be your helpful friend during the making of your script I would suggest you to start from looking at these functions in the help file: - ShellExecute(), Win* functions, Control* functions, File* and/or _File* functions. Start working with these suggestions, and let us know Happy coding! Best Reagrds. Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
MRAJ Posted June 8, 2018 Author Share Posted June 8, 2018 If you can help me with sample or example script for how to logging to Network device. It will really help me to move to next step. Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted June 8, 2018 Share Posted June 8, 2018 @MRAJ It dipends on how is your system structured. Provide us more information, in order to help you as much as we can Best Regards. Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
TheXman Posted June 8, 2018 Share Posted June 8, 2018 5 hours ago, MRAJ said: Is there any possibilty of automating the user emulation of Network Engineers’ activity to login thenetwork device and get the OTP using AutoIT script Absolutely! Just about anything that can be done manually on a windows PC/Server, AutoIt can automate it. The question is can YOU do it. What I've seen in from previous posts, is that you seem to be severely lacking in intellectual curiosity and technical talent. Being new to AutoIt (or any other language) is no excuse for yourlack of effort. 5 hours ago, MRAJ said: Please let me know if we can do the steps mentioned above using Autoit script Who is "we"? Do you own work! When/If you come to a point where you need help, post your code, clearly state what it is you are having a problem with, and ask for help getting past whatever obstacle you may have encountered. But don't come here asking for others to do your work for you. 3 hours ago, MRAJ said: i raised this because I dont know how to start as i am new to autoit. If you can help me with some tips and examples. I will try my level best 44 minutes ago, MRAJ said: If you can help me with sample or example script for how to logging to Network device. It will really help me to move to next step. No, you have the process backwards. You try your level best FIRST, then you ask for help when you reach an obstacle. As I stated before, being new to AutoIt is no excuse for laziness. The Help file is FULL of great examples, These forums are FULL of great examples. The Internet is FULL of great examples. Show some initiative and stop asking for others to do the work that you should be doing on your own. If you are a kid, it still isn't okay but at least I can understand your lack of talent and experience. If you are an adult, then you should be ashamed of your lack of motivation, lack of intellectual curiosity, and general lack of effort. CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
Earthshine Posted June 8, 2018 Share Posted June 8, 2018 (edited) 1 hour ago, MRAJ said: If you can help me with sample or example script for how to logging to Network device. It will really help me to move to next step. just as I thought. looking for a handout. you go from one thing to the next asking for code and doing little else. You are not that new. You can read. You can learn and you can write your own code based on samples from the help file, this forum and the Internet as stated above. Edited June 8, 2018 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
MRAJ Posted June 8, 2018 Author Share Posted June 8, 2018 Thanks for the support:) Link to comment Share on other sites More sharing options...
Earthshine Posted June 8, 2018 Share Posted June 8, 2018 (edited) there is nothing to support here. you come in with a well defined list of requirements and want us to barf up code for you. 'support' would suggest we help you with something YOU WROTE that may not be working. 'support' does NOT equal Gimme Deh Codez posts. Edited June 8, 2018 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Earthshine Posted June 8, 2018 Share Posted June 8, 2018 I, for one, will be happy to assist you once you show us something. for instance, most Routers have an HTTP interface, so logging on might involve the use of a browser and some form of control of said browser (that decision is left to you). Can you look in the help at the IE functions and play with some of the samples to learn from and base a script off that? My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
MRAJ Posted June 8, 2018 Author Share Posted June 8, 2018 Thanks @Earthshine ..I will let you know and update you with my findings and codes:) Link to comment Share on other sites More sharing options...
Earthshine Posted June 8, 2018 Share Posted June 8, 2018 coolness! here is a search from google on related logon stuff with routers https://www.google.com/search?q=log+onto+router+using+autoit&oq=log+onto+router+using+autoit&aqs=chrome..69i57.8338j0j7&sourceid=chrome&ie=UTF-8 My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now