≡ Menu

unix server

How to: HP-UX UNIX Backup and Recover Data to Tape Device

Q. One of my responsibilities is backing up UNIX server. How do I backup data under HP-UX UNIX? How do I use mt, fbackup and frecover commands to perform full and incremental backups?
[click to continue…]

Turn on telnet server on Debian Linux

Q. How do I install and turn on telnet server on Debian Linux VPS Server?

A. I don't recommend using telnet at all on VPS or any other Linux / UNIX server. Telnet transfers all data including passwords in clear text format. It is recommended that you use ssh which is installed by default.

Use ssh and connect to remote server called boo.myvps.com, enter:
ssh user@boo.myvps.com
ssh root@boo.myvps.com
ssh root@server-ip-address

In case you still need telnet, type the following two commands (not recommended
# apt-get install telnetd
# /etc/init.d/inetd restart
$ telnet server-ip-address

HP-UX start or stop / restart OpenSSH SSHD service

Q. I’ve HP-UX installed on my HP UX UNIX server. But I’m not able to start or restart the OpenSSH ssh server. How do I stop or restart sshd under HP-UX?
A. HP-UX Secure Shell uses Pluggable Authentication Module for password authentication. Server configuration file is located at /opt/ssh/etc/sshd_config.

HP-UX SSHD System Startup and Shutdown script:

/sbin/init.d/secsh {start|stop}

System startup configuration file


Stop HP UX SSH Service

Type the command:
# /sbin/init.d/secsh stop

Start HP UX SSH Service

Type the command:
# /sbin/init.d/secsh start

Howto find out AIX UNIX RAM size memory from command line

Q. How do I find out the memory size of my AIX UNIX server? Can you tell us the command name to do the same?

A. You need to use bootinfo command to determines and displays various boot information, including boot device type and boot device name.

Command to check RAM in AIX UNIX

The bootinfo command uses the device configuration databases in information searches.

Just type the following command as the root user:
bootinfo -r

It will displays amount of real memory in kilobytes. bootinfo command may not be available in latest AIX UNIX version, try following command:
$ lsattr -El sys0 | grep realmem

svmon command - Captures and analyzes a snapshot of virtual memory

The svmon command displays information about the current state of memory. The displayed information does not constitute a true snapshot of memory, because the svmon command runs at user level with interrupts enabled. To print out global statistics, type:
# svmon -G

Read the man page of svmon for more information.

Solaris UNIX Tape Backup And Recovery With tar And cpio Commands

We have recently brought a new Sun Solaris UNIX server. How do I Backup data and make a recovery for the Solaris OS using tar and tape device?
[click to continue…]