ScanCore

From Alteeve Wiki
Jump to navigation Jump to search

 AN!Wiki :: How To :: ScanCore

Warning: This is little more that raw notes, do not consider anything here to be valid or accurate at this time.

Installing

Database Setup

yum install -y postgresql postgresql-server postgresql-plperl postgresql-contrib postgresql-libs git
...
Complete!

DB config:

/etc/init.d/postgresql initdb
Initializing database:                                     [  OK  ]

Start

/etc/init.d/postgresql start
Starting postgresql service:                               [  OK  ]

Create the striker user.

su - postgres -c "createuser --no-superuser --createdb --no-createrole striker"
# no output expected

Set 'postgres' and 'striker' user passwords:


su - postgres -c "psql -U postgres"
psql (8.4.20)
Type "help" for help.
postgres=# \password
Enter new password: 
Enter it again:
postgres=# \password striker
Enter new password: 
Enter it again:

Exit.

postgres=# \q

Configure access

cp /var/lib/pgsql/data/pg_hba.conf /var/lib/pgsql/data/pg_hba.conf.striker
vim /var/lib/pgsql/data/pg_hba.conf
diff -u /var/lib/pgsql/data/pg_hba.conf.striker /var/lib/pgsql/data/pg_hba.conf
--- /var/lib/pgsql/data/pg_hba.conf.striker	2015-01-16 15:24:38.985895621 -0500
+++ /var/lib/pgsql/data/pg_hba.conf	2015-01-16 15:26:42.611236927 -0500
@@ -65,9 +65,13 @@
 
 
 # TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
+# dashboards
+host    all         all         10.20.4.0/24          md5
+# node servers
+host    all         all         10.20.70.0/24         md5
 
 # "local" is for Unix domain socket connections only
-local   all         all                               ident
+local   all         all                               md5
 # IPv4 local connections:
 host    all         all         127.0.0.1/32          ident
 # IPv6 local connections:
cp /var/lib/pgsql/data/postgresql.conf /var/lib/pgsql/data/postgresql.conf.striker
vim /var/lib/pgsql/data/postgresql.conf
diff -u /var/lib/pgsql/data/postgresql.conf.striker /var/lib/pgsql/data/postgresql.conf
--- /var/lib/pgsql/data/postgresql.conf.striker	2015-01-16 15:33:30.970370628 -0500
+++ /var/lib/pgsql/data/postgresql.conf	2015-01-16 15:34:16.603482692 -0500
@@ -56,6 +56,7 @@
 
 # - Connection Settings -
 
+listen_addresses = '*'
 #listen_addresses = 'localhost'		# what IP address(es) to listen on;
 					# comma-separated list of addresses;
 					# defaults to 'localhost', '*' = all
/etc/init.d/postgresql restart
Stopping postgresql service:                               [  OK  ]
Starting postgresql service:                               [  OK  ]

Create DB:

su - postgres -c "createdb --owner striker scanner"
Password:

Now download the SQL files we're going to load.

git clone https://github.com/digimer/striker.git
Initialized empty Git repository in /root/striker/.git/
remote: Counting objects: 3602, done.
remote: Compressing objects: 100% (57/57), done.
remote: Total 3602 (delta 25), reused 0 (delta 0)
Receiving objects: 100% (3602/3602), 7.88 MiB | 1024 KiB/s, done.
Resolving deltas: 100% (2307/2307), done.
cd striker
git checkout scanner
Branch scanner set up to track remote branch scanner from origin.
Switched to a new branch 'scanner'
cd Scanner/SQL/
ls -lah
total 40K
drwxr-xr-x.  2 root root 4.0K Jan 16 15:18 .
drwxr-xr-x. 13 root root 4.0K Jan 16 15:18 ..
-rw-r--r--.  1 root root 3.3K Jan 16 15:18 01_create_node.sql
-rw-r--r--.  1 root root 3.3K Jan 16 15:18 02_create_alerts.sql
-rw-r--r--.  1 root root 2.5K Jan 16 15:18 03_create_alert_listeners.sql
-rw-r--r--.  1 root root 1.2K Jan 16 15:18 04_load_alert_listeners.sql
-rw-r--r--.  1 root root 3.3K Jan 16 15:18 05_create_random_agent.sql
-rw-r--r--.  1 root root 3.4K Jan 16 15:18 06_create_snm_apc_ups.sql
-rw-r--r--.  1 root root 3.3K Jan 16 15:18 07_create_ipmi.sql
-rw-r--r--.  1 root root 3.3K Jan 16 15:18 08_create_raid.sql

