Hi,
I need to collect IP address of all servers (more than 300). One way is put it in for loop and run nslookup for that servers list, but there are multiple fields in output.
So it means, I want to capture line just below "Name: vplssor04.dd.test.com". If I grep "Address", it will capture both lines which contains "Address"
Can somebody suggest me easy way to capture it ?
Last edited by solaris_1977; 05-12-2014 at 03:23 PM..
Hi Guyz,
I need to capture first N Bytes from the first line of my file.
Eg. If i have following data in File1
414d51204541495052475731202020204a910846230e420c Hello 3621363663212 Help Required
Then, i want the value of first 48 Bytes to be stored in a variable.
That is, variable... (5 Replies)
Hi,
I wanted to know how i could accomplish this in a script using ksh.
Lets say there is a file called test.dat and it has a certain input like below :
.
.
Hi = 56
Hi = 67
.
.
1 record(s) selected
Now i need to capture the numbers after the = sign and store them in a... (3 Replies)
Hi,
I have a query as follows :
suppose I am matching a string in a file say "start from here"
and I want to pick up 'n' number of lines () from the matched string. Is there any way to do that ?
1) going forward I want to do this for every match for the above string
2) or limit this to... (2 Replies)
Hello All,
I'm working on a script that runs the wget command on a list of IP Address in order to capture the data at that address' index.html.
That part works fine to get the HTML code at that address but the data I'm trying to pull out is on a line containing a BUNCH of
code for an HTML... (4 Replies)
Hi all,
My file :test.txt just like this:
...........................
From: 333:123<sip:88888888888@bbbb.com
To: <sip:123456@aaaaa.com
.........................
I want a script to capture the string between sip: & @
Expect output:
88888888888
123456
Please help! (4 Replies)
Dear All
My input file as under. From it I want op fine as mention below. Kindly help. I use below code but not help.
code:
awk -F" " '{print $2}'
ip file:
"BSCJNGR_IPA17_C" 030 131207 1305 RXOCF-353 PBD011_BGIL BOTH AC FAULTY
"BSCJNGR_IPA17_C" 991 131207 1637 RXOCF-224 NAV001_BGIL ... (5 Replies)
Dear All
From below mention input file I want op file as mention. Kindly help.
IP file:
"BSCGNR4_IPA17_C" 329 140119 0717 RXOCF-105 KJO001_BASC_NG AC FAULTY DG ON DOOR OPEN
Needed OP:
140119 0717 KJO001_BASC_NG AC FAULTY DG ON DOOR OPEN
Note that string mark in red as variable in... (3 Replies)
Dear all,
I have a log file to be analysed. this log file contains vaiours lines of code starting with date timestamp.
if my search string is exception then that resepective log statement starting from the date is required.
example:
2014/10/01 16:14:44.459|>=|E|X|19202496|2832|... (5 Replies)
Dear All
During one of mine script developemnt i am stuch at one sub part. Requiremnt is as below kindly help me.
IP file:
2015-02-28 10:10:15 AL M UtranCell UtranCell=RTE001X (unavailable)
2015-02-28 10:10:15 AL M UtranCell UtranCell=RTE001Y (unavailable)
2015-02-28 10:10:15 AL M... (6 Replies)
Discussion started by: jaydeep_sadaria
6 Replies
LEARN ABOUT DEBIAN
stund
STUND(8)STUND(8)NAME
stund - STUN protocol (Simple Traversal of UDP through NATs) Server
SYNTAX
stund [-v] [-h IP Address] [-a Secondary IP Address ] [-p port ] [-o port ] [-b ] [-m ]
STUN servers needs two IP addresses and two ports
DESCRIPTION
STUN Servers are used to help clients behind NAT to tunnel incoming calls through. This server is the counterpart to help the client iden-
tify the NAT and have it open the proper ports for it
OPTIONS -v Verbose output.
-h <IP Address>
Define the Main IP Address.
-a <IP Address>
Define the Second IP Address.
-p <Port>
Set the primary port the default port value is 3478
-o <Port>
Set the secondary port the default port value is 3479 -b Detach the process and makes the program run at the background
-m <Port>
Sets a starting port for the STERM server
--help Prints useful help
EXAMPLES
If the IP addresses of your NIC are 10.0.1.150 and 10.0.1.151 the proper and default use would be:
stund -h 10.0.1.150 -a 10.0.1.151
add -b option to detach the process
stund -h 10.0.1.150 -a 10.0.1.151 -b
AUTHORS
This manual page was written by Rene Mayorga <rmayorga@debian.org.sv> for the Debian system (but may be used by others). Permis-
sion is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later
version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
SEE ALSO stun(1)Debian Project 2007 Aug 31 STUND(8)