English flagItalian flagGerman flagSpanish flagFrench flagPortuguese flagJapanese flagKorean flagChinese flagRussian flag
By N2H
Home » Tips

Tips

Manage cronjobs with VCS Application

Here is how I fail over application account cronjobs using VCS.
Application Appx_cronjobs
(
Critical = 0ff
StartProgram = “/usr/bin/su - appxusr -c “touch ./crontab.LAST””
StopProgram = “/usr/bin/su - appxusr -c “/usr/bin/rm -f ./crontab.LAST””
CleanProgram = “/usr/bin/su - appxusr -c “/usr/bin/rm -f ./crontab.LAST””
MonitorProgram = “/usr/bin/su appsusr -c /etc/VRTSvcs/utils/vcs_cron_monitor.sh” […]

No Comments »

Top Space Users In A Filesystem

# A fast way to find a file du -a | grep -i
# Top 10 space users in a filesystem du -a | sort -n | tail -10

No Comments »

How to tell process owning open socket without lsof

Normally with lsof lsof -i tcp:
I found this alternative for if lsof is not available on a server to determine the process associated with an open socket Loop through all the running processes with this command till you find it
pfile | grep “port:”
Sorry but I think it is only available on Solaris 10.

No Comments »