Differences between revisions 7 and 10 (spanning 3 versions)
Revision 7 as of 2017-01-10 15:02:21
Size: 994
Editor: localhost
Comment:
Revision 10 as of 2017-01-10 17:24:02
Size: 1363
Editor: localhost
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
{{{
  root 123456
  root ROOT@DADIMEDIA@!))))$

  root ^2Front9011)
  root ^10Server9011)

  }}}
= Linux =
Line 7: Line 16:

ansible 172.31.221.7 -m raw -a "dmidecode --type memory | head -30 | egrep 'Size:|Type:|Speed:|Part Number:'"
Line 34: Line 45:

= Windows =
== Physical disk info ==
wmic diskdrive list brief

 * Or with PowerShell:
Get-WmiObject Win32_DiskDrive

大地影院硬件信息收集

  root    123456
  root    ROOT@DADIMEDIA@!))))$ 

  root    ^2Front9011)
  root    ^10Server9011)

Linux

ipmitool fru print

dmidecode

dmidecode --type memory | head -30 | egrep 'Size:|Type:|Speed:|Part Number:'

ansible 172.31.221.7 -m raw -a "dmidecode --type memory | head -30 | egrep 'Size:|Type:|Speed:|Part Number:'"

password not correct

172.31.240.8 
192.168.69.7 
172.30.16.7
172.30.46.7
172.30.47.7
172.30.55.7
172.30.57.7

brightmoon ~ # grep --before-context=2 Au X.X.X.8 
172.31.240.8 | UNREACHABLE! => {
      "changed": false, 
       "msg": "Authentication failure.", 

brightmoon ~ # grep --before-context=2 "Authentication failure"  X.X.X.8 | grep UNRE | awk '{ print $1,"ansible_ssh_pass=ROOT@DADIMEDIA@!))))$ ansible_ssh_user=root" }' >> /etc/ansible/hosts

"module_stderr": "Shared connection to 172.31.29.2 closed.\r\n"

  • --> missing python-simplejson module

    --> 32bit Red Hat Enterprise Linux Server release 5.5 (Tikanga)

Linux AHliuanServer-3 2.6.18-194.el5PAE #1 SMP Tue Mar 16 22:00:21 EDT 2010 i686 i686 i386 GNU/Linux 32bit Not supported

Windows

Physical disk info

wmic diskdrive list brief

Get-WmiObject Win32_DiskDrive

首頁/2017-01-10 (last edited 2017-01-11 17:12:39 by localhost)