This gives a prompt that has the hostname followed by the current directory, ending in the # (useful for root logins).
Networking
netstat -a <--ports netstat -i <--interfaces netstat -r <--routing table netstat -rv <--routing table and subnet mask
lanscan - provides hardware information about the nics in the server lanadmin - menu driven interface to administer lan nics lanadmin -x 0 bypass menu and show lan driver specific options for nic with id 0 lanadmin -X 100FD 0 - bypass menu and set nic at id 0 to 100 MBS, Full Duplex
ioscan -fnkC lan - shows ioscan information for device type "lan"
lanscan -i|awk '{print $1}'|xargs -i ifconfig {} -> does an ifconfig on all defined interfaces on that server
Changing the IP Address and Subnet mask:
set_parms ip_address
Then supply ip address and subnet mask when prompted. This process will require a reboot.
Changing the Default Gateway
Command
Description
cancel
deletes print jobs from queue
hppi
jet admin
ls -d -o file
prints a file
lpadmin
lpsched -v
lpstat
lists jobs in queue. -s -t
pr .profile | lp -n3
prints
pr -o10 -l64 -F -h
| lp
prints using margins of 10, page length of 64, header on each page
cd rc.config.d
vi netconf
Network Time Protocol (NTP)
ntpq -p --> lists ntp peers and their time sync status ntpq -p --> lists time sync status with that server (slightly different detail than ntpq -p)
/etc/ntp.conf --> configuration file Changes to the configuration require ntp daemon (xntpd) be stopped and restarted (restart is not recognized):
armdsp -a va7400 <-- real time display of the disk array armmgr -D va7400 HPA6189A00SG218H0024 armdiscover /opt/sanmgr/commandview/client/sbin --> Tells us the serial number armhost -d armhost -d 50060b000014e313 00SG218J0024 ioscan -fnc disk | more
cvui - creates luns
Choose storage array
Create LUN
Find last LUN
Create with new lun number
View existing luns
Process to export disk configuration to a file:
sam --> actions-->export
volume group name --> mapfile name
Fibre Channel Devices
ioscan -fknC fc <-- Lists fibre channel adapters.
To identify the devices:
ls -l /dev/fc*
fcmsutil - utility for fibre channel operations fcmsutil /dev/
Procedure to run fcmsutil on a fibre channel: ioscan -fnC disk|more --> Identify hw path of fibre channel adapter ioscan -fnH 1/0/0/0 --> Identify device of fibre channel adapter
or ls /dev/fc* on older adapters (arbitrated loop)
fcmsutil /dev/fcms2 stat --> fcmsutil that shows status of fibre channel adapter
HP-UX is a hardware path based operating system. When it boots up it does a hardware detection. It then compares the hardware that it detects with the hardware that is listed in /etc/ioconfig. If new hardware is detected, it is assigned the next available configuration information in the proper hardware path.
rmsf - remove special files insf - install special files
insf -C disk -e <-- This command will re-install all of the device files for the class "disk"
lsdev <-- Lists devices and drivers in the system
ioscan <-- searches for all devices and displays their hardware path ioscan -fnC disk <-- searches for all devices of class (C) disk ioscan -fnH <-- searches for a LUN
last 2 digits of hardware path in the LUN in octal (1/12/0/0.1.23)
Disk Devices
A disk device will have a name in the following format: c#t#d#
c# is the card number t# is the target number d# is the LUN - this is normally 0 unless RAID is being utilized
scsictl -a /dev/rdsk/c?t?d? <-- display control parameter information about the disk device scsictl -a -m queue_depth=4 -m queue_depth /dev/rdsk/c?t?d? <-- sets the queue depth
CD-ROM Devices
nohup /usr/sbin/pfs_mountd & - starts process nohup /usr/sbin/pfds & - starts process
Please find our other blogs which related to technical and devotional. We are a team grabing information from technical support forms where many issues solved by real time experianced people in the support forums. most of the issues are fixed by our best fallowers. Our team is working in top MNC companies located in all over India in different technolagies, here we share real time issues and help documents. like Troubleshooting steps, documentation, whitepapers, SOP's and many more, .
Any one can contribute here with your real time issues, though it help to others to find and fix before they fight with support folks.