Senin, Agustus 23, 2010

command sar unix solaris, get error can’t open /var/adm/sa/sa23

database sempat crash berkali-kali, disinyalir karena performance disk I/O. memang betul saat sebelum crashed, hasil pantauan #iostat -ctnx 1 menunjukkan %block 100% untuk disk tertentu (berisi datafile)

sayangnya, saat akan melakukan traceback dari hasil statistik 'sar', ditemukan error sar: can’t open /var/adm/sa/sa23 (kebetulan hari ini tanggal 23)

coba-coba cari tau dari mbah google, saran-saran yang datang adalah menambahkan cron di crontab file. menurut saya agak lucu, karena dari pengalaman saya berhubungan dengan mesin solaris tidak pernah secara manual menambahkan 'sar' command di crontab, walau mungkin hasilnya akan sama.



"jujur", hampir 10 tahun bermain dengan unix, baru tau kalau ternyata ada command #crontab -e sys.
*mungkin inilah bedanya kebanyakan belajar sendiri atau keluaran training class*


root@hostname # crontab -l sys
#ident "@(#)sys 1.5 92/07/14 SMI" /* SVr4.0 1.2 */
#
# The sys crontab should be used to do performance collection. See cron
# and performance manual pages for details on startup.
#
#0 * * * 0-6 /usr/lib/sa/sa1
#20,40 8-17 * * 1-5 /usr/lib/sa/sa1
#5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A

oalah, ya ini yang saya cari-cari, ternyata defaultnya ditagar (tanda pagar :p).

nah, tinggal buka tagar nya.

#crontab -e sys (lalu hapus tagar, save exit)

sekalian jalankan command #svcadm enable system/sar:default

sar sudah terkonfigur.

ingat, file sa* tersebut akan ditulis ke /var/adm/sa/ directory. untuk mengatur agar file tidak menumpuk (dan sebenernya sudah useless), tambahkan cron di root.

15 6 * * * find /var/adm/sa -name 'sa*' -mtime +7 -exec rm {} \; > /dev/null 2>&1


sesuaikan dengan kebutuhan berapa lama akan kita keep di machine.

Kamis, Januari 07, 2010

Exchange Server 2007 Down due to Insufficient System Resource

Environment: Exchange Server 2007 SP1 with BES (BlackBerry Enterprise Server)
VMWare ESX Server 3.5.0

BES User was unable to send/receive mail from their BB.

Investigation:

- check BES server = OK
- check OWA/WebMail = inaccessible
- check Exchange Management = OK (services UP)
- telnet to exchange server port 25 = NOK --> Insufficient Resource
- check Exchange Server resource = Memory OK, but DISK FREE SPACE 'only' 140MB

discovered that Exchange Server 2007 has a 'Back Pressure'

In Exchange Server 2007, the Transport service monitors system resources such as disk space and memory on Transport servers (the Hub Transport and the Edge Transport servers), and stops message submission if it is running low on these resources. It continues to deliver existing messages in the queue. When resource utilization returns to normal, it resumes message submission. The feature is called Back Pressure.

The Back Pressure settings in Exchange Server 2007 RTM stop inbound mailflow if free disk space is below 4 Gigs. This static threshold has been lowered in SP1 to a more realistic 500 Mb.

Resolution:

- purge/delete some unused files, but free space still < 500Mb.
- Create new disk partition (idea to change mail.queue & logs to new path):
1. Stop BES
2. Shutdown Exchange Server
3. Add New Disk (10GB) from VMWare Infrastructure Client
4. Startup Exchange Server, format new disk from DiskManagement (control panel)
4. Re-configure Queue & Log path location, do backup original config (safety first!)
C:\Program Files\Microsoft\Exchange Server\Bin\EdgeTransport.exe.config

use notepad, change LocalPath value:

add key="QueueDatabasePath" value="LocalPath"
add key="QueueDatabaseLoggingPath" value="LocalPath"

i.e:
from add key="QueueDatabasePath" value="C:\original_path"
add key="QueueDatabaseLoggingPath" value="C:\original_path"
to add key="QueueDatabasePath" value="E:\Queue\QueueDB"
add key="QueueDatabaseLoggingPath" value="E:\Queue\QueueLogs"



5. Restart Exchange Transport Services (new mail.queue, log, chk, jrs created on new location)
6. Verify that the new Mail.que and Trn.chk files are created at the new location.
7. Verify that the new Trn.log, Trntmp.log, Trnres00001.jrs, Trnres00002.jrs, and Temp.edb files are created at the new location.
6. Move old/unused Mail.queue, Log, jrs, chk from original location to new disk (for backup only, in any case you will need it, actually you can delete it permanently)
7. Start BES service
8. Check that Exchange OWA/POP/SMTP & BES back to normal

Selasa, Januari 05, 2010

BES Services Failed to start - ERROR Windows 1069

Hal tersebut berawal dari bermasalahnya Firewall, FW mem-blocked port 3101 with some reasons.


BES tidak bisa connect ke srp.id.blackberry.net port 3101, bahkan dengan manual telnet pun (DOS Command Line), connection refused.

Setelah firewall issue solved, masalah lain pun muncul di BES - Blackberry Manager.

SRP tidak bisa start-up tanpa alasan yg jelas, STARTING...lalu STOPPED dengan SRP status UNKNOWN. bahkan tidak ada log yang tertulis :(

Well, is it something like Windows behavior ? RESTART!

BES tak jua bisa 'naik', malah tambah parah...tidak ada log files yang generated. hanya log *MNGR* dengan last line: [DIAG] EVENT=Registered_thread ....... "Unnamed"

lalu, ditemukan semua services STOPPED kecuali BB Attachment Service. coba manual start services dari windows-services (administrative tools), and criiing.... pop-up error 1069 ...something like: "failed to start up due to "LOGON FAILURE".....

:D got the clue!

and then next what?

Seperti diketahui, semua service BES Server (kecuali BB Attachment Service) adalah 'Logon as DOMAIN/BESADMIN'.

Mungkin ada masalah dengan AD? BESADMIN user password reset, BES Server restart, re-join domain. tapi tetap tidak bisa men-startup satupun services BES!

well..well..well... gotcha!!!

BUG Windows? BUG BES? atau apa ini?

finally, ini yg dilakukan:
1. right click BES Services (yang logon as domain) satu-persatu
2. properties
3. Logon menu tab
4. ketik ulang password BESADMIN (domain user)
5. lalu, start BES Services secara berurutan: Controller - Dispatcher - Router
6. Open BES Manager
7. Start BES
8. Start MDS

DONE! SRP Connected and BES works fine....

Selasa, Desember 22, 2009

Unix Style Command Line on WinServer2003 & XP

:-)

Yes, if you're an UNIXER... Command Line Maniac or Terminal Minded :-D, and happy when you're typing tail -f | grep bla bla bla?

hohoho, can we have it on Windows Server 2003 and or XP ? absolutely you can!


tail -f mylog.txt | qgrep "hello"

You want more? download it and explore it ;-)


download from http://www.microsoft.com/windowsserver2003/downloads/tools/default.mspx

and you will have additional command under C:\Program Files\Windows Resource Kits\Tools\:


Acctinfo.dll (documented in Readme.htm)
Adlb.exe: Active Directory Load Balancing Tool
Admx.msi: ADM File Parser
Atmarp.exe: Windows ATM ARP Server Information Tool
Atmlane.exe: Windows ATM LAN Emulation Client Information
Autoexnt.exe: AutoExNT Service
Cdburn.exe: ISO CD-ROM Burner Tool
Checkrepl.vbs: Check Replication
Chklnks.exe: Link Check Wizard
Chknic.exe: Network Interface Card Compliance Tool for Network Load Balancing
Cleanspl.exe: Spooler Cleaner
Clearmem.exe: Clear Memory
Clusdiag.msi: Cluster Diagnostics and Verification Tool
Clusfileport.dll: Cluster Print File Port
Clusterrecovery.exe: Server Cluster Recovery Utility
Cmdhere.inf: Command Here
Cmgetcer.dll: Connection Manager Certificate Deployment Tool
Compress.exe: Compress Files
Confdisk.exe: Disk Configuration Tool
Consume.exe: Memory Consumers Tool
Creatfil.exe: Create File
Csccmd.exe: Client-Side Caching Command-Line Options
Custreasonedit.exe: Custom Reason Editor (documented in Readme.htm)
Delprof.exe: User Profile Deletion Utility
Dh.exe: Display Heap
Diskraid.exe: RAID Configuration Tool
Diskuse.exe: User Disk Usage Tool
Dnsdiag.exe: SMTP DNS Diagnostic Tool (documented in Readme.htm)
Dumpfsmos.cmd: Dump FSMO Roles
Dvdburn.exe: ISO DVD Burner Tool
Empty.exe: Free Working Set Tool
Eventcombmt.exe: Check Replication
Fcopy.exe: File Copy Utility for Message Queuing
Frsflags.vbs
Getcm.exe: Connection Manager Profile Update
Gpmonitor.exe: Group Policy Monitor
Gpotool.exe: Group Policy Objects
Hlscan.exe: Hard Link Display Tool
Ifilttst.exe: IFilter Test Suite
Ifmember.exe: User Membership Tool
Inetesc.adm: Internet Explorer Enhanced Security Configuration
Iniman.exe: Initialization Files Manipulation Tool
Instcm.exe: Install Connection Manager Profile
Instsrv.exe: Service Installer
Intfiltr.exe: Interrupt Affinity Tool
Kerbtray.exe: Kerberos Tray
Kernrate.exe: Kernel Profiling Tool
Klist.exe: Kerberos List
Krt.exe: Certification Authority Key Recovery
Lbridge.cmd: L-Bridge
Linkd.exe
Linkspeed.exe: Link Speed
List.exe: List Text File Tool
Lockoutstatus.exe: Account Lockout Status (documented in Readme.htm)
Logtime.exe
Lsreport.exe: Terminal Services Licensing Reporter
Lsview.exe: Terminal Services License Server Viewer
Mcast.exe: Multicast Packet Tool
Memmonitor.exe: Memory Monitor
Memtriage.exe: Resource Leak Triage Tool
Mibcc.exe: SNMP MIB Compiler
Moveuser.exe: Move Users
Mscep.dll: Certificate Services Add-on for Simple Certificate Enrollment Protocol
Nlsinfo.exe: Locale Information Tool
Now.exe: STDOUT Current Date and Time
Ntimer.exe: Windows Program Timer
Ntrights.exe
Oh.exe: Open Handles
Oleview.exe: OLE/COM Object Viewer
Pathman.exe: Path Manager
Permcopy.exe: Share Permissions Copy
Perms.exe: User File Permissions Tool
Pfmon.exe: Page Fault Monitor
Pkiview.msc: PKI Health Tool
Pmon.exe: Process Resource Monitor
Printdriverinfo.exe: Drivers Source
Prnadmin.dll: Printer Administration Objects
Qgrep.exe
Qtcp.exe: QoS Time Stamp
Queryad.vbs: Query Active Directory
Rassrvmon.exe: RAS Server Monitor
Rcontrolad.exe: Active Directory Remote Control Add-On
Regini.exe: Registry Change by Script
Regview.exe (documented in Readme.htm)
Remapkey.exe: Remap Windows Keyboard Layout
Robocopy.exe: Robust File Copy Utility
Rpccfg.exe: RPC Configuration Tool
Rpcdump.exe
Rpcping.exe
RPing: RPC Connectivity Verification Tool
Rqc.exe: Remote Access Quarantine Client
Rqs.exe: Remote Access Quarantine Agent
Setprinter.exe: Spooler Configuration Tool
Showacls.exe
Showperf.exe: Performance Data Block Dump Utility
Showpriv.exe: Show Privilege
Sleep.exe: Batch File Wait
Sonar.exe: FRS Status Viewer
Splinfo.exe: Print Spooler Information
Srvany.exe: Applications as Services Utility
Srvcheck.exe: Server Share Check
Srvinfo.exe: Remote Server Information
Srvmgr.exe: Server Manager
Ssdformat.exe: System State Data Formatter
Subinacl.exe
Tail.exe
Tcmon.exe: Traffic Control Monitor
Timeit.exe (documented in Readme.htm)
Timezone.exe: Daylight Saving Time Update Utility
Tsctst.exe: Terminal Server Client License Dump Tool
Tsscalling.exe: Terminal Services Scalability Planning Tools
Uddicatschemeeditor.exe: UDDI Services Categorization Scheme Editor
Uddiconfig.exe: UDDI Services Command-line Configuration Utility
Uddidataexport.exe: UDDI Data Export Wizard
Usrmgr.exe: User Manager for Domains
Vadump.exe: Virtual Address Dump
Vfi.exe: Visual File Information
Volperf.exe: Shadow Copy Performance Counters
Volrest.exe: Shadow Copies for Shared Folders Restore Tool
Vrfydsk.exe: Verify Disk
Winexit.scr: Windows Exit Screen Saver
Winhttpcertcfg.exe: WinHTTP Certificate Configuration Tool
Winhttptracecfg.exe: WinHTTP Tracing Facility Configuration Tool
Winpolicies.exe: Policy Spy
Wins.dll: WINS Replication Network Monitor Parser
Wlbs_hb.dll & Wlbs_rc.dll: Windows Load Balancing Server Network Monitor Parsers

Kamis, Desember 17, 2009

STEP-BY-STEP BES Enterprise Activation Processes

BlackBerry 8900 (Javelin)

Let Pictures Says :






























Selasa, Desember 15, 2009

Compress file dengan Proteksi Password di Mac OSX

Seperti cerita dulu ketika menggunakan product Microsoft, saya biasa memakai WinZip/WinRar, salah satu fitur yang saya suka ada "password protected" :)

Nah, di Mac OS X pun kita bisa melakukan hal yang sama..

nah, pake terminal :D

tafas-macbook:~ tafa$ zip -e testong.zip coba.txt testing.txt
Enter password:
Verify password:
adding: coba.txt (deflated 54%)
adding: testing.txt (stored 0%)

tafas-macbook:~ tafa$ unzip testong.zip
Archive: testong.zip
[testong.zip] coba.txt password:
replace coba.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
inflating: coba.txt
replace testing.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
extracting: testing.txt

tafas-macbook:~ tafa$

oiya... command unzip tersebut bisa dilakukan untuk membuka zip file with password protected nya si WinZip lho... :p