Enable NTP statistics

Edit file /etc/ntp.conf

#Enable NTP statistics
statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

Restart ntp service. If it shows the following message, the directory /var/log/ntpstats has wrong permissions

May 21 14:56:40 linux ntpd[11202]: can’t open /var/log/ntpstats/peerstats.20150521: Permission denied

ntpd is running under user ntp

root@linux:~ # ps -ef | grep ntp
ntp 31445 1 0 15:05 ? 00:00:00 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g

Change the permission as needed

root@linux:~ # ls -ld /var/log/ntpstats
drwxr-xr-x 2 ntp ntp 4096 May 21 15:00 /var/log/ntpstats

Discover HMC information on AIX 5 and AIX 6

On AIX 5

emerson@aix5:~$ sudo lsrsrc IBM.ManagementServer
Resource Persistent Attributes for IBM.ManagementServer
resource 1:
Name = “201.20.130.3”
Hostname = “201.20.130.3”
ManagerType = “HMC”
LocalHostname = “201.20.130.147”
ClusterTM = “9078-160”
ClusterSNum = “”
ActivePeerDomain = “”
NodeNameList = {“aix5”}

On AIX 6

emerson@aix6:~$ lsrsrc IBM.MCP
Resource Persistent Attributes for IBM.MCP
resource 1:
MNName = “172.26.21.111”
NodeID = 2399330769087853952
KeyToken = “HMC2”
IPAddresses = {“172.26.21.120”}
ConnectivityNames = {“172.26.21.111”}
HMCName = “7042CR6*104BB9C”
HMCIPAddr = “172.26.21.120”
HMCAddIPs = “172.16.0.1”
HMCAddIPv6s = “”
ActivePeerDomain = “”
NodeNameList = {“aix6”}

sccli – Sun StorEdge 3000 Family Command Line Interface

Some examples of what you can do with sccli

root@solaris8:/ # sccli
Available devices:

