Friday, December 23, 2016

Solaris11 - set up


# crle
# which gcc
# gcc -v
# ./configure --prefix=/usr/local/net-snmp
# mkdir -p /usr/local/net-snmp
# make
# ls agent
# pwd
# cd ../
# cd net-snmp
# cd sbin
# ./snmpd -v
# ./snmpd -V
# crle
# ls
# cd ../
# ls
# pwd
# cd ..
# ls
# tar cf - net-snmp | ( cd /usr/local; tar xfBp - )
# cd /usr/local
# ls
# cd net-snmp
# ls
# cat S99sma
# pwd
# ls
# cd sbin
# ls
# ./snmpd -v
# pwd
# ls
# cd ../
# ls
# cp S99sma /etc/rc3.d
# cd share
# ls
# cd snmp
# ls
# cat snmpd.conf |more
# pwd
# cd ../..
# ls
# cd bin
# ls
# ./net-snmp-create-v3-user
# /etc/rc3.d/S99sma start
# cat /etc/rc3.d/S99sma
# ps -ef | grep -i snmp
# ps -ef | grep -i snmp
# /usr/sfw/bin/snmpget -v 3 -u snmpv3 -l authNoPriv -a MD5 -A SC3Soracle localhost sysUpTime.0
# which snmpget
# /usr/bin/snmpget -v 3 -u snmpv3 -l authNoPriv -a MD5 -A SC3Soracle localhost sysUpTime.0
# ps -ef | grep -i snmp
# crle
# ls /usr/local/lib
# /usr/local/net-snmp/sbin/snmpd -v
# exit
# svcs -a | grep -i snmp
# ps -ef | grep -i snmp
# /usr/local/net-snmp/sbin/snmpd -v
# cd /etc/rc3.d
# ls
# cat S99sma
# ps -ef | grep -i snmp
# cd ../rc2.d
# ls
# df -k
# ps -ef |more
# ntpq -p
#  ps -ef | grep -i snmp
# df -k
# crontab -l
# cd /var/audit/BART
# cd /usr/local/ssh6.6p1/sbin
# ./sshd -V
# ./sshd -v
# ifconfig -a
# ipmpstat -g
# ipmpstat -i
# df -k
# crontab -l
# cd /var/tmp/CAC/DEV/DEV_AD-KRB5-LDAP-Bundle09122016/
# rm ssh6.6p1.tar
  149  ls -al
  150  rm sudo-pam
  151  ls -al
  152  ls -l libraries
  153  ls -al /usr/local/lib/security/
  154  pwd
  155  ls -al
  156  rm -fr libraries
  157  ls -al
  158  ls -l ad
  159  ls ldap
  160  cat ldap_add-tlsPREF.sh |more
  161  pwd
  162  cd ldap
  163  ls
  164  ls -al
  165  cat ldap_add-tlsPREF.sh |more
  166  cat /etc/hosts |more
  167  who
  168  w
  169  df -k
  170  pwd
  171  cd ../..
  172  ls
  173  cd ..
  174  ls
  175  cd TEST
  176  ls -al
  177  cd TEST_AD-KRB5-LDAP-Bundle10052016/
  178  ls
  179  ls -al
  180  rm -fr libraries
  181  rm ssh6.6p1.tar sudo-pam
  182  ls -al
  183  pwd
  184  ls -al
  185  cat sshd |more
  186  pwd
  187  ls -al
  188  cd ../
  189  ls
  190  vi ldap_inst_test.sh

  204  cd ../
  205  ls
  206  cd PROD
  207  ls
  208  cd PROD_AD-KRB5-LDAP-Bundle11072016/
  209  ls
  210  ls -al
  211  rm sudo-pam ssh6.6p1.tar
  212  ls -al
  213  rm -fr libraries
  214  ls -al
  215  ls -al ldap
  216  cd ldap
  217  ls
  218  cat ldap_add-tlsPREF.sh |more
  219  df -k
  220  ps -ef |more
  221  who
  222  w
  223  ps -ef | grep -i snmp
  224  crontab -l
  225  df -k
# ipadm show-if
# ifpadm show-addr
# ipadm show-addr
# cat /etc/netmasks
# ifconfig -a
# ps -ef |more
# df -k
# ls /usr/jdk
# cd /var/tmp
# df -k
# ps -ef |more
# zfs list
# zfs get all rpool/export/home
# which rsync
# cat /var/opt/BART/bart.sh |more
# pkg info entire
# zfs set quota=7G rpool/export/home
# cd /var/audit
# svcs -a | grep -i audit
# svcadm disable auditd
# rm 20161206154209.20161207125214.sol11-test-serv
# zfs list
# cd /var/audit
# cd ../
# zfs list
# zfs create rpool/VAR-AUDIT
# zfs list
# zfs set quota=3G rpool/VAR-AUDIT
# zfs list
# zfs set mountpoint=/var/audit rpool/VAR-AUDIT
# zfs list
# zfs set mountpoint=/var/audit rpool/VAR-AUDIT
# zfs list
# cd /var
# ls -al |more
# cd /var/share
# svcs -a | grep -i audit
# svcadm enable auditd
# ls -al /var/share/audit
# zfs get all rpool/VARSHARE
# ipmpstat -g
# ipmpstat -a
# ipmpstat -g
# ipmpstat -i
# hostname
# svcs -a | grep -i identity
# svcprop  svc:/system/identity:node
# which gcc
# which bart
# cd /var/share/audit
# mkdir -p BART
# cd BART
# mkdir compare manifest
# cd ../
# ls
# ifconfig -a
# ipmpstat -i
# crle
# vi /etc/ssh/sshd_config
# svcadm refresh ssh
# cd local/ssh6.6p1/etc
# rm ssh_host_rsa_key ssh_host_rsa_key.pub ssh_host_dsa_key ssh_host_dsa_key.pub
# vi sshd_config
# cd ad/krb5
# beadm list
# beadm destroy altSolaris
# beadm list
# beadm create altSolaris
# unzip SCC_4.1.1_solaris_sparc.zip
# ls -al
# cd SCC_4.1.1_solaris_sparc
# ls
# gunzip scc-4.1.1_solaris_sparc.tar.gz
# ls -al
# tar tvf scc-4.1.1_solaris_sparc.tar |more
# gunzip scc-4.1.1-solaris-sparc.gz
# pkgadd -d scc-4.1.1-solaris-sparc
# cd /opt/scc
# ./cscc --config
# ./cscc
# cd /export/home/
# cd SCC
# chmod 755 Results/
# cd Results/
# ls -al
# chmod -R 755 SCAP
# ls -al
# cd SCAP/2016-12-14_230413/XML
# cd ../
# cd ..
# ls -al
# cd 2016-12-14_230413/
# svcs -a | grep -i ftp
# ps -ef | more

No comments:

Post a Comment