Note: The remember history setting should be equal to or higher than the longest expiration setting.
See "The history file" for more information about the history file.
Do not specify this option if you want to maintain control over the expiration policy of all articles stored in your spool.
Override expiration headers. This option will override any expiration headers that the client sends when posting a message. If you click this option, you must specify how long you want to keep articles on disk. In the associated fields, type the minimum and maximum number of days you want to keep articles.
For example, if you want to purge articles before their expiration headers might specify, you might type 14 for the maximum number of days. If an article has an expiration header of 30 days and your maximum days option is set to 14 days, the server keeps the article for 14 days.
Never expire articles. This option will never expire articles. Use this option only if you are sure you have the disk capacity required for the discussion groups you want to support.
To perform one of the recovery tasks:
Unix. From Unix, execute the following command:server-root
/news-
serverid
/run-daily.cmd
server-root
/news-
serverid
/run-daily
Warning!
If you remake the active file, most special flag settings will be lost. For example, flag settings indicating moderated discussion groups and discussion groups that can't be posted to locally will be reset to the default settings.
history.dir
and history.pag
files from the history text file.
You might use this option if:
Note: Netscape recommends that if your feed volume is large, do not run a program on all articles. This could be an expensive process in terms of CPU load, performance, and so on.
330BC222.6A9A@royal.com>
.
Caution
The ctlinnd utility does not provide the built-in protection mechanisms that are provided with the web-based administrative forms. If you use ctlinnd, be careful. You should use ctlinnd only if you feel confident about what you are doing.The following sections describe:
bin/news/bin
relative to your server root. If you installed your Collabra Server in C:/Netscape/Server
, the path to ctlinnd is C:/Netscape/Server/bin/news/bin/ctlinnd
. This is the default location.
To run, ctlinnd must know where to find your basic configuration information. This information is stored in the nsnews.conf
file. So that ctlinnd will know where to find your configuration information, you must set the environment variable NS_NEWSCONF.
From the Program Manager, open "Control Panel" then open "System." At the bottom are two boxes.
Assume your server is named "foo", so your server is in C:/Netscape/Server/news-foo
.
In the Variable box, type:
NS_NEWSCONFIn the Value box, type:
C:/Netscape/Server/news-foo/config/nsnews.confMake any necessary changes based on where you installed your server and what you named it. You need to open a new DOS window to run ctlinnd.
bin/news/bin
relative to your server root.If you installed your Collabra Server in /usr/ns-home
, the path to ctlinnd is /usr/ns-home/bin/news/bin/ctlinnd
. This is the default location.
To run, ctlinnd must know where to find your basic configuration information. This information is stored in the nsnews.conf
file. So that ctlinnd will know where to find your configuration information, you must set the environment variable NS_NEWSCONF.
How you set the NS_NEWSCONF variable depends on what shell you are running. Assume you named your server "foo". Then your server is in /usr/ns-home/news-foo
. At your shell prompt, type:
For csh and derivatives:
setenv NS_NEWSCONF /usr/ns-homeFor sh and derivatives:
NS_NEWSCONF=/usr/ns-home/news-foo/config/nsnews.conf
export NS_NEWSCONF
Make any necessary changes based on where you installed your server and what you named it.
ctlinnd command [arguments]For example, to remove the discussion group
music.beatles.paul
, type:
ctlinnd rmgroup music.beatles.paul
cancel
The cancel
command removes a specific posting from your Collabra Server.
cancel
This command does not send out a cancel message to other servers. It only cancels it locally.
You can find the message-ID by looking at the message headers in your newsreader. The header line begins with message-id
Message-ID:
. If the message-ID has any odd characters, you may need to enclose the message-ID parameter in quotes.
go
The go
command starts a server that has been paused or throttled for some reason.
go
The reason
reason
parameter must be the same that was used to pause or throttle the server.
To view the current state and reason, use the mode
command. You should use this command only if you are sure that the reasons for pausing or throttling the server have been fixed.
import
The import
command imports an active file into the server.
import
The file pattern creator
file
parameter must specify the full path to an existing active file in proper format.
The pattern
parameter specifies which discussion groups to import; this parameter must me enclosed in quotes. For example, `alt.*'
specifies that you want to import all of the alt
discussion groups (that you do not already have) from the active file. To specify all groups in the active file, type `*'
.
The creator
parameter is used for record purposes only. Typically, creator
is an email address.
mode
The mode
command displays the current status of the server, including the reason it may be paused or throttled and a count of the current number of clients.
mode
newgroup
The newgroup
command creates a new discussion group on the Collabra Server only. This command does not send a newgroup
control message to other servers.
newgroup
The groupname
rest
creator
groupname
parameter must be a proper discussion group name.
The rest
parameter may be a y
, n
, or m
, indicating a postable, non-postable, or moderated discussion group, respectively.
The creator
parameter should be the name of the person running this command. Typically, it is the user's email address.
pause
The pause
command pauses the Collabra Server so that it will not accept new articles. Articles are not rejected; the server attempts to post when the pause is lifted.
pause
reason
Readers are not disconnected, but the server is in a "hung" state until the pause is lifted.
For logging purposes you must provide a brief reason for pausing the server. You will use this reason when specifying the go
command.
reload
The reload
command reloads a copy of a configuration file. You must provide the short name of the file to reload and a brief reason for reloading the file.
reload
filename
reason
renumber
The renumber
command tells the Collabra Server to look through the spool at the specified discussion group and verify the article numbers listed in the active file. If the discussion group name is " or "" it will do this for all discussion groups.
renumber
discussion-group-name
rmgroup
The rmgroup
command removes the specified discussion group from the Collabra Server only. No rmgroup
control messages are sent to other servers. Only the active file is modified. Articles are left in the spool until they expire.
rmgroup
group
shutdown
The shutdown
command shuts down the Collabra Server.
shutdown
throttle
The throttle
command throttles the server; no new articles are accepted. Articles are rejected immediately. The server does not remain in a hung state.
For logging purposes you must provide a brief reason for throttling the server. You will use this reason when specifying the go
command.
Using ctlinnd on scripts and programs
You can use ctlinnd to write scripts to stop the server at some regular interval, monitor server status, cancel messages, and so on.
Because ctlinnd is a standalone program, it can be run from a shell script, a perl script, or even from another executable. Below are three examples of running ctlinnd. Each program takes a single groupname as an argument and removes that group from the server.
More complicated scripts follow the same pattern. The examples show Unix pathnames. If you are running ctlinnd on Windows NT, remember to use DOS file paths.
Bourne shell. To use from the Bourne shell (/bin/sh):
#!/bin/sh
perl script. To use from a perl script:
group=$1
NS_NEWSCONF=/usr/ns-home/news-foo/config/nsnews.conf
export NS_NEWSCONF
echo "Removing group $group"
/usr/ns-home/bin/news/bin/ctlinnd rmgroup $group#!/usr/local/bin/perl
C code. To use from C code:
$group=$ARGV[0];
$ENV{'NS_NEWSCONF'}=/usr/ns-home/news-foo/config/nsnews.conf
print "Removing group $groupn";
system("/usr/ns-home/bin/news/bin/ctlinnd rmgroup $group");void main(int argc, char **argv) {
char s[1024];
char *group;
group = argv[1];
putenv("NS_NEWSCONF=/usr/ns-home/news-foo/config/nsnews.conf");
sprintf(s,""/usr/ns-home/bin/news/bin/ctlinnd rmgroup %s",group);
printf("Removing group %sn",group);
system(s);
} Troubleshooting ctlinnd
If you have problems when running ctlinnd, check the following list of symptoms and probable causes.
ctlinnd core-dumps/bus-errors/seg-faults/and so on whenever I try to run it! Why?
Check the value of NS_NEWSCONF before you run ctlinnd. Is it correct? Does it point to the nsnews.conf
file? If not, the above problems will occur.
ctlinnd keeps complaining about bad or wrong number of arguments! Why?
Are you providing the correct number of arguments? If you are running ctlinnd from a shell or DOS window, are you using special characters (such as *
, /
, <, "
)? Try surrounding the argument with ' '
or "
"
to stop expansion of the wildcard at the shell level.
ctlinnd complains about permissions and owner! Why?
Are you logged in as the same user the server is running as? Or are you root (UNIX) or Administrator (NT)? To communicate with the Collabra Server, you must have sufficient privileges. On UNIX, you can su
to the news user or to root. On NT, you will have to log in as the news user or Administrator.
I don't see my problem listed here! What do I do?
Post a message to snews://secnews.netscape.com/netscape.server.news
with any SSL capable newsreader explaining your problem. In your message, include the server version, what operating system you are running, what kind of hardware, and so on. If possible, include a cut-and-paste of a command session or a copy of your script.