1. /dev/rdsk/c4t216000C0FF89C9A5d0s2 [SUN StorEdge 3510 SN#09C9A5] (Primary)
2. /dev/rdsk/c4t256000C0FFC9CBB4d0s2 [SUN StorEdge 3510 SN#09CBB4] (Primary)

Please enter selection: 1

sccli> show logical-drives
LD LD-ID Size Assigned Type Disks Spare Failed Status
————————————————————————
ld0 716D7329 408.70GB Primary RAID1 11 0 1 Rebuilding
Write-Policy Default StripeSize 128KB

sccli> show disks
Ch Id Size Speed LD Status IDs Rev
—————————————————————————-
2(3) 32 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1303
S/N 000710B0LLG6
WWNN 500000E014CC09D0
2(3) 33 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000613B0CJAU
WWNN 500000E011DD1100
2(3) 34 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000613B0CJAY
WWNN 500000E011DD1130
2(3) 35 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000613B0CJBF
WWNN 500000E011DD1230
2(3) 36 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000613B0CJB0
WWNN 500000E011DD1140
2(3) 37 68.37GB 200MB ld0 REBUILD FUJITSU MAW3073FCSUN72G 1303
S/N 000710B0LJYG
WWNN 500000E014C882C0
2(3) 38 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000614B0CU9N
WWNN 500000E011E1D5B0
2(3) 39 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000613B0CJ9K
WWNN 500000E011DD06A0
2(3) 40 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000613B0CJ9F
WWNN 500000E011DD0660
2(3) 41 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000614B0CUB5
WWNN 500000E011E1D880
2(3) 42 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000613B0CJ9H
WWNN 500000E011DD0680
2(3) 43 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000614B0CUBC
WWNN 500000E011E1D8F0

Solaris Auditing facility on a Solaris 9 Brandz

Showing this message on /var/adm/messages file

Jan 22 11:45:01 solaris9brandz C0047233: [ID 702911 daemon.alert] audit failed to start because it cannot read or write the system’s audit state. This may be due to a configuration error. Must reboot to start auditing!

Apparently no problems in the file /etc/system

root@solaris9brandz:/ # grep audit /etc/system
set c2audit:audit_load = 1

Starting audit shows lots of error messages

root@solaris9brandz:/ # /etc/init.d/audit start
Starting BSM services.
auditconfig: auditon(2) failed.
auditconfig: error = Invalid argument(22)
auditconfig: auditon(2) failed.
auditconfig: error = Invalid argument(22)
auditconfig: auditon(2) failed.
auditconfig: error = Invalid argument(22)
auditconfig: auditon(2) failed.
auditconfig: error = Invalid argument(22)

Checking /etc/security/audit_control file doesn’t show any irregularities

root@solaris9brandz:/ # cat /etc/security/audit_control
#
# Copyright (c) 1988 by Sun Microsystems, Inc.
#
# ident “@(#)audit_control.txt 1.4 00/07/17 SMI”
#
dir:/audit
flags: lo,ad,ex
minfree: 20
naflags: lo,ad,ex

Checking System Administration Guide: Oracle Solaris 9 Containers
Shows Limitations Specific to solaris9 Branded Zones
The following limitations apply to solaris9 branded zones:

Solaris Auditing and Solaris Basic Security Module Auditing, described in bsmconv(1M) and auditon(2), are not supported. The audit subsystem will always appear to be disabled.

UXMON: Service /system/webconsole:console (java web console) status is maintenance.

Node : solaris10.setaoffice.com
Node Type : Sun SPARC (HTTPS)
Severity : minor
OM Server Time: 2015-05-11 19:47:56
Message : UXMON: Service /system/webconsole:console (java web console) status is maintenance.
Msg Group : OS
Application : svcsmon
Object : svcs
Event Type :
not_found

Instance Name :
not_found

Instruction : The svcsmon has detected solaris service status

Please, for details, browse the /var/opt/OV/log/OpC/svcs_mon.log
The configuration file uses to be /var/opt/OV/conf/OpC/svcs_mon.cfg

Verify the service status

root@solaris10:~ # svcs -xv svc:/system/webconsole:console
svc:/system/webconsole:console (java web console)
State: maintenance since Tue May 12 07:24:23 2015
Reason: Restarting too quickly.
See: http://sun.com/msg/SMF-8000-L5
See: man -M /usr/share/man -s 1M smcwebserver
See: /var/svc/log/system-webconsole:console.log
Impact: This service is not running.

After disabling the service, it is not completely disabled

root@solaris10:~ # svcs svc:/system/webconsole:console
STATE STIME FMRI
offline* 10:26:43 svc:/system/webconsole:console

Run this command as shown below and then run svcadm clear svc:/system/webconsole:console

root@solaris10:~ # /usr/share/webconsole/private/bin/wcremove -i console

Stopping console process…

Disabling console service…

Removing console instance configuration files…

root@solaris10:~ # svcadm clear svc:/system/webconsole:console

It shouldn’t be a problem anymore

root@solaris10:~ # svcs svc:/system/webconsole:console
STATE STIME FMRI
disabled 10:27:35 svc:/system/webconsole:console

If you still have problems, check the process of the svc-webconsole script and then kill it. First try to kill with kill and if it not works, use kill -9

root@solaris10:~ # ps -ef | grep web
root 15623 9 0 10:27:06 ? 0:00 /sbin/sh /lib/svc/method/svc-webconsole start
root 15646 15623 0 10:27:07 ? 0:00 /bin/sh /usr/share/webconsole/private/bin/sjwcx start -i console -u noaccess —
root 15649 15646 0 10:27:07 ? 0:03 /usr/java/bin/java -cp /usr/share/webconsole/private/lib/console_config.jar:/us

root@solaris10:~ # kill -9 15623

Check again. It should be disabled

root@solaris10:~ # svcs svc:/system/webconsole:console
STATE STIME FMRI
disabled 10:27:52 svc:/system/webconsole:console

How to configure VDSL2 modem to connect to Live TIM in Brazil

If you want to buy a modem to use with Live TIM in Brazil you need to make sure you’re buying a VDSL2 modem.

If you buy an ADSL2 or an ADSL2+ modem, it will not work.

You need the following information to make a connection in your modem

ATM Configuration

VPI(0-255):0
VCI(32-65535):41

PPPoE

PPP Username: guest
PPP Password: guest

Where to download (HP) fibreutils package?

You can get the fibreutils package on the ISO image for HP Service Pack for Proliant on hp/swpackages directory

root@linux:~ # rpm -qi fibreutils
Name : fibreutils Relocations: (not relocatable)
Version : 3.2 Vendor: Hewlett-Packard Company
Release : 3 Build Date: Wed 04 May 2011 11:34:14 PM BRT
Install Date: Fri 28 Oct 2011 06:42:26 PM BRST Build Host: localhost.localdomain
Group : Applications/System Source RPM: fibreutils-3.2-3.src.rpm
Size : 73160 License: Proprietary
Signature : (none)
Packager : Hewlett-Packard Company
URL : http://www.hp.com
Summary : Provides complimentary programs and scripts for HP supported fibre channel HBAs
Description :
This RPM has the following components:

* Miscellaneous scripts and programs to compliment HP supported FC drivers:

lssd
lssg
adapter_info
hp_rescan
scsi_info

root@linux:~ # lssd -h
Usage: /usr/bin/lssd [-w|l|c|h]

Prints all bound /dev/sd* devices

-w: print world wide node name of devices
-l: print inquiry page 0x83 UUID of devices
-c: print cached data instead of scanning
-h: print help message

root@linux:~ # lssg -h
Usage: /usr/bin/lssg [-w|l|c|h]

Prints all bound /dev/sd* devices

-w: print world wide node name of devices
-l: print inquiry page 0x83 UUID of devices
-c: print cached data instead of scanning
-h: print help message

root@linux:~ # adapter_info -h
NAME

adapter_info

DESCRIPTION

Prints information about Fibre Channel HBAs/CNAs.

OPTIONS

-d, –device – Prints all information for a specific SCSI host adapter
-h, –help – Prints this help message
-i, –versioninfo – Prints driver version information for all HBAs
-l, –luns – Prints the device information for all HBAs
-m, –model – Prints the HBA model for all HBAs
-p, –pciids – Prints the PCI IDs for all HBAs
-r, –remoteports – Prints the attached remote ports for all HBAs
-v, –verbose – Prints all information except device and LUN information

root@linux:~ # hp_rescan -h
NAME

hp_rescan

DESCRIPTION

Sends the rescan signal to all or selected Fibre Channel HBAs/CNAs.

OPTIONS

-a, –all – Rescan all Fibre Channel HBAs
-h, –help – Prints this help message
-i, –instance – Rescan a particular instance
-l, –list – List all supported Fibre Channel HBAs

root@linux:~ # scsi_info
syntax: scsi_info

UXMON: NTP Problems. Running on local time. Peer: 127.127.1.0 Cur. Offset: 0.000 Cur. Symbol: * Ref. ID: .LOCL.

Node : linux.setaoffice.com
Node Type : Intel/AMD x64(HTTPS)
Severity : minor
OM Server Time: 2015-03-24 19:54:33
Message : UXMON: NTP Problems. Running on local time. Peer: 127.127.1.0 Cur. Offset: 0.000 Cur. Symbol: * Ref. ID: .LOCL.
Msg Group : OS
Application : ntpmon
Object : ntpq
Event Type :
not_found

Instance Name :
not_found

Instruction : This message shows no valid peers

Please, contact with your UX expert

Please check /var/opt/OV/log/OpC/ntp_mon.log for more details

Checking /var/opt/OV/log/OpC/ntp_mon.log shows the following message:

Mon Mar 30 09:04:47 2015 : NTP Problems. Running on local time. Peer: 127.127.1.0 Cur. Offset: 0.000 Cur. Symbol: * Ref. ID: .LOCL.

Edit file /etc/ntp.conf to not use the local clock

root@linux:~ # vi /etc/ntp.conf
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
#server 127.127.1.0 # local clock
#fudge 127.127.1.0 stratum 10

device-mapper: create ioctl failed: Device or resource busy

I was trying to create the device file partition but I was receiving an error message

root@linux:~ # kpartx -a /dev/mapper/mpathm
device-mapper: create ioctl failed: Device or resource busy
create/reload failed on mpathm1

The disk already had a partition. Let’s use dmsetup to see what we have

root@linux:~ # dmsetup ls | grep mpathm
mpathm-part1 (253, 38)
mpathm (253, 32)

We already have a mpathm partition registered so we need to remove

root@linux:~ # dmsetup remove mpathm-part1

Then retry

root@linux:~ # kpartx -a /dev/mapper/mpathm
root@linux:~ #

UXMON: NTP Problems. Running on local time. Peer: 127.127.1.0 Cur. Offset: 0.000 Cur.

Having this problem alerted on a Linux system

Node : linux.setaoffice.com
Node Type : Intel/AMD x64(HTTPS)
Severity : minor
OM Server Time: 2015-03-24 19:54:33
Message : UXMON: NTP Problems. Running on local time. Peer: 127.127.1.0 Cur. Offset: 0.000 Cur. Symbol: * Ref. ID: .LOCL.
Msg Group : OS
Application : ntpmon
Object : ntpq
Event Type :
not_found

Instance Name :
not_found

Instruction : This message shows no valid peers

Please, contact with your UX expert

Please check /var/opt/OV/log/OpC/ntp_mon.log for more details

Verifying the log file I noticed the following

root@linux:~ # tail -50 /var/opt/OV/log/OpC/ntp_mon.log
NTP Problems. Running on local time. Peer: 127.127.1.0 Cur. Offset: 0.000 Cur. Symbol: * Ref. ID: .LOCL.”

It is using the fake driver even if it is configured to use 4 NTP servers configured

root@linux:~ # ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*LOCAL(0) .LOCL. 10 l 38 64 377 0.000 0.000 0.001
NTP1server 172.16.73.51 4 u 5 16 1 31.138 -15.569 0.001
NTP2server 172.16.73.9 3 u 4 16 1 26.626 -15.001 0.001
NTP3server 172.16.73.50 5 u 3 16 1 23.416 -16.803 0.001
NTP4server 172.16.73.51 4 u 2 16 1 28.340 -10.889 0.001

Stopped NTP service and it was still listening

root@linux:~ # service ntp stop
Shutting down network time protocol daemon (NTPD) done

root@linux:~ # ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*LOCAL(0) .LOCL. 10 l 65 64 377 0.000 0.000 0.001
NTP1server 172.16.73.51 4 u – 16 377 30.697 -18.969 2.157
NTP2server 172.16.73.9 3 u 13 16 377 26.172 -1.256 1.121
NTP3server 172.16.73.50 5 u 11 16 377 23.315 -12.326 8.230
NTP4server 172.16.73.51 4 u 16 16 377 28.309 -11.716 2.544

Found that there was already another NTP process running

root@linux:~ # ps -ef | grep ntp
root 23339 1 0 2014 ? 00:38:38 ntpd -pq
root 30880 23657 0 10:07 pts/8 00:00:00 grep ntp

Killed the process

root@linux:~ # kill 23339
root@linux:~ # ps -ef | grep ntp
root 30918 23657 0 10:07 pts/8 00:00:00 grep ntp

NTP stopped listening

root@linux:~ # ntpq -p
ntpq: read: Connection refused

Started NTO service

root@linux:~ # service ntp start
Starting network time protocol daemon (NTPD) done

root@linux:~ # ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
NTP1server 172.16.73.51 4 u 5 16 1 31.138 -15.569 0.001
NTP2server 172.16.73.9 3 u 4 16 1 26.626 -15.001 0.001
NTP3server 172.16.73.50 5 u 3 16 1 23.416 -16.803 0.001
NTP4server 172.16.73.51 4 u 2 16 1 28.340 -10.889 0.001

Follow

Get every new post delivered to your Inbox.

Join 3,062 other followers

%d bloggers like this: