Visit Our UNIX and Linux User Community

smit see comand performed ??

Thread Tools Search this Thread
Operating Systems AIX smit see comand performed ??
# 1  
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 ??

 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..
# 2  
Old 08-29-2011
Just select the file system you intend to view/change and simply press enter that's it.

Then you can view smit.log
# tail -f smit.log

# 3  
Old 08-29-2011
that doesn't show me the command that i had executed?
# 4  
Old 08-29-2011
It will not show the command while execution ,It will Just show result of command's execution either it is successful or not.
If you mean to show command's output from smitty itself while the command is executing there is state on top of smitty to show command result.
chfs command is not an interactive command which means no intercation between the user and command in real time.
which is behind smit fs fast_path
# 5  
Old 08-29-2011

smitty has sometimes weird ways to do things (nobody would probably set group/usr quotas to a filesystem this way but if you copy the code into a script, it will do exactly what you just have done).

If you want to know how to do it manually please read this
and please please never ever set quotas for /tmp - you will render applications inoperative and you will have a hard time finding the root cause - it makes more sense to clean it up frequently using appropriate scheduled housekeeping scripts.

# 6  
Old 08-30-2011
the command is listed in ~/smit.script

Previous Thread | Next Thread
Test Your Knowledge in Computers #799
Difficulty: Medium
In digital numeral systems, the radix is the number of unique digits minus 1.
True or False?

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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 file ? 4. What are all the files present in /etc/objrepos/... (4 Replies)
Discussion started by: BalajiUthira
4 Replies

6. 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

7. 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

8. 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

9. Forum Support Area for Unregistered Users & Account Problems


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

10. UNIX for Dummies Questions & Answers


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

Featured Tech Videos