Sponsored Content
Operating Systems AIX script which take a snap shot of Topas Post 302218469 by bakunin on Friday 25th of July 2008 08:33:34 AM
Old 07-25-2008
True, nmon is the way to go: there is a switch which puts nmon in "daemon mode", where it writes its output to a logfile. The sampling interval is configurable. This output can be analysed with "nmon analyzer", another free tool downloadable on the IBM freeware webpage for AIX. Unfortunately (to me, at least) the analyzer part is basically an "Excel" application and "Excel" only runs on some outlandish OS which i have not installed on any of my machines.

Still, the point zaxxon raised holds: it is always a good idea to at least give the solution a try and invest at least some effort into solving the issue before coming here asking for advice. We have banned homework questions for a reason and similarly we are not all too fond of helping people unwilling to help themselves.

I hope this helps.

bakunin
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

dump .snap question

When using dump, a .snap directory is created in the partition being dumped. I have searched for the reason this directory is created but haven't found any information on its purpose. I have monitored the .snap directory during a dump and I have never seen any files appear in during the dump so... (3 Replies)
Discussion started by: thumper
3 Replies

2. Shell Programming and Scripting

My first shot at variables

Okay, so im setting up a script to start my internet dependent scripts once I am connected to the net. It got complicated because of the different networks I frequent but it goes something like this: n=1 iwconfig wlan0 > wireless.txt m= grep -c MGHS /home/jake/Scripts/wireless.txt o= grep -c... (7 Replies)
Discussion started by: arcnsparc
7 Replies

3. UNIX for Dummies Questions & Answers

snap file for other system?

Hi all For AIX we can snap -gc gather the info how abt other systems is solaris and linux? thanks in advance jiajin (0 Replies)
Discussion started by: lijiajin
0 Replies

4. Red Hat

SNAP EDR issue.

Hi, Does anybody use Enterprise Data Replicator for Network Attached Storage replication. If you do, Do you get the following message in replication logs. "Replication Source file agent No heart beats from the remote target agent on snap01 for 300 seconds: Assuming connection failure" ... (1 Reply)
Discussion started by: uxadmin007
1 Replies

5. AIX

Unable to execute snap command

Hi Friends, I am not able to execute snap -a command in AIX 6 system. Could you please let me know how to make work this command and Path to be set. Thanks in Advance Siva. (4 Replies)
Discussion started by: sivakumarl
4 Replies

6. AIX

Need to grep two lines from the topas command through a Korn Script

I need to grep two lines from topas command in one of my AIX server. Topas Monitor for host: semas001 EVENTS/QUEUES FILE/TTY Wed Jan 29 10:12:06 2014 Interval: 2 Cswitch 764 Readch 4473.1K Syscall 5166 ... (4 Replies)
Discussion started by: rpm120
4 Replies

7. Ubuntu

Ubuntu snap deduplication

Hi, I think the ubuntu snap is great idea. However the fact that it may contain duplications has two disadvantages. 1) eating more space in the storage. 2) eating more space in the internal memory (RAM), it will load the same library more than once to the memory. Now the solution for this is... (0 Replies)
Discussion started by: programAngel
0 Replies

8. AIX

How to get data from SNAP file?

Hi Everyone, Does anyone know if can access /etc/environment from SNAP file to check the time zone from the snap file Objective: The timezone on the server was changed by someone to another timezone, so I want to check what is the old timezone was ? I have an old SNAP file. Does... (4 Replies)
Discussion started by: filosophizer
4 Replies
scf_snapshot_create(3SCF)												 scf_snapshot_create(3SCF)

NAME
scf_snapshot_create, scf_snapshot_handle, scf_snapshot_destroy, scf_snapshot_get_parent, scf_snapshot_get_name, scf_snapshot_update, scf_instance_get_snapshot - create and manipulate snapshot handles and snapshots in the Service Configuration Facility SYNOPSIS
cc [ flag... ] file... -lscf [ library... ] #include <libscf.h> scf_snapshot_t *scf_snapshot_create(scf_handle_t *handle); scf_handle_t *scf_snapshot_handle(scf_snapshot_t *snap); void scf_snapshot_destroy(scf_snapshot_t *snap); int scf_snapshot_get_parent(const scf_snapshot_t *snap, scf_instance_t *inst); ssize_t scf_snapshot_get_name(const scf_snapshot_t *snap, char *buf, size_t size); int scf_snapshot_update(scf_snapshot_t *snap); int scf_instance_get_snapshot(const scf_instance_t *inst, const char *name, scf_snapshot_t *snap); A snapshot is an unchanging picture of the full set of property groups associated with an instance. Snapshots are automatically created and managed by the Solaris Management Facility. See smf(5). A snapshot consists of a set of snaplevels, each of which holds copies of the property groups associated with an instance or service in the resolution path of the base instance. Typically, there is one snaplevel for the instance and one for the instance's parent service. The scf_snapshot_create() function allocates and initializes a new scf_snapshot_t bound to handle. The scf_snapshot_destroy() function destroys and frees snap. The scf_snapshot_handle() function retrieves the handle to which snap is bound. The scf_snapshot_get_parent() function sets inst to the parent of the snapshot to which snap is set. The scf_snapshot_get_name() function retrieves the name of the snapshot to which snap is set. The scf_snapshot_update() function reattaches snap to the latest version of the snapshot to which snap is set. The scf_instance_get_snapshot() function sets snap to the snapshot specified by name in the instance specified by inst. To walk all of the snapshots, see scf_iter_instance_snapshots(3SCF). To access the snaplevels of a snapshot, see scf_snapshot_get_base_snaplevel(3SCF). Upon successful completion, scf_snapshot_create() returns a new scf_snapshot_t. Otherwise, it returns NULL. Upon successful completion, scf_snapshot_handle() returns the handle to which snap is bound. Otherwise, it returns NULL. Upon successful completion, scf_snapshot_get_name() returns the length of the string written, not including the terminating null byte. Oth- erwise, it returns NULL. The scf_snapshot_update() function returns 1 if the snapshot was updated, 0 if the snapshot had not been updated, and -1 on failure. Upon successful completion, scf_snapshot_get_parent() and scf_instance_get_snapshot() return 0. Otherwise, they return -1. The scf_snapshot_create() function will fail if: SCF_ERROR_INVALID_ARGUMENT The handle argument is NULL. SCF_ERROR_NO_MEMORY There is not enough memory to allocate an scf_snapshot_t. SCF_ERROR_NO_RESOURCES The server does not have adequate resources for a new instance handle. The scf_snapshot_handle() function will fail if: SCF_ERROR_HANDLE_DESTROYED The handle associated with snap has been destroyed. The scf_snapshot_get_name() and scf_snapshot_get_parent() functions will fail if: SCF_ERROR_DELETED The snapshot has been deleted. SCF_ERROR_NOT_SET The snapshot is not set. SCF_ERROR_NOT_BOUND The handle is not bound. SCF_ERROR_CONNECTION_BROKEN The connection to the repository was lost. The scf_snapshot_update() function will fail if: SCF_ERROR_DELETED An ancestor of the snapshot specified by snap has been deleted. SCF_ERROR_NOT_SET The snapshot specified by snap is not set. SCF_ERROR_NOT_BOUND The handle is not bound. SCF_ERROR_CONNECTION_BROKEN The connection to the repository was lost. SCF_ERROR_INVALID_ARGUMENT The snap argument refers to an invalid scf_snapshot_t. The scf_instance_get_snapshot() function will fail if: SCF_ERROR_DELETED The instance has been deleted. SCF_ERROR_NOT_SET The instance is not set. SCF_ERROR_NOT_FOUND The snapshot specified by name was not found. SCF_ERROR_INVALID_ARGUMENT The value of the name argument is not a valid snapshot name. SCF_ERROR_HANDLE_MISMATCH The instance and snapshot are not derived from the same handle. SCF_ERROR_NOT_BOUND The handle is not bound. SCF_ERROR_CONNECTION_BROKEN The connection to the repository was lost. The scf_error(3SCF) function can be used to retrieve the error value. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ libscf(3LIB), scf_error(3SCF), scf_iter_instance_snapshots(3SCF), scf_snapshot_get_base_snaplevel(3SCF), attributes(5), smf(5) 28 Sep 2005 scf_snapshot_create(3SCF)
All times are GMT -4. The time now is 03:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy