A simpler way:
tar up all the files from september in $logdir
create two dummy files with dates
201209010000 beginning of September
201209305959 end of september
Hi Friends,
I'm doing on script which finds all the files with time stamp and makes them tar and zip, based on their respective month&year. for instance "mar-2004.tar.zip" will contain all the files which was created/accessed/modified on mar-2004. like this the entire filesystem should be taken... (1 Reply)
Hi Guru's,
I have to write a shell script which groups file names based upon the certain matching string pattern, then creates the Tar file for that particular group of files and then zips the Tar file created for the respective group of files.
For example, In the given directory these files... (3 Replies)
Hi guys,
I have an issue processing a large amount of files. I have around 5 million files (some of them are actually directories) in a server.
I am unable to find out the exact number of files since it's taking "forever" to finish (See this thread for more on the issue).
Anyway, now I... (6 Replies)
Hi,
I have got a large number of .PDF files that are archived in .RAR & ZIP files in various directories and I would like to search for strings inside the PDF files.
I would think you would need something that can recursively read directories, extract the .RAR/.ZIP file in memory, read the... (3 Replies)
Hi,
I need a help with zip and tar. I have no done any scripts before with zip command.
What I need to achieve is list files in a directory with a specific name (ID_DATE format- given examples) and then zip (or gunzip which I need to use, I am not sure) with timestamp on the file name and then... (15 Replies)
I am trying to search the pattern "ARS (11)" and after the LAST pattern, i am trying to open new line and enter text using sed.
My Existing Text file is Users.txtpaul, Paul Smith, Stevn Smiley, REQ000001, ARS (11)
sam, Sam Martin, Stevn Smiley, REQ000001, ARS (11)
mike, Mike Conway, Stevn... (8 Replies)
ENVIROMENT
Linux: Fedora Core release 1 (Yarrow)
iPlanet: iPlanet-WebServer-Enterprise/6.0SP1
Log Path: /usr/iplanet/servers/https-company/logs
I have iPlanet log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I... (7 Replies)
I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also?
I found one command which is to create gz file for the... (4 Replies)
ENVIROMENT
Linux: RHEL 6.4
Log Path: /usr/iplanet/servers/https-company/logs
Log Format: user.log.03-15-2015
I have log4j log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I need a script that will run daily that... (1 Reply)
Hi all i am very new to shell scripting and need some help from you to learn
1)i have some log files that gets generated on daily basis example: i have abc_2017_01_30_1.log ,2017_01_30_2.log like wise so i want to zip this 4 logs which are created on same date into one zip folder.
2)Post zipping... (1 Reply)
Discussion started by: b.saipriyanka
1 Replies
LEARN ABOUT OPENSOLARIS
mmsexplorer
mmsexplorer(1M) System Administration Commands mmsexplorer(1M)NAME
mmsexplorer - generate diagnostic report for Media Management System
SYNOPSIS
mmsexplorer -u [report_name] [num_lines]
DESCRIPTION
The mmsexplorer command creates a diagnostic report of the activities of the Media Managment System (MMS) server configuration and collects
log information. It constructs the diagnostic report from the most recent entries in the MMS log file, MMS database, and MMS trace file.
The MMS is a software interface, consisting of library managers and drive managers, that manages storage resources such as tape libraries,
tape drives, media pools, tape volumes, and the disk resources that emulate tape drives and tape volumes.
By default, mmsexplorer generates a compressed report. Use the -u option to generate an uncompressed file.
To run mmsexplorer, you must become superuser, or assume the Primary Administrator role.
OPTIONS
The following options are supported:
-u
Generates the diagnostic report file in an uncompressed format.
report_name
Specifies the name of the diagnostic report file. The default name and location is:
/tmp/MMSreport.<hostname.YYYYMMDD.HHMMZ>.tar.gz
num_lines
Specifies the number of lines to capture from each file that contributes to the diagnostic report. The default is 1000 lines.
EXAMPLES
Example 1 Creating Diagnostic Report Using Default Values
The following command creates a diagnostic report using all default values. The MMS server is running on a host named x400. This name is
reflected in the name of the diagnostic file.
# mmsexplorer
Report name: /tmp/MMSreport.x4200.20080530.1247CDT.tar.gz
Lines per file: 1000
Output format: tar.gz (default) Use -u for unarchived/uncompressed.
Please wait.............................................
Please wait.............................................
Please wait.............................................
Please wait.............................................
Please wait.............................................
Please wait..
The following files should now be ftp'ed to your support provider as
ftp type binary.
/tmp/MMSreport.x4200.20080530.1247CDT.tar.gz
Example 2 Creating an Uncompressed Diagnostic Report
The following command creates an uncompressed diagnostic report. As in the previous example, the MMS server is running on a host named
x400.
# mmsexplorer
Report name: /tmp/MMSreport.x4200.20080530.1252CDT
Lines per file: 1000
Output format: unarchived/uncompressed
Please wait.............................................
Please wait.............................................
Please wait.............................................
Please wait.............................................
Please wait.............................................
Please wait..
The following files should now be ftp'ed to your support provider as
ftp type binary.
/tmp/MMSreport.x4200.20080530.1252CDT
/tmp/MMSreport.x4200.20080530.1252CDT.database.gz
/tmp/MMSreport.x4200.20080530.1252CDT.trace.tar.gz
EXIT STATUS
0
Success.
!=0
An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsmms |
+-----------------------------+-----------------------------+
|Interface Stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO mmsadm(1M), mmsclient(1M), mmsinit(1M), attributes(5)NOTES
The diagnostic report generated by mmsexplorer can be sent to your Sun authorized service provider or to Sun's technical support, as speci-
fied in your maintenance contract.
SunOS 5.11 29 Jul 2008 mmsexplorer(1M)