суббота, 21 марта 2015 г.

Power822 memory DIMM


В закладки: Running HMC V7 R3.3.0 in VMWare

backup/restore aix

7100-03-03

Создать архив: smitty mksysb

* Backup DEVICE or FILE                              [/oradb/zfra]                                                                   +/
  Create MAP files?                                   no                                                                  +
  Create backup using snapshots?                      no                                                                  +
  EXCLUDE files?                                      no                                                                  +
  Exclude WPAR file systems?                          no                                                                  +
  Location of File System Exclusion List             []                                                                    /
  List files as they are backed up?                   no                                                                  +
  Verify readability if tape device?                  no                                                                  +
  Generate new /image.data file?                      yes                                                                 +
  EXPAND /tmp if needed?                              yes                                                                 +
  Disable software packing of backup?                 no                                                                  +
  Backup extended attributes?                         yes                                                                 +
  Number of BLOCKS to write in a single output       []                                                                    #
     (Leave blank to use a system default)
  Location of existing mksysb image                  []                                                                    /
  File system to use for temporary work space        []                                                                    /
     (If blank, /tmp will be used.)
  Back up encrypted files?                            yes                                                                 +
  Back up DMAPI filesystem files?                     yes  



Список файлов в бэкапе.
listvgbackup -cf /oradb/zfra/mksysb.img 

Восстановить:
restore -xdvqf /oradb/zfra/mksysb.img ./opt/u0
restore -xdvqf /oradb/zfra/mksysb.img ./home/orion ./home/oracle

точка вначале пути значащая.


Правильно бэкапить на магнитофон, тогда возможно загрузка с ленточки: http://nirmalesh-aix.blogspot.ru/2011/06/mksysb-and-savevg-backup-restore.html

четверг, 19 марта 2015 г.

Red Hat 7

Спасибо за то, что хотя бы syslog  оставили в plain text.

[root@rh70 ~]# uname -a
Linux rh70 3.10.0-123.el7.ppc64 #1 SMP Mon May 5 11:18:37 EDT 2014 ppc64 ppc64 ppc64 GNU/Linux



[root@rh70 ~]# mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=1767552k,nr_inodes=27618,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,seclabel,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/mapper/rhel_rh70-root on / type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=33,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime,seclabel)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel)
/dev/sda2 on /boot type xfs (rw,relatime,seclabel,attr2,inode64,noquota)                                                    
/dev/sr0 on /media type iso9660 (ro,relatime) 



[root@rh70 ~]# ps  aux | grep systemd                                                                                       
root          1  0.0  0.3  15360 13824 ?        Ss   Mar19   0:03 /usr/lib/systemd/systemd --switched-root --system --deserialize 23                                                                                                                     
root       1156  0.0  0.2  15936  8000 ?        Ss   Mar19   0:00 /usr/lib/systemd/systemd-journald
root       1205  0.0  0.1  15552  7168 ?        Ss   Mar19   0:00 /usr/lib/systemd/systemd-udevd
root       1866  0.0  0.1   7424  5952 ?        Ss   Mar19   0:00 /usr/lib/systemd/systemd-logind
dbus       1868  0.0  0.1  15488  5696 ?        Ssl  Mar19   0:01 /bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation




[root@rh70 /]# cat /etc/rc.d/init.d/README
You are looking for the traditional init scripts in /etc/rc.d/init.d,
and they are gone?

Here's an explanation on what's going on:

You are running a systemd-based OS where traditional init scripts have
been replaced by native systemd services files. Service files provide
very similar functionality to init scripts. To make use of service
files simply invoke "systemctl", which will output a list of all
currently running services (and other units). Use "systemctl
list-unit-files" to get a listing of all known unit files, including
stopped, disabled and masked ones. Use "systemctl start
foobar.service" and "systemctl stop foobar.service" to start or stop a
service, respectively. For further details, please refer to
systemctl(1).

Note that traditional init scripts continue to function on a systemd
system. An init script /etc/rc.d/init.d/foobar is implicitly mapped
into a service unit foobar.service during system initialization.

Thank you!

Further reading:
        man:systemctl(1)
        man:systemd(1)
        http://0pointer.de/blog/projects/systemd-for-admins-3.html
        http://www.freedesktop.org/wiki/Software/systemd/Incompatibilities

Поиск цискофона по серийному номеру.

Поиск цискофона по серийному номеру, прилада (.net 3.0) сканирует сеть, вытаскивает "Serial Number" и "Model Number", бонусом поднимает адрес/имя коммутатора и его порт.

SerialGrabber.zip

воскресенье, 15 марта 2015 г.

show anyconnect logged user

Managing, Monitoring, and Troubleshooting AnyConnect Sessions

You can find both the username and the index number (established by the order of the client images) in the output of the show vpn-sessiondb svc command.