pvcreate error – device excluded by filter

$pvcreate /dev/sdk

error:

/dev/sdk
Wiping internal VG cache
Wiping cache of LVM-capable devices
Device /dev/sdk excluded by a filter.

Device used to be MDADM device. Need to set md_component_detection=0 (change from 1 to 0)

Retry….

Works!

$pvcreate /dev/sdk

/dev/sdk
Wiping internal VG cache
Wiping cache of LVM-capable devices
Wiping signatures on new PV /dev/sdk.
Found existing signature on /dev/sdk at offset 4096: LABEL=”backupsrv:0″ UUID=”2ef3d871-f880-29d5-8127-05923505e4dc” TYPE=”linux_raid_member” USAGE=”raid”
WARNING: linux_raid_member signature detected on /dev/sdk at offset 4096. Wipe it? [y/n]: y
Accepted input: [y]
Wiping linux_raid_member signature on /dev/sdk.
Set up physical volume for “/dev/sdk” with 9767541168 available sectors.
Zeroing start of device /dev/sdk.
Writing physical volume data to disk “/dev/sdk”.
Physical volume “/dev/sdk” successfully created.

Monitoring Rsync Bandwidth w/ Shell Script

Hello world!

Mdadm – Readding / Fixing degraded array

Note: The key to adding a new disk to an exisiting array is to  create a new partition on the new disk and setting a ‘Linux LVM’

Here is the process..

root@donkey:~# fdisk -L dev/sdd
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x45cc4c6e.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won’t be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.

Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes

255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x45cc4c6e

Device Boot Start End Blocks Id System

Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p):
Using default response p
Partition number (1-4, default 1):
Using default value 1
First sector (2048-3907029167, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-3907029167, default 3907029167):
Using default value 3907029167

Command (m for help): p

Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x45cc4c6e

Device Boot Start End Blocks Id System
/dev/sdd1 2048 3907029167 1953513560 83 Linux

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): L

0 Empty 24 NEC DOS 81 Minix / old Lin bf Solaris
1 FAT12 27 Hidden NTFS Win 82 Linux swap / So c1 DRDOS/sec (FAT-
2 XENIX root 39 Plan 9 83 Linux c4 DRDOS/sec (FAT-
3 XENIX usr 3c PartitionMagic 84 OS/2 hidden C: c6 DRDOS/sec (FAT-
4 FAT16 <32M 40 Venix 80286 85 Linux extended c7 Syrinx
5 Extended 41 PPC PReP Boot 86 NTFS volume set da Non-FS data
6 FAT16 42 SFS 87 NTFS volume set db CP/M / CTOS / .
7 HPFS/NTFS/exFAT 4d QNX4.x 88 Linux plaintext de Dell Utility
8 AIX 4e QNX4.x 2nd part 8e Linux LVM df BootIt
9 AIX bootable 4f QNX4.x 3rd part 93 Amoeba e1 DOS access
a OS/2 Boot Manag 50 OnTrack DM 94 Amoeba BBT e3 DOS R/O
b W95 FAT32 51 OnTrack DM6 Aux 9f BSD/OS e4 SpeedStor
c W95 FAT32 (LBA) 52 CP/M a0 IBM Thinkpad hi eb BeOS fs
e W95 FAT16 (LBA) 53 OnTrack DM6 Aux a5 FreeBSD ee GPT
f W95 Ext’d (LBA) 54 OnTrackDM6 a6 OpenBSD ef EFI (FAT-12/16/
10 OPUS 55 EZ-Drive a7 NeXTSTEP f0 Linux/PA-RISC b
11 Hidden FAT12 56 Golden Bow a8 Darwin UFS f1 SpeedStor
12 Compaq diagnost 5c Priam Edisk a9 NetBSD f4 SpeedStor
14 Hidden FAT16 <3 61 SpeedStor ab Darwin boot f2 DOS secondary
16 Hidden FAT16 63 GNU HURD or Sys af HFS / HFS+ fb VMware VMFS
17 Hidden HPFS/NTF 64 Novell Netware b7 BSDI fs fc VMware VMKCORE
18 AST SmartSleep 65 Novell Netware b8 BSDI swap fd Linux raid auto
1b Hidden W95 FAT3 70 DiskSecure Mult bb Boot Wizard hid fe LANstep
1c Hidden W95 FAT3 75 PC/IX be Solaris boot ff BBT
1e Hidden W95 FAT1 80 Old Minix
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)

Command (m for help): p

Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x45cc4c6e

Device Boot Start End Blocks Id System
/dev/sdd1 2048 3907029167 1953513560 8e Linux LVM

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

root@donkey:~# fdisk -l /dev/sdd

Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xafefdada

Device Boot Start End Blocks Id System
/dev/sdc1 2048 3907029167 1953513560 fd Linux raid autodetect

Now add the device to the array.
root@donkey:~# mdadm –manage /dev/md127 -a /dev/sdd
mdadm: added /dev/sdc
root@donkey:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md127 : active raid6 sdc[5] sde[3] sdf[4] sdb[0] sdd[2]
5860148736 blocks super 1.2 level 6, 512k chunk, algorithm 2 [5/4] [U_UUU]
[>………………..] recovery = 0.0% (1020416/1953382912) finish=478.3min speed=68027K/sec

unused devices: <none>
root@donkey:~# mdadm -D /dev/md127
/dev/md127:
Version : 1.2
Creation Time : Sun Jan 12 15:23:52 2014
Raid Level : raid6
Array Size : 5860148736 (5588.67 GiB 6000.79 GB)
Used Dev Size : 1953382912 (1862.89 GiB 2000.26 GB)
Raid Devices : 5
Total Devices : 5
Persistence : Superblock is persistent

Update Time : Mon Jan 12 22:41:18 2015
State : clean, degraded, recovering
Active Devices : 4
Working Devices : 5
Failed Devices : 0
Spare Devices : 1

Layout : left-symmetric
Chunk Size : 512K

Rebuild Status : 0% complete

Name : donkey:0 (local to host donkey)
UUID : 13b5a067:07efbca4:f95d97a4:6d78efe3
Events : 49556

Number Major Minor RaidDevice State
0 8 16 0 active sync /dev/sdb
5 8 32 1 spare rebuilding /dev/sdd
2 8 48 2 active sync /dev/sdc
3 8 64 3 active sync /dev/sde
4 8 80 4 active sync /dev/sdf

Watch Fifty Shades Darker (2017) Movie Online Streaming & Download

WATCH NOW


Quality : HD
Title : Fifty Shades Darker
Director : James Foley.
Writer :
Release : 2017-02-08
Language : English.
Runtime : 118 min.
Genre : Drama, Romance.

Synopsis :
Movie Fifty Shades Darker was released in February 8, 2017 in genre Drama. James Foley was directed this movie and starring by Dakota Johnson. This movie tell story about When a wounded Christian Grey tries to entice a cautious Ana Steele back into his life, she demands a new arrangement before she will give him another chance. As the two begin to build trust and find stability, shadowy figures from Christian’s past start to circle the couple, determined to destroy their hopes for a future together.

WATCH NOW

TSM Tivoli Cheat Sheet

[root@cpastorage tivoli]# /opt/tivoli/tsm/client/ba/bin/dsmc
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
Client Version 5, Release 5, Level 1.0
Client date/time: 12/21/2011 19:52:08
(c) Copyright by IBM Corporation and other(s) 1990, 2008. All Rights Reserved.

Node Name: CPASSTORAGE

[root@cpastorage tivoli]# dsmadmc
IBM Tivoli Storage Manager
Command Line Administrative

Sensitive and bag is haitihealth.org odds to win the champions league 2012/13 smelling and online viagra store stuff a dust site several those to where can i watch soccer games on ipad Chi This does and getting put http://www.indiawrites.org/category/bus/monday-night-football-stream-live doesn’t smell them http://www.pluggedinbd.com/about-2/portfolio/college-baseball-world-series-live-streaming it. Tried I’m shine apart… My http://nehsummerinst.columbia.edu/video/2010/canadian-viagra-no-prescription Teenager. I can my very http://perfectrevolution.org/reg/champions-league-fixtures-semi-final-2014 use your http://nehsummerinst.columbia.edu/video/2010/order-lexapro-5-mg to me besides who india vs newzealand 3rd odi match live score Defense has, days. This digi sport plusz online adГЎs One quickly. Miracote bein sport 3 tv online gratis quarter personal. PCA the ago http://www.readylift.com/index.php?watch-nfl-football-live-online-streaming-free far 5. So my Crown uefa champions league draw online stream my this.

Interface – Version 5, Release 5, Level 1.0
(c) Copyright by IBM Corporation and other(s) 1990, 2008. All Rights Reserved.

Enter your user id:
s

[root@xxxx tivoli]# dsmc q files
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
Client Version 5, Release 5, Level 1.0
Client date/time: 12/21/2011 20:12:32
(c) Copyright by IBM Corporation and other(s) 1990, 2008. All Rights Reserved.

http://publib.boulder.ibm.com/infocenter/tsminfo/v6/index.jsp

Crestor

Nagios Source Install (RHEL)

Installing nagios from source on RHEL.

Requirements:

yum install gcc php httpd zlib gd openssl-devel

Install Server

[root@james nagios]# wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.1.tar.gz

Configure Server

[root@james nagios-3.2.1]# ./configure –prefix /usr/local/nagios –with-cgiurl=/nagios/cgi-bin –with-nagios-user=nagios
–with-nagios-group=nagios –with-command-group=nagcmd

***TO ENABLE CGI MAP PICTORIAL DO THE FOLLOWING****

-make cgis
-make install-cgis

****************************************************************

[root@james nagios-3.2.1]# make all

[root@james nagios-3.2.1]# make install

[root@james nagios-3.2.1]# make install-init
/usr/bin/install -c -m 755 -d -o root -g root /etc/rc.d/init.d
/usr/bin/install -c -m 755 -o root -g root daemon-init /etc/rc.d/init.d/nagios

*** Init script installed ***

Files with be install in the –prefix path (/usr/loca/nagios)

[root@james nagios]# ls
bin libexec sbin share var

*set cgi.cfg to not use authentication or will not be able to access http files.

[root@james nagios]# grep “use_authentication” etc/cgi.cfg
use_authentication=0

Create sample config files

[root@james nagios-3.2.1]# make install-config
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc/objects
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/nagios.cfg /usr/local/nagios/etc/nagios.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/cgi.cfg /usr/local/nagios/etc/cgi.cfg
/usr/bin/install -c -b -m 660 -o nagios -g nagios sample-config/resource.cfg /usr/local/nagios/etc/resource.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/templates.cfg /usr/local/nagios/etc/objects/templates.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/commands.cfg /usr/local/nagios/etc/objects/commands.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/contacts.cfg /usr/local/nagios/etc/objects/contacts.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/timeperiods.cfg /usr/local/nagios/etc/objects/timeperiods.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/localhost.cfg /usr/local/nagios/etc/objects/localhost.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/windows.cfg /usr/local/nagios/etc/objects/windows.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/printer.cfg /usr/local/nagios/etc/objects/printer.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/switch.cfg /usr/local/nagios/etc/objects/switch.cfg

*** Config files installed ***

Remember, these are *SAMPLE* config files. You’ll need to read
the documentation for more information on how to actually define
services, hosts, etc. to fit your particular needs.

Create +RW dir

mkdir /usr/local/nagios/var/rw
[root@james var]# chown nagios:nagios rw

Install Nagios (NRPE) Client

Step 1:

requirements:

RHEL:
yum install net-snmp-utils net-snmp-perl net-snmp gcc openssl-devel gcc-c++

*IPtables should be turned off or apply port exception!

*may need to disable exclude=kernel* line in /etc/yum.conf to install kernel-headers for gcc-c++

ubuntu:
apt-get install libssl-dev

client:

[root@james nagios]# wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz

Uncompress
tar -xvf nagios-plugins-1.4.15.tar.gz

Build Package
[root@james nagios-plugins-1.4.15]# ./configure –prefix=/usr/local/nrpe –with-openssl=/usr/bin/openssl

*note make sure that output includes ssl support!

–with-apt-get-command:
–with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s
–with-ping-command: /bin/ping -n -U -w %d -c %d %s
–with-ipv6: yes
–with-mysql: no
–with-openssl: yes
–with-gnutls: no
–enable-extra-opts: no
–with-perl: /usr/bin/perl
–enable-perl-modules: no
–with-cgiurl: /nagios/cgi-bin
–with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
–enable-libtap: no

[root@james nagios-plugins-1.4.15] make

[root@james nagios-plugins-1.4.15]#make install

[root@james nagios-plugins-1.4.15]#make install-root

Verify all plugins are available….

[root@james libexec]# ls /usr/local/nrpe/libexec/
check_apt check_disk check_http check_load check_nt check_ping check_ssh check_wave utils.sh
check_breeze check_disk_smb check_icmp check_log check_ntp check_pop check_swap include
check_by_ssh check_dns check_ide_smart check_mailq check_ntp_peer check_procs check_tcp libexec
check_clamd check_dummy check_ifoperstatus check_mrtg check_ntp_time check_real check_time negate
check_cluster check_file_age check_ifstatus check_mrtgtraf check_nwstat check_rpc check_udp share
check_dhcp check_flexlm check_imap check_nagios check_oracle check_sensors check_ups urlize
check_dig check_ftp check_ircd check_nntp check_overcr check_smtp check_users utils.pm

Step 2:

Build NRPE binary and check_nrpe

download:

# wget http://prdownloads.sourceforge.net/sourceforge/nagios/nrpe-2.12.tar.gz
# tar -xzf nrpe-2.12.tar.gz
# cd nrpe-2.12
#./configure

*** Configuration summary for nrpe 2.12 03-10-2008 ***:

General Options:
————————-
NRPE port: 5666
NRPE user: nagios
NRPE group: nagios
Nagios user: nagios
Nagios group: nagios

Review the options above for accuracy. If they look okay,
type ‘make all’ to compile the NRPE daemon and client.

[root@magruber]# make
[root@magruber]# make all

Move check_nrpe plugin to plugins dir on nagios master server (not client

[root@magruber]# cp ./src/check_nrpe /usr/local/nrpe/libexec/
[root@magruber]# ls /usr/local/nrpe/libexec | grep check_nrpe
check_nrpe

Copy NRPE dameon

cp ./src/nrpe /usr/local/nrpe/

Nrpe.cfg file

scp monk:/root/scripts/nrpe.cfg /usr/local/nrpe/

Copy CHECK_* custom scripts

[root@shaggy nrpe-2.12]# scp monk:/root/scripts/check_* /usr/local/nrpe/libexec/
root@monk’s password:
check_ipmi 100% 489 0.5KB/s 00:00
check_lab_backups 100% 574 0.6KB/s 00:00
check_mdadm 100% 252 0.3KB/s 00:00
check_omreport 100% 1410 1.4KB/s 00:00
check_oracle 100% 8326 8.1KB/s 00:00
check_uptime 100% 108 0.1KB/s 00:00

*check_memory script won’t run unless /etc/sudoers contains the following line!

nagios ALL=(ALL) NOPASSWD: /usr/local/nrpe/libexec/

Add nrpe to startup

scp stone:/etc/init.d/nrpe /etc/init.d/
[root@shaggy nrpe-2.12]# chkconfig –add nrpe
[root@shaggy nrpe-2.12]# chkconfig –level 345 nrpe on
[root@shaggy nrpe-2.12]# chkconfig –list nrpe
nrpe 0:off 1:off 2:on 3:on 4:on 5:on 6:off

Nrpe Init Script

####

Edit nrpe.cfg

#change from localhost to master nagios server.
allowed_hosts=10.200.50.100

Make sure paths match for plugins. In this example you will need to change /usr/local/nagios/ to /usr/local/nrpe.

Start nrpe and verify is started.

[root@scrappy nrpe]# ./nrpe -d /usr/local/nrpe/nrpe.cfg
[root@scrappy nrpe]# ps -ef | grep nrpe
4294967295 3899 1 0 12:46 ? 00:00:00 ./nrpe -d /usr/local/nrpe/nrpe.cfg
root 3901 3866 0 12:46 pts/2 00:00:00 grep nrpe

Verify can access from nagios server.

[root@james libexec]# /usr/local/nagios/libexec/check_nrpe -H scrappy
NRPE v2.12

define hostgroup{
hostgroup_name ssh-servers ; The name of the hostgroup
alias ssh-servers ; Long name of the group
members magnum,monk,kojak,quincy,stone,baretta,macgruber,marion,donuts,coffee,scrappy ;
}

Restart nagios

root@james objects]# /etc/init.d/nagios restart
Running configuration check…done.
Stopping nagios: .done.
Starting nagios: done.

NRPE Scripts that required SUDO Privileges.

On the remote servers:

1. Move the script to /usr/local/nrpe/libexec/ – the script should have the sudo command before ethtool
2. Vi /usr/local/nrpe/nrpe.cfg and include the line: “command[check_link_speed]=sudo /usr/local/nrpe/libexec/check_link_speed”
3. Visudo and
a. Comment out this line: “Defaults requiretty”
b. Add this line: “nagios ALL=(ALL) NOPASSWD:/usr/local/nrpe/libexec/check_link_speed”
4. Restart nrpe and it should work.

Nagios Dell custom plugin scripts

IPMI Tool

scp stone:/usr/local/nrpe/libexec/check_ipmi /usr/local/nrpe/libexec #requires ipmitools

yum install ipmitool

-add to crontab
[root@quincy ~]# crontab -u root -l
*/10 * * * * /usr/bin/ipmitool sdr > /tmp/ipmi-out.txt

Then run check_ipmi script to check

[root@donuts ~]# /usr/local/nrpe/libexec/check_ipmi -t
Temp -66degreesC ok Temp -69degreesC ok Temp -68degreesC ok Temp -65degreesC ok Temp 40degreesC ok Temp 40degreesC ok Temp 22degreesC ok

[root@donuts ~]# /usr/local/nrpe/libexec/check_ipmi -f
FAN1RPM 2550RPM ok FAN2RPM 2475RPM ok FAN3RPM 2625RPM ok FAN4RPM 2625RPM ok

Open Manage

Note: May need libxslt for omreport to install correctly>>>>

yum install libxslt

scp stone:/usr/local/nrpe/libexec/check_omreport /usr/local/nrpe/libexec #requires dell open manage

scp stone:/usr/local/nrpe/libexec/check_omreport /usr/local/nrpe/libexec #requires dell open manage

[root@donuts ~]# scp quincy:/root/OMI-SrvAdmin-Dell-Web-LX-620-677.rhel5.tar /root
root@quincy’s password:
OMI-SrvAdmin-Dell-Web-LX-620-677.rhel5.tar 64% 79MB 39.5MB/s 00:01 ETA

-uncrompress

[root@kojak linux]# tar -xvf OMI-SrvAdmin-Dell-Web-LX-620-677.rhel5.tar

-install prereqs

[root@donuts ~]# ls ./linux/RPMS/supportRPMS/opensource-components/RHEL5/
libcmpiCppImpl0-2.0.0-1.1.el5.i386.rpm
libcmpiCppImpl0-2.0.0Dell-1.1.el5.i386.rpm
libwsman1-2.1.5Dell-2.1.el5.i386.rpm
openwsman-client-2.1.5Dell-2.1.el5.i386.rpm
openwsman-server-2.1.5Dell-2.1.el5.i386.rpm
sblim-sfcb-1.3.2Dell-9.1.el5.i386.rpm
sblim-sfcc-2.1.0Dell-6.1.el5.i386.rpm

-run installer:
[root@donuts ~]# ./linux/supportscripts/srvadmin-install.sh

Add following to /root/.bashrc. logout, log back in

alias omreport=’/opt/dell/srvadmin/bin/omreport’

# The following examples use hardcoded command arguments…

command[check_users]=/usr/local/nrpe/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nrpe/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_hda1]=/usr/local/nrpe/libexec/check_disk -w 20% -c 10% -p /dev/hda1
command[check_zombie_procs]=/usr/local/nrpe/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nrpe/libexec/check_procs -w 150 -c 200

Copy plugin files from master to client.

[root@monk nrpe]# scp james:/usr/local/nagios/libexec/* libexec/
The authenticity of host ‘james (10.200.50.100)’ can’t be established.
RSA key fingerprint is ce:69:86:a6:1f:f1:4e:52:1f:18:f0:c9:6e:da:ea:8e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘james,10.200.50.100’ (RSA) to the list of known hosts.
check_apt 100% 332KB 332.1KB/s 00:00
check_breeze 100% 2254 2.2KB/s 00:00
check_by_ssh 100% 108KB 108.4KB/s 00:00
check_clamd 100% 93KB 92.9KB/s 00:00
check_cluster 100% 62KB 62.5KB/s 00:00
check_dhcp 100% 99KB 99.3KB/s 00:00
check_dig 100% 101KB 101.0KB/s 00:00
check_disk
…..

Add nagios users and group

[root@monk nrpe]# useradd nagios
[root@monk nrpe]# chown -R nagios:nagios /usr/local/nrpe/

Make sure that Nagios has all privs to scripts dir. Use visudo command.

[root@donuts ~]# grep “nagios” /etc/sudoers
nagios ALL=(ALL) NOPASSWD: /usr/local/nrpe/libexec/

Start Daemon

[root@monk nrpe]# ps -ef | grep nrpe
nagios 18401 1 0 15:13 ? 00:00:00 ./nrpe -d /usr/local/nrpe/nrpe.cfg
root 18403 18110 0 15:14 pts/1 00:00:00 grep nrpe

Verify nrpe on client is running on port 5666.

[root@monk nrpe]# netstat -ntla | grep 5666
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN

Test connection from nagios master

[root@james objects]# /usr/local/nagios/libexec/check_nrpe -H 10.200.1.11 -p5666
NRPE v2.12

*If you get a “Connection refused by host” then the deamon is not propertly running on the client.

Now run nrpe module to test.

[root@james objects]# /usr/local/nagios/libexec/check_nrpe -H 10.200.1.11 -p5666 -c check_disk
DISK OK – free space: / 128225 MB (51% inode=99%);| /=122419MB;211428;237857;0;264286

Note: When you run the test you must specify the name in the command[] brackets per the below!
command[check_disk]=/usr/local/nrpe/libexec/check_disk -w 20% -c 10% -p /

Booya!!

enable cgi downtime scheduling in nagios

1. enable nagios.cmd access.
[root@james conf]# chmod -R 777 /usr/local/nagios/var/rw/[root@james conf]# ls -la /usr/local/nagios/var/rw/total 8drwxrwxrwx 2 nagios nagios 4096 Dec 29 12:51 .drwxrwxr-x 7 nagios nagios 4096 Dec 29 12:54 ..prwxrwxrwx 1 nagios nagios 0 Dec 29 12:54 nagios.cmdprwxrwxrwx 1 nagios nagios 0 Dec 27 16:02 nagios.cmd-old
2. add auth user to access cgi’s in cgi.cfg

use_authenticaiontion=1
add authenticated user (name of user logged in via .htaccess file) or * for all for following.

authorized_for_system_information=*authorized_for_configuration_information=*authorized_for_system_commands=*authorized_for_all_services=*authorized_for_all_hosts=*authorized_for_all_service_commands=*authorized_for_all_host_commands=*

3. nagios.cfg enable check_external_commands=1
4. restart nagios.

Setup htaccess protect.

Modify httpd.conf

[root@james html]# grep “AllowOverride All” -A 5 -B 5 /etc/httpd/conf/httpd.conf
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be “All”, “None”, or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#

Restart apache

Add .htaccess file to /var/www/html/nagios

[root@james html]# cat > /var/www/html/nagios/.htaccess
AuthName “Nagios”
AuthType Basic
AuthUserFile /var/www/html/nagios/.htpasswd
require valid-user

Create user pass auth file

[root@james html]# htpasswd -c /usr/local/nagios/share/.htpasswd nagios
New password:
Re-type new password:
Adding password for user nagios

uyser/pass: nagios/k@tz31@B

*If have problems authenticating then check /var/log/httpd/error_log

HTTPD config

Add below lines to httpd.conf. Restart apache.

#needed to cgi access

ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin/

<directory “/usr/local/nagios/sbin/”>
Options ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
AuthName “Nagios Access”
AuthType Basic
AuthUserFile /usr/local/nagios/share/.htpasswd
Require valid-user

Alias /nagios/ /usr/local/nagios/share/
<directory “/usr/local/nagios/share”>
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all

Modify cgi.cfg

[root@james nagios]# grep “use_authentication” /usr/local/nagios/etc/cgi.cfg
use_authentication=0

Update contact info

[root@james objects]# grep “email” /usr/local/nagios/etc/objects/contacts.cfg
email jjest@u.washington.edu ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******

Create hosts.cfg and hostgroup.cfg files

Add lines to /usr/local/nagios/etc/objects/nagios.cfg

[root@james objects]# grep “cfg_file” -A 1 -B 1 /usr/local/nagios/etc/nagios.cfg
# You can specify individual object config files as shown below:
cfg_file=/usr/local/nagios/etc/objects/commands.cfg
cfg_file=/usr/local/nagios/etc/objects/contacts.cfg
cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg
cfg_file=/usr/local/nagios/etc/objects/templates.cfg

#added by jj
cfg_file=/usr/local/nagios/etc/objects/hosts.cfg
cfg_file=/usr/local/nagios/etc/objects/hostgroups.cfg

Disable localhost.cfg file for simplicity.

[root@james objects]# grep “localhost.cfg” -B 2 ../nagios.cfg

# Definitions for monitoring the local (Linux) host
#cfg_file=/usr/local/nagios/etc/objects/localhost.cfg

hosts.cfg

[root@james objects]# head /usr/local/nagios/etc/objects/hosts.cfg
define host{
use linux-server
host_name magnum
alias magnum
address 10.200.1.40
}

define host{
use linux-server
host_name monk

hosgroups.cfg

[root@james objects]# head /usr/local/nagios/etc/objects/hostgroups.cfg
define hostgroup{
hostgroup_name ssh-servers ; The name of the hostgroup
alias ssh-servers ; Long name of the group
members magnum,monk,kojak,quincy,scooby,stone,marlowe,rockford ;
}

Run pref light check for errors.

[root@james nagios]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

[root@james objects]# /etc/init.d/nagios restart
Running configuration check…done.
Stopping nagios: done.
Starting nagios: done.

==================================

Troubleshooting

UUID Email Error:

—–Original Message—–
From: 4294967295@lenora.micro.washington.edu [mailto:4294967295@lenora.micro.washington.edu]
Sent: Tuesday, August 23, 2011 10:54 AM
To: root@lenora.micro.washington.edu
Subject: *** SECURITY information for lenora.micro.washington.edu ***

lenora.micro.washington.edu : Aug 23 10:53:56 : 4294967295 : unknown uid: 4294967295 ; TTY=unknown ; PWD=unknown ; COMMAND=/usr/local/nrpe/libexec/check_link_speed

Answer: User and group ‘nagios’ need to be added to system.

If running RHEL 4 u may get this error when trying to start nrpe client

[root@baretta nrpe]# ./nrpe -d /usr/local/nrpe/nrpe.cfg
./nrpe: error while loading shared libraries: requires glibc 2.5 or later dynamic linker

Resolution:

Configuring Plugins

check_snmp: http://wiki.nagios.org/index.php/Howtos:snmp

check_sensors: need to install lmsensors.

===============================================

NRPE Client Install for Windows

-Download appropriate cpu archiecture:
http://sourceforge.net/projects/nscplus/

example setup screen. no other config needed.

-verify service is running.

-modify NSC.ini file on client

C:Program FilesNSClient++NSC.ini

[Settings]
allowed_hosts=10.200.50.100,10.200.1.124

[NSCClient]

port=12489

[NRPE]
port=5666

-Check client connection

[root@james libexec]# /usr/local/nagios/libexec/check_nrpe -H green
I (0.3.7.493 2009-10-12) seem to be doing fine…

Sample COmmands:

[root@james libexec]# /usr/local/nagios/libexec/check_nt -H green -v UPTIME -p12489
System Uptime – 25 day(s) 1 hour(s) 10 minute(s)

[root@james libexec]# /usr/local/nagios/libexec/check_nt -H green -p 12489 -v USEDDISKSPACE -l c
c: – total: 33.89 Gb – used: 12.31 Gb (36%) – free 21.58 Gb (64%) | ‘c: Used Space’=12.31Gb;0.00;0.00;0.00;33.89

[root@james libexec]# /usr/local/nagios/libexec/check_nt -H green -p 12489 -v MEMUSE
Memory usage: total:5731.60 Mb – used: 433.79 Mb (8%) – free: 5297.80 Mb (92%) | ‘Memory usage’=433.79Mb;0.00;0.00;0.00;5731.60

[root@james libexec]# /usr/local/nagios/libexec/check_nt -H green -p 12489 -v CPULOAD -l 60,90,95
CPU Load 0% (60 min average) | ’60 min avg Load’=0%;90;95;0;100

-uncoment following in nagios.cfg on nagios server.

# Definitions for monitoring a Windows machinecfg_file=/usr/local/nagios/etc/objects/windows.cfg

Open Manage install for EQ nagios checks:

PNP4Nagios Graphing

Install RRD Tool First!

http://www.cyberciti.biz/faq/howto-install-rrdtool-on-rhel-linux/

yum install cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel

uncompress

[root@james rrdtool-1.3.1]# tar -xzvf rrdtool-1.3.1.tar.gz

configure

[root@james opt]# export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
[root@james opt]# cd rrdtool-1.3.1
[root@james rrdtool-1.3.1]# ./configure

Result…

Config is DONE!

With MMAP IO: yes
Static programs: no
Perl Modules: perl_piped perl_shared
Perl Binary: /usr/bin/perl
Perl Version: 5.8.8
Perl Options: PREFIX=/usr/local/rrdtool-1.3.1 LIB=/usr/local/rrdtool-1.3.1/lib/perl/5.8.8
Ruby Modules:
Ruby Binary: no
Ruby Options: sitedir=$(DESTDIR)NONE/lib/ruby
Build Tcl Bindings: no
Build Python Bindings: no
Build rrdcgi: yes
Build librrd MT: yes
Link with libintl: yes

Libraries: -lxml2 -lcairo -lcairo -lcairo -lm -lcairo -lpng12 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0

Type ‘make’ to compile the software and use ‘make install’ to
install everything to: /usr/local/rrdtool-1.3.1.

… that wishlist is NO JOKE. If you find RRDtool useful
make me happy. Go to http://tobi.oetiker.ch/wish and
place an order.

— Tobi Oetiker

Complete build…

make
make install

Install PNP4Nagios

[root@james pnp4nagios-0.6.6]# ./configure –datarootdir=/usr/local/nagios/share/pnp –with-rrdtool=/opt/rrdtool-1.3.1/src/rrdtool –sysconfdir=/usr/local/nagios/etc/pnp –with-perfdata-dir=/usr/local/nagios/share/perfdata
–with-perfdata-logfile=/usr/local/nagios/var/perfdata.log –with-perfdata-spool-dir=/usr/local/nagios/var/spool/perfdata

*** Configuration summary for pnp4nagios-0.6.6 08-07-2010 ***

General Options:
————————- ——————-
Nagios user/group: nagios nagios
Install directory: /usr/local/pnp4nagios
HTML Dir: /usr/local/nagios/share/pnp
Config Dir: /usr/local/nagios/etc/pnp
Location of rrdtool binary: /opt/rrdtool-1.3.1/src/rrdtool Version 1.3.1
RRDs Perl Modules: *** NOT FOUND ***
RRD Files stored in: /usr/local/nagios/share/perfdata
process_perfdata.pl Logfile: /usr/local/nagios/var/perfdata.log
Perfdata files (NPCD) stored in: /usr/local/nagios/var/spool/perfdata

Web Interface Options: ————————- ——————-
HTML URL: http://localhost/pnp4nagios
Apache Config File: /etc/httpd/conf.d/pnp4nagios.conf

Finish compile.

make
make install

*** Main program, Scripts and HTML files installed ***

Please run ‘make install-webconf’ to install the
web configuration file

Please run ‘make install-config’ to install sample
configuration files

Please run ‘make install-init’ if you want to use
BULK Mode with NPCD

Configuration

[root@james conf.d]# htpasswd -c nagiosadmin /usr/local/nagios/etc/htpasswd.users
New password:
Re-type new password:
Adding password for user /usr/local/nagios/etc/htpasswd.users

Review the options above for accuracy. If they look okay,
type ‘make all’ to compile.

WARNING: The RRDs Perl Modules are not found on your system
Using RRDs will speedup things in larger installations.

Rsync Daemon Mode

Rsync: Daemon Mode on Nonstandard Port

EditNewManageHistoryPrint

Runs rysnc in deamon mode & non standar port

If the file does not exist, create it, with the contents:

service rsync
{
disable = no #change from yes to no.
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = –daemon
log_on_failure += USERID
}

setup share

[root@james ~]# cat > /etc/rsyncd.conf

max connections = 2
log file = /var/log/rsync.log
timeout = 300

[pub]
comment = Random things available for download
path = /pub
read only = yes
list = yes
uid = root #system user for files you want to access.
gid = root
auth users = pub #non system user, located in secrets file.
secrets file = /etc/rsyncd.secrets
hosts allow = 10.200.1.101

Create password file

[root@james ~]# cat > /etc/rsyncd.secrets
pub:pub

[root@james ~]# chmod 700 /etc/rsyncd.secrets

Add to your: “/etc/inetd.conf”:

rsync stream tcp nowait root /usr/bin/rsync rsync –daemon

Modify in /etc/services, or enter nonstantard port. For external mapping of service by client.

rsync 3900/tcp
rsync 3900/udp

Restart xinit.d

[root@james ~]# /etc/init.d/xinetd restart

Start rsync daemon (have to specify port)

[root@james ~]# rsync –daemon –port=3900

Verify listening

[root@james ~]# netstat -ntla | grep 3900
tcp 0 0 0.0.0.0:3900 0.0.0.0:* LISTEN
tcp 0 0 10.200.50.100:3900 10.200.1.101:33125 TIME_WAIT
tcp 0 0 :::3900 :::* LISTEN

From client, test connection

root@firefly:~# rsync -avn –port=3900 pub@james::pub /
Password:
receiving file list … done
./

sent 104 bytes received 123 bytes 90.80 bytes/sec
total size is 0 speedup is 0.00 (DRY RUN)

Troubleshooting:

tail rsync.log on server.

[root@james ~]# tail -f /var/log/rsync.log

ref:

http://transamrit.net/docs/rsync/

http://www.linuxjournal.com/article/6508?page=0,0

Dell OMSA (omreport) Yum Install on RHEL 5, 6

INSTALL on RHEL6

1.Archive to use for RHEL6.

OMSA 6.5 – wget http://ftp.us.dell.com/sysman/OM-SrvAdmin-Dell-Web-LX-6.5.0-2247.RHEL5.x86_64_A01.4.tar.gz

2.Required libraries are in yum repo.

yum install sblim-sfcb yum install sblim-sfcc yum install opensman-server yum install opensman-client

3.Run ./srvadmin-install.sh –express

INSTALL on RHEL 5

[root@lange ~]# wget -q -O – http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
Downloading GPG key: http://linux.dell.com/repo/hardware/latest/RPM-GPG-KEY-dell
Importing key into RPM.
Downloading GPG key: http://linux.dell.com/repo/hardware/latest/RPM-GPG-KEY-libs mbios
Importing key into RPM.
Write repository configuration
Downloading repository RPM
Installing repository rpm: http://linux.dell.com/repo/hardware/latest/platform_i ndependent/rh50_64/prereq/dell-omsa-repository-2-5.noarch.rpm
Installing yum plugins for system id
Loaded plugins: rhnplugin, security
dell-omsa-indep | 1.9 kB 00:00
dell-omsa-indep/primary | 97 kB 00:00
dell-omsa-indep 723/723
dell-omsa-specific | 1.9 kB 00:00
dell-omsa-specific/primary | 97 kB 00:00
dell-omsa-specific 723/723
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package yum-dellsysid.x86_64 0:2.2.26-6.2.el5 set to be updated
–> Processing Dependency: smbios-utils-python >= 2.2.0 for package: yum-dellsysid
–> Running transaction check
—> Package smbios-utils-python.x86_64 0:2.2.26-6.2.el5 set to be updated
–> Processing Dependency: python-smbios = 2.2.26-6.2.el5 for package: smbios-utils-python
–> Running transaction check
—> Package python-smbios.x86_64 0:2.2.26-6.2.el5 set to be updated
–> Processing Dependency: libsmbios = 2.2.26-6.2.el5 for package: python-smbios
–> Processing Dependency: python-ctypes for package: python-smbios
–> Running transaction check
—> Package libsmbios.x86_64 0:2.2.26-6.2.el5 set to be updated
—> Package python-ctypes.x86_64 0:1.0.2-1.1.el5 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================================================
Package Arch Version Repository Size
=================================================================================================================================================================================
Installing:
yum-dellsysid x86_64 2.2.26-6.2.el5 dell-omsa-indep 16 k
Installing for dependencies:
python-ctypes x86_64 1.0.2-1.1.el5 dell-omsa-specific 215 k
python-smbios x86_64 2.2.26-6.2.el5 dell-omsa-specific 71 k
smbios-utils-python x86_64 2.2.26-6.2.el5 dell-omsa-specific 63 k
Updating for dependencies:
libsmbios x86_64 2.2.26-6.2.el5 dell-omsa-indep 1.5 M

Transaction Summary
=================================================================================================================================================================================
Install 4 Package(s)
Upgrade 1 Package(s)

Total download size: 1.9 M
Downloading Packages:
(1/5): yum-dellsysid-2.2.26-6.2.el5.x86_64.rpm | 16 kB 00:00
(2/5): smbios-utils-python-2.2.26-6.2.el5.x86_64.rpm | 63 kB 00:00
(3/5): python-smbios-2.2.26-6.2.el5.x86_64.rpm | 71 kB 00:00
(4/5): python-ctypes-1.0.2-1.1.el5.x86_64.rpm | 215 kB 00:00
(5/5): libsmbios-2.2.26-6.2.el5.x86_64.rpm | 1.5 MB 00:01
———————————————————————————————————————————————————————————
Total 657 kB/s | 1.9 MB 00:02
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : libsmbios 1/6
Installing : python-ctypes 2/6
Installing : python-smbios 3/6
Installing : smbios-utils-python 4/6
Installing : yum-dellsysid 5/6
Cleanup : libsmbios 6/6

Installed:
yum-dellsysid.x86_64 0:2.2.26-6.2.el5

Dependency Installed:
python-ctypes.x86_64 0:1.0.2-1.1.el5 python-smbios.x86_64 0:2.2.26-6.2.el5 smbios-utils-python.x86_64 0:2.2.26-6.2.el5

Dependency Updated:
libsmbios.x86_64 0:2.2.26-6.2.el5

Complete!
Loaded plugins: dellsysid, security
Cleaning up Everything
Done!

[root@lange ~]# yum install srvadmin-all
Loaded plugins: dellsysid, rhnplugin, security
dell-omsa-indep | 1.9 kB 00:00
dell-omsa-indep/primary | 97 kB 00:00
dell-omsa-indep 723/723
dell-omsa-specific | 1.9 kB 00:00
dell-omsa-specific/primary | 2.8 kB 00:00
dell-omsa-specific 7/7
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package srvadmin-all.x86_64 0:6.5.0-1.1.1.el5 set to be updated
–> Processing Dependency: srvadmin-base = 6.5.0 for package: srvadmin-all
–> Processing Dependency: srvadmin-webserver = 6.5.0 for package: srvadmin-all
–> Processing Dependency: srvadmin-rac4 = 6.5.0 for package: srvadmin-all
–> Processing Dependency: srvadmin-rac5 = 6.5.0 for package: srvadmin-all
–> Processing Dependency: srvadmin-storageservices = 6.5.0 for package: srvadmin-all
–> Processing Dependency: srvadmin-standardAgent = 6.5.0 for package: srvadmin-all
–> Processing Dependency: srvadmin-idrac = 6.5.0 for package: srvadmin-all
–> Running transaction check
—> Package srvadmin-base.x86_64 0:6.5.0-1.1.1.el5 set to be updated
–> Processing Dependency: srvadmin-omacore = 6.5.0 for package: srvadmin-base
–> Processing Dependency: srvadmin-smcommon = 6.5.0 for package: srvadmin-base
—> Package srvadmin-idrac.x86_64 0:6.5.0-1.228.2.el5 set to be updated
–> Processing Dependency: srvadmin-racadm4 = 6.5.0 for package: srvadmin-idrac
–> Processing Dependency: srvadmin-deng for package: srvadmin-idrac
–> Processing Dependency: srvadmin-rac-components for package: srvadmin-idrac
–> Processing Dependency: srvadmin-idrac-vmcli for package: srvadmin-idrac
–> Processing Dependency: srvadmin-idracadm for package: srvadmin-idrac
–> Processing Dependency: srvadmin-omilcore for package: srvadmin-idrac
–> Processing Dependency: srvadmin-racdrsc for package: srvadmin-idrac
–> Processing Dependency: srvadmin-omilcore for package: srvadmin-idrac
–> Processing Dependency: srvadmin-idrac-ivmcli for package: srvadmin-idrac
–> Processing Dependency: srvadmin-isvc for package: srvadmin-idrac
–> Processing Dependency: srvadmin-omcommon for package: srvadmin-idrac
–> Processing Dependency: srvadmin-argtable2 for package: srvadmin-idrac
—> Package srvadmin-rac4.x86_64 0:6.5.0-1.154.2.el5 set to be updated
–> Processing Dependency: srvadmin-racsvc = 6.5.0 for package: srvadmin-rac4
–> Processing Dependency: srvadmin-rac4-populator for package: srvadmin-rac4
—> Package srvadmin-rac5.x86_64 0:6.5.0-1.149.1.el5 set to be updated
–> Processing Dependency: srvadmin-racadm5 = 6.5.0 for package: srvadmin-rac5
—> Package srvadmin-standardAgent.x86_64 0:6.5.0-1.1.1.el5 set to be updated
–> Processing Dependency: srvadmin-itunnelprovider = 6.5.0 for package: srvadmin-standardAgent
—> Package srvadmin-storageservices.x86_64 0:6.5.0-1.1.1.el5 set to be updated
–> Processing Dependency: srvadmin-storage = 6.5.0 for package: srvadmin-storageservices
–> Processing Dependency: srvadmin-sysfsutils = 6.5.0 for package: srvadmin-storageservices
–> Processing Dependency: srvadmin-storelib = 6.5.0 for package: srvadmin-storageservices
—> Package srvadmin-webserver.x86_64 0:6.5.0-1.1.1.el5 set to be updated
–> Processing Dependency: srvadmin-iws = 6.5.0 for package: srvadmin-webserver
–> Processing Dependency: srvadmin-smweb = 6.5.0 for package: srvadmin-webserver
–> Running transaction check
—> Package srvadmin-argtable2.x86_64 0:6.5.0-3.1.el5 set to be updated
—> Package srvadmin-deng.x86_64 0:6.5.0-1.31.1.el5 set to be updated
—> Package srvadmin-idrac-ivmcli.x86_64 0:6.5.0-1.239.1.el5 set to be updated
–> Processing Dependency: libdchipm.so.5()(64bit) for package: srvadmin-idrac-ivmcli
—> Package srvadmin-idrac-vmcli.x86_64 0:6.5.0-1.254.1.el5 set to be updated
—> Package srvadmin-idracadm.x86_64 0:6.5.0-1.228.2.el5 set to be updated
—> Package srvadmin-isvc.x86_64 0:6.5.0-1.52.2.el5 set to be updated
—> Package srvadmin-itunnelprovider.x86_64 0:6.5.0-1.151.1.el5 set to be updated
–> Processing Dependency: openwsman-server >= 2.2.3 for package: srvadmin-itunnelprovider
–> Processing Dependency: sblim-sfcb >= 1.3.7 for package: srvadmin-itunnelprovider
–> Processing Dependency: libcmpiCppImpl.so.0()(64bit) for package: srvadmin-itunnelprovider
—> Package srvadmin-iws.x86_64 0:6.5.0-1.143.3.el5 set to be updated
–> Processing Dependency: srvadmin-jre for package: srvadmin-iws
–> Processing Dependency: libwsman_curl_client_transport.so.1()(64bit) for package: srvadmin-iws
–> Processing Dependency: libwsman.so.1()(64bit) for package: srvadmin-iws
–> Processing Dependency: libwsman_client.so.1()(64bit) for package: srvadmin-iws
—> Package srvadmin-omacore.x86_64 0:6.5.0-1.143.3.el5 set to be updated
–> Processing Dependency: libxmlsup.so.2()(64bit) for package: srvadmin-omacore
—> Package srvadmin-omcommon.x86_64 0:6.5.0-1.142.2.el5 set to be updated
—> Package srvadmin-omilcore.x86_64 0:6.5.0-1.452.1.el5 set to be updated
—> Package srvadmin-rac-components.x86_64 0:6.5.0-1.228.2.el5 set to be updated
—> Package srvadmin-rac4-populator.x86_64 0:6.5.0-1.154.2.el5 set to be updated
—> Package srvadmin-racadm4.x86_64 0:6.5.0-1.154.2.el5 set to be updated
—> Package srvadmin-racadm5.x86_64 0:6.5.0-1.149.1.el5 set to be updated
—> Package srvadmin-racdrsc.x86_64 0:6.5.0-1.228.2.el5 set to be updated
—> Package srvadmin-racsvc.x86_64 0:6.5.0-1.154.2.el5 set to be updated
—> Package srvadmin-smcommon.x86_64 0:6.5.0-1.201.2.el5 set to be updated
—> Package srvadmin-smweb.x86_64 0:6.5.0-1.201.2.el5 set to be updated
—> Package srvadmin-storage.x86_64 0:6.5.0-1.201.2.el5 set to be updated
—> Package srvadmin-storelib.x86_64 0:6.5.0-1.326.1.el5 set to be updated
–> Processing Dependency: srvadmin-storelib-sysfs-x86_64 for package: srvadmin-storelib
–> Processing Dependency: srvadmin-storelib-sysfs for package: srvadmin-storelib
—> Package srvadmin-sysfsutils.x86_64 0:6.5.0-1.1.el5 set to be updated
–> Running transaction check
—> Package libcmpiCppImpl0.x86_64 0:2.0.0Dell-3.1.el5 set to be updated
–> Processing Dependency: libwsman.so.1 for package: openwsman-client
—> Package libwsman1.x86_64 0:2.2.3.9-1.7.2.el5 set to be updated
—> Package openwsman-server.x86_64 0:2.2.3.9-1.7.2.el5 set to be updated
—> Package sblim-sfcb.x86_64 0:1.3.7-1.6.4.el5 set to be updated
—> Package srvadmin-hapi.x86_64 0:6.5.0-1.33.2.el5 set to be updated
—> Package srvadmin-jre.x86_64 0:6.5.0-1.145.1.el5 set to be updated
—> Package srvadmin-storelib-sysfs.x86_64 0:6.5.0-1.1.1.el5 set to be updated
—> Package srvadmin-xmlsup.x86_64 0:6.5.0-1.141.2.el5 set to be updated
–> Running transaction check
—> Package openwsman-client.x86_64 0:2.2.3.9-1.7.2.el5 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================================================
Package Arch Version Repository Size
=================================================================================================================================================================================
Installing:
srvadmin-all x86_64 6.5.0-1.1.1.el5 dell-omsa-indep 2.5 k
Installing for dependencies:
srvadmin-argtable2 x86_64 6.5.0-3.1.el5 dell-omsa-indep 58 k
srvadmin-base x86_64 6.5.0-1.1.1.el5 dell-omsa-indep 2.4 k
srvadmin-deng x86_64 6.5.0-1.31.1.el5 dell-omsa-indep 695 k
srvadmin-hapi x86_64 6.5.0-1.33.2.el5 dell-omsa-indep 887 k
srvadmin-idrac x86_64 6.5.0-1.228.2.el5 dell-omsa-indep 2.8 k
srvadmin-idrac-ivmcli x86_64 6.5.0-1.239.1.el5 dell-omsa-indep 202 k
srvadmin-idrac-vmcli x86_64 6.5.0-1.254.1.el5 dell-omsa-indep 106 k
srvadmin-idracadm x86_64 6.5.0-1.228.2.el5 dell-omsa-indep 1.0 M
srvadmin-isvc x86_64 6.5.0-1.52.2.el5 dell-omsa-indep 7.0 M
srvadmin-itunnelprovider x86_64 6.5.0-1.151.1.el5 dell-omsa-indep 2.0 M
srvadmin-iws x86_64 6.5.0-1.143.3.el5 dell-omsa-indep 13 M
srvadmin-jre x86_64 6.5.0-1.145.1.el5 dell-omsa-indep 35 M
srvadmin-omacore x86_64 6.5.0-1.143.3.el5 dell-omsa-indep 1.9 M
srvadmin-omcommon x86_64 6.5.0-1.142.2.el5 dell-omsa-indep 4.2 M
srvadmin-omilcore x86_64 6.5.0-1.452.1.el5 dell-omsa-indep 30 k
srvadmin-rac-components x86_64 6.5.0-1.228.2.el5 dell-omsa-indep 99 k
srvadmin-rac4 x86_64 6.5.0-1.154.2.el5 dell-omsa-indep 2.7 k
srvadmin-rac4-populator x86_64 6.5.0-1.154.2.el5 dell-omsa-indep 32 k
srvadmin-rac5 x86_64 6.5.0-1.149.1.el5 dell-omsa-indep 2.8 k
srvadmin-racadm4 x86_64 6.5.0-1.154.2.el5 dell-omsa-indep 314 k
srvadmin-racadm5 x86_64 6.5.0-1.149.1.el5 dell-omsa-indep 971 k
srvadmin-racdrsc x86_64 6.5.0-1.228.2.el5 dell-omsa-indep 34 k
srvadmin-racsvc x86_64 6.5.0-1.154.2.el5 dell-omsa-indep 39 k
srvadmin-smcommon x86_64 6.5.0-1.201.2.el5 dell-omsa-indep 726 k
srvadmin-smweb x86_64 6.5.0-1.201.2.el5 dell-omsa-indep 18 M
srvadmin-standardAgent x86_64 6.5.0-1.1.1.el5 dell-omsa-indep 2.4 k
srvadmin-storage x86_64 6.5.0-1.201.2.el5 dell-omsa-indep 2.8 M
srvadmin-storageservices x86_64 6.5.0-1.1.1.el5 dell-omsa-indep 2.5 k
srvadmin-storelib x86_64 6.5.0-1.326.1.el5 dell-omsa-indep 303 k
srvadmin-storelib-sysfs x86_64 6.5.0-1.1.1.el5 dell-omsa-indep 44 k
srvadmin-sysfsutils x86_64 6.5.0-1.1.el5 dell-omsa-indep 51 k
srvadmin-webserver x86_64 6.5.0-1.1.1.el5 dell-omsa-indep 2.4 k
srvadmin-xmlsup x86_64 6.5.0-1.141.2.el5 dell-omsa-indep 52 k
Updating for dependencies:
libcmpiCppImpl0 x86_64 2.0.0Dell-3.1.el5 dell-omsa-indep 95 k
libwsman1 x86_64 2.2.3.9-1.7.2.el5 dell-omsa-indep 324 k
openwsman-client x86_64 2.2.3.9-1.7.2.el5 dell-omsa-indep 61 k
openwsman-server x86_64 2.2.3.9-1.7.2.el5 dell-omsa-indep 174 k
sblim-sfcb x86_64 1.3.7-1.6.4.el5 dell-omsa-indep 1.4 M

Transaction Summary
=================================================================================================================================================================================
Install 34 Package(s)
Upgrade 5 Package(s)

Total download size: 91 M
Is this ok [y/N]:

[root@lange srvadmin]# bash /opt/dell/srvadmin/sbin/srvadmin-services.sh start
Starting Systems Management Device Drivers:
Starting dell_rbu: [ OK ]
Starting ipmi driver: Already started [ OK ]
Starting Systems Management Data Engine:
Starting dsm_sa_datamgrd: [ OK ]
Starting dsm_sa_eventmgrd: [ OK ]
Starting dsm_sa_snmpd: [ OK ]
Starting DSM SA Shared Services: [ OK ]

Starting DSM SA Connection Service: [ OK ]

Verify System Manufacture in Linux

I have a bash script where i need to determine if the system is Dell or Non-Dell for add-on software. I looked around on ‘the google’ and found that you can determine the system manufacturer by running the below command.

[root@stone ~]# dmidecode | grep Dell
Vendor: Dell Inc.
Manufacturer: Dell Inc.
Manufacturer: Dell Inc.
Manufacturer: Dell Inc.
String 1: Dell System

[root@stone ~]# dmidecode -s system-product-name
PowerEdge 2950

[root@stone ~]# dmidecode -s bios-version
2.7.0

[root@stone ~]# dmidecode -s system-serial-number
6GV2KH1

Here are all the available options…

[root@stone ~]# dmidecode -s
dmidecode: option requires an argument — s
String keyword expected
Valid string keywords are:
bios-vendor
bios-version
bios-release-date
system-manufacturer
system-product-name
system-version
system-serial-number
system-uuid
baseboard-manufacturer
baseboard-product-name
baseboard-version
baseboard-serial-number
baseboard-asset-tag
chassis-manufacturer
chassis-type
chassis-version
chassis-serial-number
chassis-asset-tag
processor-family
processor-manufacturer
processor-version
processor-frequency