Showing posts with label System Administrator. Show all posts
Showing posts with label System Administrator. Show all posts

Wednesday, August 27, 2014

How to check memory usage detail in solaris

How to check memory usage detail in solaris


$ echo ::memstat |mdb -k


Wednesday, December 4, 2013

Shut Down or Reboot a Solaris System

Shut Down or Reboot a Solaris System

Solaris is usually used as a server operating system. Because of this, you want to make sure that you shut the system down as gracefully as possible to ensure there isn’t any data loss.
For every application that is installed on your server, you should make sure that you have the correct scripts in /etc/rc(x).d to gracefully shut down the service.

ShutdownYou have more than one command option that you can use. The best command is this, executed as root:
shutdown -y -i5 -g0
This will immediately shut the system down. You can also use the older command that still works:
sync;sync;init 5
You can even use:
poweroff
Reboot If you are trying to reboot the system as opposed to turning it off, you could use:
shutdown -y -i6 -g0
Or:
sync;sync;init 6
Or even:
reboot

Monday, December 2, 2013

How do I restart sshd on my Linux/Unix system

After you have changed your configuration on your remote Unix/linux server you must restart your ssh service. The easiest way to do this is to simply restart your Unix machine. This is not always possible however.
To restart sshd without restarting your whole system, enter the following command as root

RedHat and Fedora Core Linux

/sbin/service sshd restart

Suse linux

/etc/rc.d/sshd restart

Debian/Ubuntu

/etc/init.d/sshd restart

Solaris 9 and below

/etc/init.d/sshd stop
/etc/init.d/sshd start

Solaris 10

svcadm disable ssh
svcadm enable ssh

AIX

stopsrc -s sshd
startsrc -s sshd

HP-UX

/sbin/init.d/secsh stop
/sbin/init.d/secsh start

Reference: http://www.starnet.com/xwin32kb/restart_sshd

Wednesday, November 20, 2013

Install Solaris 10 Update 9 - ZFS only

Solaris 10 Update 9 was the first edition of solaris after Oracle took over Sun. There hasn't changed much in the install procedure, but I hadn't done a full ZFS install yet, so I decided to create a new howto. This page will have a follow up for post install configuration.
This installation was done in a VMware vSphere VM, with a vmxnet3 network adapter. That adapter is not natively supported by VMware, so the VMware Tools will have to be installed before the network card will be available.
Note: If you're looking for a installation with the root filesystem being UFS, take a look at Install Solaris 10 Update 8.

Install

For this installation, this media was used:
  • Used Media: sol-10-u9-ga-x86-dvd.iso
During the installation the following options were chosen to make sure all filesystems use ZFS and all software would be available:
  • Install Option 4: Solaris Interactive Text (Console session) (Option 3 or 4 is required to install a ZFS root file system)
  • Keyboard Layout: US-English
  • Language: English
  • Hostname: solarixbox
  • TimeZone: Europe
  • Countries and Regions: Netherlands
  • Root Password: RootPass
  • Remote Services Enabled: No
  • Installation Method: Standard
  • Eject a CD Automatically: No
  • Auto Reboot: Yes
  • Accept License: Yes
  • Geographic Regions: Western Europe
  • System Locale: Posix C (C)
  • No Additional Products
  • Filesystem Type: ZFS
  • Software Selection: Entire Distribution
  • ZFS Pool Name: rpool (default)
  • ZFS Root Dataset Name: s10x_u9wos_14a (default)
  • ZFS Pool Size (in MB): 45019 (default - max size)
  • Size of Swap Area (in MB): 0 (will be created on different disk)
  • Size of Dump Area (in MB): 2560 (default)
  • Keep / and /var combined: yes
Check the profile summary:
installsolaris10u9.jpg

Install VMware Tools

Install VMware Tools according to the manual which comes down to:
  • Click VM in the virtual machine menu, then click Guest → Install/Upgrade VMware Tools and click OK.
  • Then use these commands to install the tools:
# cp /cdrom/vmwaretools/vmware-solaris-tools.tar.gz /tmp
# cd /tmp
# gunzip vmware-solaris-tools.tar.gz
# tar xvf vmware-solaris-tools.tar
# cd vmware-tools-distrib
# ./vmware-install.pl
 
Follow the prompts and reboot
Afterwards you can check the installation like this, depending on the VMware tools version you'll see this:

# /etc/init.d/vmware-tools status
vmware-guestd is running
vmware-memctld is running
 
or this:


# /etc/init.d/vmware-tools status
vmtoolsd is running

Monday, March 25, 2013

How to list Server S/N and P/N on Solaris 10

How to list Server S/N and P/N on Solaris 10

pfexec ipmitool fru
smbios -t SMB_TYPE_SYSTEM
You cat try prtfru (only for SPARC servers)

How to list Serve S/N and P/N in linux

How to list Serve S/N and P/N in linux

$dmidecode -t system

Monday, April 30, 2012

How to create collection in sccm 2007 with only windows 2008 R2

Step1: Go to Configuration Manager Console
Step2: Right click on Collection and New Collection
Step3: Give the name of collection
Step4: Go to Query Rule Properties
Step5: Give the name of New Query
Step6: Edit Query Statement
Step7: Show Query Language
Step8: Put Query as below
<<select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from sms_r_system where OperatingSystemNameandVersion like '%Server 6.1%' >>


Enjoy