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

HPOM – UXMON: File /var/log/messages age exceeds 1d threshold.

Removed file /var/opt/OV/conf/OpC/act_mon.cfg that had some configuration about the file /var/log/messages

################################################################################
#
# The intention of this script is to monitor the last modification time of a
# file, or to monitor its size. This is used to supervise other programs or
# scripts which have to write regularly to their logfile. If a program or a
# script doesn’t modify “its” file, there is probably something wrong with this process.
#
# If the configured interval is exceeded for the file which is intended to be
# monitored, or if the size is above or below the configured limit (depending
# on whether the size threshold has a < or > modifier),
# a log-message is written
#
#
################################################################################

[LINUX]
/var/log/cron 2d WARNING 0000-2400 * TT_LINUX
/var/log/messages 1d warning 0000-2400 * TT_LINUX

ia64dsk: The disk for dev_t d00009b appears to have grown since the partition table was written.

We are seeing a message about a disk to have grown since the partition table was written.

We had a storage migration using an HP MPX200 router

root@hp-ux:~ # dmesg

Mar 19 14:33

09b appears to have grown since the partition table was written.
ia64dsk: The disk for dev_t d00009b appears to have grown since the partition table was written.

To identify the disk, check /dev

root@hp-ux:~ # ls -ltraR /dev | grep 009b
crw-r—– 1 bin sys 13 0x00009b Feb 12 14:29 disk30
brw-r—– 1 bin sys 1 0x00009b Feb 12 14:29 disk30

According to idisk, we need to use -G option but it is not documented on the manual page

root@hp-ux:~ # idisk -p /dev/rdisk/disk30
idisk version: 1.44

EFI Primary Header:
Signature = EFI PART
Revision = 0x10000
HeaderSize = 0x5c
HeaderCRC32 = 0x65182f71
MyLbaLo = 0x1
MyLbaHi = 0x0
AlternateLbaLo = 0x117fffff
AlternateLbaHi = 0x0
FirstUsableLbaLo = 0x40
FirstUsableLbaHi = 0x0
LastUsableLbaLo = 0x117fffbf
LastUsableLbaHi = 0x0
Disk GUID = 9d7ea890-0835-11e4-8000-d6217b60e588
PartitionEntryLbaLo = 0x2
PartitionEntryLbaHi = 0x0
NumberOfPartitionEntries = 0xc
SizeOfPartitionEntry = 0x80
PartitionEntryArrayCRC32 = 0x6c45b3e0

Primary Partition Table (in 512 byte blocks):
Partition 1 (EFI):
Partition Type GUID = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
Unique Partition GUID = 9d7eaaf2-0835-11e4-8000-d6217b60e588
Starting Lba Lo = 0x40
Starting Lba Hi = 0x0
Ending Lba Lo = 0xf9fff
Ending Lba Hi = 0x0
Partition 2 (HP-UX):
Partition Type GUID = 75894c1e-3aeb-11d3-b7c1-7b03a0000000
Unique Partition GUID = 9d7eab10-0835-11e4-8000-d6217b60e588
Starting Lba Lo = 0xfa000
Starting Lba Hi = 0x0
Ending Lba Lo = 0x117377ff
Ending Lba Hi = 0x0
Partition 3 (HPSP):
Partition Type GUID = e2a1e728-32e3-11d6-a682-7b03a0000000
Unique Partition GUID = 9d7eab24-0835-11e4-8000-d6217b60e588
Starting Lba Lo = 0x11737800
Starting Lba Hi = 0x0
Ending Lba Lo = 0x117ff7ff
Ending Lba Hi = 0x0
NOTE: This disk appears to have grown since the partition
table was written. Use idisk with the -G option to
extend the usable space to fill the disk.

There should be a difference in cylinders and blocks between the two disks that is causing this message

Follow

Get every new post delivered to your Inbox.

Join 3,062 other followers

%d bloggers like this: