Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Set Time in Zimbra Server

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 28

login as: root

root@192.168.18.240's password:
Last login: Mon May 3 13:55:38 2021 from 192.168.113.6
[root@mail ~]# show time
-bash: show: command not found
[root@mail ~]# date
Tue May 18 11:30:46 IST 2021
[root@mail ~]# timedatectl
Local time: Tue 2021-05-18 11:36:41 IST
Universal time: Tue 2021-05-18 06:06:41 UTC
RTC time: Tue 2021-05-18 06:06:12
Time zone: Asia/Kolkata (IST, +0530)
NTP enabled: yes
NTP synchronized: no
RTC in local TZ: no
DST active: n/a
[root@mail ~]# ls -l /etc/localtime
lrwxrwxrwx. 1 root root 34 Jun 2 2019 /etc/localtime -> ../usr/share/zoneinfo/
Asia/Kolkata
[root@mail ~]# date
Tue May 18 11:39:20 IST 2021
[root@mail ~]# show ntp
-bash: show: command not found
[root@mail ~]# ntpstat
-bash: ntpstat: command not found
[root@mail ~]# yum install ntp ntpdate
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/x86_64/metalink | 5.8 kB 00:00
* base: centos.excellmedia.net
* epel: mirrors.bestthaihost.com
* extras: centos.excellmedia.net
* updates: centos.excellmedia.net
base | 3.6 kB 00:00
epel | 4.7 kB 00:00
extras | 2.9 kB 00:00
updates | 2.9 kB 00:00
zimbra | 2.9 kB 00:00
zimbra-8815-oss | 2.9 kB 00:00
(1/7): epel/x86_64/group_gz | 96 kB 00:00
(2/7): extras/7/x86_64/primary_db | 236 kB 00:00
epel/x86_64/updateinfo FAILED
https://nrt.edge.kernel.org/fedora-buffet/epel/7/x86_64/repodata/386f51023a6b539
9441feceac9ed3f0aeded7deeb1b34c6877126b4953bf5b65-updateinfo.xml.bz2: [Errno 14]
HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.cent
os.org/.

(3/7): zimbra-8815-oss/primary_db | 85 kB 00:01


(4/7): zimbra/primary_db | 145 kB 00:01
(5/7): epel/x86_64/updateinfo | 1.0 MB 00:11
(6/7): updates/7/x86_64/primary_db | 8.0 MB 01:05
(7/7): epel/x86_64/primary_db | 6.9 MB 02:07
Resolving Dependencies
--> Running transaction check
---> Package ntp.x86_64 0:4.2.6p5-29.el7.centos.2 will be installed
--> Processing Dependency: libopts.so.25()(64bit) for package: ntp-4.2.6p5-29.el
7.centos.2.x86_64
---> Package ntpdate.x86_64 0:4.2.6p5-29.el7.centos.2 will be installed
--> Running transaction check
---> Package autogen-libopts.x86_64 0:5.18-5.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository
Size
================================================================================
Installing:
ntp x86_64 4.2.6p5-29.el7.centos.2 base 549 k
ntpdate x86_64 4.2.6p5-29.el7.centos.2 base 87 k
Installing for dependencies:
autogen-libopts x86_64 5.18-5.el7 base 66 k

Transaction Summary
# For more information about this file, see the man pages
# ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).

driftfile /var/lib/ntp/drift

# Permit time synchronization with our time source, but do not


# permit the source to query or modify the service on this system.
restrict default nomodify notrap nopeer noquery

# Permit all access over the loopback interface. This could


# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1
restrict ::1

# Hosts on local network are less restricted.


#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

# Use public servers from the pool.ntp.org project.


# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst

#broadcast 192.168.1.255 autokey # broadcast server


#broadcastclient # broadcast client
#broadcast 224.0.1.1 autokey # multicast server
#multicastclient 224.0.1.1 # multicast client
#manycastserver 239.255.254.254 # manycast server
#manycastclient 239.255.254.254 autokey # manycast client

# Enable public key cryptography.


#crypto

includefile /etc/ntp/crypto/pw
# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography.
keys /etc/ntp/keys

# Specify the key identifiers which are trusted.


#trustedkey 4 8 42

# Specify the key identifier to use with the ntpdc utility.


#requestkey 8

# Specify the key identifier to use with the ntpq utility.


#controlkey 8
login as: root
root@192.168.18.240's password:
Last login: Tue May 18 11:29:10 2021 from 192.168.113.2
[root@mail ~]# show date
-bash: show: command not found
[root@mail ~]# show time
-bash: show: command not found
[root@mail ~]# date
Tue May 18 12:37:13 IST 2021
[root@mail ~]# chkconfig ntpd on
Note: Forwarding request to 'systemctl enable ntpd.service'.
[root@mail ~]# ntpdate 0.centos.pool.ntp.org
18 May 12:38:33 ntpdate[8951]: no server suitable for synchronization found
[root@mail ~]# ^C
[root@mail ~]# systemctl enable ntpd.service
[root@mail ~]# vi /etc/ntp.conf
[root@mail ~]# date
Tue May 18 13:45:09 IST 2021
[root@mail ~]# vi /etc/ntp.conf
[root@mail ~]# hostname
mail.jakson.com
[root@mail ~]# vi /etc/ntp.conf
[root@mail ~]# systemctl reload ntpd.service
Failed to reload ntpd.service: Job type reload is not applicable for unit
ntpd.service.
See system logs and 'systemctl status ntpd.service' for details.
[root@mail ~]# systemctl status ntpd.service
● ntpd.service - Network Time Service
Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset:
disabled)
Active: inactive (dead)
[root@mail ~]# systemctl reload systemd-timesyncd
Failed to reload systemd-timesyncd.service: Unit not found.
[root@mail ~]# systemctl status systemd-timesyncd
Unit systemd-timesyncd.service could not be found.
[root@mail ~]# systemctl status systemd-timedated.service
● systemd-timedated.service - Time & Date Service
Loaded: loaded (/usr/lib/systemd/system/systemd-timedated.service; static;
vendor preset: disabled)
Active: inactive (dead)
Docs: man:systemd-timedated.service(8)
man:localtime(5)
http://www.freedesktop.org/wiki/Software/systemd/timedated

May 18 11:36:40 mail.jakson.com systemd[1]: Starting Time & Date Service...


May 18 11:36:41 mail.jakson.com systemd[1]: Started Time & Date Service.
[root@mail ~]# systemctl status systemd-timedated.service
● systemd-timedated.service - Time & Date Service
Loaded: loaded (/usr/lib/systemd/system/systemd-timedated.service; static;
vendor preset: disabled)
Active: inactive (dead)
Docs: man:systemd-timedated.service(8)
man:localtime(5)
http://www.freedesktop.org/wiki/Software/systemd/timedated

