Sponsored Content
Full Discussion: smit see comand performed ??
Operating Systems AIX smit see comand performed ?? Post 302551035 by prpkrk on Monday 29th of August 2011 06:14:39 AM
Old 08-29-2011
smit see comand performed ??

i in smit , press F6 ,
smit fs , Change / Show Characteristics of an Enhanced Journaled File System
then F6 to see the comand , how can i see the command performed ??

Code:
 x() {                                                                  │
  │   LIST=                                                                  │#
  │   FLAG=0                                                                 │
  │   for i in "$@"                                                          │
  │   do                                                                     │
  │           case "$i" in                                                   │
  │           Megabytes)      FLAG=1;;                                       │
  │           Gigabytes)      FLAG=2;;                                       │
  │           512bytes)       FLAG=0;;                                       │
  │           quota=all)      LIST="$LIST \"quota=userquota,groupquota\"" ;; 

 quota=no)       LIST="${LIST%\"-a\"} -d quota" ;;              │
  │           size=)          LIST="${LIST%\"-a\"}" ;;                       │#
  │           size=*) case "$FLAG" in                                        │
  │                   1)      LIST="$LIST \"$i\"M"                           │
  │                           FLAG=0;;                                       │
  │                   2)      LIST="$LIST \"$i\"G"                           │
  │                           FLAG=0;;                                       │
  │                   0)      LIST="$LIST \"$i\""                            │
  │                           ;;               
                         ;;                                             │
  │                   esac                                                   │#
  │                   ;;                                                     │
  │           *)      LIST="$LIST \"$i\""                                    │
  │                   ;;                                                     │
  │           esac                                                           │
  │   done                                                                   │
  │   eval /usr/sbin/chfs $LIST                                              │
  │   }                                                                      │
  │   x '512bytes' /tmp


Last edited by pludi; 08-29-2011 at 07:55 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

smit.script

Can someone tell me what the smit.script file does? I'm having a problem with one of my boxes pointing at the wrong webserver. This is the only place I can find the wrong address, but I'm not sure what the file does so I'm afraid to change it. (1 Reply)
Discussion started by: Barb
1 Replies

2. Forum Support Area for Unregistered Users & Account Problems

smit.script

what is the smit.script file and does it ever need to be cleaned up or deleted (0 Replies)
Discussion started by: PamRainwater
0 Replies

3. AIX

Smit logs

Hi everyone, I'm trying to keep my smit logs in other directory diferent than the user's home. I know with -l and -s you can change this settings but I'm wondering if there is any environment value that I can set. It can be done using alias too ... Thanx. (3 Replies)
Discussion started by: mfons
3 Replies

4. AIX

SMIT on Linux

Hi All, I have a Linux system (RHEL 5). I want to install SMIT of AIX on it. Is it possible? if yes, how it can be done? Appreciate any help from you. Amol. (4 Replies)
Discussion started by: Amol21
4 Replies

5. Solaris

Using dd comand

Hello peolple i have to check a tape with de dd comand and redirect the exit dd if=/dev/rmt/0cn ibs=1024k of=/dev/null i need that the exit from that commando go to a log if a do this dd if=/dev/rmt/0cn ibs=1024k of=/dev/null > x.log don`t send me nothing to the log only in the screen. I need... (1 Reply)
Discussion started by: enkei17
1 Replies

6. AIX

Doubts on SMIT

Hi All, Have a few doubts on SMIT. 1. Is SMIT available in seperate packages if it is not installed by default with the AIX ? 2. how to check the smit version.. is there anything of that kind ? 3. what is the effect of smit.cat file ? 4. What are all the files present in /etc/objrepos/... (4 Replies)
Discussion started by: BalajiUthira
4 Replies

7. UNIX for Dummies Questions & Answers

logs of commands performed by users

Hi, when 2 users are logged as root , how can i find witch one had perform witch command? Thanks, (1 Reply)
Discussion started by: prpkrk
1 Replies

8. Shell Programming and Scripting

How to grep the content performed by an User

I want to grep the content performed by an User from a file. Suppose that i have a following file HYD-HMS-2$ ls -lrt -rw-r--r-- 1 sdfrun sdf 31726356 Aug 1 13:04 journal.03.01082012.19.csv I could able to grep the content performed by a user by "sed" command as follows HYD-HMS-2$... (0 Replies)
Discussion started by: duppalav
0 Replies

9. UNIX for Dummies Questions & Answers

System administration tasks performed from a menu driven interface

I need to write a shell script that allows some system-administration tasks to be preformed automatically from a menu-driven interface. Automate the following tasks: • Copy directory tree • Delete files or directories • Output Information But I don't understand the question. What is a "menu... (2 Replies)
Discussion started by: femchi
2 Replies

10. Red Hat

Master logs for all the operations performed on mysql DB

is there any such thing as master logs for all the operations performed on mysql database. thing is i need to find the operations performed on mysql on a linux server running on RHEL 5.7 for the past 2 days. One more thing i found out that the bin logs will be refreshed whenever server goes to... (2 Replies)
Discussion started by: vivek d r
2 Replies
UPSCLI_LIST_START(3)						    NUT Manual						      UPSCLI_LIST_START(3)

NAME
upscli_list_start - begin multi-item retrieval from a UPS SYNOPSIS
#include <upsclient.h> int upscli_list_start(UPSCONN_t *ups, int numq, const char **query) DESCRIPTION
The upscli_list_start() function takes the pointer ups to a UPSCONN_t state structure, and the pointer query to an array of numq query elements. It builds a properly-formatted request from those elements and transmits it to upsd(8). Upon success, the caller must call upscli_list_next(3) to retrieve the elements of the list. Failure to retrieve the list will most likely result in the client getting out of sync with the server due to buffered data. USES
This function implements the "LIST" command in the protocol. As a result, you can use it to request many different things from the server. Some examples are: o LIST UPS o LIST VAR <ups> o LIST RW <ups> o LIST CMD <ups> o LIST ENUM <ups> <var> o LIST RANGE <ups> <var> QUERY FORMATTING
To see the list of variables on a UPS called su700, the protocol command would be LIST VAR su700. To start that list with this function, you would populate query and numq as follows: int numq; const char *query[2]; query[0] = "VAR"; query[1] = "su700"; numq = 2; All escaping of special characters and quoting of elements with spaces are handled for you inside this function. ERROR CHECKING
This function checks the response from upsd(8) against your query. If it is not starting a list, or is starting the wrong type of list, it will return an error code. When this happens, upscli_upserror(3) will return UPSCLI_ERR_PROTOCOL. RETURN VALUE
The upscli_list_start() function returns 0 on success, or -1 if an error occurs. SEE ALSO
upscli_fd(3), upscli_get(3), upscli_readline(3), upscli_sendline(3), upscli_ssl(3), upscli_strerror(3), upscli_upserror(3) Network UPS Tools 05/31/2012 UPSCLI_LIST_START(3)
All times are GMT -4. The time now is 04:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy