Register Here Now to Share your IT skills or Sell Your Products Online FREE in our NEW forum!

Click on "Create an account" below to register



Get working production environment server, computer, network, IT proven Steps, Guides! Register Here Now!

IT Key Concepts

Statistics

Content View Hits : 41753

IT Tech Gadget Banners

I presume you have a website of your own to do eCommerce or Selling products online, etc. The main important live line is traffic to your website regardless of what your purpose is for your website. You can see this link below which will help you increase your website visitors Click Here to see for yourself & read more
More HPUX Server commands E-mail
(0 votes, average 0 out of 5)
User Rating: / 0
PoorBest 
Written by UltraTWO   


Read more IT articles here

More HPUX Server commands

 To set up a new disk for use:
/usr/sbin/newfs -F FStype /dev/rdsk/c0t3d0
        By default, short or long filenames will be used based on
        whatever the root filesystem is.
/sbin/mount /dev/dsk/c0t3d0 /filesystem

Add it to /etc/fstab for automatic mounting during every boot.
With LVM
/usr/sbin/pv*   
/usr/sbin/lv*
/usr/sbin/vg*
/dev/[vol_grp]/[log_vol]        - block device
/dev/[vol_grp]/r[log_vol]       - character device
i.e.    /dev/vg01/lvol3
        /dev/vg01/rlvol3
        /dev/scratchvg/scratch
        /dev/scratchvg/rscratch


To set up a new disk for use with LVM:

/usr/sbin/pvcreate /dev/rdsk/c0t4d0
/usr/sbin/vgextend /dev/vg01 /dev/dsk/c0t4d0
/usr/sbin/lvcreate -n test -L 600 /dev/vg01     # creates 600Mb volume
/usr/sbin/newfs -F hfs /dev/vg01/test
/usr/bin/mkdir /test
/sbin/mount /dev/vg01/test /test

Add it to /etc/fstab for automatic mounting during every boot.
/etc/fstab
 
 

Fields are: device special file, mount point, FS type, options, backup frequency (unused), fsck pass number.

Root volume must have pass number 1 and other volumes must have > 1. Allowed FS types are: swap, swapfs, ignore, hfs, vxfs, cdfs, nfs, or lofs.

# begin /etc/fstab      
/dev/vg00/lvol1 / hfs defaults 0 1
/dev/vg00/lvol3 ... swap defaults 0 0
/dev/vg00/lvol4 /opt hfs defaults 0 2
/dev/vg00/lvol5 /tmp hfs defaults 0 2
/dev/vg00/lvol6 /usr hfs defaults 0 2
/dev/vg00/lvol7 /var hfs defaults 0 2
/dev/vg01/scratch /scratch hfs rw,suid 0 2
/dev/vg01/home2 /home hfs rw,suid,quota 0 2
/dev/vg01/pub /pub hfs rw,suid 0 2
/dev/dsk/c1t2d0 /lcdrom10 cdfs ro,suid 0 0
/dev/vg01/www /usr/www hfs rw,suid 0 2
derf.cso.uiuc.edu:/home /derf/home nfs rw,suid 0 0
# end
NFS filesystems
/etc/exports
/usr/sbin/exportfs
/etc/rc.config.d/nfsconf
/sbin/init.d/nfs.server start
Starting and stopping HPUX
Booting
ESC to interrupt boot sequence
[system will do a search for bootable devices]

Device Selection        Device Path             Device Type and Utilities

P0                      scsi.6.0                QUANTUM PD210S
P1                      scsi.5.0                QUANTUM PD210S
P2                      scsi.4.0 DDS_tape_drive_identifier
P3                      scsi.3.0                TOSHIBA CD-ROM DRIVE:XM
P4                      lan.123456-789abc       homebase

       b) Boot from specified device
       s) Search for bootable devices
       a) Enter boot administration mode
       x) Exit and continue boot sequence
       ?)  Help

        Enter command:
Enter command: b p0 isl
[whir buzz]
ISL> hpux -is boot
[OR]
Enter command: b p3
Shutting down
/sbin/shutdown -r -y now
/sbin/shutdown -h -y now
/sbin/shutdown -y now
System V startup scripts
/usr/newconfig
/sbin/rc
/sbin/rc?.d/
/sbin/init.d/
/etc/rc.config.d/
Run levels:
s single user
2 multi-user; no NFS server capabilities
3 multi-user with NFS server
4 same as 3, but with HP VUE
who -r gives current run level
/etc/inittab
        
to change runlevels:
/sbin/shutdown -y 0     # to go to single user state
/sbin/init      # bring the system up in the new runlevel
Printing
Use /usr/sbin/sam to add/remove/configure printers if possible. If not, /usr/sbin/lpadmin would be a good command to read about. There is quite a bit of help in the HP-UX System Administration Tasks manual (available on LROM).

  Read more IT articles here

Add comment

No Spamming is Allow Here! Thanks! All comments posted will be moderated first before being publish here.


Security code
Refresh

Search ComputerServerNetwork.com and quickly find the IT steps and guides you need!

WebComputerServerNetwork.com


ComputerServerNetwork.com All Rights Reserved 2010.
Copying of ComputerServerNetwork.com contents is strictly prohibited.