{"id":1599,"date":"2020-04-21T11:40:10","date_gmt":"2020-04-21T09:40:10","guid":{"rendered":"http:\/\/www.netnea.com\/cms\/?p=1599"},"modified":"2020-04-22T11:28:37","modified_gmt":"2020-04-22T09:28:37","slug":"cisco-prime-3-x-fills-up-var","status":"publish","type":"post","link":"https:\/\/www.netnea.com\/cms\/2020\/04\/21\/cisco-prime-3-x-fills-up-var\/","title":{"rendered":"Cisco Prime 3.x fills up \/var"},"content":{"rendered":"\n<p>Symptom : Prime 3.7 won&#8217;t start. Reason : \/var is full, as \/var\/log\/wtmp fills up quickly :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo -i\nls -l \/var\/log\/wtmp\nade # utmpdump \/var\/log\/wtmp | more\n    [5] [06834] [tyS0] [     ] [ttyS0] [ ] [0.0.0.0] [Tue Feb 04 21:30:45 2020 CET]\n    [5] [06835] [tyS1] [     ] [ttyS1] [ ] [0.0.0.0] [Tue Feb 04 21:30:45 2020 CET]\n    [6] [06834] [tyS0] [LOGIN] [ttyS0] [ ] [0.0.0.0] [Tue Feb 04 21:30:45 2020 CET]\n    [6] [06835] [tyS1] [LOGIN] [ttyS1] [ ] [0.0.0.0] [Tue Feb 04 21:30:45 2020 CET]\n    [8] [06834] [tyS0] [     ] [ttyS0] [ ] [0.0.0.0] [Tue Feb 04 21:30:55 2020 CET]\n    [8] [06835] [tyS1] [     ] [ttyS1] [ ] [0.0.0.0] [Tue Feb 04 21:30:55 2020 CET]<\/pre>\n\n\n\n<p>But what fills up so quickly ? The ttyS0 above gives a hint, let&#8217;s look at the service : oops, it starts every 10 seconds, fails and retry&#8230;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">journalctl -u serial-getty@ttyS0.service\n    Apr 21 09:46:55 hostname systemd[1]: serial-getty@ttyS0.service holdoff time over, scheduling restart.\n    Apr 21 09:46:55 hostname systemd[1]: Stopped Serial Getty on ttyS0.\n    Apr 21 09:46:55 hostname systemd[1]: Started Serial Getty on ttyS0.\n    Apr 21 09:46:55 hostname agetty[28879]: \/dev\/ttyS0: not a tty\n<\/pre>\n\n\n\n<p>So, why is my Cisco Prime Appliance failing to start Getty ? Because my ESX VM&#8217;s do not have serial ports&#8230; I only wonder why Cisco has this service enabled on their VM appliance.<\/p>\n\n\n\n<p>The fix :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl stop serial-getty@ttyS0.service\nsudo systemctl disable serial-getty@ttyS0.service\nsudo systemctl stop serial-getty@ttyS1.service\nsudo systemctl disable serial-getty@ttyS1.service \nsudo -i\ncat \/dev\/null &gt; \/var\/log\/wtmp <\/pre>\n\n\n\n<p>Problem fixed. I will announce it to Cisco, hopefully it will end up in an update. Prime 3.8 runs on top of a newer RedHat version, maybe it&#8217;s fixed there.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Symptom : Prime 3.7 won&#8217;t start. Reason : \/var is full, as \/var\/log\/wtmp fills up quickly : sudo -i ls -l \/var\/log\/wtmp ade # utmpdump \/var\/log\/wtmp | more [5] [06834] [tyS0] [ ] [ttyS0] [ ] [0.0.0.0] [Tue Feb 04 21:30:45 2020 CET] [5] [06835] [tyS1] [ ] [ttyS1] [ ] [0.0.0.0] [Tue Feb 04 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1600,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,3],"tags":[],"class_list":{"0":"post-1599","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-linux","8":"category-nms","9":"czr-hentry"},"_links":{"self":[{"href":"https:\/\/www.netnea.com\/cms\/wp-json\/wp\/v2\/posts\/1599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.netnea.com\/cms\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.netnea.com\/cms\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.netnea.com\/cms\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.netnea.com\/cms\/wp-json\/wp\/v2\/comments?post=1599"}],"version-history":[{"count":9,"href":"https:\/\/www.netnea.com\/cms\/wp-json\/wp\/v2\/posts\/1599\/revisions"}],"predecessor-version":[{"id":1609,"href":"https:\/\/www.netnea.com\/cms\/wp-json\/wp\/v2\/posts\/1599\/revisions\/1609"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.netnea.com\/cms\/wp-json\/wp\/v2\/media\/1600"}],"wp:attachment":[{"href":"https:\/\/www.netnea.com\/cms\/wp-json\/wp\/v2\/media?parent=1599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.netnea.com\/cms\/wp-json\/wp\/v2\/categories?post=1599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.netnea.com\/cms\/wp-json\/wp\/v2\/tags?post=1599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}