10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello,
I have a syslog server at home and am currently experiencing an issue where my logs will rotate and compress however it will rotate and compress yesterdays file and the newly created log file for the current day. When it does this however it will also create another new file for today... (9 Replies)
Discussion started by: MyUserName7000
9 Replies
2. Shell Programming and Scripting
Hey everyone,
I need to select all files that were added to a specific directory in the past 5 mins and copy them over to a different directory. I am using HP-UX OS which does not have support for amin, cmin, and mmin. B/c of this, I am creating a temp file and will use the find -newer command... (7 Replies)
Discussion started by: mattkoz
7 Replies
3. AIX
Hi Admins.
I have installed logrotate rpm on Aix 6.1.
After the installation of rpm, I don't find /etc/logrotate.conf file and /etc/logrotate.d dir .
The config file is located in /opt/freeware/etc/logrotate.conf.
When I ran
logrotate -v /opt/freeware/etc/logrotate.conf
I get below... (2 Replies)
Discussion started by: snchaudhari2
2 Replies
4. Shell Programming and Scripting
I have written script which is working in Home directory perfectly and also compressing log files and rotating correctly. But, when i try to run script for /var/log/ i am able to get compressed log files but not able to get rotation of compressed log files. Please suggest.
I am using below command... (5 Replies)
Discussion started by: VSom007
5 Replies
5. Red Hat
Hi Guys,
Need some help with the logrotate for one of our servers. I had setup a logrotation so that all files that go under old/ folder should be removed after one week. The log files are rotated daily from the main folder to old/ folder. (everything on one server)
Below is the sample I am... (0 Replies)
Discussion started by: rockf1bull
0 Replies
6. UNIX for Advanced & Expert Users
Hi,
I have written a script that runs every five minutes in cron schedular. The Operating system is Fedora core 9. This script generates 2 log files, these log file size is increasing as some log data is being dumped into these 2 log files every five minutes. I need to logrotate these 2 files.... (1 Reply)
Discussion started by: renuka
1 Replies
7. UNIX for Advanced & Expert Users
Hi there,
I want to rotate the logfiles which are located in /var/log/jboss/tomcat*
so I have created a file named as 'tomat' in /etc/logrotate.d/tomcat with the following content.
# cat /etc/logrotate.d/tomcat
/var/log/jboss/tomcat_access_log*.log {
daily
nocreate
... (2 Replies)
Discussion started by: skmdu
2 Replies
8. UNIX for Dummies Questions & Answers
hi,
I need to find all the modified files before 60 minutes in a folder.
Is that possible to find using mtime in minutes?
Suggestions please.
Thanks for looking into it...
Geetha (8 Replies)
Discussion started by: iamgeethuj
8 Replies
9. Shell Programming and Scripting
Hi All,
I have a requirement to find out the files which are modified in the last 10 minutes.
I tried the find command with -amin and -mmin options, but its not working on my AIX server.
Can anyone of you could help me.
Thanks in advance for your help.
Raju (3 Replies)
Discussion started by: rajus19
3 Replies
10. UNIX for Dummies Questions & Answers
Any simple 1 liners to check a directory to see if a file was created within the last 10 mins? (5 Replies)
Discussion started by: frustrated1
5 Replies
PUPPET-DOC(8) Puppet manual PUPPET-DOC(8)
NAME
puppet-doc - Generate Puppet documentation and references
SYNOPSIS
Generates a reference for all Puppet types. Largely meant for internal Puppet Labs use.
USAGE
puppet doc [-a|--all] [-h|--help] [-o|--outputdir rdoc-outputdir] [-m|--mode text|pdf|rdoc] [-r|--reference reference-name] [--charset
charset] [manifest-file]
DESCRIPTION
If mode is not 'rdoc', then this command generates a Markdown document describing all installed Puppet types or all allowable arguments to
puppet executables. It is largely meant for internal use and is used to generate the reference document available on the Puppet Labs web
site.
In 'rdoc' mode, this command generates an html RDoc hierarchy describing the manifests that are in 'manifestdir' and 'modulepath' configu-
ration directives. The generated documentation directory is doc by default but can be changed with the 'outputdir' option.
If the command is run with the name of a manifest file as an argument, puppet doc will output a single manifest's documentation on stdout.
OPTIONS
--all Output the docs for all of the reference types. In 'rdoc' mode, this also outputs documentation for all resources.
--help Print this help message
--outputdir
Used only in 'rdoc' mode. The directory to which the rdoc output should be written.
--mode Determine the output mode. Valid modes are 'text', 'pdf' and 'rdoc'. The 'pdf' mode creates PDF formatted files in the /tmp direc-
tory. The default mode is 'text'. In 'rdoc' mode you must provide 'manifests-path'
--reference
Build a particular reference. Get a list of references by running 'puppet doc --list'.
--charset
Used only in 'rdoc' mode. It sets the charset used in the html files produced.
--manifestdir
Used only in 'rdoc' mode. The directory to scan for stand-alone manifests. If not supplied, puppet doc will use the manifestdir from
puppet.conf.
--modulepath
Used only in 'rdoc' mode. The directory or directories to scan for modules. If not supplied, puppet doc will use the modulepath from
puppet.conf.
--environment
Used only in 'rdoc' mode. The configuration environment from which to read the modulepath and manifestdir settings, when reading
said settings from puppet.conf. Due to a known bug, this option is not currently effective.
EXAMPLE
$ puppet doc -r type > /tmp/type_reference.markdown
or
$ puppet doc --outputdir /tmp/rdoc --mode rdoc /path/to/manifests
or
$ puppet doc /etc/puppet/manifests/site.pp
or
$ puppet doc -m pdf -r configuration
AUTHOR
Luke Kanies
COPYRIGHT
Copyright (c) 2011 Puppet Labs, LLC Licensed under the Apache 2.0 License
Puppet Labs, LLC June 2012 PUPPET-DOC(8)