Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)

Monday, July 27, 2015

पांडुरंग तु, माझी विठू माऊली ॥

पांडुरंग तु, माझी विठू माऊली ॥

गेला एक महिना प्रयत्न करत होतो माऊलीवर काही लिहायचं, पण जमतंच नव्हतं अन् माझी-मित्रांची इच्छा हिच की आषाढी एकादशी च्या दिवसापर्यंत काही लिहावं....

बस्स माऊलीला आर्त हाक दिली अन् माऊलीच्या कृपेनेच हे काहीतरी लिहिलं... सो थॅंक्यु माऊली ॥

टाळ तु, भजनातली टाळी तु
वारकर्यांच्या ओठातील ओळी तु
कधी भेटसी तु, होऊनी अभंग
कधी भेटसी , होऊन कवाली

पांडुरंग तु, माझी विठू माऊली ॥

बाप तु, आईची ममता तु
सुर्य तु, चंद्र शितलता तु
कधी भेटसी तु, होऊन ऊन
कधी भेटसी, होऊन सावली

पांडुरंग तु, माझी विठू माऊली ॥

धन्य तु, धन-धान्य तु
पिक तु, पाऊसपाणी तु
सोडी सारं तुझ्या विश्वासावर
तुच या संसाराचा रखवाली

पांडुरंग तु, माझी विठू माऊली ॥

तुझ्या चरणी अमृत, कुशीत स्वर्ग
घेईन नाम तुझे, करूनी देहाचा मृदंग
तुझ्या एका दर्शनासाठी देवा
आतुरलेय या डोळ्यांची बाहुली

पांडुरंग तु, माझी विठू माऊली ॥

भावनांना या, तुझ्या अश्वाचा वेग दे
शब्दांना माझ्या, विठ्ठला तु जाग दे
काय लिहणार तुझ्या स्तुतीत कोणी
बस हात जोडून उभा हा मवाली

पांडुरंग तु, माझी विठू माऊली ॥


‪#‎किरण_जाधव‬ (२५_०७_२०१५)

Monday, July 20, 2015

ntpdate: no server suitable for synchronization found + HPUX

ntpdate[9523]: no server suitable for synchronization found

While starting the ntp service, we were getting below error:

tigersrv:/home/root> /sbin/init.d/xntpd start
16 Jul 09:17:12 ntpdate[9523]: no server suitable for synchronization found

solution:

1.

tigersrv:/home/root> ntpq -p
     remote           refid      st t when poll reach   delay   offset    disp
=========================================================================
 NTP IP      0.0.0.0         16 -    -   64    0     0.00    0.000 16000.0

The “refid” should reflect some value.


2. Try to update the date through ntp server

tigersrv:/home/root> ntpdate -d NTP IP
transmit(NTP IP)
transmit(NTP IP)
transmit(NTP IP)
transmit(NTP IP)
transmit(NTP IP)
server NTP IP, port 123
stratum 0, precision 0, leap 00, trust 000
refid [0.0.0.0], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time:      00000000.00000000  Thu, Feb  7 2036  1:28:16.000
originate timestamp: 00000000.00000000  Thu, Feb  7 2036  1:28:16.000
transmit timestamp:  d9523075.8c7a1000  Thu, Jul 16 2015  9:30:29.548
filter delay:  0.00000  0.00000  0.00000  0.00000
               0.00000  0.00000  0.00000  0.00000
filter offset: 0.000000 0.000000 0.000000 0.000000
               0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 64.00000
offset 0.000000

16 Jul 09:30:30 ntpdate[29299]: no server suitable for synchronization found

3. Try to ping the server; if it not pingable then check whether the server is down or not.

4. If you have other ntp server then add that entry in ntp config file etc..

Try to sync the time by using new NTP server.

tigersrv:/home/root> ntpdate -d [New Ntp server IP]

5. Edit the /etc/rc.config.d/netdaemons file

export NTPDATE_SERVER="NTP IP New NTP IP"   ---> You can mention two NTP servers IPs by giving space
export XNTPD=1
export XNTPD_ARGS=

*.- Edit the /etc/ntp.conf file
Add the following lines
server NTP IP prefer
server New NTP IP

6. stop and start ntp daemon [xntpd]

#/sbin/init.d/xntpd stop

#/sbin/init.d/xntpd start


Regards,
Kalyanjit

Friday, July 17, 2015

Dangerous/Hazardous commands in HPUX


Dangerous/Hazardous Commands in HP-UX Every Administrator Should Know

As System Administrators, we regularly work on Production and Development servers where a single incorrect command can result in service outages, data loss, application failures, or even complete server downtime.

Therefore, it is extremely important to understand the purpose and impact of every command before executing it.

Always Check the Manual Page

If you are not sure about any command or its options, always refer to the manual page first:

man <command>

Example:

man rm
man chmod
man chown
``

Spending a few minutes reviewing the documentation can save hours of troubleshooting later.


Dangerous/Hazardous Commands in HP-UX

Below are some commands that should be used with extreme caution.

1. rm - Remove Files and Directories

Used to delete files and directories.

rm filename

Be especially careful with:

rm -f
rm -rf

The -f (force) option removes files without prompting and can cause irreversible data loss if used incorrectly.


2. chown - Change Ownership

