Archive for category Solaris

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