Archive for category Solaris
Working with “SVC”
Posted by Lincoln Zuljewic Silva in Solaris on December 2, 2009
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”
Solaris and NRPE
Posted by Lincoln Zuljewic Silva in Solaris on August 19, 2009
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
name/address mismatch
Posted by Lincoln Zuljewic Silva in Solaris on July 16, 2009
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
Forcing an user changing the password on Solaris
Posted by Lincoln Zuljewic Silva in Solaris on June 8, 2009
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>
Restarting SNMP service on Solaris
Posted by Lincoln Zuljewic Silva in Solaris on April 15, 2009
To restart SNMP on Solaris you can use the following command:
# /etc/init.d/init.snmpdx stop /etc/init.d/init.snmpdx start