Load SQL files

These are currently hard-coded to 'alteeve' user, switch to the 'striker' user.

sed -i 's/alteeve/striker/' *
# Enter the password sooooo many times ;_;

Test:

psql -U striker -d scanner -c "SELECT * FROM alert_listeners"
Password for user striker:
 id |      name      |     mode      |  level  |  contact_info  | language | added_by |            updated            
----+----------------+---------------+---------+----------------+----------+----------+-------------------------------
  1 | screen         | Screen        | DEBUG   | screen         | en_CA    |        0 | 2014-12-11 14:42:13.273057-05
  2 | Tom Legrady    | Email         | DEBUG   | tom@striker.ca | en_CA    |        0 | 2014-12-11 16:54:25.477321-05
  3 | Health Monitor | HealthMonitor | WARNING |                | en_CA    |        0 | 2015-01-14 14:08:15-05
(3 rows)

Done!

Configure Scan Core on a Node

Install dependencies:

  1. TODO - postgresql (client only)

Clone the git repo:

git clone https://github.com/digimer/striker.git
Initialized empty Git repository in /root/striker/.git/
remote: Counting objects: 3602, done.
remote: Compressing objects: 100% (57/57), done.
remote: Total 3602 (delta 25), reused 0 (delta 0)
Receiving objects: 100% (3602/3602), 7.88 MiB | 586 KiB/s, done.
Resolving deltas: 100% (2307/2307), done.
cd striker/
git checkout scanner
Switched to branch 'scanner'
git pull origin scanner
From https://github.com/digimer/striker
 * branch            scanner    -> FETCH_HEAD
Merge made by recursive.
 .gitignore                                         |   19 +
 Scanner/Agents/ipmi                                |  257 +
 Scanner/Agents/raid                                |  257 +
 Scanner/Agents/random-agent                        |  278 +
 Scanner/Agents/snmp_apc_ups                        |  271 +
 Scanner/Bin/clean                                  |   20 +
 Scanner/Bin/db                                     |  130 +
 Scanner/Bin/dbclean                                |   10 +
 Scanner/Bin/dbclean_cmds                           |    5 +
 Scanner/Config/db.conf                             |    7 +
 Scanner/Config/ipmi.conf                           |  246 +
 Scanner/Config/raid.conf                           |   50 +
 Scanner/Config/scanner.conf                        |   39 +
 Scanner/Config/snmp_apc_ups.conf                   |  203 +
 ...ng_an_agent_by_extending_existing_perl_classes. |  299 +
 Scanner/MIB/powernet412.mib.txt                    |70988 ++++++++++++++++++++
 Scanner/Makefile                                   |   86 +
 Scanner/Messages/ipmi.xml                          |   33 +
 Scanner/Messages/raid.xml                          |   33 +
 Scanner/Messages/random-agent.xml                  |   31 +
 Scanner/Messages/scanner.xml                       |   30 +
 Scanner/Messages/snmp_apc_ups.xml                  |   37 +
 Scanner/RPMS/load_rpm_packages.sh                  |   66 +
 .../RPMS/perl-Capture-Tiny-0.27-1.el6.noarch.rpm   |  Bin 0 -> 26684 bytes
 .../RPMS/perl-Class-Tiny-1.000-1.rhel6.noarch.rpm  |  Bin 0 -> 26280 bytes
 Scanner/RPMS/perl-Clone-0.37-1.el6.x86_64.rpm      |  Bin 0 -> 14072 bytes
 .../perl-Clone-debuginfo-0.37-1.el6.x86_64.rpm     |  Bin 0 -> 28724 bytes
 .../RPMS/perl-Const-Fast-0.006-1.el6.noarch.rpm    |  Bin 0 -> 17024 bytes
 Scanner/RPMS/perl-Crypt-CBC-2.33-1.el6.noarch.rpm  |  Bin 0 -> 27504 bytes
 Scanner/RPMS/perl-Crypt-DES-2.07-1.el6.x86_64.rpm  |  Bin 0 -> 15168 bytes
 .../perl-Crypt-DES-debuginfo-2.07-1.el6.x86_64.rpm |  Bin 0 -> 33232 bytes
 .../RPMS/perl-Data-OptList-0.109-1.el6.noarch.rpm  |  Bin 0 -> 16604 bytes
 ...l-Devel-GlobalDestruction-0.13-1.el6.noarch.rpm |  Bin 0 -> 8344 bytes
 ...evel-GlobalDestruction-XS-0.01-1.el6.x86_64.rpm |  Bin 0 -> 9420 bytes
 ...lDestruction-XS-debuginfo-0.01-1.el6.x86_64.rpm |  Bin 0 -> 25800 bytes
 .../RPMS/perl-Exporter-Tiny-0.042-1.el6.noarch.rpm |  Bin 0 -> 31612 bytes
 Scanner/RPMS/perl-Net-SNMP-v6.0.1-1.el6.noarch.rpm |  Bin 0 -> 103156 bytes
 Scanner/RPMS/perl-Net-SSH2-0.53-1.el6.x86_64.rpm   |  Bin 0 -> 88340 bytes
 .../perl-Net-SSH2-debuginfo-0.53-1.el6.x86_64.rpm  |  Bin 0 -> 97188 bytes
 .../RPMS/perl-Params-Util-1.07-1.el6.x86_64.rpm    |  Bin 0 -> 34748 bytes
 ...erl-Params-Util-debuginfo-1.07-1.el6.x86_64.rpm |  Bin 0 -> 30988 bytes
 .../perl-Proc-Background-1.10-1.el6.noarch.rpm     |  Bin 0 -> 25128 bytes
 .../RPMS/perl-Sub-Exporter-0.987-1.el6.noarch.rpm  |  Bin 0 -> 54936 bytes
 ...-Exporter-Progressive-0.001011-1.el6.noarch.rpm |  Bin 0 -> 8976 bytes
 .../RPMS/perl-Sub-Install-0.928-1.el6.noarch.rpm   |  Bin 0 -> 17236 bytes
 .../RPMS/perl-TermReadKey-2.32-1.el6.x86_64.rpm    |  Bin 0 -> 30880 bytes
 ...erl-TermReadKey-debuginfo-2.32-1.el6.x86_64.rpm |  Bin 0 -> 48532 bytes
 .../RPMS/perl-Test-Output-1.03-1.el6.noarch.rpm    |  Bin 0 -> 14272 bytes
 ...perl-XML-NamespaceSupport-1.11-1.el6.noarch.rpm |  Bin 0 -> 14592 bytes
 Scanner/RPMS/perl-XML-SAX-0.99-1.el6.noarch.rpm    |  Bin 0 -> 52952 bytes
 .../RPMS/perl-XML-SAX-Base-1.08-1.el6.noarch.rpm   |  Bin 0 -> 29288 bytes
 .../RPMS/perl-XML-SAX-Expat-0.51-1.el6.noarch.rpm  |  Bin 0 -> 11148 bytes
 Scanner/RPMS/perl-XML-Simple-2.20-1.el6.noarch.rpm |  Bin 0 -> 76704 bytes
 Scanner/SQL/01_create_node.sql                     |  119 +
 Scanner/SQL/02_create_alerts.sql                   |  162 +
 Scanner/SQL/03_create_alert_listeners.sql          |   97 +
 Scanner/SQL/04_load_alert_listeners.sql            |   56 +
 Scanner/SQL/05_create_random_agent.sql             |  148 +
 Scanner/SQL/06_create_snm_apc_ups.sql              |  152 +
 Scanner/SQL/07_create_ipmi.sql                     |  152 +
 Scanner/SQL/08_create_raid.sql                     |  152 +
 Scanner/Src/Makefile                               |   37 +
 Scanner/Src/README                                 |   26 +
 Scanner/Src/wipmi.c                                |   14 +
 Scanner/Src/wstorcli.c                             |   89 +
 Scanner/lib/AN/Agent.pm                            |  327 +
 Scanner/lib/AN/Alerts.pm                           |  525 +
 Scanner/lib/AN/Cluster.pm                          |10790 +++
 Scanner/lib/AN/Common.pm                           | 1640 +
 Scanner/lib/AN/DBS.pm                              |  296 +
 Scanner/lib/AN/Email.pm                            |  221 +
 Scanner/lib/AN/FlagFile.pm                         |  487 +
 Scanner/lib/AN/HealthMonitor.pm                    |  224 +
 Scanner/lib/AN/IPMI/Temp.pm                        |  202 +
 Scanner/lib/AN/InstallManifest.pm                  | 3348 +
 Scanner/lib/AN/Listener.pm                         |  217 +
 Scanner/lib/AN/MonitorAgent.pm                     |  313 +
 Scanner/lib/AN/Msg_xlator.pm                       |  254 +
 Scanner/lib/AN/OneAlert.pm                         |  226 +
 Scanner/lib/AN/OneDB.pm                            |  509 +
 Scanner/lib/AN/RAID/Temp.pm                        |  343 +
 Scanner/lib/AN/SNMP/APC_UPS.pm                     |  686 +
 Scanner/lib/AN/Scanner.pm                          |  923 +
 Scanner/lib/AN/Screen.pm                           |  164 +
 Scanner/lib/AN/Striker.pm                          |12081 ++++
 Scanner/lib/AN/Unix.pm                             |  225 +
 Scanner/scanner                                    |  306 +
 Scanner/t/10-an-agent.t                            |  265 +
 Scanner/t/15-an-onealert.t                         |  122 +
 Scanner/t/20-an-onedb.t                            |  262 +
 Scanner/t/25-an-screen.t                           |   60 +
 Scanner/t/30-an-email.t                            |   60 +
 Scanner/t/35-an-msg_xlator.t                       |  194 +
 Scanner/t/40-an-flagfile.t                         |  240 +
 Scanner/t/45-an-listener.t                         |   93 +
 Scanner/t/50-an-monitoragent.t                     |   45 +
 Scanner/t/55-an-dbs.t                              |  283 +
 Scanner/t/60-an-unix.t                             |   71 +
 Scanner/t/65-an-alerts.t                           |  385 +
 Scanner/t/70-an-snmp-apc_ups.t                     | 1117 +
 Scanner/t/75-an-ipmi-temp.t                        |  171 +
 Scanner/t/test_coverage                            |   11 +
 102 files changed, 112285 insertions(+), 0 deletions(-)
 create mode 100644 .gitignore
 create mode 100755 Scanner/Agents/ipmi
 create mode 100755 Scanner/Agents/raid
 create mode 100755 Scanner/Agents/random-agent
 create mode 100755 Scanner/Agents/snmp_apc_ups
 create mode 100755 Scanner/Bin/clean
 create mode 100755 Scanner/Bin/db
 create mode 100755 Scanner/Bin/dbclean
 create mode 100755 Scanner/Bin/dbclean_cmds
 create mode 100644 Scanner/Config/db.conf
 create mode 100644 Scanner/Config/ipmi.conf
 create mode 100644 Scanner/Config/raid.conf
 create mode 100644 Scanner/Config/scanner.conf
 create mode 100644 Scanner/Config/snmp_apc_ups.conf
 create mode 100644 Scanner/Docs/Writing_an_agent_by_extending_existing_perl_classes.
 create mode 100644 Scanner/MIB/powernet412.mib.txt
 create mode 100644 Scanner/Makefile
 create mode 100644 Scanner/Messages/ipmi.xml
 create mode 100644 Scanner/Messages/raid.xml
 create mode 100644 Scanner/Messages/random-agent.xml
 create mode 100644 Scanner/Messages/scanner.xml
 create mode 100644 Scanner/Messages/snmp_apc_ups.xml
 create mode 100755 Scanner/RPMS/load_rpm_packages.sh
 create mode 100644 Scanner/RPMS/perl-Capture-Tiny-0.27-1.el6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-Class-Tiny-1.000-1.rhel6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-Clone-0.37-1.el6.x86_64.rpm
 create mode 100644 Scanner/RPMS/perl-Clone-debuginfo-0.37-1.el6.x86_64.rpm
 create mode 100644 Scanner/RPMS/perl-Const-Fast-0.006-1.el6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-Crypt-CBC-2.33-1.el6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-Crypt-DES-2.07-1.el6.x86_64.rpm
 create mode 100644 Scanner/RPMS/perl-Crypt-DES-debuginfo-2.07-1.el6.x86_64.rpm
 create mode 100644 Scanner/RPMS/perl-Data-OptList-0.109-1.el6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-Devel-GlobalDestruction-0.13-1.el6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-Devel-GlobalDestruction-XS-0.01-1.el6.x86_64.rpm
 create mode 100644 Scanner/RPMS/perl-Devel-GlobalDestruction-XS-debuginfo-0.01-1.el6.x86_64.rpm
 create mode 100644 Scanner/RPMS/perl-Exporter-Tiny-0.042-1.el6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-Net-SNMP-v6.0.1-1.el6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-Net-SSH2-0.53-1.el6.x86_64.rpm
 create mode 100644 Scanner/RPMS/perl-Net-SSH2-debuginfo-0.53-1.el6.x86_64.rpm
 create mode 100644 Scanner/RPMS/perl-Params-Util-1.07-1.el6.x86_64.rpm
 create mode 100644 Scanner/RPMS/perl-Params-Util-debuginfo-1.07-1.el6.x86_64.rpm
 create mode 100644 Scanner/RPMS/perl-Proc-Background-1.10-1.el6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-Sub-Exporter-0.987-1.el6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-Sub-Exporter-Progressive-0.001011-1.el6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-Sub-Install-0.928-1.el6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-TermReadKey-2.32-1.el6.x86_64.rpm
 create mode 100644 Scanner/RPMS/perl-TermReadKey-debuginfo-2.32-1.el6.x86_64.rpm
 create mode 100644 Scanner/RPMS/perl-Test-Output-1.03-1.el6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-XML-NamespaceSupport-1.11-1.el6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-XML-SAX-0.99-1.el6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-XML-SAX-Base-1.08-1.el6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-XML-SAX-Expat-0.51-1.el6.noarch.rpm
 create mode 100644 Scanner/RPMS/perl-XML-Simple-2.20-1.el6.noarch.rpm
 create mode 100644 Scanner/SQL/01_create_node.sql
 create mode 100644 Scanner/SQL/02_create_alerts.sql
 create mode 100644 Scanner/SQL/03_create_alert_listeners.sql
 create mode 100644 Scanner/SQL/04_load_alert_listeners.sql
 create mode 100644 Scanner/SQL/05_create_random_agent.sql
 create mode 100644 Scanner/SQL/06_create_snm_apc_ups.sql
 create mode 100644 Scanner/SQL/07_create_ipmi.sql
 create mode 100644 Scanner/SQL/08_create_raid.sql
 create mode 100644 Scanner/Src/Makefile
 create mode 100644 Scanner/Src/README
 create mode 100644 Scanner/Src/wipmi.c
 create mode 100644 Scanner/Src/wstorcli.c
 create mode 100644 Scanner/lib/AN/Agent.pm
 create mode 100644 Scanner/lib/AN/Alerts.pm
 create mode 100644 Scanner/lib/AN/Cluster.pm
 create mode 100644 Scanner/lib/AN/Common.pm
 create mode 100644 Scanner/lib/AN/DBS.pm
 create mode 100644 Scanner/lib/AN/Email.pm
 create mode 100644 Scanner/lib/AN/FlagFile.pm
 create mode 100644 Scanner/lib/AN/HealthMonitor.pm
 create mode 100644 Scanner/lib/AN/IPMI/Temp.pm
 create mode 100755 Scanner/lib/AN/InstallManifest.pm
 create mode 100644 Scanner/lib/AN/Listener.pm
 create mode 100644 Scanner/lib/AN/MonitorAgent.pm
 create mode 100644 Scanner/lib/AN/Msg_xlator.pm
 create mode 100644 Scanner/lib/AN/OneAlert.pm
 create mode 100644 Scanner/lib/AN/OneDB.pm
 create mode 100644 Scanner/lib/AN/RAID/Temp.pm
 create mode 100644 Scanner/lib/AN/SNMP/APC_UPS.pm
 create mode 100644 Scanner/lib/AN/Scanner.pm
 create mode 100644 Scanner/lib/AN/Screen.pm
 create mode 100644 Scanner/lib/AN/Striker.pm
 create mode 100644 Scanner/lib/AN/Unix.pm
 create mode 100755 Scanner/scanner
 create mode 100644 Scanner/t/10-an-agent.t
 create mode 100644 Scanner/t/15-an-onealert.t
 create mode 100644 Scanner/t/20-an-onedb.t
 create mode 100644 Scanner/t/25-an-screen.t
 create mode 100644 Scanner/t/30-an-email.t
 create mode 100644 Scanner/t/35-an-msg_xlator.t
 create mode 100644 Scanner/t/40-an-flagfile.t
 create mode 100644 Scanner/t/45-an-listener.t
 create mode 100644 Scanner/t/50-an-monitoragent.t
 create mode 100644 Scanner/t/55-an-dbs.t
 create mode 100644 Scanner/t/60-an-unix.t
 create mode 100644 Scanner/t/65-an-alerts.t
 create mode 100644 Scanner/t/70-an-snmp-apc_ups.t
 create mode 100644 Scanner/t/75-an-ipmi-temp.t
 create mode 100755 Scanner/t/test_coverage
ls -lah
total 180K
drwxr-xr-x.  9 root root 4.0K Jan 16 16:35 .
dr-xr-x---. 14 root root 4.0K Jan 16 16:32 ..
-rwxr-xr-x.  1 root root 122K Jan 16 16:33 anvil_setup
drwxr-xr-x.  4 root root 4.0K Jan 16 16:33 cgi-bin
-rw-r--r--.  1 root root 7.4K Jan 16 16:33 CHANGELOG
drwxr-xr-x.  8 root root 4.0K Jan 16 16:35 .git
-rw-r--r--.  1 root root  279 Jan 16 16:35 .gitignore
drwxr-xr-x.  2 root root 4.0K Jan 16 16:33 guacamole
drwxr-xr-x.  3 root root 4.0K Jan 16 16:33 html
-rw-r--r--.  1 root root 3.4K Jan 16 16:33 README.md
drwxr-xr-x. 13 root root 4.0K Jan 16 16:35 Scanner
-rw-r--r--.  1 root root 3.7K Jan 16 16:33 striker.conf
drwxr-xr-x.  2 root root 4.0K Jan 16 16:33 t
drwxr-xr-x.  2 root root 4.0K Jan 16 16:33 tools
cd Scanner/Config/
vim db.conf 
git diff db.conf
diff --git a/Scanner/Config/db.conf b/Scanner/Config/db.conf
index 9925faf..e39aa60 100644
--- a/Scanner/Config/db.conf
+++ b/Scanner/Config/db.conf
@@ -1,7 +1,6 @@
 db::1::name      = scanner
 db::1::db_type   = Pg
-db::1::host      = 10.255.4.251
-#db::1::host      = an-m01
+db::1::host      = 10.20.4.2
 db::1::port      = 5432
-db::1::user      = alteeve
-db::1::password  = alteeve
+db::1::user      = striker
+db::1::password  = secret
cd ../RPMS
./load_rpm_packages.sh
# say 'y' when prompted
cd ..
make wrapper
cd Src && make 
make[1]: Entering directory `/root/striker/Scanner/Src'
if [[ "root" != "root" ]] ; then		\
	    echo "Only root can create wrappers.";	\
	    echo "run as: sudo make";	\
	else				\
	    cc -o wipmi wipmi.c;		\
	    cp wipmi ..;			\
	    chown root:root ../wipmi;	\
	    chmod 755  ../wipmi; 		\
	    chmod u+s  ../wipmi;		\
	fi
if [[ "root" != "root" ]] ; then		\
	    echo "Only root can create wrappers.";	\
	    echo "run as: sudo make";	\
	else				\
	    cc -o wstorcli wipmi.c;		\
	    cp wstorcli ..;			\
	    chown root:root ../wstorcli;	\
	    chmod 755  ../wstorcli; 		\
	    chmod u+s  ../wstorcli;		\
	fi
make[1]: Leaving directory `/root/striker/Scanner/Src'

Test:

Agents/ipmi --verbose --verbose
ipmi loop 1 at 1421444884.53996 2378.437:27621.563 mSec.
^C

Yay!






 

Any questions, feedback, advice, complaints or meanderings are welcome.
Alteeve's Niche! Enterprise Support:
Alteeve Support
Community Support
© Alteeve's Niche! Inc. 1997-2024   Anvil! "Intelligent Availability®" Platform
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.