I have this script that checks to see if ntp is enabled on a machine
It retuns
if it is loaded, is there a way to script it so that if it is loaded it does not say anything but if it is not loaded it will a) say that it is not loaded b) load it
Hi Group ,
I m trying to execute commands on some other system using write command but inspite of executing the commands they r passed as simple messages.
- i m writing
>write user-id
! ls
o
ctrl-d
inspite of executing the command ls,other terminal shows ! ls.
Thnx in advance. (2 Replies)
Hello,
i am trying to write a script for terminal for my mac that i may drag into the terminal and will excute the following command:
script -akq Desktop/TerminalLogin/Cisco1Bob.txt
telnet x.x.x.x
the problem is that when i drag the text file to the terminal window the script stops after... (6 Replies)
Hello sir,
I want to monitor my work on the terminal.I know we can use script command.But every time when I start the terminal, I have to type script to start it.I want to automate it. So where should I include this command so that it will start as soon as I start the terminal ???? (2 Replies)
i am having a weird error on mac os x running some shell scripts. i am a complete newbie at this and this question concerns 2 scripts. one of which a friend of mine wrote (videochecker.sh) a couple weeks ago and it's been running fine on another machine.
then last week i wrote capture.sh and it... (2 Replies)
Hello,
I am trying to learn how to pass something more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
______________________________________________
${0##*/}
run... (0 Replies)
Hey, I am trying to write a script that will open all of my session windows, and then secure shell into the appropriate server in the new windows. Seems simple, but I cant get it to work! Please help! :confused: (1 Reply)
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
I need to execute apt-cdrom to designate the pendrive using LM 18.3x 'live". (instead of CD-Rom)
Rick (7 Replies)
Discussion started by: 69Rixter
7 Replies
LEARN ABOUT MOJAVE
ntp.keys
ntp.keys(5) File Formats ntp.keys(5)NAME
ntp.keys - NTP symmetric key file format configuration file
SYNOPSIS
[--option-name] [--option-name value]
All arguments must be options.
DESCRIPTION
This document describes the format of an NTP symmetric key file. For a description of the use of this type of file, see the "Authentica-
tion Support" section of the ntp.conf(5) page.
ntpd(8) reads its keys from a file specified using the -k command line option or the keys statement in the configuration file. While key
number 0 is fixed by the NTP standard (as 56 zero bits) and may not be changed, one or more keys numbered between 1 and 65535 may be arbi-
trarily set in the keys file.
The key file uses the same comment conventions as the configuration file. Key entries use a fixed format of the form
keyno type key opt_IP_list
where keyno is a positive integer (between 1 and 65535), type is the message digest algorithm, key is the key itself, and opt_IP_list is an
optional comma-separated list of IPs where the keyno should be trusted. that are allowed to serve time. Each IP in opt_IP_list may con-
tain an optional /subnetbits specification which identifies the number of bits for the desired subnet of trust. If opt_IP_list is empty,
any properly-authenticated message will be accepted.
The key may be given in a format controlled by the type field. The type MD5 is always supported. If ntpd was built with the OpenSSL
library then any digest library supported by that library may be specified. However, if compliance with FIPS 140-2 is required the type
must be either SHA or SHA1.
What follows are some key types, and corresponding formats:
MD5 The key is 1 to 16 printable characters terminated by an EOL, whitespace, or a # (which is the "start of comment" character).
SHA
SHA1
RMD160 The key is a hex-encoded ASCII string of 40 characters, which is truncated as necessary.
Note that the keys used by the ntpq(8) and ntpdc(8) programs are checked against passwords requested by the programs and entered by hand,
so it is generally appropriate to specify these keys in ASCII format.
FILES
/etc/ntp.keys the default name of the configuration file
SEE ALSO ntp.conf(5), ntpd(1), ntpdate(1), ntpdc(1), sntp(1)AUTHORS
The University of Delaware and Network Time Foundation
COPYRIGHT
Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved. This program is released under the
terms of the NTP license, <http://ntp.org/license>.
BUGS
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
NOTES
This document was derived from FreeBSD.
This manual page was AutoGen-erated from the ntp.keys option definitions.
4.2.8p13 20 Feb 2019 ntp.keys(5)