Sponsored Content
Top Forums Shell Programming and Scripting How to find the router reboot date using script? Post 302770029 by surender reddy on Thursday 14th of February 2013 08:13:27 AM
Old 02-14-2013
Hi its not working.below error coming

HTML Code:
# date --date='Thu Feb 14 10:16:14 2013 IST - 61 days 21 hours 31 minutes 49 secs'

output


HTML Code:
 date: illegal option -- date=Thu Feb 14 10:16:14 2013 IST - 61 days 21 hours 31 minutes 49 secs
usage:  date [-u] mmddHHMM[[cc]yy][.SS]
        date [-u] [+format]
        date -a [-]sss[.fff]
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to find files on a given input date

Hello gurus, I need to write a script to find out all the file that got changed on a specific folder since a given input date (Date to be given as Input) Thanx (1 Reply)
Discussion started by: ar.karan
1 Replies

2. UNIX for Dummies Questions & Answers

shell script to find files by date and size

Hi, I have a directory PRIVATE in which I have several directories and each of these have several files. Therefore, I need to find those files by size and date to back up those files in another directory. I don't know how to implement this shell script using ''find''. appreciate any... (1 Reply)
Discussion started by: dadadc
1 Replies

3. AIX

How to find the router IP address

How to find the router IP address (2 Replies)
Discussion started by: AIXlearner
2 Replies

4. Shell Programming and Scripting

How to script to find the newer date in a text file?

Hi, I have a text file, foo.txt, it looks something like below. In the file there is a line that gives the date in the form of: Mon Jun 15 11:09:31 2008. I need to find which date is the newest and then store certain details of that list data to another file. So, in this sample text file, I... (6 Replies)
Discussion started by: boolean2222
6 Replies

5. 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

6. Shell Programming and Scripting

How to find the date of previous day in shell script?

Hi Experts, i am using the below code get the date of previous day. #!/usr/bin/ksh datestamp=`date '+%Y%m%d'` yest=$((datestamp -1)) echo $yest When i execute the code i am getting output as: 20130715 What i am trying here is, based on the date passed i am fetching previus day's... (0 Replies)
Discussion started by: learner24
0 Replies

7. Red Hat

How to find out what router a connection uses?

How can i trace a destination IP from the initiating IP to see what router(s) it goes thru from the source IP to the destination IP on Linux Redhat server? If it is the traceroute command, what options can i Use to get that infoirmation? Thanks (2 Replies)
Discussion started by: mrn6430
2 Replies

8. UNIX for Beginners Questions & Answers

Script to find a date variable and increment it

Hi, I have parameter file wo_location.prm which has a date variable $last_upd_date= 02032016. I need to write a unix shell script to find that variable and increment it by 1 day. The path to the file is root/dir_lc/shared/param/wo_location.prm and the variable is $last_upd_date. Any... (2 Replies)
Discussion started by: isenhiem
2 Replies

9. Shell Programming and Scripting

Script to find n.of weekdays and n.of weekends in a given date

Hi All, Could you please provide the shell script to find number of weekdays and number of weekends for a given date for that month. Monday to friday should be considered as weekdays and Saturday and Sunday should be considered as weekends. Date should be passed as parameter. For... (13 Replies)
Discussion started by: ROCK_PLSQL
13 Replies
6to4relay(1M)						  System Administration Commands					     6to4relay(1M)

NAME
6to4relay - administer configuration for 6to4 relay router communication SYNOPSIS
/usr/sbin/6to4relay /usr/sbin/6to4relay [-e] [-a addr] /usr/sbin/6to4relay [-d] /usr/sbin/6to4relay [-h] DESCRIPTION
The 6to4relay command is used to configure 6to4 relay router communication. Relay router communication support is enabled by setting the value of a variable that stores an IPv4 address within the tun module. This variable is global to all tunnels and defines the policy for communication with relay routers. By default, the address is set to INADDR_ANY (0.0.0.0), and the kernel interprets the value to indicate that support for relay router communication is disabled. Otherwise, support is enabled, and the specified address is used as the IPv4 des- tination address when packets destined for native IPv6 (non-6to4) hosts are sent through the 6to4 tunnel interface. The 6to4relay command uses a project private ioctl to set the variable. 6to4relay used without any options outputs the current, in-kernel, configuration status. Use the -a option to send packets to a specific relay router's unicast address instead of the default anycast address. The address specified with the -a option does not specify the policy for receiving traffic from relay routers. The source relay router on a received packet is non-deterministic, since a different relay router may be chosen for each sending native IPv6 end-point. Configuration changes made by using the 6to4relay are not persistent across reboot. The changes will persist in the kernel only until you take the tunnel down OPTIONS
The 6to4relay command supports the following options: -a addr Use the specified address, addr. -e Enable support for relay router. Use -a addr if it is specified. Otherwise, use the default anycast address, 192.88.99.1. -d Disable support for the relay router. -h Help OPERANDS
The following operands are supported: addr A specific relay router's unicast address. addr must be specified as a dotted decimal representation of an IPv4 address. Otherwise, an error will occur, and the command will fail. EXAMPLES
Example 1 Printing the In-Kernel Configuration Status Use /usr/sbin/6to4relay without any options to print the in-kernel configuration status. example# /usr/sbin/6to4relay If 6to4 relay router communication is disabled, the administrator will see the following message: 6to4relay: 6to4 Relay Router communication support is disabled. If 6to4 router communication is enabled, the user will see this message: 6to4relay: 6to4 Relay Router communication support is enabled. IPv4 destination address of Relay Router = 192.88.99.1 EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. FILES
/usr/sbin/6to4relay The default installation root ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
ifconfig(1M), attributes(5) Huitema, C. RFC 3068, An Anycast Prefix for 6to4 Relay Routers. Network Working Group. June, 2001. Carpenter, B. and Moore, K. RFC 3056, Connection of IPv6 Domains via IPv4 Clouds. Network Working Group. February, 2001. DIAGNOSTICS
The 6to4relay reports the following messages: 6to4relay: input (0.0.0.0) is not a valid IPv4 unicast address Example: The following example provides an incorrect unicast address. example# 6to4relay -e -a 0.0.0.0 Description: The address specified with the -a option must be a valid unicast address. 6to4relay: option requires an argument -a usage: 6to4relay 6to4relay -e [-a <addr>] 6to4relay -d 6to4relay -h Example: The following example does not include an argument for the -a option. example# 6to4relay -e -a Description: The -a option requires an argument. usage: 6to4relay 6to4relay -e [-a <addr>] 6to4relay -d 6to4relay -h Example: The following example specifies options that are not permitted. example# 6to4relay -e -d Description: The options specified are not permitted. A usage message is output to the screen. usage: 6to4relay 6to4relay -e [-a <addr>] 6to4relay -d 6to4relay -h Example: The following example specifies the -a option without specifying the -e option. example# 6to4relay -a 1.2.3.4 Description: The -e option is required in conjunction with the -a option. A usage message is output to the screen. 6to4relay: ioctl (I_STR) : Invalid argument Example: The following example specifies an invalid address. example# 6to4relay -e -a 239.255.255.255 Description: The address specified with the -a option must not be a class d addr. SunOS 5.11 19 Nov 2002 6to4relay(1M)
All times are GMT -4. The time now is 04:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy