473,609 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Batch file to read information from a router's config file

11 New Member
Hi,
I am an intern and I am tasked with writing a batch file to get information from a router's config file then store it in a database on a server. I do not have any idea of how to do this and so far have found nothing which sheds any light.

Can someone please tell me if this is possible and point me in the right direction.

Thanks in advance
Jun 24 '07 #1
15 6718
pbmods
5,821 Recognized Expert Expert
Heya, justintaitt. Welcome to TSDN!

I'm going to go ahead and move this to the Windows forum, where you'll receive more relevant exposure.
Jun 24 '07 #2
epots9
1,351 Recognized Expert Top Contributor
it might have to done manually cuz when i tried backuping up my router's (linksys) config, its stores it in a CFG format which is no problem....but it encrypts so when u open it its all garbage.

but every router could be different, so see what happens when u backup.
i'm thinking the only way is to change the firmware but i doubt the company who made your router would give u the source to modify.

good luck
Jun 24 '07 #3
justintaitt
11 New Member
Hi
Doing it manually is not an option since that was what sparked the problem in the beginning. However now I am looking at some other alternatives.

Thanks
Jun 24 '07 #4
pbmods
5,821 Recognized Expert Expert
Heya, justintaitt.

What is the router's brand/model?
Jun 24 '07 #5
justintaitt
11 New Member
I am not sure. I was just given an overview and told to check it out. I'll find out and get to you all though.

So far I was thinking about using winscp to copy the config file to the local pc then work from there.
Jun 25 '07 #6
justintaitt
11 New Member
Hi everyone,
It is a Cisco router.
Jun 27 '07 #7
epots9
1,351 Recognized Expert Top Contributor
Hi everyone,
It is a Cisco router.
if u save a backup of the config on to your, can u view it or is it encrypted?
Jun 27 '07 #8
justintaitt
11 New Member
Hi,
I am not sure if it is encrypted or not. As I said before I have not yet been given the project officially so I do not have much info.
Could you still give me your suggestion anyway?

Thanks
Jun 29 '07 #9
pbmods
5,821 Recognized Expert Expert
Heya, justintaitt.

Where is the file located?

Can you FTP into that computer/server? Can you SSH?
Jun 29 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2597
by: Mustaq | last post by:
Hi, How to read same config file from different application? I have 4 application in VB.NET, all are using different app.config files. NOW I need all to read only one config file, how can I do this. Thanks in Adv. Regards,
6
2273
by: Rich | last post by:
Hello, I picked up this example on using the Reflection namespace for loading forms/classes on the fly at msdn http://msdn.microsoft.com/library/default.asp? url=/library/en-us/dnadvnet/html/vbnet10082002.asp which uses a config file named "yourAppName.exe.config" which is an xml based config file that references dlls in
1
1889
by: Antonio | last post by:
Hello, in my web.config file I have <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="a" value="aaa" /> <add key="b" value="bbb" /> </appSettings> <system.web> ....
4
22521
by: PeterW | last post by:
I have a Windows service that needs to get some values from a config file. I place the config file for the service in the System32 directory. I do not get the values using the usual ConfigurationSettings.AppSettings Any tips please cheers -- PeterW
8
1900
by: aabdis | last post by:
Hello All.... I have a question... i have two Windows apps (one UI, and one service) which use a common DLL that hands out database results and such to the two apps. The DLL always connects to the DB the same way, regardless of which app calls it. So i wanted to store info in the config file for the DLL... only to find out it wont read that file at all. I am using VS2005. Searching online, i find that DLLs WILL NOT read their own...
0
947
by: Eric | last post by:
I inherited some code that uses the settings designer to manage some app settings. One of the settings is a connection string that has a DefaultSettingValueAttribute with hard coded text for a connection string. I would like it to read from the app.config file at runtime, but am not sure how to get it to do that. I tried putting in code to read the config section in the attribute instead of the text, but it didnt compile. If I open the...
1
7482
by: M Irfan | last post by:
Hello all, Recently I have started working in .NET 2.0. I am developing a web service application that references a DLL component written in C# 2.0. The component has its own config file which contains settings related to business logic coded in that component. I can reference and load the component but unable to read load the custom config file of that component. I know that the same thing is possible if my host application is any Exe...
5
7840
by: mmcd79 | last post by:
I built a VB.net application that makes use of a machine level DB connection string setting, and a user level starting location setting. The machine level setting and the default user based setting is of course stored in the app.exe.config file located in the same directory as the exe. Upon closing the form, I save the user setting which then creates a user.config file in the appdata directory in my profile. This is all well and good....
1
840
by: Luyolo | last post by:
Good day developers.. I need help peeps on my project and I'll appreciate if i can get it imediately. My application reads from a comma separated file(CSV) and write to the SQL database. Now I want to specify specify the contents of the file in the app.config file for future reference, If the seperator for instance might be changed i wont have to go to the code and change it. I'll just have to go the app.config file and change it and...
0
8130
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8573
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8541
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8406
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7002
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5510
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2531
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1389
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.