Used to change file or directory ownership.

chown user file

Take extra care when using the recursive option:

chown -R user:group /path

An incorrect recursive ownership change can make applications or services fail.


3. chmod - Change Permissions

Used to modify file and directory permissions.

chmod 755 file

Be cautious with recursive permission changes:

chmod -R 777 /path

A wrong permission change can expose sensitive data or break application functionality.


4. mv - Move or Rename Files

Used to move or rename files and directories.

mv source destination

Avoid using force options carelessly:

mv -f source destination

This may overwrite existing files without warning.


5. hostname - Display or Change Hostname

Used to display the server hostname.

hostname

Be very careful while using options or incorrect syntax, as changing the hostname can impact cluster services, monitoring tools, applications, and network communication.


6. date - Display or Modify System Date and Time

Display current date and time:

date

Changing system time can have serious consequences for applications, databases, authentication services, and scheduled jobs.

Examples:

date -s "2026-07-23 10:00:00"

Always verify before modifying system date or time.


7. last | grep -i "reboot"

Administrators often use the following command to check reboot history:

last | grep -i "reboot"

A common mistake is accidentally typing:

reboot

instead of searching for the keyword.

To avoid mistakes, always use quotes:

last | grep -i "reboot"

or

last | grep -i 'reboot'


8. init - Change System Run Levels

Used to change system run levels.

Examples:

init 0
init 1
init 6

Incorrect usage can stop services, switch the server to maintenance mode, or reboot the system.


9. ntpdate - Synchronize System Time

Used to synchronize server time with an NTP server.

ntpdate ntp_server

Unexpected time changes can affect applications, databases, and scheduled tasks.


10. reboot / shutdown

Used to restart or shut down the server.

reboot

shutdown -r now

shutdown -h now

Executing these commands on a production server without proper planning can lead to service outages and business impact.


11. ifconfig - Network Interface Management

Used to configure network interfaces.

Examples:

ifconfig lan0 down

ifconfig lan0 up

An incorrect command can disconnect the server from the network and terminate remote sessions.


Additional Commands Worth Mentioning

dd - Disk Destroyer

One of the most dangerous commands if used incorrectly.

dd if=/dev/zero of=/dev/rdisk/disk1

A wrong source or destination can overwrite an entire disk.


kill -9

Forcefully terminates processes.

kill -9 PID

Killing critical processes can result in service interruptions or system instability.


umount

Unmounts a filesystem.

umount /mount_point

Unmounting an active filesystem may impact running applications and users.


Final Thoughts

Most server outages are caused by human mistakes rather than hardware failures. Before executing any command:

✅ Verify the command syntax

✅ Understand the impact of the command

✅ Double-check the target file, filesystem, or server

✅ Review the man page if unsure

✅ Test in a non-production environment whenever possible

✅ Take backups before performing critical operations

Remember: Think twice, execute once.

I will continue updating this list as I come across more potentially dangerous commands in HP-UX. Happy learning and stay safe! 🚀



Thanks...
Kiran Jadhav


**Let's Share knowledge and keep visiting here**


Monday, July 6, 2015

Decimal to Hexadecimal conversion through bc command - HPUX


Binary = base is 2

Hexadecimal = base is 16

By default we use decimal value.


1. Convert Decimal to Hexadecimal through bc command :

Here we have to define obase value obase - output base; here obase=16 since we are converting the decimal values to Hexadecimal

testserver:/] bc
obase=16
198
C6

or

testserver:/] echo "obase=16; 198" |bc
C6



2. Convert Hexadecimal to Decimal through bc command:

Here we have to define ibase value ibase - input base; here ibase=16 since we are converting Hexadecimal values to the decimal values.


testserver:/] bc
ibase=16
C6
198

or

testserver:/] echo "ibase=16; C6" |bc
198


Similarly we can convert decimal to oct or decimal to Bin or decimal to any base number and vice versa.


Thanks...
Kiran Jadhav


**Let's Share knowledge and keep visiting here**

Wednesday, July 1, 2015

How to Identify Luns on EMC- Symmetrix Storage – HPUX

How to Identify Luns on EMC- Symmetrix Storage – HPUX

How to Identify Luns on EMC- Symmetrix Storage (EMC    :SYMMETRIX ) in HP11iV3

1.       Device name/Lun id’s are : 0e2f

   No need to convert it into hexadecimal like we convert it for Clariion storage

2.    Try to grep the Lun Id :

testserver:/dev/disk# /usr/local/bin/inq.HPUXIA64 |grep  -i 0e2f
/dev/rdisk/disk1428 :EMC     :SYMMETRIX       :5874  :0200e2f000 :    40266240

3.   We can verify the same in /dev/disk directory:

testserver:/dev/disk# ls -lt |more
total 0
brw-r-----   1 bin        sys          1 0x000034 May  2 14:34 disk1428

4.   Also the disks in scsimgr output; the ‘SCSI services internal state should be UNOPEN’


#scsimgr -v get_info all_lun |more

or 

#scsimgr get_info -D /dev/rdisk/disk1428 |grep -i "SCSI services internal state"

Or


#scsimgr lun_map -D /dev/rdisk/disk1428



Thanks...
Kiran Jadhav

**Let's Share knowledge and keep visiting here**