- 浏览: 71230 次
最新评论
-
skyman345:
不错,三火兄涉猎的范围很广吗,找好久这东西了,我也需要通过脚本 ...
通过powershell脚本实现定期同步vcenter虚拟机数据到数据库 -
ray_linn:
权限不够吧。前面的 echo ' ' 干嘛用?
如果解决BBSA扩展配置对象调用WMI语法卡死的问题 -
张三火:
langyahuashi 写道windows 自带的可以保存密 ...
远程桌面批量管理工具(19日更新) -
张三火:
datawarehouse 写道 不会有后台上传什么的吧? ...
远程桌面批量管理工具(19日更新) -
langyahuashi:
windows 自带的可以保存密码的
远程桌面批量管理工具(19日更新)
文章列表
前面提到过实现NSH参数动态化执行NSH作业http://bladelogic.iteye.com/blog/1709147,但是当获取的参数较多或者参数复杂时就需要较高级的脚本来实现参数的解析。
1. 首先在脚本中增加参数解析功能
#!/bin/sh
################################################
#author:zhanglei
#date:2012-11
#description:Parses string and dynamic parmeters
##############Read parmaeters### ...
批量安装windows补丁
- 博客分类:
- 脚本编程
1. 创建install.bat文件
2. 编辑该文件输入一下脚本
@echo off
for %%i in (*.exe) do %%i /passive /norestart /nobackup
3. 将该脚本放置与补丁同一目录执行即可
状况:
当通过BBSA进行虚拟机克隆时,Vcenter里面虚拟机创建完成,但是作业不会停止,1小时候作业失败,虚拟机回收。
agent日志:
[31 十月 2012 12:23:32,567] [Thread-928] [INFO] Response returned
[31 十月 2012 12:29:50,541] [Thread-30] [INFO] Processing delete asset : win2k3 of type : BMC_VMware_VirtualMachine
[31 十月 2012 12:30:05,580] [Thread-30 ...
前面写了一个Windows下自动FTP的脚本:
http://bladelogic.iteye.com/blog/1709463
今天新增Linux下的简单脚本,还待优化
#!/bin/sh
lftp 10.12.132.53 <<EOF
login user1 password1
cd subdir
put file1 file2 file3
exit
EOF
Shell脚本实现自动发邮件
- 博客分类:
- 脚本编程
1、编辑用户Home目录下的.muttrc文件,设置发信环境。
# cat /root/.muttrc
set envelope_from=yes
set from=owinux@sina.cn
set realname="Owinux"
set use_from=yes
set rfc2047_parameters=yes
set charset="utf-8"
2、发信脚本
# cat automail.sh
#!/bin/sh
# automail.sh
DIR=/root/owinux
mailcon ...
windows下自动FTP的脚本
- 博客分类:
- 脚本编程
1. 建立ftp123.bat文件
open IP_ADDRESS
USERNAME
PASSWORD
2. 建立ftprun.bat文件
ftp -i -s:ftp123.bat
然后将这两个文件放在同一个目录下,直接运行ftprun.bat文件即可。
1. 首先创建如下脚本
#!/bin/nsh
cd /c
echo $1 >1.tt
2.在Configruation>Property Dictionary View>Builit Property-class 下server中增加全局变量Job_Run_Value
3.创建NSH脚本,并且增加Parmeters,期中增加参数,并且选择Editable
4.创建NSH作业,NSH作业中Parmeters中可以对自定义的参数选择第二步定义的变量,每次执行时修改全局变量内容即可。
以上方法在变量较少时可以方便使用,如果变量较多可以 ...
修改虚拟机磁盘datastore配置文件介绍
- 博客分类:
- BAO
<disk-name> Specifies the name of the virtual disk to be moved Yes
<datacenter> Specifies the datacenter hosting the datastore Conditional
<transform> Specifies the transformation that is to be performed on the disks
基本磁盘datastore修改配置属性
<operation-type>Adva ...
There are 1 error(s) while executing the task
ERROR 1:
Severity: CRITICAL
Error: Error while executing bulk create in Service Offering Instance.
Error Resolution: Please contact system administrator
Error Id: BMC-CLMT-10400201
Transaction Id: 77bbedec-390d-4f02-85ab-81619cd4f731
Root ...
1. 登录console修改ProxySvcPort配置项,修改完成重启appserver
2. 按照第一步继续修改ProxyServiceURLs:
service:proxysvc.bladelogic:blsess://<nshProxyServerHost>:<portNumber>,修改完成重启appserver
3. 执行如下命令修改secure
secadmin -m default -p 5 -appserver_protocol ssoproxy -T encryption_only -e tls
4. 执行命令:
secadm ...
Currently You have below entry
default:port=4750:protocol=5:tls_mode=encryption_only:appserver_protocol=ssoproxy:encryption=tls:
rscd:port=4750:protocol=5:tls_mode=encryption_only:encryption=tls:
Expected:
default:port=4750:protocol=5:tls_mode=encryption_only:encryption=tls:appserver_pro ...
这是在华贸桥上拍摄的照片,拍摄使用了二次曝光的方法,但是首先我要说的是这是一个客观存在的画面,月亮在这区域升起,飞机在这飞过,走过大望桥的人都能看得出来.实际画面:月亮在画面偏左路灯上方升起,视觉感受月亮的大小并不比画面中的要小很多,但是和桥的比例会有大约120mm焦距的差距.拍摄方法:因为直接用300mm增距镜已经不能把车流和路灯说明的很详细了,也就是说截像变得很大,加上月亮并没有在理想中的画面位置,我决定用二次曝光的方法先拍摄既能把月亮放大一些又能把月亮调整到理想的位置,因而用300加增距镜拍摄月亮第一次曝光,然后卸掉增距镜用300镜头拍摄了四环的四惠桥近景。
自动添加用户到RBAC
- 博客分类:
- Bladelogic
DEBUG=1
# Print all debug lines if DEBUG = 1
sub print_debug()
{
if test "$DEBUG" -eq 1
then
echo $@
fi
}
sub print_usage()
{
echo "$PROGRAM <user_list> <role_list>\n"
echo " user ...
BBSA权限控制结构及各模块工作原理
2. 权限控制各模块介绍
ACL Policy – A group of Authorizations that is directly tied to one or more objects. Updating the Policy automatically updates the permissions on each object the Policy is tied to.
ACL Templates – A group of Authorizations that can be applied to ...