Sponsored Content
Special Forums Cybersecurity What command or script to capture a system snapshot? Post 302272096 by cjcox on Monday 29th of December 2008 05:40:55 PM
Old 12-29-2008
It varies from *ix to *ix. Although not complete, you can look at:

Rosetta Stone for Unix

Some fairly common things are things like:

uname -a
df -k (bdf on HPUX)
ifconfig -a

Things like memory and processor vary greatly.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Trouble with tee command to capture script outputs

function GetInput { print -n "Input" read input export INPUT=$input } export COMMAND="GetInput" $COMMAND echo "$INPUT" $COMMAND | tee -a Log.log echo "$INPUT" The first one without "tee" works fine. echo "$INPUT" displays the values I type in for input. The second... (5 Replies)
Discussion started by: muthubharadwaj
5 Replies

2. Shell Programming and Scripting

[Perl] Capture system call error message.

Hi, I googled a bit, but could not find the answer to my problem. But I am sure it is a common issue. I have this code: #!/bin/perl -w #-d use strict; sub remsh_test() { my $host = $_; printf "\n----\n\n"; printf "remsh to $host with system call\n"; my $result = system... (3 Replies)
Discussion started by: ejdv
3 Replies

3. Solaris

fssnap error :snapshot error: File system could not be write locked

Hi Guys. This is part of my filesystem structure : Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 47G 5.2G 42G 12% / /devices 0K 0K 0K 0% /devices ctfs 0K 0K 0K 0% ... (2 Replies)
Discussion started by: aggadtech08
2 Replies

4. Shell Programming and Scripting

How to call the System command twice in the same perl script...

Hello experts, I have a perl script which looks for the ARGV and then loads the data as per it. Example. #Checking the server to connect if ($ARGV eq 'QA') { $ENV{"ORACLE_HOME"} = "/oracle/product/11.2.0"; $ENV{"PATH"} = "$ENV{'PATH'}:/oracle/product/11.2.0/bin"; ... (1 Reply)
Discussion started by: msrahman
1 Replies

5. Shell Programming and Scripting

Capture IP and command type in linux script

hi guys, is there any way to capture the ip address of users who log-in to linux then capture the command executed together with the time and date? example output 192.1.1.1 : ls -ltr Aug 6 16:38:40thanks in advance. (2 Replies)
Discussion started by: d3xt3r
2 Replies

6. Shell Programming and Scripting

How to write bash script for lvm snapshot?

Hi Team I am trying to put together a nice small script to mount my lvm snapshot Here are my objectives 1 Check whether snapshot is currently mounted. If so echo umount snapshot and exit from the script. 2 If it's not mounting, check whether the mount point exist, If so, create lvm... (0 Replies)
Discussion started by: fugeulu
0 Replies

7. Shell Programming and Scripting

How to capture system() function output in variable

How to capture system() function output in awk variable and the print that awk variable..... (8 Replies)
Discussion started by: bharat1211
8 Replies

8. Ubuntu

Create a CD with snapshot of the system after install and configuration

Hello folks, I pretend install Lubuntu 16.04 LTS in pc for any employer use this pc! I think create an user with, only, permission to read and write, 770. This is the best scenario? I think create this user through terminal, because I pretend create a script, and I don't where wizard has... (0 Replies)
Discussion started by: enodev
0 Replies

9. Shell Programming and Scripting

Capture std out snapshot after 15 seconds

I have a program that scans and updates its results to std out every second. I would like to capture its output for further processing, but there is a catch. I would like to capture a snapshot after about 15 seconds as the results become more accurate and close the program. Obviously I can simply... (4 Replies)
Discussion started by: Riker1204
4 Replies

10. Shell Programming and Scripting

Need command to capture word from shell script and send email

Hello Experts, Greeting to all of you. I have a requirement, that we have a shell script status.sh that check the status of server and server status shows as status.sh Enterprise Server - Running Admin Server - Shutdown Requirement is like whenever the output shows shutdown it should... (2 Replies)
Discussion started by: aks_1902
2 Replies
fssnap(1M)                                                System Administration Commands                                                fssnap(1M)

NAME
fssnap - create temporary snapshots of a file system SYNOPSIS
fssnap [-F FSType] [-V] -o special_options /mount/point fssnap -d [-F FSType] [-V] /mount/point | dev fssnap -i [-F FSType] [-V] [-o special_options] [/mount/point | dev] DESCRIPTION
The fssnap command creates a stable, read-only snapshot of a file system when given either an active mount point or a special device con- taining a mounted file system, as in the first form of the synopsis. A snapshot is a temporary image of a file system intended for backup operations. While the snapshot file system is stable and consistent, an application updating files when the snapshot is created might leave these files in an internally inconsistent, truncated, or otherwise unusable state. In such a case, the snapshot will contain these partially written or corrupted files. It is a good idea to ensure active applications are suspended or checkpointed and their associated files are also consis- tent during snapshot creation. File access times are not updated while the snapshot is being created. A path to the virtual device that contains this snapshot is printed to standard output when a snapshot is created. OPTIONS
The following options are supported: -d Deletes the snapshot associated with the given file system. -F FSType Specifies the file system type to be used. The FSType should either be specified here or be determined by matching the block special device with an entry in the /etc/vfstab table, or by consulting /etc/default/fs. -i Displays the state of any given FSType snapshot. If a mount-point or device is not given, a list of all snapshots on the system is displayed. When a mount-point or device is specified, detailed information is provided for the specified file system snapshot by default. The format and meaning of this information is file-system dependent. See the FSType-specific fssnap man page for details. -o special_options See the FSType-specific man page for fssnap. -V Echoes the complete command line, but does not execute the command. OPERANDS
The following operands are supported: /mount/point The directory where the file system resides. EXAMPLES
See FSType-specific man pages for examples. EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. FILES
/etc/vfstab Specifies file system type. /etc/default/fs Specifies the default local file system type. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
fssnap_ufs(1M), attributes(5) NOTES
This command might not be supported for all FSTypes. SunOS 5.10 11 Aug 2004 fssnap(1M)
All times are GMT -4. The time now is 04:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy