Sponsored Content
Operating Systems AIX Unable to execute snap command Post 302642949 by sivakumarl on Friday 18th of May 2012 08:55:11 AM
Old 05-18-2012
I am getting ksh: snap: not found
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

unable to execute a .SH file

this is (11 Replies)
Discussion started by: angelina
11 Replies

2. Shell Programming and Scripting

unable to execute background job

I am unable to execute the below command in background. Plz suggest. #> ./test input >out & 913618 + Stopped (SIGTTIN) ./test input >out & Suresh (1 Reply)
Discussion started by: suresh3566
1 Replies

3. Solaris

Unable to execute commands using rsh in Solaris 9 and 10.

Unable to execute commands using rsh in Solaris 9 and 10. When I execute this command " rsh -n 172.16.67.91 ls -l " I am getting this error message. ::ffff:172.16.67.91: Connection refused Please guide me how to enable rsh. Thanks & Regards Durgaprasad (1 Reply)
Discussion started by: durgaprasadr13
1 Replies

4. UNIX for Advanced & Expert Users

Unable to execute a function using trap

I have a script A which calls script B. I wrote a function in script A to be executed when Kill command is issued for script A and I invoke that function using the trap command.The function identifies all child process running under script A (in this case script B) and kills the child process and... (3 Replies)
Discussion started by: smohandass
3 Replies

5. AIX

Unable to execute varyonvg during importvg

Hello, On Aix 5.3, during importvg, the varyonvg fails: importvg -y vgtest hdisk20 0516-013 varyonvg: The volume group cannot be varied on because there are no good copies of the descriptor area. When i use manually the command varyonvg -u -b -t vgtest to force, the vg can... (3 Replies)
Discussion started by: dantares
3 Replies

6. UNIX for Dummies Questions & Answers

unable to execute while loop

Hi everyone. I wanted to print numbers from 1 to 5 in reverse order. For this I used the following code: #!/bin/bash x=5 while do echo $x x=`expr $x - 1` echo "" done echo "" Well but on compiling the above code, it gives the following error. ... (3 Replies)
Discussion started by: grc
3 Replies

7. UNIX for Dummies Questions & Answers

Unable to execute the complete cmd - using find command

Hi, I'm unable to execute the below command completely ; it's not allowing me to type the complete command. It is allowing till "xargs" and i cannot even press enter after that. I'm using Solaris. Let me know if anything needs to be added so as to execute the complete command. Appreciate... (12 Replies)
Discussion started by: venkatesht
12 Replies

8. Shell Programming and Scripting

Unable to execute Stored Procedure from CRON

Hi, I am very new to this environment - I hope this is the right platform to discuss my issue: I created a CRON job to run a Stored Procedure from our database - Sybase. Within the Stored Procedure there is a TRUNCATE table and CREATE table function. the CRON job fails to run with... (2 Replies)
Discussion started by: pizzazzz
2 Replies

9. Solaris

Unable to execute any comman on a file

Hello everyone, I'm having a problem with a file. I can run any command on it : cp, mv, chmod,ln,more... Thanks for your help (13 Replies)
Discussion started by: adilyos
13 Replies

10. Shell Programming and Scripting

Unable to execute glance from cronjob

Hi I am writing a script to get the CPU and memory utilization periodically from glance command. Wrote a script which consists of below two lines Script name : Utilization.sh #!/bin/sh glance -iterations 1 | sed -n '/Util/p/'| awk '!/Disk/'| awk '!/Swap/' >> file.txt I am able to run the... (5 Replies)
Discussion started by: Shravani
5 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 01:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy