• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1524
  • Last Modified:

AIX 6.1 Missing /usr/local/bin Path and other questions

I have just complete my first AIX 6.1 install and need to restore a number of files from our old server to our new one.

Anyway I found that my new server has a /usr directory but is missing the /local/bin subfolders? Is it ok for me to recreate the folder manually. I noticed on my old server has the owner of the folder listed as bin.

Other questions.
1) Should I restore the crontab from my older server to the new one or is it better to recreate a fresh crontab.

2) My old server used a program called NetRC to allow for automatic FTp login to a remote server. Is this program natice to AIX or something I need to download or can it be restored from my old server to new server via backup?
0
compdigit44
Asked:
compdigit44
  • 6
  • 5
1 Solution
 
woolmilkporcCommented:
You can create /usr/local/bin, no problem.

mkdir -p /usr/local/bin

It should be owned by root and have permissions 755 (drwxr-xr-x).

Giving it to "bin" is not wrong, however, just uncommon.

You can restore the crontabs, they're compatible

Location is /var/spool/cron/crontabs/userid

Just take care to restart cron after manipulating a crontab with other tools than "crontab". Do this by simply killing cron, it will come back automatically due to "respawn" in inittab.

I'm not aware of a program "NetRC". Do you mean the command file ~/.netrc ?

This file is supported by FTP under AIX, and you can copy it without worries.

wmp
0
 
compdigit44Author Commented:
Sorry for the confusion I ment .Netrc

Also what is emacs???
0
 
woolmilkporcCommented:
I think you meant ".netrc". This is just a file containing FTP commands and macros, suitable for automating FTP transfers.

The format of this file is compatible across AIX and FTP versions, so you can reuse it.

Here is the format description:
http://pic.dhe.ibm.com/infocenter/aix/v6r1/topic/com.ibm.aix.files/doc/aixfiles/netrc.htm#fk8sara

emacs is a sophisticated text editor. It's  on the AIX toolbox.

But I rather think you mean the "emacs" option of the Korn shell.
If this option is set you can use emacs-style keys for command line editing.
Contrast this with the "vi" option, which allows for using vi-style keys and key sequences for the same purpose.

This is about the Emacs Editing Mode in Korn shell:
http://docstore.mik.ua/orelly/unix/ksh/ch02_03.htm

... and this is the same for VI mode:
http://docstore.mik.ua/orelly/unix/ksh/ch02_04.htm
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
compdigit44Author Commented:
Does emacs have to be installed using the expansion DVD?
0
 
compdigit44Author Commented:
Is there an easy way to see how much physical disk space is availible vs how much has been assigned to each file system
0
 
woolmilkporcCommented:
>> Does emacs have to be installed ... <<

If you plan to use the emacs editor you must install it from the Toolbox CD (not the Expansion DVD), or get it from here:
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/emacs/emacs-nox-21.3-1.aix5.1.ppc.rpm

(Don't worry about "aix5.1" in the file name. It works under AIX 6.1 as well).

On the other hand, if you just want to use emacs-style command line editing in ksh there is no need to install anything. It's already built into ksh.

>> how much physical disk space is availible<<

You can see it on a per-volume-group basis with

lsvg vgname

next to "TOTAL PPs:"

The same command shows the total assigned disk space (again per volume group) next to "USED PPs:".

>> how much has been assigned to each file system <<

df -m

as usual.
0
 
compdigit44Author Commented:
I restore the crontab from my old server to new one then rebooted but when I do  crontab -l none of my jobs are listed
0
 
woolmilkporcCommented:
Did you place the crontab into this directory:

/var/spool/cron/crontabs

with your username as the filename, e.g.

/var/spool/cron/crontabs/root

with your user as the owner of the file?

?
0
 
compdigit44Author Commented:
yes I restored the entire /var/spool/cron/crontabs path
0
 
woolmilkporcCommented:
ls -l /var/spool/cron/crontabs

Do you see valid user/group names or just numbers in the 3./4. columns?
0
 
compdigit44Author Commented:
I found my problem. my restore did overwrite the files. I ran the job again and it work...

:-)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now