May 18 11:36:40 mail.jakson.com systemd[1]: Starting Time & Date Service...


May 18 11:36:41 mail.jakson.com systemd[1]: Started Time & Date Service.
[root@mail ~]# date
Tue May 18 13:53:23 IST 2021
[root@mail ~]# cat /etc/timezone
cat: /etc/timezone: No such file or directory
[root@mail ~]# systemctl status ntpd.service
● ntpd.service - Network Time Service
Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset:
disabled)
Active: inactive (dead)
[root@mail ~]# systemctl start ntpd.service
[root@mail ~]# date
Tue May 18 13:55:52 IST 2021
[root@mail ~]# systemctl status ntpd.service
● ntpd.service - Network Time Service
Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset:
disabled)
Active: active (running) since Tue 2021-05-18 13:55:48 IST; 16s ago
Process: 20575 ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS (code=exited,
status=0/SUCCESS)
Main PID: 20576 (ntpd)
CGroup: /system.slice/ntpd.service
└─20576 /usr/sbin/ntpd -u ntp:ntp -g

May 18 13:55:48 mail.jakson.com ntpd[20576]: Listen and drop on 0 v4wildcard


0.0.0.0 UDP 123
May 18 13:55:48 mail.jakson.com ntpd[20576]: Listen and drop on 1 v6wildcard :: UDP
123
May 18 13:55:48 mail.jakson.com ntpd[20576]: Listen normally on 2 lo 127.0.0.1 UDP
123
May 18 13:55:48 mail.jakson.com ntpd[20576]: Listen normally on 3 ens192
192.168.18.240 UDP 123
May 18 13:55:48 mail.jakson.com ntpd[20576]: Listen normally on 4 lo ::1 UDP 123
May 18 13:55:48 mail.jakson.com ntpd[20576]: Listen normally on 5 ens192
fe80::250:56ff:fe8c:9037 UDP 123
May 18 13:55:48 mail.jakson.com ntpd[20576]: Listening on routing socket on fd #22
for interface updates
May 18 13:55:49 mail.jakson.com ntpd[20576]: 0.0.0.0 c016 06 restart
May 18 13:55:49 mail.jakson.com ntpd[20576]: 0.0.0.0 c012 02 freq_set kernel 0.000
PPM
May 18 13:55:49 mail.jakson.com ntpd[20576]: 0.0.0.0 c011 01 freq_not_set
[root@mail ~]# systemctl stop ntpd.service
[root@mail ~]# history
23 uptime
24 top
25 su - zimbra
26 uptime
27 su - zimbra
28 tail -f /var/log/zimbra.log
29 tail -f /var/log/zimbra.log | grep archive
30 mailq
31 su - zimbra
32 ip a
33 iptables -nL
34 cat /etc/redhat-release
35 systemctl status firewalld
36 firewall-cmd --permanent --zone=public --add-service=ldap
37 firewall-cmd --reload
38 ip a
39 su - zimbra
40 tail -f /var/log/zimbra.log | grep archive
41 tail -f /var/log/zimbra.log
42 su - zimbra
43 tail -f /var/log/zimbra.log
44 tail -f /var/log/zimbra.log | grep archive
45 su - zimbra
46 tail -f /var/log/zimbra.log | grep archive
47 tail -f /var/log/zimbra.log
48 tail -f /var/log/zimbra.log | grep archive
49 ps -ef
50 uptime
51 su - zimbra
52 find /opt/zimbra/store/0/ -type f | wc -l
53 df -h
54 lvs
55 top
56 su - zimbra
57 tail -f /var/log/zimbra.log
58 tail -f /var/log/zimbra.log | egrep ":7025|:25"
59 tail -f /var/log/zimbra.log
60 top
61 su - zimbra
62 /opt/zimbra/postfix/sbin/postsuper -r ALL
63 su - zimbra
64 /opt/zimbra/postfix/sbin/mailq |grep "archive@mailarchive.jakson.com" |awk
{'print $1'} |grep -v @ | tr -d '*!'|/opt/zimbra/postfix/sbin/postsuper -d -
65 tail -f /var/log/zimbra.log
66 su - zimbra
67 uptime
68 su - zimbra
69 ./install.sh
70 vi /etc/hosts
71 tail -f /var/log/zimbra.log
72 tail -f /opt/zimbra/log/nginx.log
73 tail -f /var/log/zimbra.log
74 ls -ltr /tmp/
75 tail -f /tmp/install.log.AlLZhJn3
76 ls -ltr /tmp/
77 tail -f zmsetup.20190906-225635.log
78 tail -f /tmp/zmsetup.20190906-225635.log
79 ls -ltr /tmp/
80 tail -f /tmp/zmsetup.20190906-225635.log
81 tail -f /var/log/zimbra.log
82 tail -f /var/log/zimbra.log
83 tail -f /var/log/zimbra.log | :25
84 tail -f /var/log/zimbra.log | grep :25
85 tail -f /var/log/zimbra.log
86 ls
87 cat /etc/redhat-release
88 wget https://files.zimbra.com/downloads/8.7.11_GA/zcs-
8.7.11_GA_1854.RHEL7_64.20170531151956.tgz
89 cd zcs-8.6.0_GA_1153.RHEL7_64.20141215151110
90 ls
91 cd packages/
92 ls -al
93 rpm -Uvh zimbra-proxy-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm
zimbra-memcached-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm
94 su - zimbra
95 cat /etc/host
96 cat /etc/hosts
97 su - zimbra
98 cd ../..
99 ls
100 tar xvfz zcs-8.7.11_GA_1854.RHEL7_64.20170531151956.tgz
101 df -h
102 cd zcs-8.7.11_GA_1854.RHEL7_64.20170531151956
103 ls -al
104 screen
105 cd /tmp/
106 screen -ls
107 screen -r 8602.pts-0.mail
108 ls -ltr
109 tail -f install.log.AlLZhJn3
110 screen -r 8602.pts-0.mail
111 tail -f install.log.AlLZhJn3
112 screen -r 8602.pts-0.mail
113 tail -f install.log.AlLZhJn3
114 ls -l /var/cache/yum/x86_64/7/zimbra/packages/
115 tail -f install.log.AlLZhJn3
116 cd -
117 cd
118 wget https://files.zimbra.com/downloads/8.7.11_GA/zcs-patch-
8.7.11_GA_3822.tgz
119 screen -r 8602.pts-0.mail
120 su - zimbra
121 tar xvfz zcs-patch-8.7.11_GA_3822.tgz
122 cd zcs-patch-8.7.11_GA_3822
123 ./installPatch.sh
124 cd
125 su - zimbra
126 su - zimbra
127 tail -f /var/log/zimbra.log | rep 25
128 tail -f /var/log/zimbra.log | grep :25
129 host piler.jakson.com
130 tail -f /var/log/zimbra.log | grep :25
131 tail -f /var/log/zimbra.log
132 host mailarchive.jakson.com
133 vi /etc/hosts
134 tail -f /var/log/zimbra.log
135 cat /opt/zimbra/postfix/conf/main.cf
136 tail -f /var/log/zimbra.log
137 su - zimbra
138 tail -f /opt/zimbra/log/nginx.log
139 telnet localhost 143
140 netstat -ntplu | egrep "995|993|143
141 "
142 netstat -ntplu | more
143 su - zimbra
144 at 20:05
145 yum install at
146 systemctl status atd
147 systemctl start atd
148 at 20:05
149 who
150 less /opt/zimbra/log/mailbox.log
151 less /opt/zimbra/log/nginx.log
152 cd log
153 cd /opt/zimbra/log
154 ls -ltr
155 less zmmailboxd.out
156 tail -f zmmailboxd.out
157 top
158 su - zimbra
159 less /opt/zimbra/log/mailbox.log
160 uptime
161 top
162 uptime
163 su - zimbra
164 su zimbra
165 cat /etc/redhat-release
166 ls
167 wget https://files.zimbra.com/downloads/8.8.15_GA/zcs-
8.8.15_GA_3829.RHEL7_64.20190718141144.tgz
168 df-h
169 df -h
170 tar xvfz zcs-8.8.15_GA_3829.RHEL7_64.20190718141144.tgz
171 ./install.sh
172 cd
173 su zimbra
174 su - zimbra
175 su - zimbra
176 cd zcs-8.8.15_GA_3829.RHEL7_64.20190718141144
177 screen
178 su - zimbra
179 tail -f /var/log/zimbra.log
180 su - zimbra
181 screen -ls
182 screen -r 31426.pts-0.mail
183 ls -ltr /tmp/
184 tail -f /tmp/install.log.8mJ82LUn
185 screen -r 31426.pts-0.mail
186 ls -ltr /tmp/
187 tail -f zmsetup.20190913-225136.log
188 tail -f /tmp/zmsetup.20190913-225136.log
189 screen -r 31426.pts-0.mail
190 tail -f /tmp/zmsetup.20190913-225136.log
191 screen -r 31426.pts-0.mail
192 tail -f /var/log/zimbra.log
193 screen -r 31426.pts-0.mail
194 tail -f /var/log/zimbra.log
195 screen -r 31426.pts-0.mail
196 cd
197 tail -f /var/log/zimbra.log
198 ps -ef
199 su - zimbra
200 su zimbra
201 su - zimbra
202 su zimbra
203 su - zimbra
204 su - zimbra
205 history
206 su - zimbra
207 ps -ef
208 uptime
209 top
210 su - zimbra
211 cat /proc/cpuinfo
212 su
213 su zimbra
214 shutdown
215 shutdown now
216 df -h
217 lvs
218 su zimbra
219 df -hl
220 exit
221 df -h
222 fdisk -l
223 df -h
224 fdck /dev/mapper/cl-root
225 fsck /dev/mapper/cl-root
226 cat /etc/inittab
227 init 3
228 journalctl -xb
229 xfs_repair /dev/mapper/cl-root
230 fsck.xfs /dev/mapper/cl-root
231 reboot
232 vi /etc/fstab
233 reboot
234 tail -f /var/log/zimbra.log
235 su - zimbra
236 uptime
237 top
238 df -h
239 zmcontrol
240 zimbra
241 su zimbra
242 df -hl
243 su zimbra
244 ps -aux | grep zimbra
245 su - zimbra
246 init 0
247 su - zimbra
248 df -h
249 vgs
250 vgdisplay
251 lvs
252 fdisk -l
253 lsblk
254 fdisk /dev/sdd
255 partprobe /dev/sdd
256 partprobe /dev/sdd1
257 pvs
258 pvcreate /dev/sdd1
259 pvs
260 vgextend cl /dev/sdd1
261 vgs
262 lvs
263 lvdisplay | less
264 lvextend -l +100%FREE pool00
265 lvextend -l +100%FREE /dev/mapper/cl-pool00
266 lvs
267 df -h
268 lvextend -l +100%FREE /dev/mapper/cl-root
269 lvs
270 df -h
271 lsblk
272 resize2fs /dev/sdd1
273 lsblk
274 cd /opt/
275 cd zimbra/
276 ls
277 cd
278 df -Th
279 lvs
280 lvdisplay
281 lvdisplay
282 lvextend -L 5.9T cl/root
283 df -h
284 resize2fs /dev/mapper/cl-root
285 lvs
286 lvdisplay | less
287 resize2fs /dev/cl/root
288 df -h
289 mount
290 reboot
291 df -h
292 top
293 lvs
294 touch bb
295 reboot
296 lvs
297 vgdisplay
298 cfdisk
299 clear
300 lvdisplay
301 lvs
302 cd /opt/zimbra
303 cd log
304 du -sh
305 du -sh * | grep G
306 > trace_log.2019_10_01
307 > trace_log.2019_10_02
308 > trace_log.2019_10_03
309 > trace_log.2019_10_04
310 > trace_log.2019_10_05
311 > trace_log.2019_10_06
312 > trace_log.2019_10_07
313 > trace_log.2019_10_08
314 df -h
315 du -sh
316 lvs
317 reboot
318 free -m
319 df -Th
320 lvs
321 touch hh
322 uptime
323 top
324 df -h
325 vgs -a
326 lvs -a -a
327 lvs -a
328 lvextend -l +100%FREE /dev/mapper/cl-root -r
329 df -h
330 lvs
331 ps -ef
332 lvs
333 lvs -a
334 lvextend -L+2G cl/pool00_tmeta
335 df -h
336 fdisk -l
337 fdisk /dev/sde
338 partprobe /dev/sde
339 partprobe /dev/sde1
340 pvcreate /dev/sde1
341 vgextend cl /dev/sde1
342 lvextend -L+10G cl/pool00_tmeta
343 lvs
344 df -h
345 e2fsck /dev/mapper/cl-root
346 touch bb
347 man xfs_ncheck
348 man xfs_repair
349 lvdisplay
350 ls -l /dev/cl
351 ls -l /dev/cl/
352 ls -l /dev/mapper/
353 lvs -a
354 vgs
355 pvs
356 cat /etc/redhat-release
357 history
358 tail -f /var/log/messages
359 tail -f /var/log/lastlog
360 lastlog
361 df -Th
362 lvs -a
363 df -Th
364 lvs -a
365 lvdisplay
366 mailq
367 su - zimbra
368 su zimbra
369 iptables -nL
370 locate firewall
371 less /etc/sysconfig/iptables-config
372 systemctl status firewalld
373 systemctl status iptables
374 cat /etc/rc.local
375 cat /etc/redhat-release
376 iptables -nL
377 cat /etc/firewalld/
378 cat /etc/firewalld/ipsets
379 cat /etc/firewalld/firewalld.conf
380 cat /etc/init.d/network
381 systemctl stop firewalld
382 iptables -nL
383 systemctl start firewalld
384 iptables -nL
385 systemctl status firewalld
386 iptables -nL
387 firewall-cmd -all
388 firewall-cmd --permanent --add-rich-rule="rule family='ipv4' source
address='192.168.16.14' service name=smtp reject"
389 firewall-cmd --permanent --add-rich-rule="rule family='ipv4' source
address='192.168.16.23' service name=smtp reject"
390 firewall-cmd --permanent --add-rich-rule="rule family='ipv4' source
address='192.168.16.225' service name=smtp reject"
391 firewall-cmd --reload
392 iptables -nL
393 su - zimbra
394 lvs
395 pvs
396 suzimbra
397 su zimbra
398 su - zimbra
399 ssh root@192.168.16.177
400 ping 192.168.16.177
401 ssh root@192.168.16.177
402 ssh 192.168.16.177
403 ping 192.168.16.177
404 ssh 192.168.16.177
405 tail -f /var/log/zimbra.log
406 df -h
407 su - zimbra
408 su - zimbra
409 ip a
410 su - zimbra
411 vi forwadingaccount
412 ll
413 chmod zimbra.zimbra forwadingaccount
414 chown zimbra.zimbra forwadingaccount
415 ll forwadingaccount
416 chmod +x forwadingaccount
417 df -hT
418 ls /opt/zimbra/
419 mv forwadingaccount /opt/zimbra
420 ls /opt/zimbra/
421 su - zimbra
422 touch forwarding.txt
423 ls
424 chown zimbra.zimbra forwarding.txt
425 mv forwarding.txt /opt/zimbra/
426 su -zimbra
427 su - zimbra
428 screen -ls
429 su - zimbra
430 su -zimbra
431 su - zimbra
432 rpm -q centos-release
433 lscpu
434 su zimbra
435 su - zimbra
436 su - zimbra
437 zmore
438 su zimbra
439 su - zimbra
440 zmprov gs z zimbraMtaMyNetworks
441 zmprov gs `zmhostname` zimbraMtaMyNetworks
442 su - zimbra
443 su zimbra
444 telnet localhost 25
445 zmprov gcf zimbraMtaMaxMessageSize
446 su - zimbra
447 su zimbra
448 telnet localhost 25
449 su zimbra
450 telnet localhost 25
451 su zimbra
452 telnet 192.168.16.69 25
453 telnet 192.168.18.240 25
454 su admin
455 su zimbra
456 su - zimbra
457 su zimbra
458 su admin
459 su zimbra
460 exit
461 su zimbra
462 exit
463 su - zimbra
464 cd /tmp
465 mkdir sanjay
466 cd sanjay
467 tar xvfz ../sanjay-sent.tar.gz
468 ls
469 cd ..
470 chown -R zimbra.zimbra sanjay
471 su - zimbra
472 last | more
473 less /var/log/secure
474 who
475 host
476 host redmi5-redmi.jakson.local
477 cat /etc/hosts.allow
478 host 192.168.16.193
479 ping
480 ping 192.168.16.193
481 exit
482 sudo passwd root
483 less /var/log/secure
484 ip a
485 mkdir mailbackup
486 ls mailbackup/
487 su -df mailbackup/backup.tar.gz
488 du -sh mailbackup/backup.tar.gz
489 who
490 df -hl
491 exit
492 df -hl
493 exit
494 su zimbra
495 shutdown -s
496 shutdown -r
497 shutdown
498 su zimbra
499 df -hl
500 load
501 uptime
502 su zimbra
503 exit
504 su zimbra
505 fdisk -l
506 lvs
507 vgs
508 df -h
509 clear
510 su - zimbra
511 ssm
512 yum install system-storage-manager
513 ssm list
514 df -h
515 fdisk -/dev/sda
516 fdisk /dev/sda
517 ssm list
518 fdsik /dev/sdf
519 fdisk /dev/sdf
520 partprobe /dev/sdf1
521 ssm list
522 ssm add -p cl /dev/sdf1
523 ssm list
524 clear
525 ssm list volumes
526 ssm resize -s+2000G /dev/cl/root
527 ssm list volumes
528 df -h
529 ssm list
530 xfs_growfs
531 xfs_growfs /dev/cl/root
532 df -h
533 ssm list
534 lvs
535 vgs
536 vgdisplay
537 lvextend -L 2000G cl/pool00
538 lvextend -L 7.9t cl/pool00
539 vgs
540 lvs
541 ssm list
542 xfs_growfs /dev/cl/root
543 df -h
544 yum clean metadata
545 yum check-update
546 yum update
547 su - zimbra
548 fdisk -l
549 su - zimbra
550 su - zimbra
551 df -hl
552 su zimbra
553 exit
554 su - zimbra
555 touch /opt/zimbra/forwarding15.txt
556 su - zimbra
557 ll /opt/zimbra/forwarding15.txt
558 chown zimbra:zimbra /opt/zimbra/forwarding15.txt
559 su - zimra
560 su - zimbra
561 touch distributionlist
562 chown zimbra.zimbra distributionlist
563 ls -ll distributionlist
564 mv distributionlist /opt/zimbra/
565 su - zimbra
566 touch distributionlist.txt
567 chown zimbra.zimbra distributionlist.txt
568 mv distributionlist.txt /opt/zimbra/
569 cd /opt/zimbra/
570 ls
571 ls -ll distributionlist.txt
572 exit
573 su - zimbra
574 cd /opt/zimbra/logs/
575 su - zimbra
576 su - zimbra
577 top
578 su zimbra
579 su - zimbra
580 cd /var/log
581 top
582 su - zimbra
583 cat /var/log/maillog | grep -i "hardip.singh@jakson.com" | grep -i "2020-
07-17 10:19"
584 less /var/log/maillog
585 cat /opt/zimbra/forwarding15.txt | grep -i "hardip.singh@jakson.com"
586 cat /opt/zimbra/forwarding15.txt | grep -i "vikas.arya@jakson.com"
587 cat /var/log/maillog | grep -i "hardip.singh@jakson.com" | grep -i "2020-
07-17 10:19" | less
588 ls
589 cd /var/log
590 ls
591 less zimbra
592 less zimbra.log
593 cd /opt/zimbra/log
594 ls
595 ls | grep mailbox
596 less mailbox.log
597 less mailbox.log.2020-07-18
598 date
599 less mailbox.log.2020-07-18
600 pwd
601 cat mailbox.log.2020-07-18
602 su -zimbra
603 su - zimbra
604 uptime
605 top
606 free -h
607 top
608 su - zimbra
609 less /opt/zimbra/log/nginx.log
610 less /opt/zimbra/log/mailbox.log
611 less /opt/zimbra/log/mailbox.log
612 su - zimbra
613 vi /etc/hosts
614 su - zimbra
615 su zimbra
616 su zimbra
617 ls
618 unzip _jakson_com\ \(3\).zip
619 ls
620 mkdir /tmp/certi
621 ls
622 rm _jakson_com.crt
623 cp _jakson_com\ \(3\).zip /tmp/certi/
624 cd /tmp/certi/
625 ls
626 unzip _jakson_com\ \(3\).zip
627 ls
628 cd /opt/zimbra/ssl/
629 ls
630 cd zimbra
631 ls
632 cd server/
633 ls
634 cd ..
635 ls
636 cd ca/
637 ls
638 cd ..
639 ls
640 cd ..
641 ls
642 cd ..
643 ls
644 cd open
645 cd openssl
646 ls
647 cd /tmp/certi/
648 ls
649 su - zimbra
650 vi /tmp/certi/test.key
651 ls -l /tmp/certi/test.key
652 chmod 777 /tmp/certi/test.key
653 su - zimbra
654 vi /tmp/certi/yoyo.crt
655 chmod 777 /tmp/certi/yoyo.crt
656 su - zimbra
657 vi anotherkey.key
658 su - zimbra
659 cd
660 ls
661 mkdir /tmp/secondcert
662 cp STAR_jakson_com.zip /tmp/secondcert/
663 cd /tmp/secondcert/
664 ls
665 unzip STAR_jakson_com.zip
666 ls
667 su - zimbra
668 cd
669 updatedb
670 locate acme.sh
671 yum install locate
672 cd /opt/zimbra/ssl/zimbra
673 ls
674 cd server/
675 ls
676 curl https://get.acme.sh | sh
677 yum install socat
678 cd
679 curl https://get.acme.sh | sh
680 ls
681 cd .acme.sh/
682 hostname -f
683 ./acme.sh --issue --alpn -d mail.jakson.com --pre-hook "su - zimbra -c
'zmproxyctl stop'" --post-hook "su - zimbra -c 'zmproxyctl start'"
684 cd mail.jakson.com/
685 ls
686 cd ..
687 ls
688 cd ca/
689 ls
690 cd ..
691 cd deploy/
692 ls
693 cd
694 cd .acme.sh/mail.jakson.com/
695 ls
696 less mail.jakson.com.conf
697 !
698 ls
699 cd /tmp/secondcert/
700 ls
701 vi final-bundle
702 su - zimbra
703 ssh 192.168.16.71
704 telnet 192.168.16.71 22
705 su - zimbra
706 telnet 192.168.16.71 22
707 ip a
708 su - zimbra
709 su admin
710 su zimbra
711 su -zimbra
712 su - zimbra
713 su -zimbra
714 df -hl
715 df -h
716 lsblk
717 vgdisplay
718 lvdisplay
719 pvs
720 cat /etc/redhat-release
721 pvdisplay
722 df -h
723 ldblk
724 lsblk
725 cd /dev/
726 ls -al
727 lsblk
728 df -h
729 pvcreate /dev/sdg
730 vgdisplay
731 vgextend cl /dev/sdg
732 lvdisplay
733 lvextend -L+2T /dev/cl/root
734 resize2fs /dev/cl/root
735 cat /etc/fstab
736 df -h
737 xfs_growfs
738 xfs_growfs -D
739 cat /etc/fstab
740 lsblk
741 df -T
742 lvdisplay
743 df -Th
744 su -zimbra
745 su - zimbra
746 df -h
747 netstat -ntplu | grep :25
748 cat /etc/redhat-release
749 systemctl status postfix
750 systemctl stop postfix
751 systemctl disable postfix
752 netstat -ntplu | grep :25
753 su - zimbra
754 netstat -ntplu | grep :25
755 tail -f /var/log/zimbra.log
756 su - zimbra
757 lvs
758 tail -f /var/log/zimbra.log
759 systemctl restart rsyslog
760 tail -f /var/log/zimbra.log
761 /opt/zimbra/common/sbin/mailq
762 tail -f /var/log/zimbra.log
763 df -h
764 /opt/zimbra/common/sbin/mailq
765 exit
766 su - zimbra
767 df -h
768 exit
769 lsblk
770 history
771 ssm list
772 history
773 lsblk
774 fdisk /dev/sdg
775 partprobe /dev/sdg
776 partprobe /dev/sdg11
777 partprobe /dev/sdg1
778 ssm list
779 ssm add -p cl /dev/sdf1
780 ssm add -p cl /dev/sdg1
781 ssm list
782 df -h
783 date
784 less /var/log/zimbra.log
785 su - zimbra
786 lsblk
787 df -h
788 lsblk
789 df -h
790 history|grep -i ssm
791 ssm add -p cl /dev/sdg1
792 history|hrep -i sdf
793 show date
794 date
795 timedatectl status
796 date
797 timedatectl
798 timedatectl set-time 17:05:05
799 date
800 lsblk
801 date
802 systemctl status ntpd
803 systemctl status ntp
804 date +%T -s "17:11:00"
805 date
806 date +%T -s "17:11:00"
807 date
808 date
809 less /var/log/zimbra.log
810 su - zimbra
811 lsblk
812 df -h
813 lsblk
814 df -h
815 history|grep -i ssm
816 ssm add -p cl /dev/sdg1
817 history|hrep -i sdf
818 history|grep -i sdf
819 history
820 shutdown
821 su zimbra
822 history | less
823 history | grep -i ssm
824 lsblk
825 blkid
826 ssm check /dev/mapper/cl-root
827 ssm list
828 ssm check /dev/mapper/cl-root
829 fdisk -l|grep -i dm
830 lsblk
831 history|grep -i cl-pool00_tdata
832 lsbblk
833 ssm add -p cl /dev/sdg1
834 df -h
835 lsblk
836 fdisk /dev/sdg
837 partprobe /dev/sdg
838 vi /etc/fsat
839 vi /etc/fstab
840 lsblk
841 fdisk /dev/sdg
842 partprobe /dev/sdg
843 partprobe /dev/sdg1
844 lsblk
845 ssm add -p cl /dev/sdg1
846 fdisk /dev/sdg
847 partprobe /dev/sdg
848 ssm add -p vvg01 /dev/sdg
849 blkid
850 ssm add -p vvg01 /dev/sdg
851 ssm add -p llv01 /dev/sdg
852 lsblk
853 lsblkid
854 blkid
855 ssm resize -s+2T /dev/cl/root
856 blkid
857 ssm lost
858 ssm list
859 ssm remove -p vvg01 /dev/sdg
860 ssm remove vvg01 /dev/sdg
861 ssm list
862 df -h
863 ssm list
864 df -h
865 ssm list
866 ssm remove vvg01 /dev/sdg
867 ssm add -p cl /dev/sdg
868 lsblk
869 blkid
870 fdisk /dev/sdg
871 partprobe /dev/sdg
872 partprobe /dev/sdg1
873 lsblk
874 ssm add -p cl /dev/sdg1
875 ssm add -p cl /dev/sdg
876 fdisk /dev/sdg
877 partprobe /dev/sdg1
878 partprobe /dev/sdg
879 ssm add -p cl /dev/sdg1
880 ssm add -p cl /dev/sdg
881 fdisk /dev/sdg
882 partprobe /dev/sdg
883 partprobe /dev/sdg1
884 fdisk /dev/sdg
885 partprobe /dev/sdg
886 partprobe /dev/sdg1
887 fdisk /dev/sdg
888 partprobe /dev/sdg
889 ssm add -p cl /dev/sdg
890 lvm vgextend cl /dev/sdg
891 grep -r 969PaB-m5WT-lYiP-6Pfh-qrST-pNyc-WgGeDc *
892 top
893 history
894 lsblk
895 ssm list
896 ssm add -p sdg1 /dev/sdg
897 ssm list
898 ssm remove sdg1 /dev/sdg
899 ssm list
900 ssm remove cl /dev/sdg
901 fdisk /dev/sdg
902 partprobe /dev/sdg
903 partprobe /dev/sdg1
904 partprobe /dev/sdg
905 lsblk
906 fdisk /dev/sde
907 ssm list
908 ssm add -p cl /dev/sdg1
909 pvs
910 pvscan
911 ls -ltr /etc/lvm/archive/
912 less cl_00028-1298571478.vg
913 less /etc/lvm/archive/cl_00028-1298571478.vg
914 pvscan
915 less /etc/lvm/archive/cl_00028-1298571478.vg
916 vgreduce --removemissing --verbose cl
917 pvscan
918 ssm add -p cl /dev/sdg1
919 ssm list
920 df -h
921 vgs
922 ssm remove cl /dev/sdg1
923 ssm list
924 ssm add -p pool00 /dev/sdg1
925 lvs
926 lvextend -L+2.5T cl/pool00
927 lvextend -L+2.0T cl/pool00
928 lvs
929 ssm list
930 lvs
931 ssm resize -s+2T /dev/centos/root
932 ssm resize -s+2T /dev/cl/root
933 ssm list
934 ssm list volumes
935 df -h
936 ssm resize -s-2T /dev/cl/root
937 ssm list
938 vs
939 vgs
940 vgdisplay
941 vgdisplay cl/pool00
942 ssm list
943 lvextend -L +100%FREE pool00
944 lvextend -L+100%FREE pool00
945 lvextend -l +100%FREE pool00
946 lvextend -l +100%FREE cl/pool00
947 ssm list
948 lvextend -l +100%FREE pool00
949 lvextend -l +100%FREE /dev/mapper/cl-pool00
950 ssm list
951 history | less
952 lvextend -l +100%FREE /dev/mapper/cl-root
953 ssm list
954 df -h
955 ssm check
956 df -h
957 ssm list
958 lvextend -L+100G cl/pool00
959 ssm list
960 lvdisplay
961 lvextend -L+100G pool00
962 lvs
963 lvdisplay | less
964 lvchange -a y pool00
965 lvchange -a y cl/pool00
966 lvdisplay | less
967 ssm list
968 df -h
969 vgdisplay | less
970 lvdisplay | less
971 su zimbra
972 exit
973 su zimbra
974 tail -f /var/log/zimbra.log|grep -i archive
975 tail -f /var/log/zimbra.log
976 tail -f /var/log/zimbra.log|grep -i ramesh.jha
977 su - zimbra
978 tail -f /var/log/zimbra.log|grep -i ramesh.jha
979 tail -f /var/log/zimbra.log|grep -i archive
980 su zimbra
981 iptable /nL
982 iptables /nL
983 iptables -nL
984 systemctl restart iptables
985 systemctl restart firewalld
986 iptables -nL
987 firewall-cmd --permanent --remove-rich-rule="rule family='ipv4' source
address='192.168.16.14' service name=smtp reject"
988 systemctl restart firewalld
989 iptables -nL
990 exit
991 su zimbra
992 exit
993 shutdown -r
994 su zimbra
995 tail -f /var/log/zimbra.log|grep -i maildev810
996 su - zimbra
997 exit
998 su zimbra
999 show date
1000 show time
1001 date
1002 chkconfig ntpd on
1003 ntpdate 0.centos.pool.ntp.org
1004 systemctl enable ntpd.service
1005 vi /etc/ntp.conf
1006 date
1007 vi /etc/ntp.conf
1008 hostname
1009 vi /etc/ntp.conf
1010 systemctl reload ntpd.service
1011 systemctl status ntpd.service
1012 systemctl reload systemd-timesyncd
1013 systemctl status systemd-timesyncd
1014 systemctl status systemd-timedated.service
1015 date
1016 cat /etc/timezone
1017 systemctl status ntpd.service
1018 systemctl start ntpd.service
1019 date
1020 systemctl status ntpd.service
1021 systemctl stop ntpd.service
1022 history
[root@mail ~]# timedatectl set-time 13:53:00
Failed to set time: Automatic time synchronization is enabled
[root@mail ~]# timedatectl
Local time: Tue 2021-05-18 14:00:12 IST
Universal time: Tue 2021-05-18 08:30:12 UTC
RTC time: Tue 2021-05-18 08:29:44
Time zone: Asia/Kolkata (IST, +0530)
NTP enabled: yes
NTP synchronized: no
RTC in local TZ: no
DST active: n/a
[root@mail ~]# ntpq -p
ntpq: read: Connection refused
[root@mail ~]# date -R
Tue, 18 May 2021 14:01:41 +0530
[root@mail ~]# ntpdate -q 0.ro.pool.ntp.org 1.ro.pool.ntp.org
server 162.159.200.1, stratum 0, offset 0.000000, delay 0.00000
server 162.159.200.123, stratum 0, offset 0.000000, delay 0.00000
server 188.213.49.35, stratum 0, offset 0.000000, delay 0.00000
server 162.159.200.1, stratum 0, offset 0.000000, delay 0.00000
server 162.159.200.123, stratum 0, offset 0.000000, delay 0.00000
server 188.213.49.35, stratum 0, offset 0.000000, delay 0.00000
18 May 14:02:45 ntpdate[27744]: no server suitable for synchronization found
[root@mail ~]# ntpdate -q 192.168.16.37
server 192.168.16.37, stratum 0, offset 0.000000, delay 0.00000
18 May 14:03:57 ntpdate[28519]: no server suitable for synchronization found
[root@mail ~]# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 0.0.0.0:7995 0.0.0.0:* LISTEN
24625/java
tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN
24625/java
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
3922/nginx: master
tcp 0 0 0.0.0.0:444 0.0.0.0:* LISTEN
1494/sshd
tcp 0 0 0.0.0.0:7071 0.0.0.0:* LISTEN
24625/java
tcp 0 0 127.0.0.1:23232 0.0.0.0:* LISTEN
6899/perl
tcp 0 0 0.0.0.0:7072 0.0.0.0:* LISTEN
24625/java
tcp 0 0 127.0.0.1:23233 0.0.0.0:* LISTEN
6904/perl
tcp 0 0 0.0.0.0:7073 0.0.0.0:* LISTEN
24625/java
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN
3922/nginx: master
tcp 0 0 127.0.0.1:7171 0.0.0.0:* LISTEN
19164/java
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN
3922/nginx: master
tcp 0 0 192.168.18.240:389 0.0.0.0:* LISTEN
1918/slapd
tcp 0 0 0.0.0.0:7110 0.0.0.0:* LISTEN
24625/java
tcp 0 0 127.0.0.1:10663 0.0.0.0:* LISTEN
20532/zmlogger: zmr
tcp 0 0 0.0.0.0:7143 0.0.0.0:* LISTEN
24625/java
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN
6937/amavisd (maste
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN
6010/master
tcp 0 0 127.0.0.1:10026 0.0.0.0:* LISTEN
6937/amavisd (maste
tcp 0 0 127.0.0.1:7306 0.0.0.0:* LISTEN
3437/mysqld
tcp 0 0 127.0.0.1:10027 0.0.0.0:* LISTEN
6010/master
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN
6010/master
tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN
3894/memcached
tcp 0 0 127.0.0.1:10028 0.0.0.0:* LISTEN
6010/master
tcp 0 0 127.0.0.1:10029 0.0.0.0:* LISTEN
6010/master
tcp 0 0 127.0.0.1:10030 0.0.0.0:* LISTEN
6010/master
tcp 0 0 127.0.0.1:3310 0.0.0.0:* LISTEN
4440/clamd
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
3922/nginx: master
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN
3922/nginx: master
tcp 0 0 127.0.0.1:10032 0.0.0.0:* LISTEN
6937/amavisd (maste
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN
24625/java
tcp 0 0 0.0.0.0:7025 0.0.0.0:* LISTEN
24625/java
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN
3961/smtpd
tcp 0 0 127.0.0.1:8465 0.0.0.0:* LISTEN
4597/opendkim
tcp 0 0 0.0.0.0:7026 0.0.0.0:* LISTEN
10867/java
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
1494/sshd
tcp 0 0 0.0.0.0:7993 0.0.0.0:* LISTEN
24625/java
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
6010/master
tcp6 0 0 :::444 :::* LISTEN
1494/sshd
tcp6 0 0 :::7780 :::* LISTEN
1826/httpd
tcp6 0 0 ::1:10024 :::* LISTEN
6937/amavisd (maste
tcp6 0 0 ::1:10026 :::* LISTEN
6937/amavisd (maste
tcp6 0 0 :::11211 :::* LISTEN
3894/memcached
tcp6 0 0 ::1:10032 :::* LISTEN
6937/amavisd (maste
tcp6 0 0 :::22 :::* LISTEN
1494/sshd
[root@mail ~]# ifconfig
ens34: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:50:56:8c:78:34 txqueuelen 1000 (Ethernet)
RX packets 45436172 bytes 4739650561 (4.4 GiB)
RX errors 0 dropped 91464 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500


inet 192.168.18.240 netmask 255.255.255.0 broadcast 192.168.18.255
inet6 fe80::250:56ff:fe8c:9037 prefixlen 64 scopeid 0x20<link>
ether 00:50:56:8c:90:37 txqueuelen 1000 (Ethernet)
RX packets 4466958009 bytes 1134056610562 (1.0 TiB)
RX errors 0 dropped 98104 overruns 0 frame 0
TX packets 3507357324 bytes 15532860301612 (14.1 TiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536


inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 16379993828 bytes 40612742167454 (36.9 TiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16379993828 bytes 40612742167454 (36.9 TiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[root@mail ~]# nmtui


[root@mail ~]# nmtui
[root@mail ~]# ifconfig
ens34: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:50:56:8c:78:34 txqueuelen 1000 (Ethernet)
RX packets 45438569 bytes 4739917430 (4.4 GiB)
RX errors 0 dropped 91464 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500


inet 192.168.18.240 netmask 255.255.255.0 broadcast 192.168.18.255
inet6 fe80::250:56ff:fe8c:9037 prefixlen 64 scopeid 0x20<link>
ether 00:50:56:8c:90:37 txqueuelen 1000 (Ethernet)
RX packets 4467378789 bytes 1134154198477 (1.0 TiB)
RX errors 0 dropped 98104 overruns 0 frame 0
TX packets 3507669035 bytes 15534210402557 (14.1 TiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536


inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 16381266658 bytes 40615955239044 (36.9 TiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16381266658 bytes 40615955239044 (36.9 TiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[root@mail ~]# systemctl restart networking


Failed to restart networking.service: Unit not found.
[root@mail ~]# systemctl status networking
Unit networking.service could not be found.
[root@mail ~]# systemctl restart NetworkManager
[root@mail ~]# ifconfig
ens34: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:50:56:8c:78:34 txqueuelen 1000 (Ethernet)
RX packets 45439645 bytes 4740045475 (4.4 GiB)
RX errors 0 dropped 91464 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500


inet 192.168.18.240 netmask 255.255.255.0 broadcast 192.168.18.255
inet6 fe80::250:56ff:fe8c:9037 prefixlen 64 scopeid 0x20<link>
ether 00:50:56:8c:90:37 txqueuelen 1000 (Ethernet)
RX packets 4467585498 bytes 1134221396329 (1.0 TiB)
RX errors 0 dropped 98104 overruns 0 frame 0
TX packets 3507834296 bytes 15534832115950 (14.1 TiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536


inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 16382017252 bytes 40617884001622 (36.9 TiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16382017252 bytes 40617884001622 (36.9 TiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[root@mail ~]# ntpdate -q 192.168.16.37


server 192.168.16.37, stratum 0, offset 0.000000, delay 0.00000
18 May 14:12:19 ntpdate[4964]: no server suitable for synchronization found
[root@mail ~]# systemctl restart network.service
[root@mail ~]# ifconfig
ens34: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:50:56:8c:78:34 txqueuelen 1000 (Ethernet)
RX packets 45440189 bytes 4740109001 (4.4 GiB)
RX errors 0 dropped 91464 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500


inet 192.168.18.240 netmask 255.255.252.0 broadcast 192.168.19.255
inet6 fe80::250:56ff:fe8c:9037 prefixlen 64 scopeid 0x20<link>
ether 00:50:56:8c:90:37 txqueuelen 1000 (Ethernet)
RX packets 4467681074 bytes 1134279189074 (1.0 TiB)
RX errors 0 dropped 98104 overruns 0 frame 0
TX packets 3507909694 bytes 15535114379087 (14.1 TiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536


inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 16382376985 bytes 40618763949499 (36.9 TiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16382376985 bytes 40618763949499 (36.9 TiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@mail ~]# ntpdate -q 192.168.16.37
server 192.168.16.37, stratum 0, offset 0.000000, delay 0.00000
18 May 14:13:09 ntpdate[6045]: no server suitable for synchronization found
[root@mail ~]# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 0.0.0.0:7995 0.0.0.0:* LISTEN
24625/java
tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN
24625/java
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
3922/nginx: master
tcp 0 0 0.0.0.0:444 0.0.0.0:* LISTEN
1494/sshd
tcp 0 0 0.0.0.0:7071 0.0.0.0:* LISTEN
24625/java
tcp 0 0 127.0.0.1:23232 0.0.0.0:* LISTEN
6899/perl
tcp 0 0 0.0.0.0:7072 0.0.0.0:* LISTEN
24625/java
tcp 0 0 127.0.0.1:23233 0.0.0.0:* LISTEN
6904/perl
tcp 0 0 0.0.0.0:7073 0.0.0.0:* LISTEN
24625/java
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN
3922/nginx: master
tcp 0 0 127.0.0.1:7171 0.0.0.0:* LISTEN
19164/java
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN
3922/nginx: master
tcp 0 0 192.168.18.240:389 0.0.0.0:* LISTEN
1918/slapd
tcp 0 0 0.0.0.0:7110 0.0.0.0:* LISTEN
24625/java
tcp 0 0 127.0.0.1:10663 0.0.0.0:* LISTEN
20532/zmlogger: zmr
tcp 0 0 0.0.0.0:7143 0.0.0.0:* LISTEN
24625/java
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN
2793/amavisd (ch15-
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN
3466/smtpd
tcp 0 0 127.0.0.1:10026 0.0.0.0:* LISTEN
2793/amavisd (ch15-
tcp 0 0 127.0.0.1:7306 0.0.0.0:* LISTEN
3437/mysqld
tcp 0 0 127.0.0.1:10027 0.0.0.0:* LISTEN
6010/master
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN
4228/smtpd
tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN
3894/memcached
tcp 0 0 127.0.0.1:10028 0.0.0.0:* LISTEN
6010/master
tcp 0 0 127.0.0.1:10029 0.0.0.0:* LISTEN
6010/master
tcp 0 0 127.0.0.1:10030 0.0.0.0:* LISTEN
6010/master
tcp 0 0 127.0.0.1:3310 0.0.0.0:* LISTEN
4440/clamd
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
3922/nginx: master
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN
3922/nginx: master
tcp 0 0 127.0.0.1:10032 0.0.0.0:* LISTEN
2793/amavisd (ch15-
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN
24625/java
tcp 0 0 0.0.0.0:7025 0.0.0.0:* LISTEN
24625/java
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN
3961/smtpd
tcp 0 0 127.0.0.1:8465 0.0.0.0:* LISTEN
4597/opendkim
tcp 0 0 0.0.0.0:7026 0.0.0.0:* LISTEN
10867/java
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
1494/sshd
tcp 0 0 0.0.0.0:7993 0.0.0.0:* LISTEN
24625/java
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
6010/master
tcp6 0 0 :::444 :::* LISTEN
1494/sshd
tcp6 0 0 :::7780 :::* LISTEN
1826/httpd
tcp6 0 0 ::1:10024 :::* LISTEN
2793/amavisd (ch15-
tcp6 0 0 ::1:10026 :::* LISTEN
2793/amavisd (ch15-
tcp6 0 0 :::11211 :::* LISTEN
3894/memcached
tcp6 0 0 ::1:10032 :::* LISTEN
2793/amavisd (ch15-
tcp6 0 0 :::22 :::* LISTEN
1494/sshd
[root@mail ~]# ntpdate -q localhost
server 127.0.0.1, stratum 0, offset 0.000000, delay 0.00000
18 May 14:14:13 ntpdate[6894]: no server suitable for synchronization found
[root@mail ~]#
[root@mail ~]# timedatectl set-time 14:08
Failed to set time: Automatic time synchronization is enabled
[root@mail ~]# timedatectl set-ntp 1
[root@mail ~]# timedatectl set-ntp 0
[root@mail ~]# timedatectl set-time 14:10
[root@mail ~]# timedatectl set-ntp 1
[root@mail ~]# date
Tue May 18 14:10:06 IST 2021
[root@mail ~]# date
Tue May 18 14:10:44 IST 2021
[root@mail ~]# date
Tue May 18 14:10:56 IST 2021
[root@mail ~]# timedatectl set-ntp 0
[root@mail ~]# timedatectl set-time 14:13:30
[root@mail ~]# timedatectl set-ntp 1
[root@mail ~]# date
Tue May 18 14:13:40 IST 2021
[root@mail ~]# date
Tue May 18 14:14:07 IST 2021
[root@mail ~]#

You might also like