Sponsored Content
Top Forums Programming Reading a router configuration file Post 302749191 by Corona688 on Thursday 27th of December 2012 05:49:40 PM
Old 12-27-2012
Quote:
Originally Posted by digidax
The structure of the binary file is very simple:

struct nvram_tuple {
char *name;
char *value;
struct nvram_tuple *next;
};
Pointers have no meaning in a binary file. That cannot be the file's actual contents. They seem to be variable length fields defined by the header -- hardly simple at all.

You are printing with %c, which prints characters, rather than %s, which prints strings.
 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Reading a value from the configuration file

Hi, I have prepared a config file in which I am declaring the value for a country such as: COUNTRY=USA Now I am trying to read the country from the config file and print a message based on the same. I have written the following code in a script and when executing the script I getting an error. ... (14 Replies)
Discussion started by: yoursdavinder
14 Replies

2. UNIX for Dummies Questions & Answers

Remote Unix printing to my WinXP works with no router. How can I make it work through my router?

I set up remote printing on a clients Unix server to my Windows XP USB printer. My USB printer is connected directly to my PC (no print server and no network input on printer). With my Win XP PC connected to my cable modem (without the router), i can do lp -dhp842c /etc/hosts and it prints. I... (7 Replies)
Discussion started by: jmhohne
7 Replies

3. Shell Programming and Scripting

reading configuration files in bash. Best way?

Context: I have a random pin number generator script that reads a tab-delimited file containing a location and a count: eg., mansfield 30 tokyo 15 smithville 34It produces random PIN# in the amount specified by the number in the second column. Currently, I read the file... (7 Replies)
Discussion started by: Bubnoff
7 Replies

4. IP Networking

How to show Cisco Router Running Configuration in Third Party Application

Hey everyone, I have a few question. 1. Is it possible to display cisco 'show run' output command to the application ?? 2. And is there any ways to log in to the router instead of using telnet from telnet application??? Thanks in advance (0 Replies)
Discussion started by: franzramadhan
0 Replies

5. Shell Programming and Scripting

Expect script to save configuration from a router

Hy guys, My name is Alex, i am new here and I hope to find some answers. I am trying to run a expect script to telnet to a mikrotik router, run a command (export), and save the output of that commant to a file (outputfile.txt). The problem is that only part of the output is saved to... (2 Replies)
Discussion started by: axexandru
2 Replies
RRENUMD(8)						    BSD System Manager's Manual 						RRENUMD(8)

NAME
rrenumd -- router renumbering daemon SYNOPSIS
rrenumd [-df] [-c conf_file | -s] DESCRIPTION
The rrenumd utility transmits router renumbering request packets, to renumber the routers in the site network. On KAME-based systems, router renumbering requests are received and processed by rtadvd(8). For other systems, refer to relevant documents. The program will daemonize itself on invocation. It reads configuration information from standard input if -s is specified, or from conf_file if -c conf_file is specified. The contents of configuration information are described in rrenumd.conf(5). After successful configuration, rrenumd sends router renumbering messages periodically to configured destinations. Messages contain prefixes configured to be renumbered. -d Debug mode. -f Foreground mode. Do not become daemon. -s Script mode. Configuration information is obtained from standard input. -c conf_file Specify a configuration file where configuration information is kept. EXIT STATUS
The program exits with 0 on success, and non-zero on failures. SEE ALSO
rrenumd.conf(5), rtadvd(8) STANDARDS
Matt Crawford, Router Renumbering for IPv6, RFC, 2894, August 2000. HISTORY
The rrenumd utility first appeared in KAME IPv6 protocol stack kit. BSD
September 7, 1998 BSD
All times are GMT -4. The time now is 11:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy