I have a requirement where I need to execute couple of commands once whenever my server is rebooted.For example I used to receive a mail telling there is a planned server reboot for the next day.So I will touch a file
.
Once the server reboot complete for the next day(It can be at anytime for the day) I need to remove this file manually.Is there anyway we can automate in such a way that once the server reboot complete for the day remove the Reb.Lck file.
My server version is given below
Quote:
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarchrinting-4.0-amd64rinting-4.0-noarch
Red Hat Enterprise Linux Server release 6.10 (Santiago)
Red Hat Enterprise Linux Server release 6.10 (Santiago)
Hi all,
Quick question.
Does anyone know what is the compination of buttons that I have to press to stop the start up so I can bring the system in a single user mode?
I use HP Vis 9000
Thanks alot (1 Reply)
HI All,
I need a script to reboot a linux box from a windows box.
The script needs to run automatically whenever a sitescope alerts with an error message.
Have searched for this in the forums, but could not get something relative.
Pls. let me know the various alternatives we have to do... (2 Replies)
Hi
What is the best way to reboot a Linux computer?
i) Press the power switch
ii) type 'init 6' as any user, then enter the root password when prompted
iii) Pour metal filings in the top of the computer.
iv) su to root then type 'init 6' (6 Replies)
Hi All,
Our Linux server were rebooted 723 days before and now We have decided to reboot the server due to server performance.
Could someone advise us what is the optimal duration of a server reboot ?
Thanks for your time.
Best Regards,
Arun (2 Replies)
Hello,
I'm trying to create a mechanism wherein a set of Production servers will email me the results of system checks like Uptime, NFS Mounts and a Process after every scheduled reboot.
For this, I figured I'd use the @reboot parameter that crond comes with.
I have added the below onliner... (3 Replies)
Respected Members,
We encountered an issue during node reboot when eth1 and eth5 of bond1 were behaving unusual(both eth1 and eth5 were in unknown states and ifdown and ifup were used to rectify). Please find the messages and configuration files as below and please let me know for any other... (0 Replies)
Hello my friends,
I've come across the weirdest of glitches.
I'm running a simple weather monitor (just temperature) on a Raspbeery Pi 3B (Raspbian Linux 4.14.98-v7+). It has a 3G modem that sends out simple packets to my server at home.
On june 5th I lost remote access to the device.... (1 Reply)
Discussion started by: OmahaWiz
1 Replies
LEARN ABOUT DEBIAN
spacewalk-channel
SPACEWALK-CHANNEL(8) Red Hat, Inc. SPACEWALK-CHANNEL(8)NAME
spacewalk-channel - Subscribe to or unsubscribe system from channel.
SYNOPSIS
spacewalk-channel [options]
DESCRIPTION
spacewalk-channel allows you to subscribe to and unsubscribe from specified channels via the command line. A visit to the Red Hat Network
(or Spacewalk) website isn't required.
OPTIONS -l, --list
Print a list of channel(s) that you are currently subscribed to.
-L, --available-channels
Print a list of all available child channels.
-a, --add
You are subscribing system to given channel(s). You have to specify --user and --password.
-r, --remove
You are unsubscribing system to given channel(s). You have to specify --user and --password.
-u, --user
Your username used to register the system with and for Red Hat Network, RHN Satellite or Spacewalk. If you do not enter this option
and it is required, you will be prompted.
-p, --password
The password associated with the username specified with the --user option. This is an unencrypted password. If you do not enter
this option and it is required, you will be prompted.
-c, --channel
Label of channel you want to subscribe to or unsubscribe from. Can be specified multiple times.
-v, --verbose
Print out successfull action.
-h, --help
Show a help message and exit.
NOTE
The addition and removal of channels is mutually exclusive, please use the command twice.
EXAMPLES
Subscribe to two channels:
spacewalk-channel --add -c rhn-tools-rhel-i386-server-5 -c rhel-i386-server-vt-5 --user username --password password
Unsubscribe from channel:
spacewalk-channel --remove -c rhn-tools-rhel-i386-server-5 -c rhel-i386-server-vt-5 --user username --password password
List subscribed channels:
spacewalk-channel --list
SEE ALSO rhnplugin(8), rhn_register(8), up2date(5).
AUTHORS
Miroslav Suchy <msuchy@redhat.com>
BUGS
Report bugs to <http://bugzilla.redhat.com>.
COPYRIGHT
Copyright (C) 2009-2010 Red Hat, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
Linux 2010 August 30 SPACEWALK-CHANNEL(8)