Thursday, March 17, 2016

Windows admin quick notes for SCOM agent installation on Linux/UNIX

scxadmin -status
/opt/microsoft/scx/bin/tools/scxadmin -stop
/opt/microsoft/scx/bin/tools/scxadmin -start
/opt/microsoft/scx/bin/tools/scxadmin -restart


[root@hostname opsmgrsvc]# iptables --list
bash: iptables: command not found

Add /sbin to your path by editing your ~./bash_profile:
user $ vi ~/.bash_profile

Append /sbin to the PATH definition. In my file, this looks like:
PATH=$PATH:$HOME/bin –> PATH=$PATH:$HOME/bin:/sbin

Save and close ~/.bash_profile
$ ESC + :wq

Reload ~/.bash_profile: user
$ source ~/.bash_profile

No save: ESC+:q!

Allow tcp port 1270 inbound from 172.16.5.0/24 subnet:
iptables -I INPUT -p tcp -m tcp -s 172.16.5.0/24 --dport 1270 -j ACCEPT
service iptables save


vi /etc/hosts

NXT01:/etc/snmp # uname –a
Linux NXT01 2.6.18.2-34.nx26-bigsmp #1 SMP Mon Nov 27 11:46:27 UTC 2006 i686 i686 i386 GNU/Linux

NXT01:/etc/snmp # cat /proc/version
Linux version 2.6.18.2-34.nx26-bigsmp (geeko@buildhost) (gcc version 4.1.2 20061115 (prerelease) (SUSE Linux)) #1 SMP Mon Nov 27 11:46:27 UTC 2006

cat /etc/*release

SuSE Linux 9.1 (i586)

VERSION = 9.1