読者です 読者をやめる 読者になる 読者になる

海馬のかわり

最近記憶力に難がある、地方在住サーバエンジニアの備忘録です。

Data ONTAP8でUnixコマンドを使う

いわゆるSystemShellへのアクセス方法メモ。

■設定手順

> priv set advanced
> useradmin diaguser unlock
> useradmin diaguser password
> systemshell

■動作確認
試しにsshでアクセスしてみる。

login as: root
root@10.0.0.1's password:

netapp01>
netapp01> priv set advanced
Warning: These advanced commands are potentially dangerous; use
         them only when directed to do so by NetApp
         personnel.
netapp01*>
netapp01*> useradmin diaguser unlock
netapp01*>
netapp01*> useradmin diaguser password

Please enter a new password:
Please enter it again:

netapp01*> Tue Feb  7 04:26:12 GMT [netapp01:passwd.changed:info]: passwd for user 'diag' changed.

netapp01*>
netapp01*>
netapp01*> systemshell

Data ONTAP/amd64 (netapp01) (ttyp0)

login: diag
Password:
Last login: Tue Feb  7 04:22:01 from localhost


Warning:  The system shell provides access to low-level
diagnostic tools that can cause irreparable damage to
the system if not used properly.  Use this environment
only when directed to do so by support personnel.

netapp01%
netapp01%
netapp01% uname -a
Data ONTAP netapp01 8.1X45 Data ONTAP Release 8.1X45 amd64
netapp01%
netapp01%
netapp01% echo $SHELL
/bin/csh
netapp01%
netapp01%
netapp01%
netapp01% bash
bash-3.2$
bash-3.2$ cat /etc/rc.conf
#
# default rc.conf file (which is copied)
#

#ifconfig_bge0="DHCP"
#ifconfig_em0="DHCP"
#hostname="xxx.yyy.zzz.com"

keyrate="fast"

sshd_enable="YES"

root_rw_mount="NO"
rpcbind_enable="YES"
nis_client_enable="YES"
nisdomainname="unset"
nis_client_flags="-ypsetme"

#Change swapfile location as part of upgrade
swapfile="/mroot/etc/swapfile"
swapsize="1073741824"           # 1G swapfile
sim_swapfile="/sim/swapfile"    # use a non-mroot swapfile for vsims.
vsa_swapdevice="/dev/ad1s2"     # use dedicated partition for vsa, tested for in addswap
vsim_std_swapdevice="/dev/ad1s2" # Vsims with standard disk layout uses separate partition just like vsa
VSIM_SWAP_BLOCKS=1500           #number of 1M blocks
vsim_swapsize=$((${VSIM_SWAP_BLOCKS} * 1024 * 1024)) # ~1.5GB of swapspace. Vsims need more swapspace than hardware - burt273995

entropy_file="/var/entropy"

# sendmail related controls
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

ipfilter_enable="YES"
ipfilter_rules="/etc/ipf.base.rules"
ipv6_ipfilter_rules="/etc/ipf6.base.rules"

notifyd_enable="YES"

mlogd_enable="YES"
sldiag_tcd_enable="YES"

ntpd_enable="NO"
ntpd_flags="-g -p /var/run/ntpd.pid -f /var/db/ntpd.drift"

# For Vsim & VSA, use the correct coredump partition
sim_dumpdev="/dev/ad0s4a"
vsa_dumpdev="/dev/ad2s2"

static_routes=""
vmtools_enable="YES"
vmdblade_setup_enable="YES"
vmmonitor_enable="YES"
vmhostinfo_enable="YES"

xinetd_enable="YES"
ifconfig_lo0="inet 127.0.0.1 -arp mtu 8232"

kmip_init_enable="YES"
kmip_client_enable="YES"
bash-3.2$
bash-3.2$
bash-3.2$ exit
exit
netapp01% exit
logout
netapp01*>
netapp01*>
netapp01*> useradmin diguserlock
netapp01*>
netapp01*> priv set admin
netapp01>
netapp01>


作業が終わった後は、以下でAdvancedモードを抜ける。

> exit
> useradmin diaguser lock
> priv set admin

■参照
Recipes for adding disks to a Data ONTAP 8 Simulator
http://communities.netapp.com/docs/DOC-9579