AIX : Machine Type & Serial Number
uname -m for the serial number
uname -M for the machine type and model
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
AIX : Machine Type & Serial Number uname -m for the serial number uname -M for the machine type and model This works with AIX
This works with Solaris and Linux
1- Start by check ipfilter status if it’s running you can go ahead and configure rules
if it’s disabled enable it
2- Display rules
3- Edit rules
Clear DNS cacheYou can clear DNS cache in Solaris by doing the following
#/etc/init.d/nscd stop List PID’s for processes listening on portsTo list PID’s for processes listening on ports
#pfiles `ptree | awk ‘{print $1}’` | egrep ‘^[0-9]|port:’ Symptoms Repeated attempts by unprivileged users to stop the inetd server may transition the inetd service to the “maintenance” state, thereby moving all internet services managed by inetd(1M) to the “offline” state. To determine the state of the inetd service, the following command can be run: $ svcs inetd STATE STIME FMRI maintenance 12:00:23 svc:/network/inetd:default Workaround To prevent this issue from occurring until the patches listed in section 5 can be applied, the Unix domain socket file “/var/run/.inetd.uds” may be deleted after the inetd server starts. If this file has been deleted, the following commands must be run (as ‘root’ user) to restart or disable the inetd service: To restart the inetd service: # pkill inetd To disable the inetd service: # svcadm disable inetd # pkill inetd Resolution This issue is addressed in the following releases: install ssh client on CentosTo install openssh on a CentOS: yum install openssh
And if you want to install the client (ssh command) you have to run: yum install openssh-clients if you want to use on of the linux commands: dig, host or nslookup on a CentOS machine and you get the error message: -bash: nslookup: command not found you have to install the bind-utils package. Just run the command: yum install bind-utils First of all, we need to understand the procedure of the boot in Solaris. Next, follows a description of the boot sequence in Solaris. Overview of the boot sequence in Solaris
A common technique for system administrators is to use a common location for application and services startup scripts. This location is “/etc/init.d” (/etc/rc.d/init.d on Linux). Each script is capable of taking a single argument, which can be either “start” or “stop”. I have made a template for startup scripts, and I use it whenever I need to make a startup script ——————– Template of startup script ——————————————- #!/bin/sh case $1 in 'start') # put startup command(s) here ;; 'stop') # put shutdown command(s) here ;; *) echo "Usage: $0 start|stop" >&2 exit 1 ;; esac exit 0 ——————–End of Template ————————————— I copy this template to the directory /etc/init.d/ with a name which defines the application. For example I used a name dnssvc for a startup script for multiple dns services. Now, we need this shell script to be executed each time the system boots. We can choose to have the “init” program run this command in run-level 2 or run-level 3. I arbitrarily chose run-level 3, which means that I need to link the program from /etc/init.d into /etc/rc3.d. Here is the command that I used: The letter S defines that is a startup Script. If we wanted to write a Stop Script we should have named the link starting with the letter K. The number after the S letter gives the priority of the execution. A lower number means earlier execution at boot time. Two scripts can have the same number, and there is a deterministic way of execution but there is no way to explain it. Solaris system state or init states refer to the level of services provided by the system on that specific run-level.Normally SVR4 systems has 7 run levels and Solaris too has that. In unix ,runlevel will define what are the process need to start in OS startup according to which run level defined in the /etc/inittab file.For example, in initab if the run-level mentioned as 3 then the system will start all the start scrips under rc1.d,rc2.d,rc3.d during the system boot.The files which are staring with “S” will start the process .When system is going down it will execute “K” scripts according to which init command you have used it. table.tableizer-table { border: 1px solid #CCC; font-family: ; font-size: 12px; } .tableizer-table td { padding: 4px; margin: 3px; border: 1px solid #ccc; } .tableizer-table th { background-color: #104E8B; color: #FFF; font-weight: bold; }
Thanks to http://docs.oracle.com To check current run level in Solaris type the below command. bash-3.00# who -r . run-level 3 Jul 16 01:44 3 0 S run-level 3 – Identifies the current run level
Like everything else in a Solaris system, run levels are defined by files in the filesystem. All the run level files are found in the /etc directory according to the following table:
From Solaris 10 onwards, In addition, the svcadm command can be used to change the run level of a system, by selecting a milestone at which to run. The following table shows which run level corresponds to each milestone. Run Levels and SMF Milestones
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright © 2025 - All Rights Reserved Powered by WordPress & Atahualpa |
Recent Comments