On server “A”
1.Open “sam ->Printers and Plotters->LP Spooler-> Save/Restore Spooler Configuration”
2.Go to “Actions”
3.Click on ‘Save Spooler Configuration’
4.Exit out of SAM
5.tar cvf /tmp/sam.tar /var/sam/lp
6.Transfer the sam.tar file to system B:/tmp.
On server “B”
1.tar xvf /tmp/sam.tar
2.You may need to change the permissions and ownership of these files. To do that run:
chmod -R 755 /var/sam/lp/* ; chown -R lp:bin /var/sam/lp/*
3.Open “sam ->Printers and Plotters->LP Spooler-> Save/Restore Spooler Configuration”
4.Go to “Actions”
5.Click on ‘Restore Spooler Configuration’
6.Don’t forget to restart the scheduler
7.Exit out of SAM
Run "catman" to build the "/usr/share/lib/whatis" file. Then you can run the "man –k [some command] to see what manual sections the command is in.
For example, if you run "man -k mkdir", it will show that "mkdir" is in sections 1 and 2.
To see section 2 you would run "man 2 mkdir".
If you lost the root password on system running HP-UX, perform the following steps:
Ask all other users to log off the workstation.
Type the command sync four times to clear the buffer cache.
If you have installed sudo, or if you have enabled a user other than root to reboot the machine, reboot your workstation.
If you can not reboot the machine, press the reset button to force a reboot. Don’t press the reset button unless you can’t get the machine to reboot any other way.
During the reboot, press the ESC key to interrupt the reboot.
This will bring you to the BOOT_ADMIN prompt. From here, boot to the ISL with the command boot scsi.X.0 isl where scsi.X.0 is the SCSI address of your internal disk drive. (To find that address, use the path command at the BOOT_ADMIN prompt.)
Now you are at the ISL prompt. Boot up into single user mode with the command hpux -is (or if you are still running 9.X use the command hpux -is boot disk(scsi.X;0)/hp-ux, where again scsi.X.0 is the SCSI address of your internal disk drive.)
After the machine has come up in single user mode, you can try to set the root password by running the passwd command. If the program will run, you can enter the new password now. Reboot again (command reboot) and you are done.
If the passwd program will not run in the single user mode, manually edit the /etc/passwd file (be careful!) and take out the root password (second field), leaving the 2 colons side by side.
Now, quickly reboot the machine (reboot) and log in as root. No password is required. Immediately run the passwd command and set a password for root.
It’s important to minimize the time between removing the root password from the /etc/passwd file and resetting the password with the passwd command.
During this time, your system is wide open.
In HP-UX 11i v3, when you issue smh (new sam command), it will bring you the new firefox smh browser.
If you wish to use back the old terminal sam, issue the command below.
#unset DISPLAY ; /usr/sbin/smh
Note that this will not change permanently.
Assuming that you have a HBA (Fiber Channel) Card installed on your server.
Issue the command ioscan -nfC FC
Get the device path for the desire FC.
Issue the command
Look for the line below.
N_Port Port WWN:
That will be your WWN for that fiber port. Good luck!
To change, edit the following file below
After that you will need to restart the services.