Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Shell Scripting for Router, Switch & FW deviation Post 302733433 by GautamSK on Tuesday 20th of November 2012 01:25:04 PM
Old 11-20-2012
Code:
cat $file | grep -A 2 "show system uptime" | grep "booted" | cut -c 21-22 >> $tmp_path/rtdt.txt

this grep option not working on sunos

Last edited by Scott; 11-20-2012 at 02:38 PM.. Reason: Use code tags, please.
 

9 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Shell scripting & programming languages

If I want to do high-end 3d animation, what skell scripting languages, and programming languages shoul I learn? If you know any good resources for learning these languages they would be appreciated. (1 Reply)
Discussion started by: aloysius1001
1 Replies

2. Shell Programming and Scripting

Sql & Shell scripting book

Hi, I am looking for some books that have examples of both Oracle SQL and Shell script being used together. For example, to insert 500 rows into a table using a script. I already have books that cover Shell scripting or SQL, but as separate subjects. I am looking for books that have both of... (3 Replies)
Discussion started by: handle123
3 Replies

3. IP Networking

EeePC & F5D7230-4 router help

I have a desk top PC, DSL modem, HP C5180 All-in-One, F5d7230-4 router and a second desk top PC with a wireless card. These all work together fine. I bought an Asus EeePC with Linux as the operating system. I can take the EeePC to a coffee shop or city library and log onto the net with no problems.... (2 Replies)
Discussion started by: royace@juno.com
2 Replies

4. Shell Programming and Scripting

How to switch user in shell scripting (without sudo)?

Hi everyone: I have a big trouble, I need create a script that must switch user and then must execute certain commands, sadly neither my user nor the second user have no privileges for sudo, I've tried everything but seems su doesn't accept input redirection, please help me, it's very... (8 Replies)
Discussion started by: edgarvm
8 Replies

5. Shell Programming and Scripting

AWK script for standard deviation / root mean square deviation

I have a file with say 50 columns, each containing a whole lot of data. Each column contains data from a separate simulation, but each simulation is related to the data in the last (REFERENCE) column $50 I need to calculate the RMS deviation for each data line, i.e. column 1 relative to... (12 Replies)
Discussion started by: chrisjorg
12 Replies

6. Post Here to Contact Site Administrators and Moderators

kindly reconsider my post in shell & scripting forum

Hi, this is regarding my post "ksh: how to extract strings from each line based on a condition" . Its not a home work or an assigment. I actually work in retail domain. The data I handle is very complex and confidential.So I can't divulge the actual patterns. In order to explain my problem, I have... (1 Reply)
Discussion started by: angie1234
1 Replies

7. Shell Programming and Scripting

guidance required: feed load search & display in shell scripting

Hi All, I am fairly new to Shell Scripting, however learning fast ;-) I have been asked to do the below basic shell script :confused: There are few feed files we are recieving in the server from multiple locations spread out during the day, rite now we are checking manually each file... (2 Replies)
Discussion started by: sachaan
2 Replies

8. Shell Programming and Scripting

Help me to perform count & group by operation in shell scripting?

Hi All, I want to display the distinct values in the file and for each distinct value how may occurance or there. Test data: test1.dat 20121105 20121105 20121105 20121105 20121106 20121106 20121106 20121105 I need to display the output like Output (2 Replies)
Discussion started by: bbc17484
2 Replies

9. Shell Programming and Scripting

How to switch user in shell scripting (without root)?

Hi everyone: I need create a script that must switch user and then must execute certain commands, sadly neither my user nor the second user have no privileges for su - , I've tried everything but seems su doesn't accept input redirection, please help me, ... (4 Replies)
Discussion started by: ooilinlove
4 Replies
map-mbone(1M)															     map-mbone(1M)

NAME
map-mbone - Multicast Router Connection Mapper SYNOPSIS
debuglevel] retries] timeout] [multicast-router] DESCRIPTION
requests the multicast router connection information from the multicast-router, and prints the information to the standard out. sends out the ASK_NEIGHBORS igmp message to the multicast-router. When the multicast-router receives the request, it sends back its configuration information. multicast-router can be either an ip address or a system name. If the multicast-router is not specified, flood mode is on by default and the igmp request message is sent to all the multicast router on the local network. With flood mode on, when finds new neighbor routers from the replies, it will send the same igmp request to the new neighbor routers. This activity continues until no new neighbor routers are reported in the replies. The command line options are: Sets the level for printing out the debug message. The default is 0, which prints only error and warning messages. Debug level three prints most the messages. Sets the retry times to poll the routing daemon for information. The default is 1. It specifies the timeout value in seconds for waiting the reply. The default value is 2 seconds. Sets the flood mode on. It is the default value when no multicast-router is given on the command line input. Generates output in GRaphEd format. Disable DNS lookup for the multicast router names. The output contains the interface configuration information of the requested router(s). The format for each interface output is: If there are multiple neighbor routers on one interface, they will all be reported. The neighbor_name will not be printed if the option is specified on the command line. The possible values for are: Neighbors are reached via tunnel. The tunnel uses IP source routing. The interface is down. The interface is administratively disabled for multicast routing. The local router is the querier of the subnet. The format of the GRaphEd output is: If there is no neighbor router on an interface, then a will be put next to the node_name. If there are multiple neighbor routers on one interface, all of them will be reported. The possible values for are: The neighbor is reached via tunnel. The neighbor is on the same network/subnet. The interface is down. Please see mrouted(1M) for and EXAMPLES
Querying for the multicast router connection information. 127.0.0.1 (localhost) [version 3.3]: 193.2.1.39 -> 0.0.0.0 (all-zeros-broadcast) [1/1/disabled] 15.13.106.144 -> 15.255.176.33 (matmos.hpl.hp.com) [10/1/tunnel] 15.13.106.144 -> 15.17.20.7 (hpspddc.vid.hp.com) [10/1/tunnel/down] Querying for multicast router connectivity with option: GRAPH "Multicast Router Connectivity: Wed Feb 1 17:34:59 1995"=UNDIRECTED 252537488 {$ NP 1440 1060 $} "hpntc1t.cup.hp.com*" ; 252538974 {$ NP 940 1120 $} "hpntcbs.cup.hp.com" 252537488 "10/1E" 252539807 "1/1P" ; 252539807 {$ NP 1590 1150 $} "hpntc1h.cup.hp.com*" ; Note must be run as root. AUTHOR
was developed by Pavel Curtis. SEE ALSO
mrouted(1M), mrinfo(1M). map-mbone(1M)
All times are GMT -4. The time now is 12:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy