Configuring NTP Server in HP Procurve Switches

Log  တွေကို စစ်ဆေးတဲ့အခါ အချိန်တိကျနေဖို့လိုပါတယ်။
ဒီတခါတော့ Cisco မဟုတ်တဲ့ HP Switch တွေမှာ NTP Server Configure လုပ်ပုံလေး ြပန်ဝေမျှချင်ပါတယ်။
HP Procurve Switch တွေဟာ NTP အစား less secure ြဖစ်တဲ့ SNTP ကိုပဲ သုံးလို့ရပါတယ်။

Configure လုပ်ကြည့်ရအောင်ဗျာ

Switch ထဲကို Login ဝင်ပါ။ ြပီးရင်အောက်က command လေးတွေရိုက်ထည့်ပါ။
configure terminal
timesync sntp


sntp unicast (NTP Server တခုထဲကိုပဲ သုံးချင်တယ်ဆိုရင် unicast ပေါ့)
(or)
sntp broadcast (တခုထက်ပိုတဲ့ NTP Server သုံးချင်ရင်တော့ broadcast ပေါ့ဗျာ)

sntp server priority 1 218.186.3.36
(or)
sntp server  218.186.3.36

(ဒီ command ၂ ခု ကတော့ switch model ပေါ်မူတည်ြပီးကွဲသွားတာပါ။
 တချို့ switch တွေက priority command ထည့်ပေးဖို့လို ြပီး တချို့ switch တွေက မလိုပါဘူး။
ntp server ၃ ခုထက်ပိုထည့်လို့မရတာကိုလဲ သိထားပါ။ ကျတော်ကတော့ စင်ကာပူ အတွက် ntp server IP ကိုထည့်ထားပါတယ်။)

time timezone +480 (ဒီနေရာမှာ +480 ဆိုတာ စင်ကာပူအချိန်ကို မိနစ်နဲ့တွက်ြပီးပြောင်းထားတာပါ။ မိမိဒေသစံတော်ချိန်နဲ့တူအောင်တွက်ထည့်ဖို့လိုပါတယ်။
တွက်ပုံကတော့ GMT+Regional Time in Minutes ပါ။ စင်ကာပူဆိုရင် GMT+8 ပါ။ 8 နာရီကို မိနစ်ပြောင်းတော့ ၄၈၀ ရပါတယ်။)

အပေါ်က command တွေအားလုံး ရိုက်ထည့်ြပီး Configure လုပ်ြပီးပြီဆိုရင်

show sntp
show sntp statistics
(ဒီ command က တချို့ switch model တွေမှာ အလုပ်မလုပ်ပါဘူး။)

စတဲ့ command တွေသုံးပြီး NTP Server setting အလုပ် လုပ်လား မလုပ်လား ဆိုတာကို စစ်ပါ။
show time ဆိုတဲ့ Command လေးနဲ့ပါ အချိန် မှန်မမှန် စစ်လိုက်ပါအုံး။

အလုပ်လုပ်တယ်ဆိုရင် Write Memory command နဲ့ Configuration ကို save ြပီး Terminal/console session ကနေ logout ပေါ့ဗျာ။
အလုပ်မလုပ်ရင်တော့ အပေါ်က command တွေအတိုင်း ြပန်စစ်ပေါ့။

ဒီလောက်ဆို အဆင်ပြေမယ်ထင်ပါတယ်။

ပျော်ရွှင်ပါစေဗျာ။
(Be knowledgeable,pass it on then)


No comments :

Post a Comment