Archive for category Solaris

Solaris HBA information

On a Solaris system, you can use the command fcinfo to get HBA related information:


# fcinfo hba-port
HBA Port WWN: 210000144fe71480
    OS Device Name: /dev/cfg/c1
    Manufacturer: QLogic Corp.
    Model: 2200
    Type: L-port
    State: online
    Supported Speeds: 1Gb
    Current Speed: 1Gb
    Node WWN: 200000144fe71480
HBA Port WWN: 10000000c950c6a2
    OS Device Name: /dev/cfg/c5
    Manufacturer: Emulex
    Model: LP10000-S
    Type: N-port
    State: online
    Supported Speeds: 1Gb 2Gb
    Current Speed: 2Gb
    Node WWN: 20000000c950c6a2
HBA Port WWN: 10000000c950c6b7
    OS Device Name: /dev/cfg/c4
    Manufacturer: Emulex
    Model: LP10000-S
    Type: N-port
    State: online
    Supported Speeds: 1Gb 2Gb
    Current Speed: 2Gb
    Node WWN: 20000000c950c6b7

In the example above, you can see that the server has three HBAs (one QLogic and two Emulex).

, , ,

No Comments

Working with “SVC”

Follow useful commands to work with “SVC” in Solaris:

More option can be found at “man svcadm”
# svcs -a -> list all installed services.
# svcadm disable SERVICE -> disable a service. if you use “svcadm disable -t SERVICE”, the service will be disabled only until the next reboot. You can use this commando to stop a service.
# svcadm enable SERVICE -> enable a service. If you use “svcadm enable -t SERVICE”, the service will not be enabled automatically on reboot.
# svcadm restart SERVICE -> restart a service.
# svcadm reload SERVICE -> reload the configuration file.

More options can be found at “man svcadm

, , ,

No Comments

Solaris and NRPE

A very nice guide to install NRPE and nagios-plugins on Solaris 10 can be found here. To stop/start the NRPE, you can use the following command:

# svcadm disable svc:/network/nrpe/tcp
# svcadm enable svc:/network/nrpe/tcp

If you keep getting the "CHECK_NRPE: Error – Could not complete SSL handshake." message, see this FAQ comment

, , ,

No Comments

name/address mismatch

You may get in the messages log the follow error when trying access a FTP server on Solaris:

Jul 16 16:19:13 SolarisServer in.ftpd[1940]: [ID 913506 daemon.warning] refused connect from 172.152.121.114 (name/address mismatch)

This happends because the server cannot resolve your IP address. To solve it, you need disable TCP_WRAPPERS checks for in.ftpd by using this command:

# inetadm -m  svc:/network/ftp:default tcp_wrappers=FALSE

After that, you will be able to do FTP again

No Comments

Forcing an user changing the password on Solaris

On Solaris, you can use the following commands to unlock na user and force it to change it’s password on first logon:

# passwd -f <username>
passwd: password information changed for <USER>

 

,

No Comments

Restarting SNMP service on Solaris

To restart SNMP on Solaris you can use the following command:

# /etc/init.d/init.snmpdx stop /etc/init.d/init.snmpdx start

 

No Comments